Skip to main content

Arguments received as null at the service end point method

5 replies [Last post]
hr_stoyanov
Offline
Joined: 2004-04-01

Doug-,
I am running an application utilizing JAX-WS EA2.0. I can see in the client debugger that I send an array of objects to the remote service, but in the server debugger the same argument arrives as null. Any clue while the serialization failed silently? Do I need to set MTOM or Swa anywhere?

Thanks
Hristo

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kohlert
Offline
Joined: 2003-06-16

Hristo,
If you have not enable MTOM on the server, then you won't need to enable it on the client. I am not sure why you are getting this problem. Can you send use your war and client code? If not, can you create a testcase that you can send to us?

Thanks

hr_stoyanov
Offline
Joined: 2004-04-01

Doug-,
Sure, I will send the thing over at your e-mail, but now that JAX-WS ships with sources, I may try to figure it out myself first. When is the next weekly coming?

Thanks,
Hristo

kohlert
Offline
Joined: 2003-06-16

The workspace is still in flux. Hopefully early next week.

hr_stoyanov
Offline
Joined: 2004-04-01

Doug-,
I sent you an e-mail, but before you waste any of your time, let me try a few things first, I discovered after reading the new JAX-B 2.0 specs:

1) JAXB serializable classes need to have a public 0-args constructor. All of my classes have a private one. Kohsuke bloged about this and there are a bunch of pretty good products (XStream, Hibernate, PERST), which exploit a little trick in Sun's APIs to lift that nasty requirement of public 0-args constructor.

2) I use @XmlRootElement liberally, maybe I should have used @XmlType.

At any rate, it could be the mis-use of JAX-B that silently(!) fails JAX-WS in regard to this problem. I will check all this first thing in the morning tomorrow ...

Thanks
Hristo

hr_stoyanov
Offline
Joined: 2004-04-01

Doug-,
Sorry, none of 1) or 2) worked for me. If you have time, I will appreciate the help ...

Hristo