2017-02-16 24 views
-1

我在應用程序日誌中收到JOTM異常。我沒有發現任何由此導致的剎車功能。我試圖找出它從哪裏開始,最終找到0個自定義代碼來啓動這個錯誤。除此之外,我嘗試從lib目錄(ant項目)中替換jotm jar(com.springsource.org.objectweb.jotm-2.0.10.jar),但我仍然無法擺脫此錯誤。 有沒有人有過相同或相似類型的堆棧跟蹤並克服它?ClassNotFoundException:org.objectweb.jotm.SubCoordinator_Stub

請分享任何有用的思想來擺脫此錯誤消息。

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 

回答

2

這是很難搞清楚的確切原因,但ClassNotFoundException的很可能意味着你的項目的運行時依賴配置不正確。某些庫代碼嘗試通過其名稱加載類,但該類不在類路徑中。

下一個步驟將有助於解決這個問題:

1)發現包含SubCoordinator_Stub並確保這個罐子被列入到運行項目的依賴罐子。

2)如果第一個選項已經完成,但它沒有幫助,你的應用程序可能會有不同的ClassLoader。找出哪一個用於加載類,並試圖理解爲什麼它沒有依賴。


最終的答案: 缺少的瓶子是JOTM-core.jar添加這是很容易可以使用谷歌搜索可以找到。不過,我錯過了這個,因爲我認爲jotm是包含所有事情的獨立庫,這是錯誤的。