Solved

Javax.Resource Exception

Posted on 2007-03-29
4
423 Views
Last Modified: 2012-05-05
I'm running a periodic task using the Resin application server.  

The task is supposed to query student data in one table and produce historical data in another table.

THe task is programmed to run every minute.

The first time the task runs I get a javax.resource.spi.workException:  Reentrant Work tasks are not allowed.
The subsequent times the task runs I get a javax.resource.ResourceException  Connection Pool is full.

My questions:
What is likely happening here?
What does the Reentrant task exception mean?   How can it be prevented?
0
Comment
Question by:tmonteit
  • 2
  • 2
4 Comments
 
LVL 30

Expert Comment

by:Mayank S
ID: 18818816
Sounds to me like you are not closing the connections properly so they are not getting released to the pool. Make sure you are closing the connections in a finally block everywhere.
0
 

Author Comment

by:tmonteit
ID: 18819134
What's a javax.resource.spi.WorkException?   What causes it?
0
 
LVL 30

Accepted Solution

by:
Mayank S earned 500 total points
ID: 18819275
Can't find the class in the API. Are you using any 3rd party JARs?
0
 

Author Comment

by:tmonteit
ID: 18865143
It was a 3rd party jar...  
mayanyeagle provided the clue.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question