cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John D. Ament (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-7493) Cannot define a List<Double> or List<Long> as a query param
Date Wed, 06 Sep 2017 11:57:00 GMT

    [ https://issues.apache.org/jira/browse/CXF-7493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16155251#comment-16155251
] 

John D. Ament commented on CXF-7493:
------------------------------------

Ok, I'll see what's different between my class and this class.  Its also possible that this
is already fixed on 3.1.13-SNAPSHOT

This seems to be part of the issue:

{code}
Downloading: https://repository.apache.org/snapshots/org/apache/cxf/cxf-rt-databinding-sdo/3.1.13-SNAPSHOT/maven-metadata.xml
Downloaded: https://repository.apache.org/snapshots/org/apache/cxf/cxf-rt-databinding-sdo/3.1.13-SNAPSHOT/maven-metadata.xml
(1.2 kB at 2.4 kB/s)
Downloading: https://repository.apache.org/snapshots/org/apache/cxf/cxf-rt-databinding-sdo/3.1.13-SNAPSHOT/cxf-rt-databinding-sdo-3.1.13-20170906.115142-80.pom
Downloaded: https://repository.apache.org/snapshots/org/apache/cxf/cxf-rt-databinding-sdo/3.1.13-SNAPSHOT/cxf-rt-databinding-sdo-3.1.13-20170906.115142-80.pom
(9.5 kB at 56 kB/s)
[WARNING] The POM for org.apache.tuscany.sdo:tuscany-sdo-impl:jar:1.1.1 is invalid, transitive
dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.apache.tuscany.sdo:tuscany-sdo-tools:jar:1.1.1 is invalid, transitive
dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for com.healthmarketscience.jackcess:jackcess:jar:2.1.4 is invalid, transitive
dependencies (if any) will not be available, enable debug logging for more details
Downloading: https://repository.apache.org/snapshots/org/apache/cxf/cxf-rt-databinding-sdo/3.1.13-SNAPSHOT/cxf-rt-databinding-sdo-3.1.13-20170906.115142-80.jar
Downloaded: https://repository.apache.org/snapshots/org/apache/cxf/cxf-rt-databinding-sdo/3.1.13-SNAPSHOT/cxf-rt-databinding-sdo-3.1.13-20170906.115142-80.jar
(28 kB at 136 kB/s)
{code}

> Cannot define a List<Double> or List<Long> as a query param
> -----------------------------------------------------------
>
>                 Key: CXF-7493
>                 URL: https://issues.apache.org/jira/browse/CXF-7493
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 3.1.12
>            Reporter: John D. Ament
>
> When defining a resource method like:
> {code}
> public JsonObject verifyInjectedCustomIntegerArray(@QueryParam("value") List<Long>
array)
> public JsonObject verifyInjectedCustomDoubleArray(@QueryParam("value") List<Double>
array)
> {code}
> The following stacktrace is shown when parsing the body:
> {code}
> java.lang.NullPointerException
> 	at org.apache.cxf.jaxrs.utils.InjectionUtils.injectIntoCollectionOrArray(InjectionUtils.java:904)
> 	at org.apache.cxf.jaxrs.utils.InjectionUtils.createParameterObject(InjectionUtils.java:1003)
> 	at org.apache.cxf.jaxrs.utils.JAXRSUtils.readQueryString(JAXRSUtils.java:1196)
> 	at org.apache.cxf.jaxrs.utils.JAXRSUtils.createHttpParameterValue(JAXRSUtils.java:872)
> 	at org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameter(JAXRSUtils.java:842)
> 	at org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameters(JAXRSUtils.java:793)
> 	at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:212)
> 	at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:77)
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
> 	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
> 	at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:263)
> 	at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234)
> 	at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208)
> 	at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160)
> 	at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:189)
> 	at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:299)
> 	at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:223)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
> 	at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:274)
> 	at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
> 	at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message