This week's book giveaway is in the Design and Architecture forum.
We're giving away four copies of Communication Patterns: A Guide for Developers and Architects and have Jacqui Read on-line!
See this thread for details.
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Cannot instantiate bean in websphere.

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Authors and everybody
Here's my problem: I develop using visual age. I created a bunch of stateless beans that interact with each other. The application works great under Viasual Age's Websphere Test Environment, but in the real Websphere (3.5)... There is this one bean that many other beans use... this is bean A. Now, one of the other beans who call bean A is bean B. Ok. bean B calls A all the time. The first 3 or 4 times it calls A, A is created and executed, but then, the following time, it can't create the bean and it will never do it unless it is restarted. Meanwhile, all the other beans that call A work fine all the time..
Any advice?.
Some clues... I am calling bean B from a thread generated by a servlet that starts it. (the other beans are also called like that). Bean B loops continously to see if it finds messages on a queue (MQSeries) and calls bean A all the time.
Thank you!
Francisco.
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is the exact error you get in the log?
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
 
Francisco I
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Kyle Brown:
What is the exact error you get in the log?


java.rmi.ServerException: RemoteException occurred in server thread; nestedexception is:
com.ibm.websphere.csi.CSITransactionRolledbackException: Transaction timed out
com.ibm.websphere.csi.CSITransactionRolledbackException: Transaction timed out
at com.nar.ndi.server.ejb.validation.EJSRemoteValidationHome.create(EJSRemoteValidationHome.java:44)
at com.nar.ndi.server.ejb.validation._ValidationHome_BaseStub.create (_ValidationHome_BaseStub.java:178)
at com.nar.ndi.server.ejb.validation._ValidationHome_Stub.create (_ValidationHome_Stub.java:151)
at com.nar.shared.server.cache.CacheObject.createValidation(CacheObject.java:357)
at com.nar.ndi.server.ejb.controller.CDBControllerBean.processRequest(CDBControllerBean.java:339)
at com.nar.ndi.server.ejb.controller.CDBControllerBean.process(CDBControllerBean.java:133)
at com.nar.ndi.server.ejb.controller.EJSRemoteCDBController.process(EJSRemoteCDBController.java:35)
at com.nar.ndi.server.ejb.controller._CDBController_BaseStub.process
(_CDBController_BaseStub.java:244)
at com.nar.ndi.server.ejb.controller._CDBController_Stub.process (_CDBController_Stub.java:203) at
com.nar.shared.servlet.CDBControllerThread.run(CDBControllerThread.java:23)
This is what I got from stderr_out.txt
Also, I discovered it is using 100% of the CPU... why could this be?.. I am using WS, with XML libraries (xerces), oracle and MQSeries, and JavaMail.
Any advice on where to start looking?. Thanks!!
Francisco.
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The error indicates it's a transaction timeout exception. What are you doing inside the bean's create() method? Is there any possibility you're waiting on something for a long time there?
Kyle Brown
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
 
Francisco I
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nope. The method is empty. Are there any other reasons why websphere will eat up 100% of the CPU?... I think my problem has to do with that...
Open connections, values by reference as opposed to By Value, generating many threads...
any ideas?
thanks again!
Francisco.

Originally posted by Kyle Brown:
The error indicates it's a transaction timeout exception. What are you doing inside the bean's create() method? Is there any possibility you're waiting on something for a long time there?
Kyle Brown


 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Franciso,
Did you solve this problem? I am getting the same error.
 
I love a good mentalist. And so does this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic