Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-3140 Jakarta EE 9.1 TCK Failures
  3. TOMEE-3178

jaxrs.spec.filter.interceptor fileReaderNoInterceptorTest

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 9.0.0-M7
    • 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#fileReaderNoInterceptorTest_from_standalone
      

      At the time this issue was filed, the test failed with the following in target/logs/javatest.log

      		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: 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
      11-Apr-2021 20:34:10.930 SEVERE [http-nio-52059-exec-5] org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage An unexpected error occurred during error handling. No further error processing will occur.
      	org.apache.cxf.interceptor.Fault: 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.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:75)
      		at org.apache.cxf.phase.PhaseInterceptorChain.wrapExceptionAsFault(PhaseInterceptorChain.java:374)
      		at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:332)
      		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: 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:34:11:  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#fileReaderNoInterceptorTest_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.

      Attachments

        Activity

          People

            dblevins David Blevins
            dblevins David Blevins
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: