• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

unable to create UserTransaction from EJBContext, getting IllegalStateException

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic