I'm getting below JOTM exception in my application log. I didn't found any functionality that brakes due to this. I tried to figure out from where it is starting and end up finding 0 custom codes that start this error. Other than that I tried replacing jotm jar(com.springsource.org.objectweb.jotm-2.0.10.jar
) from the lib directory(ant
project) but I still could not get rid of this error. Is there anybody who had a same or similar kind of a stack trace before and overcome it?
Kindly share any useful thought to get rid of this error message.
2017-02-16 14:41:56,524 [ TransactionImpl.java:JotmBatch:769] - TransactionImpl.timeoutExpired
DEBUG [JotmBatch] (TransactionImpl.java:980) - make subcoordinator
2017-02-16 14:41:56,524 [ TransactionImpl.java:JotmBatch:980] - make subcoordinator
ERROR [JotmBatch] (TransactionImpl.java:988) - new SubCoordinator raised exception:
java.rmi.StubNotFoundException: Stub class not found: org.objectweb.jotm.SubCoordinator_Stub; nested exception is:
java.lang.ClassNotFoundException: org.objectweb.jotm.SubCoordinator_Stub
at sun.rmi.server.Util.createStub(Util.java:297)
at sun.rmi.server.Util.createProxy(Util.java:142)
at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:197)
at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:179)
at org.objectweb.carol.rmi.jrmp.server.JUnicastServerRef.exportObject(JUnicastServerRef.java:124)
at org.objectweb.carol.rmi.jrmp.server.JUnicastRemoteObject.exportObjectR(JUnicastRemoteObject.java:126)
at org.objectweb.carol.rmi.jrmp.server.JUnicastRemoteObject.exportObject(JUnicastRemoteObject.java:103)
at org.objectweb.carol.rmi.multi.JrmpPRODelegate.exportObject(JrmpPRODelegate.java:96)
at org.objectweb.carol.rmi.multi.MultiPRODelegate.exportObject(MultiPRODelegate.java:90)
at javax.rmi.PortableRemoteObject.exportObject(PortableRemoteObject.java:100)
at javax.rmi.PortableRemoteObject.<init>(PortableRemoteObject.java:84)
at org.objectweb.jotm.SubCoordinator.<init>(SubCoordinator.java:201)
at org.objectweb.jotm.TransactionImpl.makeSubCoord(TransactionImpl.java:985)
at org.objectweb.jotm.TransactionImpl.timeoutExpired(TransactionImpl.java:788)
at org.objectweb.jotm.TimerEvent.process(TimerEvent.java:103)
at org.objectweb.jotm.TimerManager.batch(TimerManager.java:230)
at org.objectweb.jotm.Batch.run(TimerManager.java:87)
Caused by: java.lang.ClassNotFoundException: org.objectweb.jotm.SubCoordinator_Stub
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1892)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1735)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at sun.rmi.server.Util.createStub(Util.java:292)
... 16 more
It is hard to figure out the exact reasons but ClassNotFoundException most likely means that runtime dependencies of your project are not configured properly. Some library code tries to load the class by its name but the class is not in the classpath.
The next steps will help to solve it:
1) Find the jar which contains SubCoordinator_Stub and makes sure this jar is included to runtime dependencies of your project.
2) If the first option is already done but it does not help you might probably have different ClassLoaders in your application. Figure out which one is used to load the class and try to understand why doesn't it have the dependency.