posted 1 year ago
Hello Moderator, Admin-
I need to edit my post, it contains some sensitive information which i do not want to publish due to privacy policy.
https://coderanch.com/t/671101/EJB-JEE/java/unable-create-UserTransaction-EJBContext-IllegalStateException
please help me in this regard.
I need to edit my post, it contains some sensitive information which i do not want to publish due to privacy policy.
https://coderanch.com/t/671101/EJB-JEE/java/unable-create-UserTransaction-EJBContext-IllegalStateException
please help me in this regard.
ronak rayy
Greenhorn
Posts: 7
posted 1 year ago
I want to make the below changes, as it is showing the name of our customer-
1. in the code section, change the line below @Override to "public boolean createRole(String userId) throws Exception {"
2. in the logs section, replace them with the lines below
[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)
Henry Wong wrote:
First, let's move this topic to the ranch office forum. And second, can you tell us what the sensitive information is? I don't see any usernames and passwords being exposed.
Henry
I want to make the below changes, as it is showing the name of our customer-
1. in the code section, change the line below @Override to "public boolean createRole(String userId) throws Exception {"
2. in the logs section, replace them with the lines below
[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
Tony Docherty
Bartender
Posts: 3305
86
posted 1 year ago
Our pleasure and in this case it really was a team effort as both myself and Tim Moores made the requested changes at the same time - actually I was fractionally slower than Tim but managed to post here first.
ronak rayy wrote:
Tony Docherty wrote:Done.
Thank you so much team. Appreciate your prompt action.
Our pleasure and in this case it really was a team effort as both myself and Tim Moores made the requested changes at the same time - actually I was fractionally slower than Tim but managed to post here first.

I agree. Here's the link: http://javaranch.com/programming-pearls.jsp |