cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CXF-925) ClassCastException in JAXBEncoderDecoder.unmarshall()
Date Tue, 28 Aug 2007 17:55:30 GMT

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

Daniel Kulp updated CXF-925:
----------------------------

        Fix Version/s:     (was: 2.0.1)
                       2.0.2
             Assignee: Daniel Kulp
    Affects Version/s: 2.0.1

> ClassCastException in JAXBEncoderDecoder.unmarshall()
> -----------------------------------------------------
>
>                 Key: CXF-925
>                 URL: https://issues.apache.org/jira/browse/CXF-925
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>    Affects Versions: 2.0.1
>            Reporter: Christoph Hohmann
>            Assignee: Daniel Kulp
>             Fix For: 2.0.2
>
>
> If a WebService has a method with a parameter which is an array of a primitive type it
causes a ClassCastException in JAXBEncoderDecoder.unmarshall()
> Example:
> @WebService
> class WS {
>   public void aMethod(int[] a) {
>     ...;
>   }
> }
> java.lang.ClassCastException: [I
> 	at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:263)
> 	at org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:40)
> 	at org.apache.cxf.interceptor.DocLiteralInInterceptor.getPara(DocLiteralInInterceptor.java:235)
> 	at org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:121)
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
> 	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:73)
> 	at org.apache.cxf.transport.servlet.ServletDestination.doMessage(ServletDestination.java:78)
> 	at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:231)
> 	at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:139)
> 	at org.apache.cxf.transport.servlet.CXFServlet.invoke(CXFServlet.java:271)
> 	at org.apache.cxf.transport.servlet.CXFServlet.doPost(CXFServlet.java:249)
> It would be good if CXF could handle this correctly too.

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


Mime
View raw message