[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - [SessionFactoryObjectFactory] Not found:

ssuyamboo do-not-reply at jboss.com
Tue Aug 28 09:15:23 EDT 2007


Hi 
I am using hibernate 3 with jboss 4.0.3 . 

In the start of application I am able to get connection to database.

When I tried to execute again database operations again in a while , I am getting hibernate not bound exception with message as below,

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 W01115 
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 

Is this something related to cache / jboss settings/ hibernate? 

Have any one else experienced this?

Sun



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078748#4078748

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078748



More information about the jboss-user mailing list