[jboss-user] [JBoss Web Services] - Re: Custom exception not thrown

Timo Wiedenmann do-not-reply at jboss.com
Fri Jan 21 06:40:59 EST 2011


Timo Wiedenmann [http://community.jboss.org/people/twieden] created the discussion

"Re: Custom exception not thrown"

To view the discussion, visit: http://community.jboss.org/message/582337#582337

--------------------------------------------------------------
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 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
[http://community.jboss.org/message/582337#582337]

Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110121/159f5d77/attachment.html 


More information about the jboss-user mailing list