Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

unable marshal XML representation to string in memory - please help  RSS feed

Ranch Hand
Posts: 548
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have below classes and I am trying to return Forecast class object as a return type of a web service method that is exposed using AXIS 1.2 RC2 and JiBX :

Now my problem is, at this line "((IMarshallable)value).marshal(mctx)" in JibxSerializer's serializer() method of above code, I am getting an JiBXException and a fatal error saying
"The following exception was logged org.jibx.runtime.JiBXException: Collection item of type java.lang.String has no binding defined"
at JiBX_MungeAdapter.JiBX_SparePartPriceSession_binding_marshal_1_0()
at Forecast.JiBX_SparePartPriceSession_binding_marshal_1_0(
at JiBX_SparePartPriceSession_bindingForecast_access.marshal()
at Forecast.marshal(

The resulting string that is to be written to output is below :
<forecast xmlns="" hi="0" low="0" precip="0"><zip>343434</zip><city>Campbell</city><state>CA</state><date>April 11, 2003</date><forecast>20 percent chance of rain.</forecast><temp><temp>35</temp></temp>

All the usual configuration of registering all my custom types with TypeMapping element and JiBX (De)Serializers has been done in my AXIS's server-config.wsdd. Can anyone please tell me what am I missing here and why is this error occurring in my server side application server log files.

Thanks & Regards,
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!