Uploaded image for project: 'Fuse Tooling'
  1. Fuse Tooling
  2. FUSETOOLS-3152

Camel Rest DSL from wsdl option throws java.lang.NullPointerException when names contain underscores in wsdl file

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 11.1.0
    • Fix Version/s: 11.2.0
    • Component/s: Fuse Projects, Wizards
    • Labels:
      None
    • Environment:
      • devstudio-12.0.0.GA-installer-standalone.jar
    • Steps to Reproduce:
      Hide
      1. Using JDK 1.8
      2. Install JBoss Developer Studio 12
      3. Create a Fuse Integration project with "Standalone" as deployment mode and Springboot as runtime
      4. On the new project right click then select "New>Camel Rest DSL from wsdl"
      5. Keep all values as default, just change:

      REST Services Addres to http://localhost:8080/api/citas

      Finally, do a click on "Finish" button and check the NPE, attaching LOG for reference (check "!ENTRY org.fusesource.ide.wsdl2rest.ui 4 0 2018-10-02 12:26:19.323" entry)

      Note: for the WSDL file, please refer the case on customer portal (the only one .wsdl file).

      Show
      Using JDK 1.8 Install JBoss Developer Studio 12 Create a Fuse Integration project with "Standalone" as deployment mode and Springboot as runtime On the new project right click then select "New>Camel Rest DSL from wsdl" Keep all values as default, just change: REST Services Addres to http://localhost:8080/api/citas Finally, do a click on "Finish" button and check the NPE, attaching LOG for reference (check "!ENTRY org.fusesource.ide.wsdl2rest.ui 4 0 2018-10-02 12:26:19.323" entry) Note: for the WSDL file, please refer the case on customer portal (the only one .wsdl file).

      Description

      Using a WSDL file to create a REST service using the "Camel Rest DSL from wsdl" option throws a NPE, also, IDE does not show any stack trace.

      java.lang.NullPointerException
      	at org.jboss.fuse.wsdl2rest.impl.codegen.CamelContextGenerator.getJavaMethod(CamelContextGenerator.java:117)
      	at org.jboss.fuse.wsdl2rest.impl.codegen.CamelContextGenerator.addTypeMapping(CamelContextGenerator.java:94)
      	at org.jboss.fuse.wsdl2rest.impl.codegen.CamelContextGenerator.process(CamelContextGenerator.java:76)
      	at org.jboss.fuse.wsdl2rest.impl.Wsdl2Rest.process(Wsdl2Rest.java:92)
      	at org.fusesource.ide.wsdl2rest.ui.wizard.Wsdl2RestWizard.generate(Wsdl2RestWizard.java:323)
      	at org.fusesource.ide.wsdl2rest.ui.wizard.Wsdl2RestWizard.access$0(Wsdl2RestWizard.java:286)
      	at org.fusesource.ide.wsdl2rest.ui.wizard.Wsdl2RestWizard$1.run(Wsdl2RestWizard.java:112)
      	at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:437)
      	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:353)
      	at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:974)
      	at org.fusesource.ide.wsdl2rest.ui.wizard.Wsdl2RestWizard.performFinish(Wsdl2RestWizard.java:107)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mielket Torsten Mielke
                Reporter:
                emunoz Elkin Munoz
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: