Menu

#452 NullPointerException on WSDL import

open
nobody
None
5
2014-08-28
2009-07-21
ARG
No

SoapUI version 3.0, Windows XP SP3, packaged JRE (1.6.0_14)

For several WSDL URLs in our corporate intranet, importing directly into SoapUI via the URL causes a NPE. But saving off the WSDL and all its referenced imports into directory hierarchy and then importing from the file system works.

2009-07-21 15:31:54,406 ERROR [errorlog] com.eviware.soapui.support.SoapUIException: Error importing wsdl
com.eviware.soapui.support.SoapUIException: Error importing wsdl
at com.eviware.soapui.impl.WsdlInterfaceFactory.importWsdl(WsdlInterfaceFactory.java:79)
at com.eviware.soapui.impl.WsdlInterfaceFactory.importWsdl(WsdlInterfaceFactory.java:55)
at com.eviware.soapui.impl.wsdl.actions.project.AddWsdlAction.importWsdl(AddWsdlAction.java:127)
at com.eviware.soapui.impl.wsdl.actions.project.AddWsdlAction.perform(AddWsdlAction.java:105)
at com.eviware.soapui.impl.wsdl.actions.project.AddWsdlAction.perform(AddWsdlAction.java:55)
at com.eviware.soapui.support.action.swing.SwingActionDelegate.actionPerformed(SwingActionDelegate.java:101)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.Exception: java.lang.NullPointerException
at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext.load(AbstractDefinitionContext.java:156)
at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlImporter.importWsdl(WsdlImporter.java:82)
at com.eviware.soapui.impl.WsdlInterfaceFactory.importWsdl(WsdlInterfaceFactory.java:73)
... 32 more
Caused by: java.lang.NullPointerException
at com.eviware.soapui.impl.support.definition.support.InterfaceCacheDefinitionLoader.<init>(InterfaceCacheDefinitionLoader.java:40)
at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext.createDefinitionLoader(WsdlContext.java:56)
at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext.createDefinitionLoader(WsdlContext.java:30)
at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext.cacheDefinition(AbstractDefinitionContext.java:261)
at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext.access$400(AbstractDefinitionContext.java:44)
at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext$Loader.construct(AbstractDefinitionContext.java:229)
at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:46)
at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:140)
at java.lang.Thread.run(Unknown Source)

Discussion

  • Dragica Soldo

    Dragica Soldo - 2009-07-22

    Hi,

    can you please give us some example URL that is publicly accessible so we can reproduse and debug

    Regards,

    /Dragica
    eviware.com

     
  • Ole Lensmar

    Ole Lensmar - 2009-07-28

    Hi!

    is/are there any redirects/ssl/authentication involved when reading the WSDL over HTTP? Can you share the file-structure of one of your WSDLs so we can host it internally and try to reproduce this?

    regards!

    /Ole
    eviware.com

     
  • ARG

    ARG - 2009-07-29

    You are correct, there was an HTTP 302 redirect in serving the WSDL. When I changed it to not have the redirect, there was no problem, so no issue with the regular WSDL content. It would still be nice to have soapUI do something to handle this situation--either be able to chase the redirect successfully or display an error message that clearly identifies the failure reason. The current state of a generic error message + a non-specific stack trace in the log file ("Error importing wsdl") lends to confusion.

     
  • Ole Lensmar

    Ole Lensmar - 2009-07-30

    Great thanks for confirming, I'll try to fix this for the upcoming bug-fix release.. Sorry for the inconvenience.

    regards!

    /Ole
    eviware.com

     

Log in to post a comment.

MongoDB Logo MongoDB