[ 
https://issues.apache.org/jira/browse/TUSCANY-2924?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ramkumar Ramalingam reassigned TUSCANY-2924:
--------------------------------------------

    Assignee: Ramkumar Ramalingam

> Abstract class for handling interface with multiple implementation as 
> argument in SOAP service throws 
> org.apache.tuscany.sca.databinding.TransformationException: 
> javax.xml.bind.UnmarshalException
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-2924
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2924
>             Project: Tuscany
>          Issue Type: Bug
>         Environment: Linux/Windows; Tomcat/Jetty
>            Reporter: Lakshman Mukkamalla
>            Assignee: Ramkumar Ramalingam
>
>  This is in regards to the discussion thread 
> ,http://www.mail-archive.com/[email protected]/msg05701.html. The 
> situation that I had now was that the interface was having multiple 
> implementation classes. Like say in the sample 
> (http://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferService.java)
>  there are two implementing classes for the MyException interface. Lets say 
> the implementation classes are MyExceptionImpl1 and MyExceptionImpl2. 
>   Have tried the case of the abstract class mentioned in the following link 
> https://jaxb.dev.java.net/guide/Mapping_interfaces.html but had no luck and 
> there was following exception as mentioned by Ramkumar Ramalingam.
> - org.apache.tuscany.sca.databinding.TransformationException: 
> javax.xml.bind.UnmarshalException
>  - with linked exception:
> [javax.xml.bind.UnmarshalException: Unable to create an instance of 
> org.apache.tuscany.sca.binding.ws.axis2.itests.mtom.AbstractExceptionImpl
>  - with linked exception:
> [java.lang.InstantiationException]]
> org.apache.axis2.AxisFault: 
> org.apache.tuscany.sca.databinding.TransformationException: 
> javax.xml.bind.UnmarshalException
>  - with linked exception:
> [javax.xml.bind.UnmarshalException: Unable to create an instance of 
> org.apache.tuscany.sca.binding.ws.axis2.itests.mtom.AbstractExceptionImpl
>  - with linked exception:
> [java.lang.InstantiationException]]
>     at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>     at 
> org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceInOutSyncMessageReceiver.invokeBusinessLogic(Axis2ServiceInOutSyncMessageReceiver.java:100)
>     at 
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:42)
>     at 
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
>     at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
>     at 
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
>     at 
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:133)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>     at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
>     at 
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
>     at 
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>     at 
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
>     at 
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>     at org.mortbay.jetty.Server.handle(Server.java:324)
>     at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
>     at 
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
>     at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
>     at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
>     at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
>     at 
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
>     at org.apache.tuscany.sca.core.work.Work.run(Work.java:63)
>     at 
> org.apache.tuscany.sca.core.work.ThreadPoolWorkManager$DecoratingWork.run(ThreadPoolWorkManager.java:215)
>     at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
>     at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
>     at java.lang.Thread.run(Thread.java:735)
> The same discussion thread could be found at 
> http://www.mail-archive.com/[email protected]/msg01236.html.
> Thanks,
> Lakshman Mukkamalla

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to