Forum Discussion

Sofico_Services's avatar
Sofico_Services
Occasional Contributor
15 years ago

java.lang.NullPointerException using Schema Compliance Asser

Hi,

I am trying to use the 'Schema Compliance Assertion' in one of our test cases. This is the scenario:

1) I call a service and get some XML response (using WADL)
2) The response of this service is checked with a 'Schema Compliance Assertion'

The assertion of the assertion generates an error though:

Mon Feb 14 17:25:56 CET 2011:ERROR:java.lang.NullPointerException
java.lang.NullPointerException
at com.eviware.soapui.impl.wadl.WadlDefinitionContext.createDefinitionLoader(WadlDefinitionContext.java:52)
at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext$Loader.getDefinitionLoader(AbstractDefinitionContext.java:198)
at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext$Loader.construct(AbstractDefinitionContext.java:218)
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)


Are there additional steps I need to take to be able to use the schema assertion?

thanks!

(we are running SoapUI 3.6.1)

8 Replies

  • Hi!

    hmm.. can you share your WADL and perhaps the response you are trying to validate?

    regards!

    /Ole
    eviware.com
  • Hi!

    Thanks.. I can't reproduce this, ie the validation works "ok".. which soapUI version are you using?

    regards!

    /Ole
    eviware.com
  • Hi!

    ok.. can you give the nightly build of 3.6.2 a try to see if this is fixed?

    regards!

    /Ole
    eviware.com
  • Sofico_Services's avatar
    Sofico_Services
    Occasional Contributor
    Hello,

    Sure, just downloaded the latest nightly, same deal though (soapui-pro-3.6.2-daily-2011-02-22).
    Could it be that the issue is caused by the data being compressed using GZIP? The service call actually returns the XML zipped, this is something which is not reflected in the sample files I gave you.

    thanks.
  • Hello,

    I have put this in our backlog (SOBL-694). Sorry for the inconvenience and thank you for the excellent bug description.

    /Henrik
    eviware.com