CFMX 7.0.2: Preventing 'Unable to register Flex Assembler Service in RMI registry' error
Related Categories: ColdFusion
I've come across this error in two places with ColdFusion MX 7.0.2:
- a customer's JBoss deployment (unsupported)
- my own Server configuration
The error (recorded in CFMX's server.log) means the embedded Flex 2 Assembler service in CFMX 7.0.2 can not bind to TCP port 1099. This port is hard coded in the source code and cannot be modified. The solution is to discover what is bound to port 1099 and either stop it or reconfigure it to use another port (e.g. 11099), then restart/redeploy ColdFusion.
Use networking tools to verify which process is bound to port 1099:
TCP 0.0.0.0:1433 0.0.0.0:0 LISTENING 5560
For my CFMX Server configuration on my Windows 2003 Server, this turned out to be the File Replication service bound to port 1099. Stopping that service and restarting CFMX did the trick. JBoss binds the JNP/RMI service to TCP port 1099 by default. This bind happens prior to it deploying CFMX:
s org.jboss.net.sockets.DefaultSocketFactory
.
.
.
01:20:03,725 INFO [STDOUT] 11/29 01:20:03 Error [main] - Unable to initialize FlexAssembler service: coldfusion.server.ServiceException: Unable to re
gister Flex Assembler Service in RMI registry: java.rmi.ConnectIOException: non-JRMP server at remote endpoint.
The solution is to modify the configuration (in either jboss-service.xml or naming-service.xml in the JBoss config folder) to use a different port and restart JBoss.
I wrote technote 400051 for supported CFMX configurations and 400048 for the JBoss configuration. Both are currently being reviewed, however since JBoss is an unsupported configuration, I do not know whether that technote will get published.



[Add Comment] [Subscribe to Comments]
Error attempting to update settings:
Unable to register Flex Assembler Service in RMI registry: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.net.MalformedURLException: no protocol: Files/Apache.
any ideas?