12 Replies Latest reply on Oct 1, 2009 1:55 PM by Bernd Ruecker

    BPEL 1.1GA: CodeSource for SOAPMessage is NULL

    Bernd Ruecker Master

      Hi!

      I try to get the newest BPEL stuff working. I downloaded JBoss AS 4.2.0GA and jbpm-bpel 1.1.GA. I installed jwsdp-2.0 without container.

      Afterwords I deployed the bpel ear, works fine and I see the webconsole. When I want to deploy the hello example I get an exception:

      11:32:09,906 ERROR [[deploymentServlet]] Servlet.service() for servlet deploymentServlet threw exception
      java.lang.NullPointerException
       at org.jbpm.bpel.tools.WscompileTool.getLocation(WscompileTool.java:240)
       at org.jbpm.bpel.tools.WscompileTool.formatClasspath(WscompileTool.java:227)
       at org.jbpm.bpel.tools.WscompileTool.callWscompile(WscompileTool.java:197)
       at org.jbpm.bpel.tools.WscompileTool.generateJavaMappingImpl(WscompileTool.java:156)
       at org.jbpm.bpel.tools.WscompileTool.generateJavaMapping(WscompileTool.java:143)
       at org.jbpm.bpel.tools.WebModuleBuilder.callJavaMappingTool(WebModuleBuilder.java:264)
       at org.jbpm.bpel.tools.WebModuleBuilder.buildModuleImpl(WebModuleBuilder.java:102)
       at org.jbpm.bpel.tools.WebModuleBuilder.buildModule(WebModuleBuilder.java:84)
       at org.jbpm.bpel.web.DeploymentServlet.deployWebModule(DeploymentServlet.java:205)
      


      I debugged and see the problem: class.getProtectionDomain().getCodeSource() is null for javax.xml.soap.SOAPMessage!

      What's the problem here? I am a bit suck so a small hint would be perfect!

      Thanks
      Bernd

        • 1. Re: BPEL 1.1GA: CodeSource for SOAPMessage is NULL
          Bernd Ruecker Master

          By the way; I work with JDK 1.6.0_01 and copied the jaxrpc and saaj libraries from the jwsdp folders to the jboss/server/default/lib (also tried jboss/lib, no change)

          • 2. Re: BPEL 1.1GA: CodeSource for SOAPMessage is NULL
            Bernd Ruecker Master

            If I REDEPLOY the ear, the first exception vanished (strange?) but it doesn't work either. I get a different exception, seems like a hibernate mapping problem

            And it differs, if I start in Eclipse with JRE 1.5:

            12:11:37,515 ERROR [[deploymentServlet]] Servlet.service() for servlet deploymentServlet threw exception
            org.hibernate.PropertyAccessException: could not get a field value by reflection getter of org.jbpm.bpel.wsdl.impl.InputImpl.id
             at org.hibernate.property.DirectPropertyAccessor$DirectGetter.get(DirectPropertyAccessor.java:35)
             at org.hibernate.tuple.entity.AbstractEntityTuplizer.getIdentifier(AbstractEntityTuplizer.java:183)
             at org.hibernate.persister.entity.AbstractEntityPersister.getIdentifier(AbstractEntityPersister.java:3589)
             at org.hibernate.persister.entity.AbstractEntityPersister.isTransient(AbstractEntityPersister.java:3305)
             at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:181)
             at org.hibernate.event.def.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:512)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:80)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
             at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507)
             at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499)
             at org.hibernate.engine.CascadingAction$1.cascade(CascadingAction.java:218)
             at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
             at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:216)
             at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
             at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
             at org.hibernate.event.def.AbstractSaveEventListener.cascadeBeforeSave(AbstractSaveEventListener.java:431)
             at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:265)
             at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:181)
             at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:107)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:94)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
             at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507)
             at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499)
             at org.hibernate.engine.CascadingAction$1.cascade(CascadingAction.java:218)
             at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
             at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:216)
             at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
             at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:296)
             at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:242)
             at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:219)
             at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
             at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
             at org.hibernate.event.def.AbstractSaveEventListener.cascadeAfterSave(AbstractSaveEventListener.java:456)
             at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:334)
             at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:181)
             at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:107)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:94)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
             at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507)
             at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499)
             at org.hibernate.engine.CascadingAction$1.cascade(CascadingAction.java:218)
             at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
             at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:216)
             at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
             at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:296)
             at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:242)
             at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:219)
             at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
             at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
             at org.hibernate.event.def.AbstractSaveEventListener.cascadeAfterSave(AbstractSaveEventListener.java:456)
             at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:334)
             at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:181)
             at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:107)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:94)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
             at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507)
             at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499)
             at org.hibernate.engine.CascadingAction$1.cascade(CascadingAction.java:218)
             at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
             at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:216)
             at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
             at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:296)
             at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:242)
             at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:219)
             at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
             at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
             at org.hibernate.event.def.AbstractSaveEventListener.cascadeAfterSave(AbstractSaveEventListener.java:456)
             at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:334)
             at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:181)
             at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:107)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187)
             at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
             at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
             at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:535)
             at org.hibernate.impl.SessionImpl.save(SessionImpl.java:523)
             at org.hibernate.impl.SessionImpl.save(SessionImpl.java:519)
             at org.jbpm.bpel.persistence.db.BpelGraphSession.deployProcessDefinition(BpelGraphSession.java:113)
             at org.jbpm.bpel.web.DeploymentServlet.deployProcessDefinition(DeploymentServlet.java:184)
             at org.jbpm.bpel.web.DeploymentServlet.doPost(DeploymentServlet.java:96)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
             at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
             at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
             at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
             at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
             at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
             at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
             at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
             at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
             at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
             at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
             at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
             at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
             at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
             at java.lang.Thread.run(Thread.java:619)
            Caused by: java.lang.IllegalArgumentException: Can not set long field org.jbpm.bpel.wsdl.impl.OperationMember.id to org.jbpm.bpel.wsdl.impl.InputImpl
             at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:146)
             at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:150)
             at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:37)
             at sun.reflect.UnsafeLongFieldAccessorImpl.getLong(UnsafeLongFieldAccessorImpl.java:42)
             at sun.reflect.UnsafeLongFieldAccessorImpl.get(UnsafeLongFieldAccessorImpl.java:18)
             at java.lang.reflect.Field.get(Field.java:358)
             at org.hibernate.property.DirectPropertyAccessor$DirectGetter.get(DirectPropertyAccessor.java:32)
             ... 106 more
            


            or CommandLine with Java 6:

            org.hibernate.PropertyAccessException: could not get a field value by reflection getter of org.jbpm.bpel.wsdl.impl.InputImpl.id
             at org.hibernate.property.DirectPropertyAccessor$DirectGetter.get(DirectPropertyAccessor.java:35)
             at org.hibernate.tuple.entity.AbstractEntityTuplizer.getIdentifier(AbstractEntityTuplizer.java:183)
             at org.hibernate.persister.entity.AbstractEntityPersister.getIdentifier(AbstractEntityPersister.java:3589)
             at org.hibernate.persister.entity.AbstractEntityPersister.isTransient(AbstractEntityPersister.java:3305)
             at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:181)
             at org.hibernate.event.def.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:512)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:80)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
             at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507)
             at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499)
             at org.hibernate.engine.CascadingAction$1.cascade(CascadingAction.java:218)
             at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
             at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:216)
             at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
             at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
             at org.hibernate.event.def.AbstractSaveEventListener.cascadeBeforeSave(AbstractSaveEventListener.java:431)
             at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:265)
             at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:181)
             at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:107)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:94)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
             at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507)
             at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499)
             at org.hibernate.engine.CascadingAction$1.cascade(CascadingAction.java:218)
             at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
             at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:216)
             at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
             at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:296)
             at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:242)
             at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:219)
             at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
             at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
             at org.hibernate.event.def.AbstractSaveEventListener.cascadeAfterSave(AbstractSaveEventListener.java:456)
             at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:334)
             at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:181)
             at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:107)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:94)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
             at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507)
             at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499)
             at org.hibernate.engine.CascadingAction$1.cascade(CascadingAction.java:218)
             at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
             at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:216)
             at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
             at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:296)
             at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:242)
             at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:219)
             at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
             at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
             at org.hibernate.event.def.AbstractSaveEventListener.cascadeAfterSave(AbstractSaveEventListener.java:456)
             at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:334)
             at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:181)
             at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:107)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:94)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
             at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507)
             at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499)
             at org.hibernate.engine.CascadingAction$1.cascade(CascadingAction.java:218)
             at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
             at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:216)
             at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
             at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:296)
             at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:242)
             at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:219)
             at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
             at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
             at org.hibernate.event.def.AbstractSaveEventListener.cascadeAfterSave(AbstractSaveEventListener.java:456)
             at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:334)
             at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:181)
             at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:107)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187)
             at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
             at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
             at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:535)
             at org.hibernate.impl.SessionImpl.save(SessionImpl.java:523)
             at org.hibernate.impl.SessionImpl.save(SessionImpl.java:519)
             at org.jbpm.bpel.persistence.db.BpelGraphSession.deployProcessDefinition(BpelGraphSession.java:113)
             at org.jbpm.bpel.web.DeploymentServlet.deployProcessDefinition(DeploymentServlet.java:184)
             at org.jbpm.bpel.web.DeploymentServlet.doPost(DeploymentServlet.java:96)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
             at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
             at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
             at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
             at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
             at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
             at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
             at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
             at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
             at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
             at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
             at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
             at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
             at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
             at java.lang.Thread.run(Unknown Source)
            Caused by: java.lang.IllegalArgumentException
             at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(Unknown Source)
             at sun.reflect.UnsafeLongFieldAccessorImpl.getLong(Unknown Source)
             at sun.reflect.UnsafeLongFieldAccessorImpl.get(Unknown Source)
             at java.lang.reflect.Field.get(Unknown Source)
             at org.hibernate.property.DirectPropertyAccessor$DirectGetter.get(DirectPropertyAccessor.java:32)
             ... 106 more
            


            • 3. Re: BPEL 1.1GA: CodeSource for SOAPMessage is NULL
              Alejandro Guizar Master

              Hi Bernd,

              Redeployment does not seem to work at the moment. Somehow the class loader gets messed up and reflection access starts to fail.

              I tested these examples using JDK 1.4.2/1.5.0 and JWSDP 1.6 only. Perhaps either JDK 1.6.0 or JWSDP 2.0 are the reason for the NPE in your first post.

              Please switch to JDK 1.5.0 and/or JWSDP 1.6. Note that you should not have to copy any libraries from the app server, nor use the endorsement mechanism. The tools and Ant scripts provided with the product should be able to set the correct classpath automatically.

              • 4. Re: BPEL 1.1GA: CodeSource for SOAPMessage is NULL
                Bernd Ruecker Master

                1.) I don't find JWSDP 1.6 for download on the sun side any more.. Even with the help of google... Am I just too stupid?

                2.) Which ant files do you exactly mean? I didn't find anything for configuration of JBoss...

                • 5. Re: BPEL 1.1GA: CodeSource for SOAPMessage is NULL
                  Alejandro Guizar Master

                  1) Look here:

                  http://repository.jboss.com/sun-jwsdp/1.6/

                  2) The ant files in examples/common set the class path so you don't have to move libraries around. If you have already overwritten some libraries you'd better reinstall the products.

                  • 6. Re: BPEL 1.1GA: CodeSource for SOAPMessage is NULL
                    Alejandro Guizar Master

                    I have been able to reproduce the NPE caused by class.getProtectionDomain().getCodeSource() returning null on JWSDP 1.6 and JDK 1.6.0_04.

                    The code source of a protection domain may be null. This is the case for classes included in the Java platform. In particular, the javax.xml.soap package is part of Java SE 6. This causes the following code:

                    SOAPMessage.class.getProtectionDomain().getCodeSource()

                    to return null and result in a NPE. The fix is already applied to CVS head and will be delivered in jBPM BPEL 1.1.1.

                    Thanks for catching this one, Bernd.

                    • 8. Re: BPEL 1.1GA: CodeSource for SOAPMessage is NULL
                      Prachi Mukhija Newbie

                      Hi,

                      I am pretty new to jbpm-bpel. I have downloaded the jbpm-bpel-1.1.1 version.
                      My envrironment is:
                      jboss-4.2.2.GA server

                      However, I am facing the same error when deploying "Hello" example.

                      Here's the stack trace.

                      15:31:26,746 INFO [DeploymentServlet] deployed process definition: HelloWorld
                      15:31:26,846 ERROR [[deploymentServlet]] Servlet.service() for servlet deploymentServlet threw exception
                      java.lang.NullPointerException
                       at org.jbpm.bpel.tools.WscompileTool.getLocation(WscompileTool.java:240)
                       at org.jbpm.bpel.tools.WscompileTool.formatClasspath(WscompileTool.java:227)
                       at org.jbpm.bpel.tools.WscompileTool.callWscompile(WscompileTool.java:197)
                       at org.jbpm.bpel.tools.WscompileTool.generateJavaMappingImpl(WscompileTool.java:156)
                       at org.jbpm.bpel.tools.WscompileTool.generateJavaMapping(WscompileTool.java:143)
                       at org.jbpm.bpel.tools.WebModuleBuilder.callJavaMappingTool(WebModuleBuilder.java:264)
                       at org.jbpm.bpel.tools.WebModuleBuilder.buildModuleImpl(WebModuleBuilder.java:102)
                       at org.jbpm.bpel.tools.WebModuleBuilder.buildModule(WebModuleBuilder.java:84)
                       at org.jbpm.bpel.web.DeploymentServlet.deployWebModule(DeploymentServlet.java:205)
                       at org.jbpm.bpel.web.DeploymentServlet.doPost(DeploymentServlet.java:99)
                       at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
                       at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                       at java.lang.Thread.run(Unknown Source)
                      


                      Please help out. Any hint would be grateful.
                      Thanks in advance.

                      • 9. Re: BPEL 1.1GA: CodeSource for SOAPMessage is NULL
                        Sebastian Schneider Master

                        prachi.mukhija, use the trunk or wait for the next release.

                        Bernd: If I got it right there will only be bugfixes for jBPM BPEL since there is a new JBoss project for BPEL 2.0 called Riftsaw based up-on Apache ODE?? Actually my question is: Why are you are playing around with the BPEL 1.x implementation?

                        Best regards

                        Sebastian

                        • 10. Re: BPEL 1.1GA: CodeSource for SOAPMessage is NULL
                          Bernd Ruecker Master

                          Hi Sebastian.

                          Look on the date of my post, it was in the beginning of 2008. Riftsaw came this year... This is the downside of hijacking threads ;-)

                          For today you are totally right: If you want BPEL look at Riftsaw, but best is to avoid BPEL if you can and go for jPDL or wait for executable BPMN 2.0 ;-)

                          Cheers
                          Bernd

                          • 11. Re: BPEL 1.1GA: CodeSource for SOAPMessage is NULL
                            Sebastian Schneider Master

                            Thanks for the hint, I got confused completely because prachi.mukhija posted in the same thread and I thought I just overlooked the post.

                            And no thanks I do not want BPEL at all. :) I can't wait for executable BPMN 2.0 but right now I am bit worried if it will be accepted by vendors since a lot of them have made huge invests in their own execution models.

                            • 12. Re: BPEL 1.1GA: CodeSource for SOAPMessage is NULL
                              Bernd Ruecker Master

                               

                              I am bit worried if it will be accepted by vendors since a lot of them have made huge invests in their own execution models.


                              Me not, since they all partizipate in the standardization team of BPMN (we joined that as well by the way ;-)). Basically I expect the most of them to pimp their BPEL engines to support BPMN. After all, the concepts are not THAT miles away (at least, most of them).