Solved

Javax.Resource Exception

Posted on 2007-03-29
4
421 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:mayankeagle
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:
mayankeagle 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now