Uploaded image for project: 'ODE'
  1. ODE
  2. ODE-114

Unhelpful NPE in bpelc

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-incubating
    • 1.0-incubating
    • None
    • Mac OS X 10.4.9

    Description

      The following NPE results from running bpelc against HelloWorld2:

      $ bpelc HelloWorld2.bpel java org.apache.ode.tools.bpelc.cline.BpelC: null
      java.lang.NullPointerException
      at org.apache.ode.bpel.compiler.DefaultResourceFinder.openResource(DefaultResourceFinder.java:60)
      at org.apache.ode.bpel.compiler.WSDLLocatorImpl.getBaseInputSource(WSDLLocatorImpl.java:47)
      at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
      at org.apache.ode.bpel.compiler.BpelCompiler.addWsdlImport(BpelCompiler.java:180)
      at org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:768)
      at org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:628)
      at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:268)
      at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:335)
      at org.apache.ode.tools.bpelc.BpelCompileCommand.execute(BpelCompileCommand.java:122)
      at org.apache.ode.tools.bpelc.cline.BpelC.main(BpelC.java:99)

      Running

      $ bpelc ./HelloWorld2.bpel

      succeeds.

      The NPE should be avoided, and a better error message should be provided.

      Attachments

        Activity

          People

            Unassigned Unassigned
            paulrbrown Paul R. Brown
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: