[jbossws-issues] Binding custom Exception field fails

commercie rhcp commercie.rhcp at hetnet.nl
Thu Apr 24 05:36:18 EDT 2008


Hi there,

I'm trying to make a simple hallo World with a parameter and a custom
exception that has its own field. Without the extra field in the exception
it works fine. Server start up fine but when I call my webservice with the
field "naam" filled in with "kaboom" (with this value the exception is
thrown) this is what I get:

08:48:41,921 ERROR [RequestHandlerImpl] Error processing web service request
org.jboss.ws.WSException: org.jboss.xb.binding.JBossXBRuntimeException:
Failed to find read method or field for property 'typeFout' in class
nl.havermans.rhcp.boodschappen.webservice.EWebserviceException
	at org.jboss.ws.WSException.rethrow(WSException.java:68)
	at
org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl
.java:310)
	at
org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:1
89)
	at
org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandler
Impl.java:122)
	at
org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

The problem is that the property really is in the class
nl.havermans.rhcp.boodschappen.webservice.EWebserviceException, I even tried
to make the field itself public but it doesn't help. Does anyone know why
this is happening? 

I have provided the source files so you can have a look at it (deleted the
libs for size issues).

Can anyone have a look at this?

Kind regards,
Ramon Havermans

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jbossws-issues/attachments/20080424/6889ead7/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: HalloWereld.zip
Type: application/x-zip-compressed
Size: 7534 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/jbossws-issues/attachments/20080424/6889ead7/attachment.bin 


More information about the jbossws-issues mailing list