JBoss Community

Re: Custom exception not thrown

created by Timo Wiedenmann in JBoss Web Services - View the full discussion

Hello again,

 

i did some more tests, but the only thing i found i a workaround:

Change all web methods to have at least one input parameter.

 

This is not the best solution, as this webservice is already in use ...

 

Can anyone tell me why i get this NullPointerException at

 

org.jboss.ws.core.jaxws.JAXBSerializer.getClassesForContextCreation(JAXBSerializer.java:108)

 

 

or why the result of

 

 
Class[] registeredTypes = (Class[])serContext.getProperty(SerializationContextJAXWS.JAXB_CONTEXT_TYPES);

 

 

is NULL ?

 

Found the accoring class at

http://grepcode.com/file/repository.jboss.org/nexus/content/repositories/releases/org.jboss.ws.native/jbossws-native-core/3.0.5.GA/org/jboss/ws/core/jaxws/JAXBSerializer.java#JAXBSerializer

 

Best regards,

Timo

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community