-->
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: SessionFactory issue
PostPosted: Mon Aug 27, 2007 4:02 pm 
Beginner
Beginner

Joined: Tue Aug 14, 2007 6:29 pm
Posts: 27
Location: chicago
14:55:31,439 INFO [Hibernate] SessionFactory successfully built and bound into JNDI [java:/hibernate/SessionFactory]
14:55:52,099 INFO [STDOUT] Inside doGet
14:55:52,099 INFO [STDOUT] POSTED ORDERS ARE IN GETW0111|POSOrder|Customer1|CustomerName|OrderDate|EMPTY
14:55:52,099 INFO [STDOUT] orderNumber W0111<length>5
14:55:52,099 INFO [STDOUT] posPOSOrder
14:55:52,099 INFO [STDOUT] order number and pos are not null
14:55:52,099 INFO [STDOUT] prev key nullcurr Key W0111
14:55:52,099 INFO [STDOUT] filled orders0
14:55:52,099 INFO [STDOUT] Constructing success and fail email messages
14:55:52,099 INFO [STDOUT] OrderUpdateServlet :: Begin
14:55:52,099 INFO [STDOUT] Number of success orders received 1
14:55:52,099 INFO [STDOUT] Key received inside construct SuccessEmail is W0111|POSOrder|Customer1|CustomerName|OrderDate|E
TY
14:55:52,099 INFO [STDOUT] OrderUpdateServlet :: splitSuccessOrderKey : Begin
14:55:52,099 INFO [STDOUT] OrderUpdateServlet :: splitSuccessOrderKey : End W0111 Customer1 CustomerName Ord
Date POSOrder
14:55:52,099 INFO [STDOUT] OrderUpdateServlet :: End
14:55:52,099 INFO [STDOUT] OrderUpdateServlet :: constructRejectedOrderEmail : Begin
14:55:52,099 INFO [STDOUT] OrderUpdateServlet :: constructRejectedOrderEmail : End
14:55:52,099 INFO [STDOUT] filled success orders6
14:55:52,099 INFO [STDOUT] OrderUpdateServlet :: updateOrders : Begin
14:55:52,099 INFO [STDOUT] order received inside updateOrders of OrderUpdateServlet is W0111
14:55:52,099 INFO [STDOUT] order received inside updateOrders of OrderUpdateServlet is POSOrder
14:55:52,099 INFO [STDOUT] order received inside updateOrders of OrderUpdateServlet is Customer1
14:55:52,099 INFO [STDOUT] order received inside updateOrders of OrderUpdateServlet is CustomerName
14:55:52,099 INFO [STDOUT] order received inside updateOrders of OrderUpdateServlet is OrderDate
14:55:52,099 INFO [STDOUT] order received inside updateOrders of OrderUpdateServlet is EMPTY
14:55:52,099 INFO [STDOUT] order being passed to retrieve batch idW0111
14:55:52,099 INFO [STDOUT] OrderUpdateServlet :: getBatchId : Begin
14:55:52,099 INFO [BaseDAO] BaseDAO :: findByProperty1 : Begin
14:55:52,099 INFO [BaseDAO] query passed select batchId from com.xpedx.ecommerce.order.model.OrderDTO order where order.or
rStatus = 1 and order.orderId = :PARAMand the property passed is W0111
14:55:52,099 INFO [BaseDAO] Session is null ? true
14:55:52,099 INFO [BaseDAO] Session is null
14:55:52,109 WARN [SessionFactoryObjectFactory] Not found: 2c98b24214a8e4a70114a8e4a8ef0000
14:55:52,109 ERROR [BaseDAO] Session factory itself is null. Establish session factory first
14:55:52,109 INFO [STDOUT] 1W0111
14:55:52,109 ERROR [[OrderUpdateServlet]] Servlet.service() for servlet OrderUpdateServlet threw exception
java.lang.NullPointerException
at com.xpedx.ecommerce.BaseDAO.findByProperty1

If you look at first line SessionFactory is bound , When I try to access database call from Servlet I am getting exception as this sessionfactory is not bound. Can anyone give hint on whats going on here?

Thanks
Sundar


Top
 Profile  
 
 Post subject: ClassCastException/org.hibernate.hql.ast.HqlLexer.makeToken
PostPosted: Mon Aug 27, 2007 4:18 pm 
Beginner
Beginner

Joined: Tue Aug 14, 2007 6:29 pm
Posts: 27
Location: chicago
I tried some more debug and found something like this,

java.lang.ClassCastException
at org.hibernate.hql.ast.HqlLexer.makeToken(HqlLexer.java:39)
at org.hibernate.hql.antlr.HqlBaseLexer.mIDENT(HqlBaseLexer.java:580)
at org.hibernate.hql.antlr.HqlBaseLexer.nextToken(HqlBaseLexer.java:264)
at antlr.TokenBuffer.fill(TokenBuffer.java:69)
at antlr.TokenBuffer.LA(TokenBuffer.java:80)
at antlr.LLkParser.LA(LLkParser.java:52)
at org.hibernate.hql.antlr.HqlBaseParser.statement(HqlBaseParser.java:139)
at org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:238)
at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:155)
at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:105)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:74)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:53)
at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:71)
at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:108)
at org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:88)
at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1540)
at com.xpedx.ecommerce.BaseDAO.findByProperty1(BaseDAO.java:178)
at com.xpedx.ecommerce.order.dao.OrderDAO.getOrderBatch(OrderDAO.java:77)
at com.xpedx.ecommerce.order.web.OrderUpdateServlet.getBatchId(OrderUpdateServlet.java:343)
at com.xpedx.ecommerce.order.web.OrderUpdateServlet.updateOrders(OrderUpdateServlet.java:252)
at com.xpedx.ecommerce.order.web.OrderUpdateServlet.doGet(OrderUpdateServlet.java:127)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:534)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 29, 2007 8:33 am 
Newbie

Joined: Fri May 25, 2007 3:43 am
Posts: 4
Please mention your environment details like(DB,App Server)..


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.