Business Studio JMS Deployment problem to iProcess
Facts - Tibco
Tuesday, 23 March 2010 20:32

When deploying to iProcess 11.1.0 with Business Studio 3.2.11 I had the following error message in an alert box:

Cannot connect to Staffware Dev.
Reason: Cannot obtain connection to server. I/O exception for
service:jmx:rmi///jndi/rmi://myserver.com:10025/server

In the log directory of the iProcess server I looked in the file swjmx_java.log and saw the following lines:

2010-03-22 09:03:23,328 [ERROR] IProcessSwjmx - Unable to initialise JMX
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.staffware.core.swjmx.library.IProcessSwjmx.terminateJMX(IProcessSwjmx.java:164)
	at com.staffware.core.swjmx.library.IProcessSwjmx.shutdown(IProcessSwjmx.java:233)
	at com.staffware.core.swprocess.library.SWShutdownMonitor.run(SWShutdownMonitor.java:85)
Caused by: java.lang.NullPointerException
	at com.staffware.core.swjmx.library.util.SWJMXUtils.terminateListenerSystem(SWJMXUtils.java:440)
	at com.staffware.core.swjmx.library.util.SWJMXUtils.terminate(SWJMXUtils.java:341)
	... 7 more
2010-03-22 09:03:35,859 [ERROR] SWJMXUtils - Failed to create RMI Registry, error 

It turned out that one process did not properly terminate during a restart. After stopping the server and the ghost process SWRPCSVR the problem went away.