1 2 Previous Next 21 Replies Latest reply on Apr 30, 2014 5:02 AM by Ankit Mathur

    jbpm-6.0.0.CR2-full-installer.zip: Error during deployment

    James Bunch Newbie

      Can anyone shed any light on this deployment failure in v6.0.0.CR2:

       

      Normal scoped bean class java.util.Hashtable is not proxyable because the type is final or it contains a final method final boolean java.util.Hashtable.initHashSeedAsNeeded(int)

       

      This seems to stop jbpm-console.war from deploying. I've just downloaded the zip, and am following the installation instructions. Presumably I've missed something??

       

      Fuller trace:

       

      10:32:24,423 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."jbpm-console.war".WeldService: org.jboss.msc.service.StartException in service jboss.deployment.unit."jbpm-console.war".WeldService: org.jboss.weld.exceptions.UnproxyableResolutionException: WELD-001437 Normal scoped bean class java.util.Hashtable is not proxyable because the type is final or it contains a final method final boolean java.util.Hashtable.initHashSeedAsNeeded(int) - Managed Bean [class org.jbpm.formModeler.core.processing.formProcessing.FunctionsProvider] with qualifiers [@Any @Default].

        at org.jboss.as.weld.services.WeldService.start(WeldService.java:83)

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_40]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_40]

        at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_40]

      Caused by: org.jboss.weld.exceptions.UnproxyableResolutionException: WELD-001437 Normal scoped bean class java.util.Hashtable is not proxyable because the type is final or it contains a final method final boolean java.util.Hashtable.initHashSeedAsNeeded(int) - Managed Bean [class org.jbpm.formModeler.core.processing.formProcessing.FunctionsProvider] with qualifiers [@Any @Default].

        at org.jboss.weld.util.Proxies.getUnproxyableClassException(Proxies.java:225)

        at org.jboss.weld.util.Proxies.getUnproxyableTypeException(Proxies.java:182)

        at org.jboss.weld.util.Proxies.getUnproxyableTypesExceptionInt(Proxies.java:193)

        at org.jboss.weld.util.Proxies.getUnproxyableTypesException(Proxies.java:167)

        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:111)

        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:127)

        at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:346)

        at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:331)

        at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)

        at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83)

        at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)

        ... 5 more

        • 1. Re: jbpm-6.0.0.CR2-full-installer.zip: Error during deployment
          Bruno Machado Newbie

          What JDK are you using in your installation? The specified item was not found. and me were able to deploy it successfully on JDK 1.6.x. When 1.7.x was used, we got the same exception. Try using some JDK 1.6.x instead. Hope it helps.

          1 of 1 people found this helpful
          • 2. Re: jbpm-6.0.0.CR2-full-installer.zip: Error during deployment
            James Bunch Newbie

            Thanks for the suggestion. Yes - I was using JDK7 (This is on Win 2008 Server 64-bit if it makes any difference).

            I've uninstalled it and installed 1.6.0_45 instead. I get a different deployment error now:

             

            {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"jbpm-console.war\".WeldService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"jbpm-console.war\".WeldService: org.jboss.weld.exceptions.DeploymentException: Exception List with 1 exceptions:

            Exception 0 :

            org.jboss.weld.exceptions.WeldException: WELD-000049 Unable to invoke [method] @PostConstruct public org.kie.workbench.backend.AppSetup.assertPlayground() on org.kie.workbench.backend.AppSetup@2f7f2faa

              at org.jboss.weld.bean.AbstractClassBean.defaultPostConstruct(AbstractClassBean.java:518)

              at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.postConstruct(ManagedBean.java:174)

              at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:291)

              at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:107)

              at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:90)

              at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:79)

              at org.kie.workbench.backend.AppSetup$Proxy$_$$_WeldClientProxy.toString(AppSetup$Proxy$_$$_WeldClientProxy.java)

              at org.kie.commons.services.cdi.StartupBeanExtension.runPostConstruct(StartupBeanExtension.java:81)

              at org.kie.commons.services.cdi.StartupBeanExtension.afterDeploymentValidation(StartupBeanExtension.java:65)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:264)

              at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)

              at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137)

              at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:260)

              at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:170)

              at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:51)

              at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:154)

              at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:241)

              at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:229)

              at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:207)

              at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:75)

              at org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:46)

              at org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:31)

              at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:369)

              at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83)

              at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)

              at java.lang.Thread.run(Thread.java:662)

            Caused by: java.lang.reflect.InvocationTargetException

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:264)

              at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)

              at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137)

              at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:260)

              at org.jboss.weld.introspector.jlr.WeldMethodImpl.invoke(WeldMethodImpl.java:174)

              at org.jboss.weld.bean.AbstractClassBean.defaultPostConstruct(AbstractClassBean.java:516)

              ... 33 more

            Caused by: java.lang.NullPointerException

              at org.uberfire.backend.server.group.GroupServiceImpl.addRepository(GroupServiceImpl.java:117)

              at org.uberfire.backend.server.group.GroupServiceImpl$Proxy$_$$_WeldClientProxy.addRepository(GroupServiceImpl$Proxy$_$$_WeldClientProxy.java)

              at org.jbpm.console.ng.bd.backend.server.AdministrationServiceImpl.bootstrapRepository(AdministrationServiceImpl.java:143)

              at org.jbpm.console.ng.bd.backend.server.AdministrationServiceImpl$Proxy$_$$_WeldClientProxy.bootstrapRepository(AdministrationServiceImpl$Proxy$_$$_WeldClientProxy.java)

              at org.kie.workbench.backend.AppSetup.assertPlayground(AppSetup.java:77)

              ... 43 more

            "}}}}

            • 3. Re: jbpm-6.0.0.CR2-full-installer.zip: Error during deployment
              Klaus Imfeld Newbie

              In JDK 1.7.0_40 the Class java.util.Hashtable was altered by Oracle. A new method

              final boolean isitHashSeedAsNeeded(int)

              has been introduced.

              Because Hashtable now has a final method, it cannot be proxied by WELD any longer. Injecting Hashtable and its subclasses should be avoided. Also avoid such producer methods. If this is not possible, the scopes of injector-injected should match in a way, that WELD has not to use any dynamic proxies.

              • 4. Re: jbpm-6.0.0.CR2-full-installer.zip: Error during deployment
                James Bunch Newbie

                So that explain why JDK 1.7 doesn't work out of the box.

                Any thoughts on the JDK 1.6 error?

                • 5. Re: jbpm-6.0.0.CR2-full-installer.zip: Error during deployment
                  Klaus Imfeld Newbie

                  No, I have no precise idea about the cause of the 1.6 Exception. The InvocationTargetException just wraps the NPE thrown in GroupServiceImpl.java:117.

                  Maybe, there are some other compatibility issues with JDK1.6.

                   

                  We could solve the origin problem by installting a JDK version prior 1.7.0_40, but still on the "7"-Relese. Version 1.7.0_17 should work, because in this version, the signature of Hashtable does not have a final method.

                  • 6. Re: jbpm-6.0.0.CR2-full-installer.zip: Error during deployment
                    James Bunch Newbie

                    Hmmm, maybe something that's been cross-ported to later 1.6 updates as well then.

                    Odd that no-one else has hit this problem though. Perhaps some other problem with my test VM...

                    • 7. Re: jbpm-6.0.0.CR2-full-installer.zip: Error during deployment
                      Bruno Machado Newbie

                      Just confirmed with rettori that JDK 1.7-25 has worked better than 1.6.x.

                      • 8. Re: jbpm-6.0.0.CR2-full-installer.zip: Error during deployment
                        Ganesh Ingle Newbie

                        Yes, I am getting this NullPointer exception when using jdk1.7 u17 and u25. And also jdk1.6 u45. I have windows8 64 bit and all JDKs I tried were also 64 bit.

                         

                        14:36:38,819 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"jbpm-console.war\".WeldService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"jbpm-console.war\".WeldService: org.jboss.weld.exceptions.DeploymentException: Exception List with 1 exceptions:

                        Exception 0 :

                        org.jboss.weld.exceptions.WeldException: WELD-000049 Unable to invoke [method] @PostConstruct public org.kie.workbench.backend.AppSetup.assertPlayground() on org.kie.workbench.backend.AppSetup@6ab1267e

                            at org.jboss.weld.bean.AbstractClassBean.defaultPostConstruct(AbstractClassBean.java:518)

                            at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.postConstruct(ManagedBean.java:174)

                            at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:291)

                            at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:107)

                            at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:90)

                            at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:79)

                            at org.kie.workbench.backend.AppSetup$Proxy$_$$_WeldClientProxy.toString(AppSetup$Proxy$_$$_WeldClientProxy.java)

                            at org.kie.commons.services.cdi.StartupBeanExtension.runPostConstruct(StartupBeanExtension.java:81)

                            at org.kie.commons.services.cdi.StartupBeanExtension.afterDeploymentValidation(StartupBeanExtension.java:65)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                            at java.lang.reflect.Method.invoke(Method.java:597)

                            at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:264)

                            at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)

                            at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137)

                            at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:260)

                            at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:170)

                            at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:51)

                            at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:154)

                            at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:241)

                            at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:229)

                            at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:207)

                            at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:75)

                            at org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:46)

                            at org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:31)

                            at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:369)

                            at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83)

                            at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)

                            at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                            at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)

                            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)

                            at java.lang.Thread.run(Thread.java:662)

                        Caused by: java.lang.reflect.InvocationTargetException

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                            at java.lang.reflect.Method.invoke(Method.java:597)

                            at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:264)

                            at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)

                            at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137)

                            at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:260)

                            at org.jboss.weld.introspector.jlr.WeldMethodImpl.invoke(WeldMethodImpl.java:174)

                            at org.jboss.weld.bean.AbstractClassBean.defaultPostConstruct(AbstractClassBean.java:516)

                            ... 33 more

                        Caused by: java.lang.NullPointerException

                            at org.uberfire.backend.server.group.GroupServiceImpl.addRepository(GroupServiceImpl.java:117)

                            at org.uberfire.backend.server.group.GroupServiceImpl$Proxy$_$$_WeldClientProxy.addRepository(GroupServiceImpl$Proxy$_$$_WeldClientProxy.java)

                            at org.jbpm.console.ng.bd.backend.server.AdministrationServiceImpl.bootstrapRepository(AdministrationServiceImpl.java:143)

                            at org.jbpm.console.ng.bd.backend.server.AdministrationServiceImpl$Proxy$_$$_WeldClientProxy.bootstrapRepository(AdministrationServiceImpl$Proxy$_$$_WeldClientProxy.java)

                            at org.kie.workbench.backend.AppSetup.assertPlayground(AppSetup.java:80)

                            ... 43 more

                        "}}}}

                        • 9. Re: jbpm-6.0.0.CR2-full-installer.zip: Error during deployment
                          James Bunch Newbie

                          Very odd! Maybe 64-bit VMs are causing the issue??

                          Could Bruno or Klaus confirm if they're using 32-bit versions, and which OS please?

                          • 10. Re: jbpm-6.0.0.CR2-full-installer.zip: Error during deployment
                            Ganesh Ingle Newbie

                            I tried jdk1.7 u4 32 bit on windows8 64 bit. Same error.

                            Now trying my luck with windows7 64 bit.

                            • 11. Re: jbpm-6.0.0.CR2-full-installer.zip: Error during deployment
                              Ganesh Ingle Newbie

                              Windows7 64 bit, JDK1.7 u5 64 bit, JBPM6.0.0 CR2.

                              Same error.

                              • 12. Re: jbpm-6.0.0.CR2-full-installer.zip: Error during deployment
                                Ganesh Ingle Newbie

                                Found the cause: My company uses http proxy. Direct connection is not allowed as per company policy.

                                 

                                I did configure Java to use system wide network connection settings (proxy or direct connection).

                                When I install on my laptop with direct internet connection (phone's 3G via bluetooth tethering), everything works. When I install with comapny proxy configured, the install goes fine but the jbpm-console.war throws that nullpointer exception during deployment.

                                 

                                Now I am trying to figure out whether a direct connection is needed only for install or every time we boot jboss. Because I can't connect my machines to phone all the time.

                                • 13. Re: jbpm-6.0.0.CR2-full-installer.zip: Error during deployment
                                  James Bunch Newbie

                                  Good work! We have a proxy here too, so that makes sense.

                                  I guess there's a system property / environment variable that can be set with the proxy details to avoid this problem?

                                  • 14. Re: jbpm-6.0.0.CR2-full-installer.zip: Error during deployment
                                    Ganesh Ingle Newbie

                                    Ideally whichever jbpm component needs internet, should use Java system wide properties. Application specific proxy configurations are difficult to maintain.

                                     

                                    I confirmed that if I do installation with direct internet connection and afterwards run jboss with Java system wide internet proxy configured, it works.

                                     

                                    So it only needs a working direct internet connection during install.

                                     

                                    I am using win7 64 bit, JDK 1.7 u17 64 bit.

                                    1 2 Previous Next