-->
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.  [ 4 posts ] 
Author Message
 Post subject: Using hibernate with tapestry on Oracle 9i AS
PostPosted: Fri Feb 25, 2005 5:18 pm 
Newbie

Joined: Fri Feb 25, 2005 5:12 pm
Posts: 10
Hello,

I have a hibernate project that works in Tomcat with pooled jdbc datasource. When I deployed it to Oracle hibernate is no longer working.

My questions is...where can I see the hibernate errors when it's deployed to oracle? I can't find a log that has the hibernate exceptions at all. Instead buildSessionFactory() just returns null and all I see is a null pointer exception.

Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 25, 2005 5:25 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you dont show the stacktrace so we cant help much.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 25, 2005 5:35 pm 
Newbie

Joined: Fri Feb 25, 2005 5:12 pm
Posts: 10
Well, I can show the stack trace but it wont mean much to you, since the error doesn't happen until I try to use the null session that my custom service uses.

Besides, I'm not really asking for help on how to fix the problem causing the stack trace...I just want to know where I can see hybernate errors. I'm positive somewhere there is a hybernate error like "cant find datasource invalid JNDI name" or some such.

The same thing happened one time on tomcat. buildSessionFactory() returned null so when I tried to run sessionFactory.openSession() I had a null pointer exception for an unknown reason. There was nothing in the logs anywhere. The way I finally found the hibernate exception is by running tomcat 4.3 in a console window and seeing the output there. Everything works fine in tomcat now, just not on oracle.

Thanks.

Stack Trace:
model.service.HibernateCigVendService.getCompaniesByName(HibernateCigVendService.java:28)
view.Search.search(Search.java:32)
java.lang.reflect.Method.invoke(Native Method)
org.apache.tapestry.listener.ListenerMap.invokeTargetMethod(ListenerMap.java:257)
org.apache.tapestry.listener.ListenerMap.access$100(ListenerMap.java:46)
org.apache.tapestry.listener.ListenerMap$SyntheticListener.invoke(ListenerMap.java:97)
org.apache.tapestry.listener.ListenerMap$SyntheticListener.actionTriggered(ListenerMap.java:102)
org.apache.tapestry.form.Form.renderComponent(Form.java:423)
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:857)
org.apache.tapestry.form.Form.rewind(Form.java:568)
org.apache.tapestry.engine.RequestCycle.rewindForm(RequestCycle.java:432)
org.apache.tapestry.form.Form.trigger(Form.java:582)
org.apache.tapestry.engine.DirectService.service(DirectService.java:169)
org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:872)
org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:197)
org.apache.tapestry.ApplicationServlet.doPost(ApplicationServlet.java:326)
javax.servlet.http.HttpServlet.service(HttpServlet.java:283)
javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:66)
oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:284)
com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
org.apache.tapestry.RedirectFilter.doFilter(RedirectFilter.java:106)
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:535)
com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:285)
com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:771)
com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:170)
com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:72)
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:802)
java.lang.Thread.run(Thread.java:484)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 25, 2005 6:24 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
have never seen buildfactory return null! it basically cant.

but anyhow errors are logged to whatever logging you have configured via commons logging. Look in their docs.

_________________
Max
Don't forget to rate


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