2015-10-07 34 views
0

我在server.log得到下面的錯誤,並試圖出現此錯誤登錄....ISPN000188:錯誤處理時,在兩階段的事務提交:部署了我在JBoss應用後org.infinispan.marshall.NotSerializableException

基本上JBoss的說,兩階段提交失敗而inifinispan嘗試當元帥的對象....它引發異常NotSerializableException ...

因此,JBoss-InfinispanDummyTransaction.java:287ISPN000111: afterCompletion() failed for SynchronizationAdapter

13:28:38,186 ERROR [org.infinispan.transaction.TransactionCoordinator] (http-/192.nnn.nnn.nn:8080-3) ISPN000188: Error while processing a commit in a two-phase transaction: org.infinispan.marshall.NotSerializableException: com.singtel.um.transaction.TransactionManager 
Caused by: an exception which occurred: 
     in field transactionManager 
     in object [email protected] 
     in object [email protected] 
       -> toString = {[email protected], Userid=1, Username=sysadmin, org.apache.struts.action.LOCALE=en_US, [email protected], [email protected]} 
     in object [email protected] 
       -> toString = {0=11, 1=1444195716345, [email protected]124, 3={[email protected], Userid=1, Username=sysadmin, org.apache.struts.action.LOCALE=en_US, [email protected], [email protected]}} 
     in object [email protected] 
       -> toString = AtomicHashMap 
     in object [email protected] 
       -> toString = ImmortalCacheEntry{key=ZVx0ehVWVUvmITSBGMT9pQmB, value=ImmortalCacheValue {value=AtomicHashMap}} 
     in object [email protected] 
       -> toString = Bucket{entries={ZVx0ehVWVUvmITSBGMT9pQmB=ImmortalCacheEntry{key=ZVx0ehVWVUvmITSBGMT9pQmB, value=ImmortalCacheValue {value=AtomicHashMap}}}, bucketId='1607025664'} 

13:28:38,210 INFO [stdout] (http-/192.nnn.nnn.nn:8080-3) ERROR [http-/192.nnn.nnn.nn:8080-3] (TransactionCoordinator.java:213) - ISPN000188: Error while processing a commit in a two-phase transaction 
13:28:38,213 INFO [stdout] (http-/192.nnn.nnn.nn:8080-3) org.infinispan.marshall.NotSerializableException: com.singtel.um.transaction.TransactionManager 
13:28:38,216 INFO [stdout] (http-/192.nnn.nnn.nn:8080-3) Caused by: an exception which occurred: 
13:28:38,218 INFO [stdout] (http-/192.nnn.nnn.nn:8080-3)  in field transactionManager 
13:28:38,219 INFO [stdout] (http-/192.nnn.nnn.nn:8080-3)  in object [email protected] 
13:28:38,221 INFO [stdout] (http-/192.nnn.nnn.nn:8080-3)  in object [email protected] 
13:28:38,224 INFO [stdout] (http-/192.nnn.nnn.nn:8080-3)    -> toString = {[email protected], Userid=1, Username=sysadmin, org.apache.struts.action.LOCALE=en_US, R[email protected], [email protected]} 
13:28:38,228 INFO [stdout] (http-/192.nnn.nnn.nn:8080-3)  in object [email protected] 
13:28:38,231 INFO [stdout] (http-/192.nnn.nnn.nn:8080-3)    -> toString = {0=11, 1=1444195716345, [email protected]124, 3={[email protected], Userid=1, Username=sysadmin, org.apache.struts.action.LOCALE=en_US, [email protected], [email protected]}} 
13:28:38,237 INFO [stdout] (http-/192.nnn.nnn.nn:8080-3)  in object [email protected] 
13:28:38,239 INFO [stdout] (http-/192.nnn.nnn.nn:8080-3)    -> toString = AtomicHashMap 
13:28:38,241 INFO [stdout] (http-/192.nnn.nnn.nn:8080-3)  in object [email protected] 
13:28:38,243 INFO [stdout] (http-/192.nnn.nnn.nn:8080-3)    -> toString = ImmortalCacheEntry{key=ZVx0ehVWVUvmITSBGMT9pQmB, value=ImmortalCacheValue {value=AtomicHashMap}} 
13:28:38,246 INFO [stdout] (http-/192.nnn.nnn.nn:8080-3)  in object [email protected] 
13:28:38,249 INFO [stdout] (http-/192.nnn.nnn.nn:8080-3)    -> toString = Bucket{entries={ZVx0ehVWVUvmITSBGMT9pQmB=ImmortalCacheEntry{key=ZVx0ehVWVUvmITSBGMT9pQmB, value=ImmortalCacheValue {value=AtomicHashMap}}}, bucketId='1607025664'} 
13:28:38,253 ERROR [org.infinispan.transaction.tm.DummyTransaction] (http-/192.nnn.nnn.nn:8080-3) ISPN000111: afterCompletion() failed for SynchronizationAdapter{localTransaction=LocalTransaction{remoteLockedNodes=null, isMarkedForRollback=false, lockedKeys=null, backupKeyLocks=null, topologyId=-1, isFromStateTransfer=false} [email protected]42} or[email protected]61: org.infinispan.CacheException: Could not commit. 
     at org.infinispan.transaction.synchronization.SynchronizationAdapter.afterCompletion(SynchronizationAdapter.java:83) 
     at org.infinispan.transaction.tm.DummyTransaction.notifyAfterCompletion(DummyTransaction.java:285) 
     at org.infinispan.transaction.tm.DummyTransaction.runCommitTx(DummyTransaction.java:334) 
     at org.infinispan.transaction.tm.DummyTransaction.commit(DummyTransaction.java:91) 
     at org.infinispan.transaction.tm.DummyBaseTransactionManager.commit(DummyBaseTransactionManager.java:102) 
     at org.jboss.as.clustering.web.impl.TransactionBatchingManager.endBatch(TransactionBatchingManager.java:75) 
     at org.jboss.as.web.session.DistributableSessionManager.processSessionRepl(DistributableSessionManager.java:1574) [jboss-as-web-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19] 
     at org.jboss.as.web.session.DistributableSessionManager.storeSession(DistributableSessionManager.java:872) [jboss-as-web-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19] 
     at org.jboss.as.web.session.InstantSnapshotManager.snapshot(InstantSnapshotManager.java:47) [jboss-as-web-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19] 
     at org.jboss.as.web.session.ClusteredSessionValve.handleRequest(ClusteredSessionValve.java:142) [jboss-as-web-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19] 
     at org.jboss.as.web.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:99) [jboss-as-web-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19] 
     at org.jboss.as.web.session.JvmRouteValve.invoke(JvmRouteValve.java:92) [jboss-as-web-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19] 
     at org.jboss.as.web.session.LockingValve.invoke(LockingValve.java:64) [jboss-as-web-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19] 
     at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19] 
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4] 
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4] 
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4] 
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4] 
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4] 
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4] 
     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4] 
     at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_80] 
Caused by: javax.transaction.xa.XAException 
     at org.infinispan.transaction.TransactionCoordinator.handleCommitFailure(TransactionCoordinator.java:224) 
     at org.infinispan.transaction.TransactionCoordinator.commit(TransactionCoordinator.java:185) 
     at org.infinispan.transaction.synchronization.SynchronizationAdapter.afterCompletion(SynchronizationAdapter.java:81) 
     ... 21 more 

13:28:38,308 INFO [stdout] (http-/192.nnn.nnn.nn192.nnn.nnn.nn:8080-3) ERROR [http-/192.nnn.nnn.nn:8080-3] (DummyTransaction.java:287) - ISPN000111: afterCompletion() failed for SynchronizationAdapter{localTransaction=LocalTransaction{remoteLockedNodes=null, isMarkedForRollback=false, lockedKeys=null, backupKeyLocks=null, topologyId=-1, isFromStateTransfer=false} [email protected]42} or[email protected]61 
13:28:38,317 INFO [stdout] (http-/192.nnn.nnn.nn:8080-3) org.infinispan.CacheException: Could not commit. 

請有人幫我解決這個問題。

回答

3

你的一個類(不知道叫什麼名字,但它擁有com.singtel.um.dto.ResponsePageDtocom.singtel.um.dto.UserDtocom.singtel.um.UserManager)似乎有一個字段transactionManager,和你的TM執行不序列化。你應該讓這個領域瞬變。

不知道爲什麼HashMap在堆棧中,除非有什麼東西在測試Java類。

理想情況下,您還應該使用ExternalizableAdvancedExternalizer來優化對象的序列化。請參閱Infinispan User Guide

+0

關於序列化的空值的含義是什麼......忽略我的問題,如果它是模糊的....我讀懂你的答案.....讓我探索我的代碼並修復... 。謝謝你,Anand –

+0

感謝您的回覆....我評論了inifinspan'',即使在錯誤仍然存​​在之後....當禁用我的日誌有點清晰,我發現這些... 20:07:35,140 INFO [stdout](http-/192.nnn.nnn.nn:8080-1)group id is:0' '20:07:35,141 INFO [stdout](http-/192.nnn.nnn.nn:8080 -1)group id in request is:null' '20:07:35,142 INFO [stdout](http-/192.nnn.nnn.nn:8080-1)1 groupid = null' –

+0

儘管存在'inifinispan' 'server.log'代碼中的錯誤按預期運行......我希望這是因爲'infinispan'只是一個緩存平臺fo r jboss .....我不知道我上次部署時出現了什麼問題......現在正在通過'inifinispan'錯誤工作...... –