java.lang.NullPointerExceptionThis was due to the returned message being different under 7.x and 8.x:
at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:36)
at sun.reflect.UnsafeObjectFieldAccessorImpl.get(UnsafeObjectFieldAccessorImpl.java:18)
at java.lang.reflect.Field.get(Field.java:358)
at........
------ 7.x ---------
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<ser-root:lookupTaxExemptResponse xmlns:ser-root="http://ns.discounttire.com/TaxExempt/v1"/>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
------ 8.x ---------
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<ser-root:lookupTaxExemptResponse xsi:nil="true" xmlns:ser-root="http://ns.discounttire.com/TaxExempt/v1"/>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
There was a fix for this in 7.1.3 (when the problem seems to have first appeared) but it has not yet been applied to 8.x. You have to apply the core patch (I'm assuming Core Patch 13 will have it as Patch 12 does not).
Then you also need to go to your IS web admin page -> Settings -> Extended and "Edit Extended Settings"
Add the following line:
watt.server.SOAP.generateNilTags=false
I haven't yet verified this as we don't have the patch yet.
-------
Update:
Turns out this is the new behavior in wm8 and will not be fixed. To get this error we were
returning a bare list of document references. So we switched to returning a document with a
list of document references inside and now as long as the list is initialized, it returns fine.
The xsi:nil tag is inside the list, not at the top-level root element which is what caused the
problem with java clients.