You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Christoph Hohmann (JIRA)" <ji...@apache.org> on 2007/08/20 16:57:30 UTC

[jira] Created: (CXF-925) ClassCastException in JAXBEncoderDecoder.unmarshall()

ClassCastException in JAXBEncoderDecoder.unmarshall()
-----------------------------------------------------

                 Key: CXF-925
                 URL: https://issues.apache.org/jira/browse/CXF-925
             Project: CXF
          Issue Type: Bug
          Components: JAXB Databinding
            Reporter: Christoph Hohmann
             Fix For: 2.0.1


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.


[jira] Updated: (CXF-925) ClassCastException in JAXBEncoderDecoder.unmarshall()

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Resolved: (CXF-925) ClassCastException in JAXBEncoderDecoder.unmarshall()

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-925.
-----------------------------

    Resolution: Fixed

> 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.