当前位置: 动力学知识库 > 问答 > 编程问答 >

java - IllegalStateException: Cannot obtain inMethodFlag for: getPrimaryKey

问题描述:

Can anyone tell me why following exception comes?

java.rmi.ServerException: RuntimeException; nested exception is:

java.lang.IllegalStateException: Cannot obtain inMethodFlag for: getPrimaryKey

How to avoid it?

网友答案:

According to the AllowedOperationsFlags API it will be thrown when the getPrimaryKey() has been called at a wrong time, e.g. during ejbCreate(). It's hard to suggest a solution without more context about your particular problem and/or a SSCCE.

分享给朋友:
您可能感兴趣的文章:
随机阅读: