detail.php
OW2 Forge: Detail: 305898 Problem unmarshalling EPR?

Advanced - Powered by Google


   
Log In
New Account
  
 
Home
My Page
Project Tree
Project Openings
Celtix ESB
          
 
 
Summary
Forums
Tracker
Lists
Tasks
News
Files
SVN
                
 

Tracker: Bugs

Submit New | Browse | Admin | ExportToXml

[ #305898 ] Problem unmarshalling EPR?

Date:
2006-08-03 17:53
Priority:
5
Submitted By:
Adrian Trenaman (ade)
Assigned To:
Ulhas Bhole (ulhasbhole)
Category:
None
State:
Open
Summary:
Problem unmarshalling EPR?

Detailed description:
Hi All, Am having problems creating a callback application. The client sends a subscribe message with an EPR as shown: <?xml version="1.0" encoding="utf-8" ?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SOAP-ENV:Body> <ns7:subscribe xmlns:ns4="http://www.w3.org/2005/08/addressing/wsdl" xmlns:ns5="http://www.w3.org/2005/08/addressing" xmlns:ns7="http://www.iona.com/ps/training/NewsDesk"> <endpoint> <ns5:Address>http://localhost:9012/NewsClient</ns5:Address> </endpoint> </ns7:subscribe> </SOAP-ENV:Body> </SOAP-ENV:Envelope> However, on the server-side, I get a big exception; it seems that Celtix cannot unmarshall a "wrapped type". Does anyone know what might be wrong? Code attached in zip format Thanks in advance for any help, Ade. SEVERE: Error in unmarshall of XML Message javax.xml.ws.WebServiceException: Could not unmarshall wrapped type () at org.objectweb.celtix.bus.jaxws.io.NodeDataReader.readWrapper(NodeData Reader.java:73) at org.objectweb.celtix.bus.bindings.xml.XMLBindingImpl.getParts(XMLBind ingImpl.java:273) at org.objectweb.celtix.bus.bindings.xml.XMLBindingImpl.unmarshal(XMLBin dingImpl.java:176) at org.objectweb.celtix.bindings.ServerRequest.processInbound(ServerRequ est.java:142) at org.objectweb.celtix.bindings.AbstractServerBinding.dispatch(Abstract ServerBinding.java:136) at org.objectweb.celtix.bindings.AbstractServerBinding$1.dispatch(Abstra ctServerBinding.java:57) at org.objectweb.celtix.bus.transports.http.JettyHTTPServerTransport.ser viceRequest(JettyHTTPServerTransport.java:309) at org.objectweb.celtix.bus.transports.http.JettyHTTPServerTransport.doS ervice(JettyHTTPServerTransport.java:283) at org.objectweb.celtix.bus.transports.http.JettyHTTPServerTransport$1.h andle(JettyHTTPServerTransport.java:80) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:816) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java: 244) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) Caused by: java.lang.ClassNotFoundException: at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at org.objectweb.celtix.bus.jaxws.ClassHelper.forName(ClassHelper.java:1 4) at org.objectweb.celtix.bus.jaxws.io.NodeDataReader.readWrapper(NodeData Reader.java:69) ... 17 more 03-Aug-2006 12:41:44 org.objectweb.celtix.bindings.AbstractServerBinding dispatc h INFO: inbound message processing resulted in exception: org.objectweb.celtix.bus.bindings.xml.XMLBindingException: XML binding unmarshal exception at org.objectweb.celtix.bus.bindings.xml.XMLBindingImpl.unmarshal(XMLBin dingImpl.java:186) at org.objectweb.celtix.bindings.ServerRequest.processInbound(ServerRequ est.java:142) at org.objectweb.celtix.bindings.AbstractServerBinding.dispatch(Abstract ServerBinding.java:136) at org.objectweb.celtix.bindings.AbstractServerBinding$1.dispatch(Abstra ctServerBinding.java:57) at org.objectweb.celtix.bus.transports.http.JettyHTTPServerTransport.ser viceRequest(JettyHTTPServerTransport.java:309) at org.objectweb.celtix.bus.transports.http.JettyHTTPServerTransport.doS ervice(JettyHTTPServerTransport.java:283) at org.objectweb.celtix.bus.transports.http.JettyHTTPServerTransport$1.h andle(JettyHTTPServerTransport.java:80) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:816) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java: 244) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) Caused by: javax.xml.ws.WebServiceException: Could not unmarshall wrapped type ( ) at org.objectweb.celtix.bus.jaxws.io.NodeDataReader.readWrapper(NodeData Reader.java:73) at org.objectweb.celtix.bus.bindings.xml.XMLBindingImpl.getParts(XMLBind ingImpl.java:273) at org.objectweb.celtix.bus.bindings.xml.XMLBindingImpl.unmarshal(XMLBin dingImpl.java:176) ... 15 more Caused by: java.lang.ClassNotFoundException: at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at org.objectweb.celtix.bus.jaxws.ClassHelper.forName(ClassHelper.java:1 4) at org.objectweb.celtix.bus.jaxws.io.NodeDataReader.readWrapper(NodeData Reader.java:69) ... 17 more 03-Aug-2006 12:41:44 org.objectweb.celtix.bus.transports.http.JettyHTTPServerTra nsport serviceRequest INFO: Finished servicing http request on thread: SocketListener0-1

Add A Comment:

Please login

Followup

Message
Date: 2006-08-08 15:37
Sender: ulhasbhole
Logged In: YES 
user_id=7507

Workaround for problem with wrong binding:
Add javax.xml.ws.BindingType annotation to newsDeskImpl.

This will get around the issue of wrong binding being picked
up. 

Still the callback doesn't work. I guess as Ajay mentioned
in his comment ENDPOINT_ADDRESS_PROPERTY is not yet supported.
Date: 2006-08-03 19:04
Sender: apaibir
Logged In: YES 
user_id=6842

There are two bugs demostrated by the testcase
a) XMLBinding is being used instead of SOAPBinding and 
this is somehow relate to the use of http:address element 
in the endpoint. 

Using soap:address as workaround resolves the issue.

b) Connect to the Callback Service fails this seems to be 
due the ENDPOINT_ADDRESS_PROPERTY not yet supported.

Attached Files:

Name Description Download
newsdesk.zip Zip file containing reproducible test case. Download

Changes:

Field Old Value Date By
assigned_tonone2006-08-11 06:29adisakala
File Added659: newsdesk.zip2006-08-03 17:53ade

Copyright © 1999-2008, OW2 Consortium | contact | You have a difficulty, a problem ? Please report an issue using your OW2 forge account credentials