3 Replies Latest reply on Apr 23, 2014 8:51 AM by Marco Rietveld

    JBPM 6.0.1 on Tomcat 7 in Eclipse - Exception sending request initialized lifecycle event to listener instance of class

    RajaRajeswari Devi Malla Newbie

      Hi,

       

      I have set up JBPM 6.0.1 KIEWB on Tomcat 7. The application is running properly when I run the server using startup.bat using command prompt. But when I run the sample exploded folder from Tomcat 7 server configured in Eclipse, the below error is being displayed:

       

      Apr 11, 2014 6:25:56 AM org.apache.catalina.core.AprLifecycleListener init
      INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\opt\isv\devtools\jdk1.7.0_40\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\opt\isv\devtools\jdk1.7.0_40\jre\bin;c:\opt\isv\devtools\Perl\bin;c:\opt\isv\devtools\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\DataDirect\SLODBC55\;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;org.apache.ant_1.8.2.v20120109-1030\bin;%CATALINA_HOME%\bin;.
      Apr 11, 2014 6:26:00 AM org.apache.coyote.AbstractProtocol init
      INFO: Initializing ProtocolHandler ["http-bio-8080"]
      Apr 11, 2014 6:26:00 AM org.apache.coyote.AbstractProtocol init
      INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
      Apr 11, 2014 6:26:00 AM org.apache.catalina.startup.Catalina load
      INFO: Initialization processed in 4361 ms
      Apr 11, 2014 6:26:00 AM bitronix.tm.integration.tomcat55.BTMLifecycleListener lifecycleEvent
      INFO: Starting Bitronix Transaction Manager
      Apr 11, 2014 6:26:00 AM bitronix.tm.BitronixTransactionManager logVersion
      INFO: Bitronix Transaction Manager version 2.1.4
      Apr 11, 2014 6:26:00 AM bitronix.tm.Configuration buildServerIdArray
      INFO: JVM unique ID: <tomcat-btm-node0>
      Apr 11, 2014 6:26:00 AM bitronix.tm.journal.DiskJournal open
      WARNING: active log file is unclean, did you call BitronixTransactionManager.shutdown() at the end of the last run?
      Apr 11, 2014 6:26:00 AM bitronix.tm.resource.ResourceLoader init
      INFO: reading resources configuration from C:\opt\isv\tomcat-7.0-eclipse/conf/resources.properties
      Apr 11, 2014 6:26:04 AM bitronix.tm.recovery.Recoverer run
      INFO: recovery committed 0 dangling transaction(s) and rolled back 0 aborted transaction(s) on 1 resource(s) [jdbc/jbpm] (restricted to serverId 'tomcat-btm-node0')
      Apr 11, 2014 6:26:05 AM org.apache.catalina.core.StandardService startInternal
      INFO: Starting service Catalina
      Apr 11, 2014 6:26:05 AM org.apache.catalina.core.StandardEngine startInternal
      INFO: Starting Servlet Engine: Apache Tomcat/7.0.52
      Apr 11, 2014 6:26:06 AM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory C:\opt\isv\tomcat-7.0-eclipse\webapps\docs
      Apr 11, 2014 6:26:09 AM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory C:\opt\isv\tomcat-7.0-eclipse\webapps\examples
      Apr 11, 2014 6:26:12 AM org.apache.catalina.core.ApplicationContext log
      INFO: ContextListener: contextInitialized()
      Apr 11, 2014 6:26:12 AM org.apache.catalina.core.ApplicationContext log
      INFO: SessionListener: contextInitialized()
      Apr 11, 2014 6:26:12 AM org.apache.catalina.core.ApplicationContext log
      INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@555694')
      Apr 11, 2014 6:26:12 AM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory C:\opt\isv\tomcat-7.0-eclipse\webapps\host-manager
      Apr 11, 2014 6:26:12 AM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory C:\opt\isv\tomcat-7.0-eclipse\webapps\jbpm-console
      Apr 11, 2014 6:26:12 AM bitronix.tm.integration.tomcat55.BTMLifecycleListener lifecycleEvent
      INFO: Starting Bitronix Transaction Manager
      Apr 11, 2014 6:27:24 AM org.apache.catalina.startup.TaglibUriRule body
      INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/i18n-1.0 is already defined
      SLF4J: Class path contains multiple SLF4J bindings.
      SLF4J: Found binding in [jar:file:/C:/opt/isv/tomcat-7.0-eclipse/lib/slf4j-jdk14-1.7.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
      SLF4J: Found binding in [jar:file:/C:/opt/isv/tomcat-7.0-eclipse/webapps/jbpm-console/WEB-INF/lib/logback-classic-1.0.9.jar!/org/slf4j/impl/StaticLoggerBinder.class]
      SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
      SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
      2014-04-11 06:27:41,115 [localhost-startStop-1] WARN  Environment variable M2_HOME is not set
      Apr 11, 2014 6:28:03 AM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory C:\opt\isv\tomcat-7.0-eclipse\webapps\manager
      Apr 11, 2014 6:28:03 AM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory C:\opt\isv\tomcat-7.0-eclipse\webapps\ROOT
      Apr 11, 2014 6:28:04 AM org.apache.coyote.AbstractProtocol start
      INFO: Starting ProtocolHandler ["http-bio-8080"]
      Apr 11, 2014 6:28:04 AM org.apache.coyote.AbstractProtocol start
      INFO: Starting ProtocolHandler ["ajp-bio-8009"]
      Apr 11, 2014 6:28:04 AM org.apache.catalina.startup.Catalina start
      INFO: Server startup in 123903 ms
      Apr 11, 2014 6:28:12 AM org.apache.catalina.core.ApplicationContext log
      INFO: HTMLManager: init: Associated with Deployer 'Catalina:type=Deployer,host=localhost'
      Apr 11, 2014 6:28:12 AM org.apache.catalina.core.ApplicationContext log
      INFO: HTMLManager: init: Global resources are available
      Apr 11, 2014 6:28:13 AM org.apache.catalina.core.ApplicationContext log
      INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
      Apr 11, 2014 6:28:35 AM org.apache.catalina.core.StandardContext fireRequestDestroyEvent
      SEVERE: Exception sending request initialized lifecycle event to listener instance of class org.jboss.weld.environment.servlet.Listener
      java.lang.NullPointerException
      at org.jboss.weld.context.AbstractBoundContext.deactivate(AbstractBoundContext.java:71)
      at org.jboss.weld.context.http.HttpRequestContextImpl.deactivate(HttpRequestContextImpl.java:86)
      at org.jboss.weld.servlet.WeldListener.requestDestroyed(WeldListener.java:103)
      at org.jboss.weld.servlet.api.helpers.ForwardingServletListener.requestDestroyed(ForwardingServletListener.java:42)
      at org.apache.catalina.core.StandardContext.fireRequestDestroyEvent(StandardContext.java:6163)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
      at org.kie.integration.tomcat.JACCValve.invoke(JACCValve.java:93)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:724)

       

       

      Any help on this is highly appreciated

       

      Thanks

        • 1. Re: JBPM 6.0.1 on Tomcat 7 in Eclipse - Exception sending request initialized lifecycle event to listener instance of class
          Marco Rietveld Novice

          It looks like this is related to https://issues.jboss.org/browse/WELD-1020

           

          Unfortunately, I think that the 6.0.1.Final release didn't work perfectly on Tomcat. On the other hand, I also think we tested that: in short, I'm not sure.

           

          Could you try the latest 6.0.2-SNAPSHOT build on tomcat and see if that works?

          You can find that here:

          https://repository.jboss.org/nexus/content/repositories/snapshots/org/kie/kie-wb-distribution-wars/6.0.2-SNAPSHOT/

           

          (Pick the latest one that ends with "tomcat7").

          • 2. Re: JBPM 6.0.1 on Tomcat 7 in Eclipse - Exception sending request initialized lifecycle event to listener instance of class
            RajaRajeswari Devi Malla Newbie

            Thanks for your reply Marco. But the issue still persists. And also I am receiving the below exception while creating a Project and unable to Finish it s "Finish" button is disabled.

             

            Any help is highly appreciated.

             

            java.lang.RuntimeException: Failed to dispatch CDI Event
                    at org.jboss.errai.cdi.server.events.EventDispatcher.callback(EventDispa
            tcher.java:193)
                    at org.jboss.errai.bus.server.DeliveryPlan.deliver(DeliveryPlan.java:47)

             

                    at org.jboss.errai.bus.server.ServerMessageBusImpl.sendGlobal(ServerMess
            ageBusImpl.java:284)
                    at org.jboss.errai.bus.server.SimpleDispatcher.dispatchGlobal(SimpleDisp
            atcher.java:46)
                    at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServic
            eImpl.java:97)
                    at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServic
            eImpl.java:114)
                    at org.jboss.errai.bus.server.servlet.DefaultBlockingServlet.doPost(Defa
            ultBlockingServlet.java:140)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
            icationFilterChain.java:303)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
            ilterChain.java:208)
                    at org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(Catc
            hExceptionFilter.java:65)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
            icationFilterChain.java:241)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
            ilterChain.java:208)
                    at org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(Serv
            letEventBridgeFilter.java:74)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
            icationFilterChain.java:241)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
            ilterChain.java:208)
                    at org.jbpm.designer.web.filter.impl.PluggableFilter.doFilter(PluggableF
            ilter.java:70)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
            icationFilterChain.java:241)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
            ilterChain.java:208)
                    at org.uberfire.security.server.UberFireSecurityFilter.doFilter(UberFire
            SecurityFilter.java:266)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
            icationFilterChain.java:241)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
            ilterChain.java:208)
                    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
            alve.java:220)
                    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
            alve.java:122)
                    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
            torBase.java:610)
                    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
            ava:170)
                    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
            ava:98)
                    at org.kie.integration.tomcat.JACCValve.invoke(JACCValve.java:93)
                    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
            ve.java:116)
                    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
            a:408)
                    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp
            11Processor.java:1040)
                    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(
            AbstractProtocol.java:607)
                    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoin
            t.java:315)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
            utor.java:886)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
            .java:908)
                    at java.lang.Thread.run(Thread.java:619)
            Caused by: java.lang.NullPointerException
                    at org.kie.workbench.common.services.backend.rulename.RuleNameServiceImp
            l.onProjectContextChange(RuleNameServiceImpl.java:91)
                    at org.kie.workbench.common.services.backend.rulename.RuleNameServiceImp
            l$Proxy$_$$_WeldClientProxy.onProjectContextChange(RuleNameServiceImpl$Proxy$_$$
            _WeldClientProxy.java)
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
            java:39)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
                    at java.lang.reflect.Method.invoke(Method.java:597)
                    at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflec
            tions.java:267)
                    at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureRefle
            ctionAccess.java:52)
                    at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation
            (SecureReflectionAccess.java:137)
                    at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflect
            ions.java:263)
                    at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldM
            ethodImpl.java:170)
                    at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(For
            wardingWeldMethod.java:51)
                    at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpe
            cialValue(MethodInjectionPoint.java:154)
                    at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.
            java:245)
                    at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.
            java:233)
                    at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.jav
            a:213)
                    at org.jboss.weld.event.ObserverNotifier.notifyObserver(ObserverNotifier
            .java:117)
                    at org.jboss.weld.event.ObserverNotifier.notifyObservers(ObserverNotifie
            r.java:85)
                    at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java
            :75)
                    at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java
            :70)
                    at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java
            :562)
                    at org.jboss.errai.cdi.server.events.EventDispatcher.callback(EventDispa
            tcher.java:164)
                    ... 36 more
            *** Message delivery failure ***
            Bus: org.jboss.errai.bus.server.ServerMessageBusImpl@1432a60
            Message: FromClient=1, BeanReference=org.guvnor.common.services.project.context.
            ProjectContextChangeEvent@9315af, BeanType=org.guvnor.common.services.project.co
            ntext.ProjectContextChangeEvent, CommandType=CDIEvent, ToSubject=cdi.event:Dispa
            tcher
            errorMessage: Error calling remote service: cdi.event:Dispatcher
            exception: java.lang.RuntimeException: Failed to dispatch CDI Event
            disconnect: false

            • 3. Re: JBPM 6.0.1 on Tomcat 7 in Eclipse - Exception sending request initialized lifecycle event to listener instance of class
              Marco Rietveld Novice

              Hi,

               

              I just noticed that the message is being caused by an NPE on line 91 of the RulesNameServiceImpl class.

               

              From what I can see in the code, it probably has something to do with the project not being fully built/created on the file system.

               

              Is it possible that there's something weird with the project location or directory?