Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Follow setup instructions in TOMEE-3140. Then run:
./runtests --ee91 -c -j --web tomee-plume com.sun.ts.tests.jaxrs.spec.provider.standardhaspriority.JAXRSClient#readWriteMapProviderTest_from_standalone
At the time this issue was filed, the test failed with the following in target/logs/javatest.log
04-11-2021 20:39:19: TRACE: getSetupMethod - checking for default class specific setup method 04-11-2021 20:39:19: TRACE: GOT SETUP METHOD! 04-11-2021 20:39:19: TRACE: No cleanupMethod annotation present 04-11-2021 20:39:19: TRACE: getCleanupMethod - checking for testcase specific cleanup method: readWriteMapProviderTest_cleanup 04-11-2021 20:39:19: TRACE: getCleanupMethod - checking for default class specific cleanup method 04-11-2021 20:39:19: TRACE: GOT CLEANUP METHOD! 04-11-2021 20:39:19: TRACE: ABOUT TO INVOKE SETUP METHOD! 04-11-2021 20:39:19: TRACE: setup method JAXRSCommonClient 04-11-2021 20:39:19: [JAXRSCommonClient] Test setup OK 04-11-2021 20:39:19: TRACE: INVOKED SETUP METHOD! 04-11-2021 20:39:19: TRACE: ABOUT TO INVOKE EETEST RUN METHOD! 04-11-2021 20:39:19: TRACE: [JAXRSCommonClient] invoke 04-11-2021 20:39:19: TRACE: [JAXRSCommonClient] setTestProperties 04-11-2021 20:39:19: TRACE: [JAXRSCommonClient] EXECUTING 04-11-2021 20:39:19: [Request] Dispatching request: 'POST http://localhost:52663/jaxrs_spec_provider_standardhaspriority_web/resource/map' to target server at 'localhost:52663' 04-11-2021 20:39:19: ############################### 04-11-2021 20:39:19: [Request] Adding entity: {map=[map]} 04-11-2021 20:39:19: TRACE: [WIRE] - >> POST http://localhost:52663/jaxrs_spec_provider_standardhaspriority_web/resource/map 04-11-2021 20:39:19: TRACE: [WIRE] - >> Accept:application/x-www-form-urlencoded, Content-Type:application/x-www-form-urlencoded 04-11-2021 20:39:19: TRACE: [WIRE] - >> {map=[map]} 11-Apr-2021 20:39:19.551 SEVERE [http-nio-52663-exec-5] org.apache.cxf.jaxrs.utils.JAXRSUtils.logMessageHandlerProblem Problem with writing the data, class jakarta.ws.rs.core.MultivaluedHashMap, ContentType: application/x-www-form-urlencoded 11-Apr-2021 20:39:19.555 WARNING [http-nio-52663-exec-5] org.apache.cxf.phase.PhaseInterceptorChain.doDefaultLogging Interceptor for {http://standardhaspriority.provider.spec.jaxrs.tests.ts.sun.com/}Resource has thrown exception, unwinding now org.apache.cxf.interceptor.Fault at org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.handleWriteException(JAXRSOutInterceptor.java:399) at org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.serializeMessage(JAXRSOutInterceptor.java:275) at org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.processResponse(JAXRSOutInterceptor.java:122) at org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.handleMessage(JAXRSOutInterceptor.java:84) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) at org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:90) 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:265) at org.apache.openejb.server.cxf.rs.CxfRsHttpListener.doInvoke(CxfRsHttpListener.java:271) at org.apache.tomee.webservices.CXFJAXRSFilter.doFilter(CXFJAXRSFilter.java:99) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543) at org.apache.openejb.cts.TransactionalWorkaroundLeakGuardValve.invoke(TransactionalWorkaroundLeakGuardValve.java:39) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) at org.apache.tomee.catalina.OpenEJBSecurityListener$RequestCapturer.invoke(OpenEJBSecurityListener.java:97) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:353) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:870) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1696) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.NullPointerException at java.net.URLEncoder.encode(URLEncoder.java:204) at org.apache.cxf.common.util.UrlUtils.urlEncode(UrlUtils.java:53) at org.apache.cxf.jaxrs.utils.HttpUtils.urlEncode(HttpUtils.java:160) at org.apache.cxf.jaxrs.utils.FormUtils.writeMapToOutputStream(FormUtils.java:211) at org.apache.cxf.jaxrs.provider.FormEncodingProvider.writeTo(FormEncodingProvider.java:224) at org.apache.cxf.jaxrs.utils.JAXRSUtils.writeMessageBody(JAXRSUtils.java:1478) at org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.serializeMessage(JAXRSOutInterceptor.java:249) ... 34 more 04-11-2021 20:39:19: TRACE: [WIRE] - << 500 INTERNAL_SERVER_ERROR 04-11-2021 20:39:19: TRACE: [WIRE] - << connection: close 04-11-2021 20:39:19: TRACE: [WIRE] - << Content-Length: 196 04-11-2021 20:39:19: TRACE: [WIRE] - << content-type: application/x-www-form-urlencoded 04-11-2021 20:39:19: TRACE: [WIRE] - << Date: Mon, 12 Apr 2021 03:39:19 GMT 04-11-2021 20:39:19: TRACE: [WIRE] - << <ns1:XMLFault xmlns:ns1="http://cxf.apache.org/bindings/xformat"><ns1:faultstring xmlns:ns1="http://cxf.apache.org/bindings/xformat">java.lang.NullPointerException</ns1:faultstring></ns1:XMLFault> 04-11-2021 20:39:19: ERROR: [WebValidatorBase] Unexpected Status Code recieved from server. Expected '200' received '500' 04-11-2021 20:39:19: ERROR: Test case throws exception: [JAXRSCommonClient] null failed! Check output for cause of failure. 04-11-2021 20:39:19: ERROR: Exception at: 04-11-2021 20:39:19: ERROR: com.sun.ts.tests.common.webclient.TestFailureException: Test FAILED! at com.sun.ts.tests.jaxrs.common.client.JaxrsWebTestCase.execute(JaxrsWebTestCase.java:219) at com.sun.ts.tests.jaxrs.common.client.JaxrsCommonClient.invoke(JaxrsCommonClient.java:210) at com.sun.ts.tests.jaxrs.spec.provider.standardhaspriority.JAXRSClient.setPropertyAndInvoke(JAXRSClient.java:53) at com.sun.ts.tests.jaxrs.spec.provider.standardhaspriority.JAXRSClient.readWriteMapProviderTest(JAXRSClient.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.sun.ts.lib.harness.EETest.run(EETest.java:596) at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:115) at com.sun.ts.tests.common.vehicle.EmptyVehicleRunner.run(EmptyVehicleRunner.java:41) at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:105) at com.sun.ts.lib.harness.EETest.getPropsReady(EETest.java:486) at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:209) at com.sun.ts.lib.harness.EETest.run(EETest.java:285) at com.sun.ts.tests.common.vehicle.VehicleClient.main(VehicleClient.java:37) 04-11-2021 20:39:19: [JAXRSCommonClient] Test cleanup OK 04-11-2021 20:39:20: TRACE: SLEPT FOR: 1000 STATUS:Failed.Test case throws exception: [JAXRSCommonClient] null failed! Check output for cause of failure. Failed. Test case throws exception: [JAXRSCommonClient] null failed! Check output for cause of failure. ******************************************************************************** Finished Test: FAILED........com/sun/ts/tests/jaxrs/spec/provider/standardhaspriority/JAXRSClient.java#readWriteMapProviderTest_from_standalone
For tips on debugging/fixing tests, see https://github.com/apache/tomee-tck/blob/master/DEBUGGING.adoc
If you have any thoughts about what the test is expecting/testing, please add them to the comments.