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.filter.interceptor.JAXRSClient#fileReaderContainerInterceptorTest_from_standalone
At the time this issue was filed, the test failed with the following in target/logs/javatest.log
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: jakarta.json.stream.JsonParsingException: Unexpected character '<' (Codepoint: 60) on [lineNumber=1, columnNumber=2, streamOffset=1]. Reason is [[Expected structural character or digit or 't' or 'n' or 'f' or '-']] at org.apache.johnzon.core.JsonStreamParserImpl.uexc(JsonStreamParserImpl.java:1034) at org.apache.johnzon.core.JsonStreamParserImpl.uexc(JsonStreamParserImpl.java:1040) at org.apache.johnzon.core.JsonStreamParserImpl.defaultHandling(JsonStreamParserImpl.java:482) at org.apache.johnzon.core.JsonStreamParserImpl.internalNext(JsonStreamParserImpl.java:473) at org.apache.johnzon.core.JohnzonJsonParserImpl.next(JohnzonJsonParserImpl.java:50) at org.apache.johnzon.core.JsonReaderImpl.readValue(JsonReaderImpl.java:83) at org.apache.johnzon.mapper.MappingParserImpl.readObject(MappingParserImpl.java:132) at org.apache.johnzon.mapper.Mapper.mapObject(Mapper.java:398) at org.apache.johnzon.mapper.Mapper.readObject(Mapper.java:313) at org.apache.johnzon.jsonb.JohnzonJsonb.fromJson(JohnzonJsonb.java:244) at org.apache.johnzon.jaxrs.jsonb.jaxrs.JsonbJaxrsProvider.doRead(JsonbJaxrsProvider.java:325) at org.apache.johnzon.jaxrs.jsonb.jaxrs.JsonbJaxrsProvider.doReadWithNoContentException(JsonbJaxrsProvider.java:330) at org.apache.johnzon.jaxrs.jsonb.jaxrs.JsonbJaxrsProvider.readFrom(JsonbJaxrsProvider.java:271) at org.apache.cxf.jaxrs.impl.ReaderInterceptorMBR.aroundReadFrom(ReaderInterceptorMBR.java:79) at org.apache.cxf.jaxrs.impl.ReaderInterceptorContextImpl.proceed(ReaderInterceptorContextImpl.java:69) at com.sun.ts.tests.jaxrs.spec.filter.interceptor.EntityReaderInterceptor.aroundReadFrom(EntityReaderInterceptor.java:47) at org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBodyReader(JAXRSUtils.java:1430) at org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBody(JAXRSUtils.java:1387) at org.apache.cxf.jaxrs.utils.JAXRSUtils.processRequestBodyParameter(JAXRSUtils.java:901) at org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameters(JAXRSUtils.java:832) at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:215) at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:79) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) ... 29 more 04-11-2021 20:33:32: TRACE: [WIRE] - << 500 INTERNAL_SERVER_ERROR 04-11-2021 20:33:32: TRACE: [WIRE] - << connection: close 04-11-2021 20:33:32: TRACE: [WIRE] - << Content-Language: en 04-11-2021 20:33:32: TRACE: [WIRE] - << Content-Length: 3844 04-11-2021 20:33:32: TRACE: [WIRE] - << content-type: text/html;charset=utf-8 04-11-2021 20:33:32: TRACE: [WIRE] - << Date: Mon, 12 Apr 2021 03:33:31 GMT 04-11-2021 20:33:32: TRACE: [WIRE] - << <!doctype html><html lang="en"><head><title>HTTP Status 500 – Internal Server Error</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 500 – Internal Server Error</h1><hr class="line" /><p><b>Type</b> Exception Report</p><p><b>Message</b> Error processing webservice request</p><p><b>Description</b> The server encountered an unexpected condition that prevented it from fulfilling the request.</p><p><b>Exception</b></p><pre>jakarta.servlet.ServletException: Error processing webservice request 04-11-2021 20:33:32: TRACE: [WIRE] - << org.apache.tomee.webservices.CXFJAXRSFilter.doFilter(CXFJAXRSFilter.java:103) 04-11-2021 20:33:32: TRACE: [WIRE] - << org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) 04-11-2021 20:33:32: TRACE: [WIRE] - << </pre><p><b>Root Cause</b></p><pre>jakarta.json.stream.JsonParsingException: Unexpected character '<' (Codepoint: 60) on [lineNumber=1, columnNumber=2, streamOffset=1]. Reason is [[Expected structural character or digit or 't' or 'n' or 'f' or '-']] 04-11-2021 20:33:32: TRACE: [WIRE] - << org.apache.johnzon.core.JsonStreamParserImpl.uexc(JsonStreamParserImpl.java:1034) 04-11-2021 20:33:32: TRACE: [WIRE] - << org.apache.johnzon.core.JsonStreamParserImpl.uexc(JsonStreamParserImpl.java:1040) 04-11-2021 20:33:32: TRACE: [WIRE] - << org.apache.johnzon.core.JsonStreamParserImpl.defaultHandling(JsonStreamParserImpl.java:482) 04-11-2021 20:33:32: TRACE: [WIRE] - << org.apache.johnzon.core.JsonStreamParserImpl.internalNext(JsonStreamParserImpl.java:473) 04-11-2021 20:33:32: TRACE: [WIRE] - << org.apache.johnzon.core.JohnzonJsonParserImpl.next(JohnzonJsonParserImpl.java:50) 04-11-2021 20:33:32: TRACE: [WIRE] - << org.apache.johnzon.core.JsonReaderImpl.readValue(JsonReaderImpl.java:83) 04-11-2021 20:33:32: TRACE: [WIRE] - << org.apache.johnzon.mapper.MappingParserImpl.readObject(MappingParserImpl.java:132) 04-11-2021 20:33:32: TRACE: [WIRE] - << org.apache.johnzon.mapper.Mapper.mapObject(Mapper.java:398) 04-11-2021 20:33:32: TRACE: [WIRE] - << org.apache.johnzon.mapper.Mapper.readObject(Mapper.java:313) 04-11-2021 20:33:32: TRACE: [WIRE] - << org.apache.johnzon.jsonb.JohnzonJsonb.fromJson(JohnzonJsonb.java:244) 04-11-2021 20:33:32: TRACE: [WIRE] - << org.apache.johnzon.jaxrs.jsonb.jaxrs.JsonbJaxrsProvider.doRead(JsonbJaxrsProvider.java:325) 04-11-2021 20:33:32: TRACE: [WIRE] - << org.apache.johnzon.jaxrs.jsonb.jaxrs.JsonbJaxrsProvider.doReadWithNoContentException(JsonbJaxrsProvider.java:330) 04-11-2021 20:33:32: TRACE: [WIRE] - << org.apache.johnzon.jaxrs.jsonb.jaxrs.JsonbJaxrsProvider.readFrom(JsonbJaxrsProvider.java:271) 04-11-2021 20:33:32: TRACE: [WIRE] - << org.apache.cxf.jaxrs.impl.ReaderInterceptorMBR.aroundReadFrom(ReaderInterceptorMBR.java:79) 04-11-2021 20:33:32: TRACE: [WIRE] - << org.apache.cxf.jaxrs.impl.ReaderInterceptorContextImpl.proceed(ReaderInterceptorContextImpl.java:69) 04-11-2021 20:33:32: TRACE: [WIRE] - << com.sun.ts.tests.jaxrs.spec.filter.interceptor.EntityReaderInterceptor.aroundReadFrom(EntityReaderInterceptor.java:47) 04-11-2021 20:33:32: TRACE: [WIRE] - << org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBodyReader(JAXRSUtils.java:1430) 04-11-2021 20:33:32: TRACE: [WIRE] - << org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBody(JAXRSUtils.java:1387) 04-11-2021 20:33:32: TRACE: [WIRE] - << org.apache.cxf.jaxrs.utils.JAXRSUtils.processRequestBodyParameter(JAXRSUtils.java:901) 04-11-2021 20:33:32: TRACE: [WIRE] - << org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameters(JAXRSUtils.java:832) 04-11-2021 20:33:32: TRACE: [WIRE] - << org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:215) 04-11-2021 20:33:32: TRACE: [WIRE] - << org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:79) 04-11-2021 20:33:32: TRACE: [WIRE] - << org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) 04-11-2021 20:33:32: TRACE: [WIRE] - << org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) 04-11-2021 20:33:32: TRACE: [WIRE] - << org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:265) 04-11-2021 20:33:32: TRACE: [WIRE] - << org.apache.openejb.server.cxf.rs.CxfRsHttpListener.doInvoke(CxfRsHttpListener.java:271) 04-11-2021 20:33:32: TRACE: [WIRE] - << org.apache.tomee.webservices.CXFJAXRSFilter.doFilter(CXFJAXRSFilter.java:99) 04-11-2021 20:33:32: TRACE: [WIRE] - << org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) 04-11-2021 20:33:32: TRACE: [WIRE] - << </pre><p><b>Note</b> The full stack trace of the root cause is available in the server logs.</p><hr class="line" /><h3>Apache Tomcat (TomEE)/10.0.4 (9.0.0-M7-SNAPSHOT)</h3></body></html> 04-11-2021 20:33:32: ERROR: [WebValidatorBase] Unexpected Status Code recieved from server. Expected '200' received '500' 04-11-2021 20:33:32: ERROR: Test case throws exception: [JAXRSCommonClient] null failed! Check output for cause of failure. 04-11-2021 20:33:32: ERROR: Exception at: 04-11-2021 20:33:32: 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.filter.interceptor.JAXRSClient.fileReaderContainerInterceptorTest(JAXRSClient.java:457) 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:33:32: [JAXRSCommonClient] Test cleanup OK 04-11-2021 20:33:33: 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/filter/interceptor/JAXRSClient.java#fileReaderContainerInterceptorTest_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.