-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: caught an exception during creation of the ManagedConnection
PostPosted: Thu May 27, 2010 10:54 am 
Newbie

Joined: Thu May 27, 2010 2:32 am
Posts: 3
Hi,
Im running into problem when i log into my application.The below error props up immediately or sometime after navigating on the application.

J2CA0046E: Method createManagedConnctionWithMCWrapper caught an exception during creation of the ManagedConnection for resource jdbc/TOEFLDataSource, throwing ResourceAllocationException. Original exception: com.ibm.ws.exception.WsException: DSRA8100E: Unable to get a XAConnection from the DataSource.

which points to
"Caused by: java.sql.SQLException: Io exception: Socket is not connected"


here my JNDI name is jdbc/TOEFLDataSource and Datasource name is TOEFLDataSource.

I checked for this exception on hibernate forum but could not find any clue.

I tried changing the translife timeout in sevrer configuration,but no use..:(
Im using IBM WSAD as application server and Oracle10g as my database.

Any input is highly appreciated.

Thanks,
Ravi


Top
 Profile  
 
 Post subject: Re: caught an exception during creation of the ManagedConnection
PostPosted: Tue Jun 01, 2010 2:12 am 
Newbie

Joined: Thu May 27, 2010 2:32 am
Posts: 3
Hi,

I could not see any Hibernate expert or the hibernate project people responding to the query.
I would appreciate if some input is provided.

Thanks,


Top
 Profile  
 
 Post subject: Re: caught an exception during creation of the ManagedConnection
PostPosted: Tue Jun 01, 2010 11:05 am 
Regular
Regular

Joined: Tue May 11, 2010 5:50 pm
Posts: 54
Location: Norman, Ok, U.S.A
Is your database engine running? I work with postgres database engine and I have to have the engine running for my application to connect to the database on a specific port to be able to work with it. I am not sure which database engine you are running, buy I think you need to make sure that it is running and you are connecting to the right port, if you need to specify a port number.


Top
 Profile  
 
 Post subject: Re: caught an exception during creation of the ManagedConnection
PostPosted: Wed Jun 02, 2010 2:25 am 
Newbie

Joined: Thu May 27, 2010 2:32 am
Posts: 3
Hi ivirani,
Im using Oracle10g and it is connected.I could check that through sql developer. Im able to do normal transactions on the aplication, but intermittently it is throwing this error.

Also i get "net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection - no session or session was closed" this error now and then. This causes some part of web page to throw error.


Thanks for your reply.


Top
 Profile  
 
 Post subject: Re: caught an exception during creation of the ManagedConnection
PostPosted: Wed Jun 02, 2010 10:53 am 
Regular
Regular

Joined: Tue May 11, 2010 5:50 pm
Posts: 54
Location: Norman, Ok, U.S.A
Is it done when you are trying to run a particular query or it just happens randomly?
Are you managing the connection manually or using something like C3p0?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.