Solved

Javax.Resource Exception

Posted on 2007-03-29
4
430 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Containers like Docker and Rocket are getting more popular every day. In my conversations with customers, they consistently ask what containers are and how they can use them in their environment. If you’re as curious as most people, read on. . .
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

630 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