Uploaded image for project: 'Savara'
  1. Savara
  2. SAVARA-373

NPE when generating PQM-PolicyQuoteProcessService

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.1.0.Final
    • Component/s: None
    • Labels:
      None

      Description

      NPE when generating switchyard java service from choreography.

      eclipse.buildId=M20120208-0800
      java.version=1.6.0_25
      java.vendor=Sun Microsystems Inc.
      BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
      Framework arguments:  -product org.eclipse.platform.ide
      Command-line arguments:  -product org.eclipse.platform.ide -data /home/gbrown/dev/savara/workspace-2.0.x/../runtime-New_configuration4 -dev file:/home/gbrown/dev/savara/workspace-2.0.x/.metadata/.plugins/org.eclipse.pde.core/RuntimeWorkbench4/dev.properties -os linux -ws gtk -arch x86_64 -consoleLog
      
      Error
      Wed Jan 23 22:29:49 GMT 2013
      Failed to create Switchyard Java project 'PQM-PolicyQuoteProcessService'
      
      java.lang.NullPointerException
      	at org.savara.java.generator.JavaBehaviourGenerator.getImportedType(JavaBehaviourGenerator.java:101)
      	at org.savara.java.generator.JavaBehaviourGenerator.processReceive(JavaBehaviourGenerator.java:390)
      	at org.savara.java.generator.JavaBehaviourGenerator.processBlock(JavaBehaviourGenerator.java:319)
      	at org.savara.java.generator.JavaBehaviourGenerator.getOperationBody(JavaBehaviourGenerator.java:192)
      	at org.savara.switchyard.java.generator.SwitchyardJavaGenerator.addServiceBehaviour(SwitchyardJavaGenerator.java:607)
      	at org.savara.switchyard.java.generator.SwitchyardJavaGenerator.createServiceImplementationFromWSDL(SwitchyardJavaGenerator.java:99)
      	at org.savara.tools.switchyard.java.generator.SwitchyardJavaGeneratorImpl.generate(SwitchyardJavaGeneratorImpl.java:189)
      	at org.savara.tools.common.generation.ui.GenerateDialog$6.run(GenerateDialog.java:513)
      	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      	at org.savara.tools.common.generation.ui.GenerateDialog.okPressed(GenerateDialog.java:489)
      	at org.eclipse.jface.dialogs.Dialog.buttonPressed(Dialog.java:472)
      	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
      	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
      	at org.eclipse.jface.window.Window.open(Window.java:801)
      	at org.savara.tools.common.generation.ui.GenerateDialog.open(GenerateDialog.java:402)
      	at org.savara.tools.common.generation.ui.GenerateServiceImplementationAction.run(GenerateServiceImplementationAction.java:70)
      	at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
      	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
      	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
      	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
      	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
      	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
      	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
      	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      	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.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
      
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                objectiser Gary Brown
                Reporter:
                objectiser Gary Brown
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: