3 Replies Latest reply on Feb 13, 2006 5:59 AM by wkudla

    Bug in jBPM webapp 3.1 beta 2

    xeha6284

      Hi,

      In MonitoringBean, method searchInstances calls (line 122)

      jbpmContext.getConnection();


      this causes a NullPointerException

      the correct call is :
      jbpmContext.getSession().connection();


      Best regards,

      Emmanuel

        • 1. Re: Bug in jBPM webapp 3.1 beta 2
          tom.baeyens

          i'll have a look but that one looks very strange to me. any more specifics about how to reproduce ? or why you think your suggestion fixes the problem ?

          the Session.getConnection() is a bit tricky because the contract of that method changed between version 3.0 and 3.1 of hibernate. In hibernate 3.1 that method transfers responsibility of closing the connection. So it should be used with care.

          regards, tom.

          • 2. Re: Bug in jBPM webapp 3.1 beta 2
            xeha6284

            I produced the bug with jbpm-starters-kit-3.1-beta2 on windows with a sun jdk1.4.2_03.

            Just try a monitoring->search instances function, you will have a Search error null result caused by a NullPointerException.

            • 3. Re: Bug in jBPM webapp 3.1 beta 2
              wkudla

              The problem is caused by getConnection() method in DbPersistenceService class. Initialy there's a situation where both persistenceServiceFactory.getDataSource() and session are null so the whole method returns null. I'll keep investigating...