8 Replies Latest reply on Dec 28, 2012 3:28 AM by viggo.navarsete
      • 1. Re: Many errors starting JBoss with jBPM 5.4.0 Final
        lauradp

        I fixed the vfs error by creating the required direcorties in \jboss-as-7.1.1.Final\bin (as workaround).

        But I still get the error described above on accessing the jbpm-console.

         

        Can anyone help me?

        • 2. Re: Many errors starting JBoss with jBPM 5.4.0 Final
          lauradp

          Here is the error:

          10:45:42,657 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http-localhost-127.0.0.1-8080-1) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Session was not initialized, check previous errors in log

                    at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:340) [resteasy-jaxrs-2.3.2.Final.jar:]

                    at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:214) [resteasy-jaxrs-2.3.2.Final.jar:]

                    at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:190) [resteasy-jaxrs-2.3.2.Final.jar:]

                    at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:540) [resteasy-jaxrs-2.3.2.Final.jar:]

                    at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:502) [resteasy-jaxrs-2.3.2.Final.jar:]

                    at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119) [resteasy-jaxrs-2.3.2.Final.jar:]

                    at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) [resteasy-jaxrs-2.3.2.Final.jar:]

                    at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) [resteasy-jaxrs-2.3.2.Final.jar:]

                    at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) [resteasy-jaxrs-2.3.2.Final.jar:]

                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                    at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) [classes:]

                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

                    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

                    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489) [jbossweb-7.0.13.Final.jar:]

                    at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

                    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

                    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

                    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

                    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

                    at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897) [jbossweb-7.0.13.Final.jar:]

                    at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626) [jbossweb-7.0.13.Final.jar:]

                    at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2039) [jbossweb-7.0.13.Final.jar:]

                    at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_32]

          Caused by: java.lang.RuntimeException: Session was not initialized, check previous errors in log

                    at org.jbpm.integration.console.StatefulKnowledgeSessionUtil.getStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:89) [jbpm-gwt-core-5.4.0.Final.jar:5.4.0.Final]

                    at org.jbpm.integration.console.SessionInitializer.<init>(SessionInitializer.java:25) [jbpm-gwt-core-5.4.0.Final.jar:5.4.0.Final]

                    at org.jbpm.integration.console.TaskManagement.<init>(TaskManagement.java:52) [jbpm-gwt-core-5.4.0.Final.jar:5.4.0.Final]

                    at org.jbpm.integration.console.ManagementFactory.createTaskManagement(ManagementFactory.java:26) [jbpm-gwt-core-5.4.0.Final.jar:5.4.0.Final]

                    at org.jbpm.integration.console.ManagementFactory.createTaskManagement(ManagementFactory.java:19) [jbpm-gwt-core-5.4.0.Final.jar:5.4.0.Final]

                    at org.jboss.bpm.console.server.TaskListFacade.getTaskManagement(TaskListFacade.java:72) [classes:]

                    at org.jboss.bpm.console.server.TaskListFacade.getTasksForIdRef(TaskListFacade.java:101) [classes:]

                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_32]

                    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.6.0_32]

                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.6.0_32]

                    at java.lang.reflect.Method.invoke(Unknown Source) [rt.jar:1.6.0_32]

                    at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:155) [resteasy-jaxrs-2.3.2.Final.jar:]

                    at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:257) [resteasy-jaxrs-2.3.2.Final.jar:]

                    at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:222) [resteasy-jaxrs-2.3.2.Final.jar:]

                    at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:211) [resteasy-jaxrs-2.3.2.Final.jar:]

                    at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:525) [resteasy-jaxrs-2.3.2.Final.jar:]

                    ... 23 more

          • 3. Re: Many errors starting JBoss with jBPM 5.4.0 Final
            kluza

            Hi,

             

            I've installed jBPM 5.4.0 from the full installer,

            but I also have encountered several problems, probably similar or same as you.

             

            When I start jBPM (ant start.demo), it is BUILD SUCCESSFUL.

            After a while in the JBoss Application Server webpage in Deployments part

            (http://localhost:9990/console/App.html#deployments) I see enabled:

            - designer.war

            - drools-guvnor.war

            - jbpm-form-builder.war

            - jbpm-gwt-console-server.war

            - jbpm-gwt-console.war

            - jbpm-human-task-war.war

             

             

            However, after a while, there are no deployment items in the list.

             

            Other time, I start the demo and try to use jBPM-console,

            I login as admin, start Evaluation process, fill up the form and put mary as employee.

            Then logout and login as mary, and after filling up the "Task Form: Performance Evaluation" form,

            I get an error as in the screenshot (jbpm-console-error).

            I also get an error when I try to release the task (jbpm-console-release-error).

            No logs in the server.log file are produced this time.

            jbpm-console-error.png

            jbpm-console-release-error.png

            guvnor-no-logs.png

             

            Errors while starting a server in the server.log file:

            -------------

            14:01:33,328 ERROR [org.reflections.Reflections] (MSC service thread 1-1) could not create Vfs.Dir from url. ignoring the exception and continuing: org.reflections.ReflectionsException: could not create Dir using org.jboss.errai.bus.server.service.metadata.VFSUrlType from url vfs:/content/jbpm-gwt-console.war/WEB-INF/classes/

                      at org.reflections.vfs.Vfs.fromURL(Vfs.java:99) [reflections-0.9.5-RC2_jboss-SP1.jar:]

            ...

            14:01:33,446 ERROR [org.reflections.Reflections] (MSC service thread 1-1) could not create Vfs.Dir from url. ignoring the exception and continuing: org.reflections.ReflectionsException: could not create Dir using org.jboss.errai.bus.server.service.metadata.VFSUrlType from url vfs:/content/jbpm-gwt-console.war/WEB-INF/lib/activity-monitor-ui-lib-1.1.1.Final.jar/

                      at org.reflections.vfs.Vfs.fromURL(Vfs.java:99) [reflections-0.9.5-RC2_jboss-SP1.jar:]

            ...

            -------------

            The whole file is attached (1-server.log).

             

            Other errors I get when wars are deployed, but I try to run drools-guvnor or gwt-console:

            -------------

            14:36:31,397 ERROR [org.apache.jackrabbit.core.RepositoryImpl] (http-localhost-127.0.0.1-8080-6) Failed to initialize workspace 'default': javax.jcr.RepositoryException: Cannot instantiate persistence manager org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager

            ...

            14:36:31,944 ERROR [org.apache.jackrabbit.core.RepositoryImpl] (http-localhost-127.0.0.1-8080-6) Unable to start repository, forcing shutdown...

            14:36:31,971 ERROR [org.apache.jackrabbit.core.RepositoryImpl] (http-localhost-127.0.0.1-8080-6) failed to start Repository: Cannot instantiate persistence manager org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager: javax.jcr.RepositoryException: Cannot instantiate persistence manager org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager

            ...

            14:36:32,575 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/drools-guvnor]] (http-localhost-127.0.0.1-8080-6) Exception while dispatching incoming RPC call: com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract org.drools.guvnor.client.rpc.Module[] org.drools.guvnor.client.rpc.ModuleService.listModules()' threw an unexpected exception: org.jboss.weld.exceptions.WeldException: WELD-000049 Unable to invoke [method] @PostConstruct public org.drools.guvnor.server.repository.RepositoryStartupService.create() on org.drools.guvnor.server.repository.ProductionRepositoryStartupService@438e1b3e

            ...

            14:36:34,622 ERROR [org.drools.guvnor.server.RepositoryServiceServlet] (http-localhost-127.0.0.1-8080-3) Service method 'public abstract boolean org.drools.guvnor.client.rpc.RepositoryService.isDoNotInstallSample()' threw an unexpected exception: org.jboss.weld.exceptions.WeldException: WELD-000049 Unable to invoke [method] @PostConstruct public org.drools.guvnor.server.repository.RepositoryStartupService.create() on org.drools.guvnor.server.repository.ProductionRepositoryStartupService@36fce9d7: org.jboss.weld.exceptions.WeldException: WELD-000049 Unable to invoke [method] @PostConstruct public org.drools.guvnor.server.repository.RepositoryStartupService.create() on org.drools.guvnor.server.repository.ProductionRepositoryStartupService@36fce9d7

            ...

            -------------

            The whole file is attached (2-server.log).

             

            Thanks,

            Kris

            • 4. Re: Many errors starting JBoss with jBPM 5.4.0 Final
              xzhsht

              OH yeah

              • 5. Re: Many errors starting JBoss with jBPM 5.4.0 Final
                viggo.navarsete

                I'm also facing the same issues. I recently downloaded the jBPM 5.4.0-Final installer (http://sourceforge.net/projects/jbpm/files/jBPM%205/jbpm-5.4.0.Final/jbpm-5.4.0.Final-installer-full.zip/download), ran first ant install.demo and then ant demo.start. Then I went into http://localhost:8080/drools-guvnor/, and I get the page up and running, and a question about if I want to install sample data (or something similar..), I answered yes. No the message "Please wait, Loading application" is flashing against me, not stopping.

                 

                Any clue? I will try to reinstall the whole thing once more now, without importing sampe data to see if it makes any difference.

                • 6. Re: Many errors starting JBoss with jBPM 5.4.0 Final
                  viggo.navarsete

                  First I thought I might have something to do with JDK version since I had JDK 7, so I also tried a clean install with JDK 1.6.0_37, but same issue in the log:

                  13:46:48,010 ERROR [org.reflections.Reflections] (MSC service thread 1-1) could not create Vfs.Dir from url. ignoring the exception and continuing: org.reflections.ReflectionsException: could not create Dir using org.jboss.errai.bus.server.service.metadata.VFSUrlType from url vfs:/content/jbpm-gwt-console.war/WEB-INF/classes/

                          at org.reflections.vfs.Vfs.fromURL(Vfs.java:99) [reflections-0.9.5-RC2_jboss-SP1.jar:]

                          at org.reflections.vfs.Vfs.fromURL(Vfs.java:89) [reflections-0.9.5-RC2_jboss-SP1.jar:]

                          at org.reflections.Reflections.scan(Reflections.java:136) [reflections-0.9.5-RC2_jboss-SP1.jar:]

                          at org.jboss.errai.bus.server.service.metadata.MetaDataScanner.<init>(MetaDataScanner.java:83) [errai-bus-1.1-Final.jar:1.1-Final]

                          at org.jboss.errai.bus.server.service.metadata.MetaDataScanner.createInstance(MetaDataScanner.java:95) [errai-bus-1.1-Final.jar:1.1-Final]

                          at org.jboss.errai.bus.server.service.metadata.MetaDataScanner.createInstance(MetaDataScanner.java:87) [errai-bus-1.1-Final.jar:1.1-Final]

                          at org.jboss.errai.bus.server.service.ErraiServiceConfiguratorImpl.<init>(ErraiServiceConfiguratorImpl.java:58) [errai-bus-1.1-Final.jar:1.1-Final]

                          at org.jboss.errai.bus.server.service.ErraiServiceConfiguratorImpl$$FastClassByGuice$$b6139751.newInstance(<generated>)

                          at com.google.inject.internal.cglib.reflect.FastConstructor.newInstance(FastConstructor.java:40) [guice-2.0.jar:]

                          at com.google.inject.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:60) [guice-2.0.jar:]

                          at com.google.inject.ConstructorInjector.construct(ConstructorInjector.java:85) [guice-2.0.jar:]

                          at com.google.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:111) [guice-2.0.jar:]

                          at com.google.inject.FactoryProxy.get(FactoryProxy.java:56) [guice-2.0.jar:]

                          at com.google.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42) [guice-2.0.jar:]

                  • 7. Re: Many errors starting JBoss with jBPM 5.4.0 Final
                    viggo.navarsete

                    jBPM 5.3.0-Final seems better in respect to the issues mentioned above, but still many WARN printed to the log. Will now try the 5.4.0.CR1 release, to see how it behaves.

                    • 8. Re: Many errors starting JBoss with jBPM 5.4.0 Final
                      viggo.navarsete

                      I actually made an issue for this since so many encounter problems, and no solution seems to exist: https://issues.jboss.org/browse/JBPM-3890