Status/Resolution/Reason: Closed/Withdrawn/
Reporter/Name(from Bugbase): Steve Seaquist / Steve Seaquist (WebManWlkg)
Created: 05/13/2010
Components: General Server
Versions: 9.0.1
Failure Type: Unspecified
Found In Build/Fixed In Build: 274129 /
Priority/Frequency: Major / Unknown
Locale/System: English / Win All
Vote Count: 0
Problem:
A problem defining a Mapping results in error "java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean". On the next restart of CF Server, this becomes "Unable to initialize Runtime service: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean". All future requestst of the runtime service fail, resulting in 500 Server Error on all pages.
Method:
My document root is c:\htdocs. I have installed Sean Corfield's FrameWork/1 MVC cfc into c:\htdocs\books\fw1\org\corfield. So that it will work right, I have defined a Mapping from "/org/corfield" to "c:\htdocs\books\fw1\org\corfield". Under CF 9 earlier, and now 9.0.1, any attempt to define this Mapping results in "java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean". (By any attempt, I mean that it doesn't matter whether I try to define it in CF Admin > Mappings or by deploying a CAR file.) There are other occurrences of this same exception in the CAR deployment log, but the one in Mappings is the one I can reproduce manually in CF Admin. I can also make it happen by trying to define a mapping from "/" to "c:\htdocs". I suspect that the Mappings is what later crashes the runtime service at startup, because I once did this experiment: (1) defined the mapping, (2) got "java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean", (3) deleted the Mapping and (4) restarted CF Server successfully. But when I tried defining the Mapping manually but DIDN'T delete it, CF Server fails to launch the runtime service on the next restart. Here is the CAR deployment log: Deploy Status Log Severity Date Time Message "Information" "05/13/10" "18:11:52" "C:\ColdFusion9\logs\car_deploy_2010_002D03_002D23_002Ecar.log initialized" "Information" "05/13/10" "18:11:52" "Restoring entry '{server_root_dir}\runtime\servers\coldfusion\SERVER-INF\temp\wwwroot-tmp\server_settings.xml' to file 'C:\ColdFusion9\runtime\servers\coldfusion\SERVER-INF\temp\wwwroot-tmp\server_settings.xml'" "Information" "05/13/10" "18:11:52" "Restoring entry '{server_root_dir}\runtime\servers\coldfusion\SERVER-INF\temp\wwwroot-tmp\archive_properties.xml' to file 'C:\ColdFusion9\runtime\servers\coldfusion\SERVER-INF\temp\wwwroot-tmp\archive_properties.xml'" "Information" "05/13/10" "18:11:52" "Restoring debugging settings" "Information" "05/13/10" "18:11:52" "Restoring server settings" "Information" "05/13/10" "18:11:53" "Restoring logging settings" "Information" "05/13/10" "18:11:53" "Restoring mail settings" "Information" "05/13/10" "18:11:53" "Restoring variables" "Information" "05/13/10" "18:11:53" "Restoring caching settings" "Error" "05/13/10" "18:11:53" "Error occurred while updating caching settings" "Error" "05/13/10" "18:11:53" "java.lang.String cannot be cast to java.lang.Boolean" "Information" "05/13/10" "18:11:53" "Restoring charting settings" "Information" "05/13/10" "18:11:53" "Restoring custom tag paths" "Error" "05/13/10" "18:11:53" "Error occurred while updating Custom Tag Path settings" "Error" "05/13/10" "18:11:53" "java.lang.String cannot be cast to java.lang.Boolean" "Information" "05/13/10" "18:11:53" "Restoring security settings" "Information" "05/13/10" "18:11:53" "Restoring Server Monitor settings" "Information" "05/13/10" "18:11:53" "Restoring System Probes settings" "Information" "05/13/10" "18:11:53" "Restoring watch settings" "Information" "05/13/10" "18:11:53" "Restoring directory mappings" "Error" "05/13/10" "18:11:53" "Error occurred while updating directory mappings:" "Error" "05/13/10" "18:11:53" "java.lang.String cannot be cast to java.lang.Boolean" "Information" "05/13/10" "18:11:53" "Restoring scheduled tasks" "Information" "05/13/10" "18:11:53" "Restoring java applets" "Error" "05/13/10" "18:11:53" "Error occurred while updating applets:" "Error" "05/13/10" "18:11:53" "java.lang.String cannot be cast to java.lang.Boolean" "Information" "05/13/10" "18:11:53" "Restoring CFX's" "Error" "05/13/10" "18:11:53" "Error occurred while updating CFX's:" "Error" "05/13/10" "18:11:53" "java.lang.String cannot be cast to java.lang.Boolean" "Information" "05/13/10" "18:11:53" "Restoring verity collections" "Information" "05/13/10" "18:11:54" "Restoring solr collections" "Information" "05/13/10" "18:11:54" "Restoring datasources" "Information" "05/13/10" "18:11:54" "Restoring Web Services" "Information" "05/13/10" "18:11:54" "Restoring Event Gateway Instances" "Information" "05/13/10" "18:11:54" "Restoring Event Gateway Types" "Information" "05/13/10" "18:11:54" "Deploy complete" Here is the server.log from the next restart of CF Server: "Information","main","05/13/10","18:21:48",,"Starting logging...""Information","main","05/13/10","18:21:48",,"Starting license...""Information","main","05/13/10","18:21:49",,"Evaluation Edition enabled""Information","main","05/13/10","18:21:49",,"Starting crypto...""Information","main","05/13/10","18:21:49",,"Installed JSafe JCE provider: Version 3.6 RSA Security Inc. Crypto-J JCE Security Provider (implements RSA, DSA, Diffie-Hellman, AES, DES, Triple DES, DESX, RC2, RC4, RC5, PBE, MD2, MD5, RIPEMD160, SHA1, SHA224, SHA256, SHA384, SHA512, HMAC-MD5, HMAC-RIPEMD160, HMAC-SHA1, HMAC-SHA224, HMAC-SHA256, HMAC-SHA384, HMAC-SHA512)""Information","main","05/13/10","18:21:49",,"Starting security...""Information","main","05/13/10","18:21:49",,"Starting scheduler...""Information","main","05/13/10","18:21:49",,"Starting WatchService...""Information","main","05/13/10","18:21:49",,"Starting debugging...""Information","main","05/13/10","18:21:49",,"Starting sql...""Information","main","05/13/10","18:21:50",,"Pool Manager Started""Information","main","05/13/10","18:21:50",,"Starting mail...""Information","main","05/13/10","18:21:50",,"Starting runtime...""Error","main","05/13/10","18:21:51",,"Unable to initialize Runtime service: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean""Information","main","05/13/10","18:21:51",,"Starting cron...""Information","main","05/13/10","18:21:51",,"Starting registry...""Information","main","05/13/10","18:21:51",,"Starting client...""Error","main","05/13/10","18:21:51",,"Unable to initialize Client Storage service: coldfusion.server.ServiceFactory$ServiceNotAvailableException: The Runtime service is not available. This exception is usually caused by service startup failure. Check your server configuration.""Information","main","05/13/10","18:21:51",,"Starting xmlrpc...""Information","main","05/13/10","18:21:51",,"Starting graphing...""Information","main","05/13/10","18:21:51",,"Starting verity...""Information","main","05/13/10","18:21:51",,"Starting solr...""Information","main","05/13/10","18:21:51",,"Starting archive...""Information","main","05/13/10","18:21:51",,"Starting document...""Information","main","05/13/10","18:21:51",,"Starting eventgateway...""Information","main","05/13/10","18:21:51",,"Starting FlexAssembler...""Error","main","05/13/10","18:21:51",,"Unable to initialize FlexAssembler service: coldfusion.server.ServiceFactory$ServiceNotAvailableException: The Runtime service is not available. This exception is usually caused by service startup failure. Check your server configuration.""Information","main","05/13/10","18:21:51",,"Starting .NET...""Error","main","05/13/10","18:21:51",,"Unable to initialize .NET service: coldfusion.server.ServiceFactory$ServiceNotAvailableException: The Runtime service is not available. This exception is usually caused by service startup failure. Check your server configuration.""Information","main","05/13/10","18:21:51",,"Starting Monitoring...""Information","main","05/13/10","18:21:51",,"ColdFusion started""Error","Thread-14","05/13/10","18:21:52",,"The Runtime service is not available. This exception is usually caused by service startup failure. Check your server configuration."The critical error, of course, is the first one at 18:21:51. From there on out, the CF Server is hosed, and the only way to get it back is to reinstall. (I haven't tried editing any neo XML files under 9.0.1. I think I tried it under 9.0, but if so, I don't remember what the result was. I think it didn't get rid of the problem, so I figured I wasn't editing the right one.) I also have a GIF file of what Mappings looks like after the CAR deployment, but this bug reporter doesn't give me a way to upload it. The GIF shows that, if you define the Mapping by CAR deployment, the delete and edit icons don't appear to the left of the Mapping, giving you no ability to delete it. The only times I've gotten the delete and edit icons to the left of the Mapping have been when I defined it manually. I'm running Windows XP 64-bit on a 64-bit machine with 8 GB of memory, and the version of 9.0.1 updater that I installed was CF_90_Updater_windows_64_Beta.exe. My Apache 2.2.15 is 32-bit, installed under the c:\Program Files (x86) directory. But one of the purposes of sockets is to isolate the runtime environments , so that an application server does NOT have to run as a plug-in of the web server. So I can't see as how the fact that Apache is 32-bit could possibly make any difference. I just mentioned it for bug replication background info. I've replicated and replicated and replicated this bug over and over again under 9.0 and now 9.0.1. And each time I do it, I have to reinstall from scratch. So it was a heck of a nuisance gathering all of this VERY specific information for you. It's your turn now, okay? I'd like to go back to testing stuff that works for a change. I'm going to move FrameWork/1 to c:\htdocs\org\corfield so that I don't have to define the Mapping of Death.
Result:
Unable to initialize Runtime service: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3041445
External Customer Info:
External Company:
External Customer Name: Steve Seaquist
External Customer Email: 72C91405446C483D992016E5
External Test Config: 05/13/2010
Attachments:
Comments: