tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Zowalla (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TOMEE-1823) double johnzon max size (8k) and add a comment in system.properties
Date Fri, 03 Jun 2016 15:46:59 GMT

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

Richard Zowalla commented on TOMEE-1823:
----------------------------------------

The issue, Martin Wiesner, run into was related to strings, which are send from the server
to the client.

We are facing the same issue as he described (via Twitter) but on a string value, which is
send from the client to the server. 
Using TomEE 7.0.0-M3 this is not an issue.

If we change "org.apache.johnzon.max-string-length" to some appropriate value (like 32k),
we are facing an other issue:


{panel}
org.apache.johnzon.mapper.MapperException
                at org.apache.johnzon.mapper.Mapper.mapObject(Mapper.java:613)
                at org.apache.johnzon.mapper.Mapper.readObject(Mapper.java:569)
                at org.apache.johnzon.jaxrs.JohnzonMessageBodyReader.readFrom(JohnzonMessageBodyReader.java:76)
                at org.apache.johnzon.jaxrs.DelegateProvider.readFrom(DelegateProvider.java:51)
                at de.tweetpoint.ws.provider.TweetPointConfigurableJohnzonProvider.readFrom(TweetPointConfigurableJohnzonProvider.java:75)
                at org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBodyReader(JAXRSUtils.java:1342)
                at org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBody(JAXRSUtils.java:1293)
                at org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameter(JAXRSUtils.java:826)
                at org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameters(JAXRSUtils.java:789)
                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:254)
                at org.apache.openejb.server.cxf.rs.CxfRsHttpListener.doInvoke(CxfRsHttpListener.java:245)
                at org.apache.tomee.webservices.CXFJAXRSFilter.doFilter(CXFJAXRSFilter.java:94)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
                at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
                at org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:65)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:108)
                at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
                at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:522)
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
                at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
                at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:1102)
                at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
                at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:788)
                at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1485)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
                at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
                at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ArrayIndexOutOfBoundsException
                at java.lang.System.arraycopy(Native Method)
                at org.apache.johnzon.core.JsonStreamParserImpl.copyCurrentValue(JsonStreamParserImpl.java:165)
                at org.apache.johnzon.core.JsonStreamParserImpl.readNextChar(JsonStreamParserImpl.java:255)
                at org.apache.johnzon.core.JsonStreamParserImpl.readString(JsonStreamParserImpl.java:548)
                at org.apache.johnzon.core.JsonStreamParserImpl.handleQuote(JsonStreamParserImpl.java:638)
                at org.apache.johnzon.core.JsonStreamParserImpl.next(JsonStreamParserImpl.java:393)
                at org.apache.johnzon.core.JsonStreamParserImpl.next(JsonStreamParserImpl.java:353)
                at org.apache.johnzon.core.JsonReaderImpl.parseObject(JsonReaderImpl.java:131)
                at org.apache.johnzon.core.JsonReaderImpl.readValue(JsonReaderImpl.java:56)
                at org.apache.johnzon.mapper.JohnzonReaderHandler.read(JohnzonReaderHandler.java:33)
                at org.apache.johnzon.mapper.ReaderHandler.read(ReaderHandler.java:41)
                at org.apache.johnzon.mapper.Mapper.mapObject(Mapper.java:574)
                ... 40 more
WARNUNG - Exception in handleFault on interceptor org.apache.cxf.jaxrs.interceptor.JAXRSDefaultFaultOutInterceptor@130fdb13
org.apache.cxf.interceptor.Fault
                at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:75)
                at org.apache.cxf.phase.PhaseInterceptorChain.wrapExceptionAsFault(PhaseInterceptorChain.java:366)
                at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:324)
                at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
                at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:254)
                at org.apache.openejb.server.cxf.rs.CxfRsHttpListener.doInvoke(CxfRsHttpListener.java:245)
                at org.apache.tomee.webservices.CXFJAXRSFilter.doFilter(CXFJAXRSFilter.java:94)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
                at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
                at org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:65)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:108)
                at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
                at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:522)
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
                at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
                at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:1102)
                at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
                at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:788)
                at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1485)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
                at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
                at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.johnzon.mapper.MapperException
                at org.apache.johnzon.mapper.Mapper.mapObject(Mapper.java:613)
                at org.apache.johnzon.mapper.Mapper.readObject(Mapper.java:569)
                at org.apache.johnzon.jaxrs.JohnzonMessageBodyReader.readFrom(JohnzonMessageBodyReader.java:76)
                at org.apache.johnzon.jaxrs.DelegateProvider.readFrom(DelegateProvider.java:51)
                at de.tweetpoint.ws.provider.TweetPointConfigurableJohnzonProvider.readFrom(TweetPointConfigurableJohnzonProvider.java:75)
                at org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBodyReader(JAXRSUtils.java:1342)
                at org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBody(JAXRSUtils.java:1293)
                at org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameter(JAXRSUtils.java:826)
                at org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameters(JAXRSUtils.java:789)
                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)
                ... 29 more
Caused by: java.lang.ArrayIndexOutOfBoundsException
                at java.lang.System.arraycopy(Native Method)
                at org.apache.johnzon.core.JsonStreamParserImpl.copyCurrentValue(JsonStreamParserImpl.java:165)
                at org.apache.johnzon.core.JsonStreamParserImpl.readNextChar(JsonStreamParserImpl.java:255)
                at org.apache.johnzon.core.JsonStreamParserImpl.readString(JsonStreamParserImpl.java:548)
                at org.apache.johnzon.core.JsonStreamParserImpl.handleQuote(JsonStreamParserImpl.java:638)
                at org.apache.johnzon.core.JsonStreamParserImpl.next(JsonStreamParserImpl.java:393)
                at org.apache.johnzon.core.JsonStreamParserImpl.next(JsonStreamParserImpl.java:353)
                at org.apache.johnzon.core.JsonReaderImpl.parseObject(JsonReaderImpl.java:131)
                at org.apache.johnzon.core.JsonReaderImpl.readValue(JsonReaderImpl.java:56)
                at org.apache.johnzon.mapper.JohnzonReaderHandler.read(JohnzonReaderHandler.java:33)
                at org.apache.johnzon.mapper.ReaderHandler.read(ReaderHandler.java:41)
                at org.apache.johnzon.mapper.Mapper.mapObject(Mapper.java:574)
                ... 40 more
SCHWERWIEGEND - Error occurred during error handling, give up!
org.apache.cxf.interceptor.Fault
                at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:75)
                at org.apache.cxf.phase.PhaseInterceptorChain.wrapExceptionAsFault(PhaseInterceptorChain.java:366)
                at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:324)
                at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
                at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:254)
                at org.apache.openejb.server.cxf.rs.CxfRsHttpListener.doInvoke(CxfRsHttpListener.java:245)
                at org.apache.tomee.webservices.CXFJAXRSFilter.doFilter(CXFJAXRSFilter.java:94)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
                at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
                at org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:65)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:108)
                at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
                at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:522)
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
                at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
                at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:1102)
                at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
                at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:788)
                at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1485)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
                at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
                at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.johnzon.mapper.MapperException
                at org.apache.johnzon.mapper.Mapper.mapObject(Mapper.java:613)
                at org.apache.johnzon.mapper.Mapper.readObject(Mapper.java:569)
                at org.apache.johnzon.jaxrs.JohnzonMessageBodyReader.readFrom(JohnzonMessageBodyReader.java:76)
                at org.apache.johnzon.jaxrs.DelegateProvider.readFrom(DelegateProvider.java:51)
                at de.tweetpoint.ws.provider.TweetPointConfigurableJohnzonProvider.readFrom(TweetPointConfigurableJohnzonProvider.java:75)
                at org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBodyReader(JAXRSUtils.java:1342)
                at org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBody(JAXRSUtils.java:1293)
                at org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameter(JAXRSUtils.java:826)
                at org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameters(JAXRSUtils.java:789)
                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)
                ... 29 more
Caused by: java.lang.ArrayIndexOutOfBoundsException
                at java.lang.System.arraycopy(Native Method)
                at org.apache.johnzon.core.JsonStreamParserImpl.copyCurrentValue(JsonStreamParserImpl.java:165)
                at org.apache.johnzon.core.JsonStreamParserImpl.readNextChar(JsonStreamParserImpl.java:255)
                at org.apache.johnzon.core.JsonStreamParserImpl.readString(JsonStreamParserImpl.java:548)
                at org.apache.johnzon.core.JsonStreamParserImpl.handleQuote(JsonStreamParserImpl.java:638)
                at org.apache.johnzon.core.JsonStreamParserImpl.next(JsonStreamParserImpl.java:393)
                at org.apache.johnzon.core.JsonStreamParserImpl.next(JsonStreamParserImpl.java:353)
                at org.apache.johnzon.core.JsonReaderImpl.parseObject(JsonReaderImpl.java:131)
                at org.apache.johnzon.core.JsonReaderImpl.readValue(JsonReaderImpl.java:56)
                at org.apache.johnzon.mapper.JohnzonReaderHandler.read(JohnzonReaderHandler.java:33)
                at org.apache.johnzon.mapper.ReaderHandler.read(ReaderHandler.java:41)
                at org.apache.johnzon.mapper.Mapper.mapObject(Mapper.java:574)
                ... 40 more
{panel}


> double johnzon max size (8k) and add a comment in system.properties
> -------------------------------------------------------------------
>
>                 Key: TOMEE-1823
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1823
>             Project: TomEE
>          Issue Type: Improvement
>    Affects Versions: 7.0.0
>            Reporter: Romain Manni-Bucau
>            Assignee: Romain Manni-Bucau
>             Fix For: 7.0.1
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message