aspose file tools
The moose likes BEA/Weblogic and the fly likes Weblogic Assertion Error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Reply Bookmark "Weblogic Assertion Error" Watch "Weblogic Assertion Error" New topic
Author

Weblogic Assertion Error

Tige Kala
Greenhorn

Joined: Nov 06, 2003
Posts: 2
Hello,
I have run into the following problem. When running a very long lasting
bean transaction on one BEA Weblogic 6.1 SP2 application server I get no errors,
but on the other one that in fact should be quite similar to the first one, I get:

The exception is raised from my EJB-s ejbPassivate() method, that only does the following:

"ctx" represents a UserTransaction.
What I am doing is calculating some dividends, and this takes time. There I
have several thousand holders, and in a for loop, I calculate dividends for each one of them. The application doing this represents a stateful session bean (EJB).
I have done research, consulted with developers by my side, but still get this strange error.
What causes this? What should I check? Is it in Weblogic application server's configuration or in the java bean?
Thanks in advace!
Aulo
Tige Kala
Greenhorn

Joined: Nov 06, 2003
Posts: 2
We commented out the ctx.close() in the ejbPassivate()
method, as it is there only for cosmetic purposes. So we
now leave the transient context to be removed by the
JVM Carbage Collector.
A.
Ashish Pagare
Ranch Hand

Joined: Oct 14, 2003
Posts: 101
Are u saying when u remove the ctx.close(), everything works fine?
Assertion error is very common in weblogic. My suggestion to you will be to check in the webogic managed/admin server logs, your managed server startup logs to find out if you get any stacktrace. Also check inside the ejbs to make sure u are printing the original stack trace.
Can't help much but if you provide stacktrace it will be of some help.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Weblogic Assertion Error
 
Similar Threads
Casting Problem in Stateful Session Beans(urgent please)
AssertionError in JBuilder6 with WebLogic6.1!!
Weblogic 7.0 certification mock test question
Urgent J2EE deploytool help
ClassCastException: Cannot narrow...