cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Naresh Tallapelli <naresh.tallape...@gmail.com>
Subject Out of memory error by jetty logs.
Date Fri, 06 Aug 2010 12:03:58 GMT
Hi All,

I am using cxf-2.2.7 version. When i send a request from client to server i
am getting the following exception on the server after the response is sent
to the client. After that subsequent requests are not getting processed by
the server.

53421 2010-08-06 17:25:29,691 [btpool0-1] ERROR org.mortbay.log  - EXCEPTION

java.lang.OutOfMemoryError: PermGen space
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$000(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at
org.mortbay.jetty.HttpGenerator.completeHeader(HttpGenerator.java:306)
    at
org.mortbay.jetty.HttpConnection.commitResponse(HttpConnection.java:580)
    at
org.mortbay.jetty.HttpConnection$Output.close(HttpConnection.java:889)
    at
org.apache.cxf.transport.http.AbstractHTTPDestination$WrappedOutputStream.close(AbstractHTTPDestination.java:628)
    at
org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:47)
    at
org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:188)
    at
org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
    at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
    at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
    at
org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:76)
    at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
    at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:110)
    at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:312)
    at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:276)
    at
org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)
    at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)
    at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
    at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
    at org.mortbay.jetty.Server.handle(Server.java:324)
    at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
54499 2010-08-06 17:25:30,769 [btpool0-1] ERROR org.mortbay.log  - handle
failed
java.lang.IllegalStateException: last?
    at
org.mortbay.jetty.HttpGenerator.completeHeader(HttpGenerator.java:256)
    at
org.mortbay.jetty.AbstractGenerator.sendError(AbstractGenerator.java:465)
    at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:535)
    at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:730)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
    at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
    at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)

The response size is 2 kb only. I am not sure why this is happened. Please
help me to resolve this issue.

Any help is much appreciated.

Thanks in advance.

--Naresh

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message