-->
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.  [ 3 posts ] 
Author Message
 Post subject: JBoss working fine then fails. Anyone heard of this
PostPosted: Wed Jun 15, 2005 1:30 pm 
Beginner
Beginner

Joined: Mon Apr 18, 2005 10:25 am
Posts: 38
Location: Maryland
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
2.1
JBoss 4.1

Code between sessionFactory.openSession() and session.close():
We are using the JTATransactionManager and everything was working great when all of a sudden, we starting getting crazy errors. We go to login which worked fine but now it returns a null list. As well we have been getting errors such that org.apache.struts.action.RequestProcessor Null pointer exception. Another is NoClassDefFound. All of these with unchanged code that worked 5 minutes before. Any clue?

After JBoss had been running for a time it would say it was out of sessions or something to that affect. I have read that there is a bug that it marks transactions for rollback but that does not actually ever happen. We would simply redeploy the app and all was well. Not any more.

I have posted to the Jboss site as well but thought I would put it here too.

Full stack trace of any exception that occurs:

Name and version of the database you are using:
Sybase ASE 12.5

Debug level Hibernate log excerpt:
Debug


Top
 Profile  
 
 Post subject: Here is an error
PostPosted: Wed Jun 15, 2005 3:13 pm 
Beginner
Beginner

Joined: Mon Apr 18, 2005 10:25 am
Posts: 38
Location: Maryland
Here is an update on my current error verbatm:

WARN [org.apache.struts.action.RequestProcessor] Unhandled Exception thrown: class java.lang.NullPointerException

ERROR [org.jboss.web.localhost.Enginer]
StandardWrapperValve[projName]:Servlet.service() for projName threw exception java.lang.NullPointerException at ../../../../../.HibernateUtil.getSession()

The .getSession class:


session = HibernateContext.getSession(java:hibernate/SessionFactory);


Hmmmm.


Also I noticed that when I redeploy the jboss server, I print out two of my logger messages that have to do with a class called: Roles.java. These are application roles not once for jboss or the db?????? Why would this happen on deploy?


Top
 Profile  
 
 Post subject: more details on error
PostPosted: Wed Jun 15, 2005 3:23 pm 
Beginner
Beginner

Joined: Mon Apr 18, 2005 10:25 am
Posts: 38
Location: Maryland
Ok, I put try catch around the HibernateContext.getSession();

Here is what prints out:
org.jboss.util.NestedRuntimeException: Unable to retrieve Session; - nested throwable: (net.sf.hibernate.HibernateException: Session cannot be generated outside of transaction scope) at org.jboss.hibernate.session.HibernateContext.getSession(HibernateContext.java:108) at HibernateUtil.getSession(...)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.