cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From las <laska...@gmail.com>
Subject Re: Avoid stacktrace in response when error occurs
Date Mon, 01 Sep 2014 17:04:40 GMT
HTTP Status 500 - org.apache.cxf.interceptor.Fault: Requested array size
exceeds VM limit

type Exception report

message org.apache.cxf.interceptor.Fault: Requested array size exceeds VM
limit

description The server encountered an internal error that prevented it from
fulfilling this request.

exception

java.lang.RuntimeException: org.apache.cxf.interceptor.Fault: Requested
array size exceeds VM limit

org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:116)

org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:371)

org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)

org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:243)

org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)

org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:197)

org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:149)

org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:171)

org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)

org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:211)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:621)

org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
root cause

org.apache.cxf.interceptor.Fault: Requested array size exceeds VM limit

org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:163)

org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:129)
	org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:211)
	org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:99)

org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)

org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96)

org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)

org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)

org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:243)

org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)

org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:197)

org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:149)

org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:171)

org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)

org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:211)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:621)

org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
root cause

java.lang.OutOfMemoryError: Requested array size exceeds VM limit
	ExampleServiceImpl.getServerError(ExampleServiceImpl.java:16)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	java.lang.reflect.Method.invoke(Method.java:606)

org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:181)

org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:97)
	org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:211)
	org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:99)

org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)

org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96)

org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)

org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)

org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:243)

org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)

org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:197)

org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:149)

org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:171)

org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)

org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:211)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:621)

org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)




<jaxrs:providers>
            <bean
class="com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider" />
            <bean class="RuntimeExceptionMapper" />
            <bean class="ClientExceptionMapper" />
            <bean class="ServerExceptionMapper" />
</jaxrs:providers>


Thanks.



--
View this message in context: http://cxf.547215.n5.nabble.com/Avoid-stacktrace-in-response-when-error-occurs-tp5748315p5748348.html
Sent from the cxf-user mailing list archive at Nabble.com.

Mime
View raw message