• Post Reply Bookmark Topic Watch Topic
  • New Topic

unable to create UserTransaction from EJBContext, getting IllegalStateException

 
ronak rayy
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



The above code is giving me the below error (server used is Websphere)

[28/09/16 10:04:53:121 BST] 000000d9 BusinessExcep E   CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method "createRole" on bean "BeanId(XXX#XXXEJB.jar#DBQueryService, null)". Exception data: java.lang.IllegalStateException
at com.ibm.ejs.container.CMStatelessBeanO.getUserTransaction(CMStatelessBeanO.java:80)
at com.xxx.services.impl.DBQueryServiceImpl.createRole(Unknown Source)
at com.xxx.services.interfaces.EJSRemote0SLDBQueryService_eefe5a3e.createRole(EJSRemote0SLDBQueryService_eefe5a3e.java)
at com.xxx.services.interfaces._IDBQueryService_Stub.createRole(_IDBQueryService_Stub.java:1)
 
ronak rayy
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ronak rayy wrote:


The above code is giving me the below error (server used is Websphere)

[28/09/16 10:04:53:121 BST] 000000d9 BusinessExcep E   CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method "createRole" on bean "BeanId(XXX#XXXEJB.jar#DBQueryService, null)". Exception data: java.lang.IllegalStateException
at com.ibm.ejs.container.CMStatelessBeanO.getUserTransaction(CMStatelessBeanO.java:80)
at com.xxx.services.impl.DBQueryServiceImpl.createRole(Unknown Source)
at com.xxx.services.interfaces.EJSRemote0SLDBQueryService_eefe5a3e.createRole(EJSRemote0SLDBQueryService_eefe5a3e.java)
at com.xxx.services.interfaces._IDBQueryService_Stub.createRole(_IDBQueryService_Stub.java:1)



We managed to sort this ourselves...
The issue was with one of the configuration settings on Websphere.

Enterprise Applications >> XXX > modules >> metadata for modules  .................................. need to uncheck all the modules.
error was occurring when all the modules were checked.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!