1
任何人都可以告訴我爲什麼下面的異常來了嗎?IllegalStateException:無法獲取inMethodFlag for:getPrimaryKey
java.rmi.ServerException: RuntimeException; nested exception is:
java.lang.IllegalStateException: Cannot obtain inMethodFlag for: getPrimaryKey
如何避免它?
Thanx,代碼在unsetEntityContext的EntityContext引用上調用getPrimaryKey()方法,導致IllegalStateException。我將該部分包裹到try-caltch中,並且它正常工作。我仍然感到驚訝,weblogic上的相同工作如何工作,沒有任何錯誤? –