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:45:00 GMT

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

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

I'm not sure if you mean that replicates it or that doesn't replicate it.  I can't even compile
the systests on 3.1.x

{code}
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.2:testCompile
(default-testCompile) on project cxf-systests-jaxrs: Compilation failure: Compilation failure:

[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/SdoFactory.java:[21,26]
package commonj.sdo.helper does not exist
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/SdoFactory.java:[28,19]
cannot find symbol
[ERROR]   symbol:   class HelperContext
[ERROR]   location: interface org.apache.cxf.systest.jaxrs.sdo.SdoFactory
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/StructureImpl.java:[28,19]
package commonj.sdo does not exist
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/StructureImpl.java:[31,8]
cannot access commonj.sdo.DataObject
[ERROR]   class file for commonj.sdo.DataObject not found
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/StructureImpl.java:[216,12]
cannot find symbol
[ERROR]   symbol:   class Type
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.StructureImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/SdoFactoryImpl.java:[30,19]
package commonj.sdo does not exist
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/SdoFactoryImpl.java:[35,8]
cannot access org.eclipse.emf.ecore.impl.EPackageImpl
[ERROR]   class file for org.eclipse.emf.ecore.impl.EPackageImpl not found
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/SdoFactoryImpl.java:[41,15]
cannot find symbol
[ERROR]   symbol:   class Type
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.SdoFactoryImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/SdoFactoryImpl.java:[49,26]
cannot find symbol
[ERROR]   symbol:   class HelperContext
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.SdoFactoryImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/SdoFactoryImpl.java:[64,16]
cannot find symbol
[ERROR]   symbol:   class DataObject
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.SdoFactoryImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/SdoFactoryImpl.java:[77,16]
cannot find symbol
[ERROR]   symbol:   class Type
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.SdoFactoryImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/SdoFactory.java:[25,84]
incompatible types: org.apache.cxf.systest.jaxrs.sdo.impl.SdoFactoryImpl cannot be converted
to org.apache.cxf.systest.jaxrs.sdo.SdoFactory
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/StructureImpl.java:[208,16]
cannot find symbol
[ERROR]   symbol:   variable super
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.StructureImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/StructureImpl.java:[248,13]
cannot find symbol
[ERROR]   symbol:   method isNotifying()
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.StructureImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/StructureImpl.java:[249,20]
cannot find symbol
[ERROR]   symbol:   variable ChangeKind
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.StructureImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/StructureImpl.java:[263,13]
cannot find symbol
[ERROR]   symbol:   method isNotifying()
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.StructureImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/StructureImpl.java:[264,20]
cannot find symbol
[ERROR]   symbol:   variable ChangeKind
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.StructureImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/StructureImpl.java:[296,13]
cannot find symbol
[ERROR]   symbol:   method isNotifying()
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.StructureImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/StructureImpl.java:[297,20]
cannot find symbol
[ERROR]   symbol:   variable ChangeKind
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.StructureImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/StructureImpl.java:[311,13]
cannot find symbol
[ERROR]   symbol:   method isNotifying()
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.StructureImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/StructureImpl.java:[312,20]
cannot find symbol
[ERROR]   symbol:   variable ChangeKind
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.StructureImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/StructureImpl.java:[344,13]
cannot find symbol
[ERROR]   symbol:   method isNotifying()
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.StructureImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/StructureImpl.java:[345,20]
cannot find symbol
[ERROR]   symbol:   variable ChangeKind
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.StructureImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/StructureImpl.java:[359,13]
cannot find symbol
[ERROR]   symbol:   method isNotifying()
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.StructureImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/StructureImpl.java:[360,20]
cannot find symbol
[ERROR]   symbol:   variable ChangeKind
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.StructureImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/StructureImpl.java:[380,40]
cannot find symbol
[ERROR]   symbol:   variable ListKind
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.StructureImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/StructureImpl.java:[401,16]
cannot find symbol
[ERROR]   symbol:   variable super
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.StructureImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/StructureImpl.java:[428,9]
cannot find symbol
[ERROR]   symbol:   variable super
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.StructureImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/StructureImpl.java:[451,9]
cannot find symbol
[ERROR]   symbol:   variable super
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.StructureImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/StructureImpl.java:[470,16]
cannot find symbol
[ERROR]   symbol:   variable super
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.StructureImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/StructureImpl.java:[479,21]
cannot find symbol
[ERROR]   symbol:   variable this
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.StructureImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/StructureImpl.java:[480,20]
cannot find symbol
[ERROR]   symbol:   variable super
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.StructureImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/StructureImpl.java:[483,50]
cannot find symbol
[ERROR]   symbol:   variable super
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.StructureImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/SdoFactoryImpl.java:[54,55]
cannot access org.eclipse.emf.ecore.util.ExtendedMetaData
[ERROR]   class file for org.eclipse.emf.ecore.util.ExtendedMetaData not found
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/SdoFactoryImpl.java:[58,80]
cannot find symbol
[ERROR]   symbol:   variable this
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.SdoFactoryImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/SdoFactoryImpl.java:[67,29]
cannot find symbol
[ERROR]   symbol:   class DataObject
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.SdoFactoryImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/SdoFactoryImpl.java:[69,24]
cannot find symbol
[ERROR]   symbol:   variable super
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.SdoFactoryImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/SdoFactoryImpl.java:[74,20]
incompatible types: org.apache.cxf.systest.jaxrs.sdo.impl.StructureImpl cannot be converted
to org.apache.cxf.systest.jaxrs.sdo.Structure
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/SdoFactoryImpl.java:[98,29]
cannot find symbol
[ERROR]   symbol:   method createType(boolean,int)
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.SdoFactoryImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/SdoFactoryImpl.java:[112,17]
cannot find symbol
[ERROR]   symbol:   class Property
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.SdoFactoryImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/SdoFactoryImpl.java:[140,9]
cannot find symbol
[ERROR]   symbol:   variable super
[ERROR]   location: class org.apache.cxf.systest.jaxrs.sdo.impl.SdoFactoryImpl
[ERROR] /Users/johnament/src/cxf/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/SDOResource.java:[37,28]
incompatible types: org.apache.cxf.systest.jaxrs.sdo.impl.StructureImpl cannot be converted
to org.apache.cxf.systest.jaxrs.sdo.Structure
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following
articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
{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