1 Reply Latest reply on Dec 20, 2005 12:30 PM by Alejandro Guizar

    NullPointerException in ServiceGenerator

    Martin Steinle Newbie

      Hi all,

      I tried to reference a wsdl document in bpel-definition.xml that is not in the process archive, but on the web. What happened is that the ant service-generator task failed with the exception

      org.jbpm.bpel.xml.BpelException: first role's port type not found [/process/partnerLinks/partnerLink[1]]
       at org.jbpm.bpel.xml.BpelReader.readPartnerLink(BpelReader.java:729)
       at org.jbpm.bpel.xml.BpelReader.readPartnerLinks(BpelReader.java:686)
       at org.jbpm.bpel.xml.BpelReader.readScope(BpelReader.java:408)
       at org.jbpm.bpel.xml.BpelReader.read(BpelReader.java:206)
       at org.jbpm.bpel.xml.BpelReader.read(BpelReader.java:162)
       at org.jbpm.bpel.par.BpelArchiveParser.readFromArchive(BpelArchiveParser.java:28)
       at org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchive.java:46)
       at org.jbpm.bpel.ant.ServiceGeneratorTask.execute(ServiceGeneratorTask.java:28)
       at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
       at org.apache.tools.ant.Task.perform(Task.java:364)
       at org.apache.tools.ant.Target.execute(Target.java:341)
       at org.apache.tools.ant.Target.performTasks(Target.java:369)
       at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
       at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
       at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
       at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
       at org.apache.tools.ant.Main.runBuild(Main.java:668)
       at org.apache.tools.ant.Main.startAnt(Main.java:187)
       at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
       at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)


      The import in my bpel-definition.xml file looks like the following:
      <wsdl namespace="urn:sampleservice" location="http://localhost/SampleService?wsdl"/>


      Is it possible, to reference wsdl documents on the web in bpel-definition.xml files? And, if not, is there a reason for this?

      Regards,
      stone_42

        • 1. Re: NullPointerException in ServiceGenerator
          Alejandro Guizar Master

          It is possible! jBPM BPEL would tell you if the referenced WSDL document is unreadable (try setting a bogus value in the attribute location).

          I think your partner link type is referencing a port type imported indirectly. There is a known issue about this: BPEL-61. A resolution already exists and will be included in jBPM BPEL 1.0 alpha 4 to be released last Friday :-) (I'm overdue!)