1 Reply Latest reply on Aug 28, 2007 3:03 PM by SUNDARRAJAN SUYAMBOO

    [SessionFactoryObjectFactory] Not found:

    SUNDARRAJAN SUYAMBOO Newbie

      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

        • 1. Re: [SessionFactoryObjectFactory] Not found: Jboss Bug?
          SUNDARRAJAN SUYAMBOO Newbie

          By looking at log I am successfully loading the SessionFactory,

          2007-08-28 13:57:36,808 INFO [main] impl.SessionFactoryObjectFactory: Not binding factory to JNDI, no JNDI name configured
          2007-08-28 13:57:36,808 INFO [main] util.NamingHelper: JNDI InitialContext properties:{}
          2007-08-28 13:57:36,808 INFO [main] cache.UpdateTimestampsCache: starting update timestamps cache at region: org.hibernate.c
          ache.UpdateTimestampsCache
          2007-08-28 13:57:36,808 WARN [main] cache.EhCacheProvider: Could not find configuration [org.hibernate.cache.UpdateTimestamp
          sCache]; using defaults.
          2007-08-28 13:57:36,828 INFO [main] cache.StandardQueryCache: starting query cache at region: org.hibernate.cache.StandardQu
          eryCache
          2007-08-28 13:57:36,828 WARN [main] cache.EhCacheProvider: Could not find configuration [org.hibernate.cache.StandardQueryCa
          che]; using defaults.
          2007-08-28 13:57:36,828 INFO [main] impl.SessionFactoryImpl: Checking 0 named HQL queries
          2007-08-28 13:57:36,828 INFO [main] impl.SessionFactoryImpl: Checking 0 named SQL queries
          2007-08-28 13:57:36,838 INFO [main] jmx.Hibernate: SessionFactory successfully built and bound into JNDI [java:/hibernate/Se
          ssionFactoryTest]


          Then I tried to execute a database operation by a Servlet which is part of .war file in the same .EAR and it threw , the following


          2007-08-28 13:57:56,927 WARN [http-0.0.0.0-8080-1] impl.SessionFactoryObjectFactory: Not found: 2c98b24214add5fe0114add60028
          0000
          .

          Is this a known issue/bug?

          Sun