soap response code 200 ,but OutOfMemoryError: Java heap space

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

soap response code 200 ,but OutOfMemoryError: Java heap space

hutao1
This post was updated on .
ID: 1
Address: http://172.20.35.232:5220/cea-ws/services/AuthenticateMemberService
Encoding: UTF-8
Content-Type: text/xml
Headers: {Accept=[*/*], breadcrumbId=[ID-hut-54174-1379057586116-0-1], Host=[172.21.127.200:10001], SOAPAction=[""], User-Agent=[Apache CXF 2.6.9]}
Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><wsu:Timestamp wsu:Id="TS-2"><wsu:Created>2013-09-13T07:33:11.082Z</wsu:Created><wsu:Expires>2013-09-13T07:38:11.082Z</wsu:Expires></wsu:Timestamp><wsse:UsernameToken wsu:Id="UsernameToken-1"><wsse:Username>iloyal-web</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">cCs8NR+Gt63QmbybwGBVNYW8n6E=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">qjh6YTiNqMZGueL0Mi7mzA==</wsse:Nonce><wsu:Created>2013-09-13T07:33:11.080Z</wsu:Created></wsse:UsernameToken></wsse:Security></soap:Header><soap:Body><ns2:AuthenticateMemberRequest xmlns:ns2="http://www.ibsplc.com/iloyal/member/authenticatemember/type/"><companyCode>MU</companyCode><programCode>CEAEM</programCode><membershipNumber>600260209668</membershipNumber><pin>12345678</pin><txnHeader><transactionID>ABF3DF2C805EEE88ABC39E4747832EEC</transactionID><userName>ADMIN</userName><timeStamp>2013-09-13T03:33:10.529+08:00</timeStamp></txnHeader></ns2:AuthenticateMemberRequest></soap:Body></soap:Envelope>
--------------------------------------
2013-09-13 15:33:11,328 [ult-workqueue-1] INFO  AuthenticateMember             - Inbound Message
----------------------------
ID: 1
Response-Code: 200
Encoding: UTF-8
Content-Type: text/xml; charset=UTF-8
Headers: {connection=[Keep-Alive], content-type=[text/xml; charset=UTF-8], Date=[Fri, 13 Sep 2013 07:33:15 GMT], Keep-Alive=[timeout=5, max=95], Set-Cookie=[FFP_BALANCER_ROUTEID=.5020; path=/], transfer-encoding=[chunked], X-Powered-By=[Servlet/2.5 JSP/2.1]}
Payload: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soapenv:mustUnderstand="1"><wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-22600178"><wsu:Created>2013-09-13T07:33:15.441Z</wsu:Created><wsu:Expires>2013-09-13T07:34:55.441Z</wsu:Expires></wsu:Timestamp><wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="UsernameToken-17925524"><wsse:Username>iloyal-web</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">4IC60j2QIcL9X30bo6nEErzbIX8=</wsse:Password><wsse:Nonce>AeMC7IfTaVL1zsU4zqZKAQ==</wsse:Nonce><wsu:Created>2013-09-13T07:33:15.440Z</wsu:Created></wsse:UsernameToken></wsse:Security></soapenv:Header><soapenv:Body><ns2:AuthenticateMemberResponse xmlns:ns2="http://www.ibsplc.com/iloyal/member/authenticatemember/type/"><status>true</status><resultType>S</resultType><resultMessage>SUCCESS</resultMessage><passwordType>T</passwordType><membershipNumber>600260209668</membershipNumber><lastLoginTime>13-Sep-2013 15:31:28</lastLoginTime><txnHeader><transactionID>21800EB5DA08F6870801F1755DEFDC7A</transactionID><userName>ADMIN</userName><timeStamp>2013-09-12T19:33:10.529Z</timeStamp></txnHeader></ns2:AuthenticateMemberResponse></soapenv:Body></soapenv:Envelope>
--------------------------------------
Exception in thread "qtp28960764-19" java.lang.OutOfMemoryError: Java heap space
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.addConditionWaiter(AbstractQueuedSynchronizer.java:1801)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2016)
        at org.eclipse.jetty.util.BlockingArrayQueue.poll(BlockingArrayQueue.java:337)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.idleJobPoll(QueuedThreadPool.java:516)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.access$600(QueuedThreadPool.java:39)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:562)
        at java.lang.Thread.run(Thread.java:619)
Exception in thread "qtp28960764-17" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Camel (context1) thread #0 - ManagementLoadTask" java.lang.OutOfMemoryError: Java heap space
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.addConditionWaiter(AbstractQueuedSynchronizer.java:1801)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1983)
        at java.util.concurrent.DelayQueue.take(DelayQueue.java:160)
        at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:583)
        at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:576)
        at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)
2013-09-13 15:34:35,606 [qtp28960764-20 ] INFO  AsyncHttpConnection            - EndPoint making no progress: 100 SCEP@29354882java.nio.channels.SocketChannel[connected local=/172.21.127.200:10001 remote=/172.21.127.200:54190][o=true d=true,io=1,w=true,rb=false,wb=false]
2013-09-13 15:34:35,611 [qtp28960764-20 ] WARN  AsyncHttpConnection            - Closing EndPoint making no progress: 200 SCEP@29354882java.nio.channels.SocketChannel[connected local=/172.21.127.200:10001 remote=/172.21.127.200:54190][o=true d=true,io=1,w=true,rb=false,wb=false]



------------------------------------------------


camel-config.xml:


<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:camel="http://camel.apache.org/schema/spring"
       xmlns:cxf="http://camel.apache.org/schema/cxf"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:jaxws="http://cxf.apache.org/jaxws"
       xmlns:xs="http://www.w3.org/2001/XMLSchema"
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
       http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
       http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
       http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd">

 <import resource="classpath:META-INF/cxf/cxf.xml" /> 

        <bean id="logIn" class="org.apache.cxf.interceptor.LoggingInInterceptor" />
        <bean id="logOut" class="org.apache.cxf.interceptor.LoggingOutInterceptor" />
        <bean id="saajOut" class="org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor" />
        <bean id="saajIn" class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor" />
        <bean id="wss4jOut" class="org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor">
                <constructor-arg>
                        <map>
                                <entry key="action" value="UsernameToken Timestamp" />
                                <entry key="mustUnderstand" value="0" />
                                <entry key="passwordType" value="PasswordDigest" />
                                <entry key="user" value="iloyal-web" />
                                <entry key="passwordCallbackRef">
                                        <ref bean="clientPasswordCallback" />
                                </entry>
                        </map>
                </constructor-arg>
        </bean>
        <bean id="wss4jIn" class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
                <constructor-arg>
                        <map>
                                <entry key="action" value="UsernameToken Timestamp" />
                                <entry key="mustUnderstand" value="0" />
                                <entry key="passwordType" value="PasswordDigest" />
                                <entry key="user" value="iloyal-web" />
                                <entry key="passwordCallbackRef">
                                        <ref bean="clientPasswordCallback" />
                                </entry>
                        </map>
                </constructor-arg>
        </bean>
        <bean id="clientPasswordCallback" class="com.ibsplc.iloyal.ClientPasswordCallback">
            <property name="passwords">
                    <map>
                                        <entry key="iloyal-web" value="iloyal123" />
                                        <entry key="travel-sky" value="******" />
                        </map>
            </property>
        </bean>
 
  <bean id="enrichBean" class="org.apache.camel.example.cxf.proxy.EnrichBean"/>

 
   <cxf:cxfEndpoint id="reportAuthIncident"
                   address="http://172.21.127.200:10001/authenticateMember"
                   endpointName="s:AuthenticateMember"
                   serviceName="s:AuthenticateMemberService"
                   wsdlURL="http://172.20.35.232:5220/cea-ws/services/AuthenticateMemberService?wsdl"
                   xmlns:s="http://www.ibsplc.com/iloyal/member/authenticatemember/wsdl" >
                     <cxf:properties> 
                                            <entry key="dataFormat" value="CXF_MESSAGE" /> 
                                     </cxf:properties> 
   </cxf:cxfEndpoint> 
   <cxf:cxfEndpoint id="realreportAuthIncident"  
                   address="http://172.20.35.232:5220/cea-ws/services/AuthenticateMemberService" 
                   wsdlURL="http://172.20.35.232:5220/cea-ws/services/AuthenticateMemberService?wsdl">
                       <cxf:properties> 
                                            <entry key="dataFormat" value="CXF_MESSAGE" /> 
                                       </cxf:properties> 
                   <cxf:inInterceptors>
                                                <ref bean="logIn" />
                                        </cxf:inInterceptors>
                                        <cxf:outInterceptors>
                                                <ref bean="saajOut" />
                                                <ref bean="wss4jOut" />
                                                <ref bean="logOut" />
                                        </cxf:outInterceptors>
                                       
   </cxf:cxfEndpoint> 

 
  <camel:camelContext xmlns="http://camel.apache.org/schema/spring" id="context1">
        <camel:endpoint id="callAuthRealWebService" uri="http://172.20.35.232:5220/cea-ws/services/AuthenticateMemberService?throwExceptionOnFailure=false" />
    <camel:route trace="true">
     
      <camel:from uri="cxf:bean:reportAuthIncident"/>
     
     
      <camel:to uri="cxf:bean:realreportAuthIncident" />
     
    </camel:route>
  </camel:camelContext>
</beans>



why? how to do?
Reply | Threaded
Open this post in threaded view
|

Re: soap response code 200 ,but OutOfMemoryError: Java heap space

Charles Moulliard
We are always happy to read code + stack trace but when there is no question or problem described, this message looks like a phantom/ghost message
Apache Committer / Sr. Pr. Consultant at FuseSource.com
Email: [hidden email]
Twitter : @cmoulliard, @fusenews
Blog : http://cmoulliard.blogspot.com
Reply | Threaded
Open this post in threaded view
|

Re: soap response code 200 ,but OutOfMemoryError: Java heap space

hutao1
By apache camel cxf proxy can normally send soap request, response, but converted into a POJO processing, memory overflow error occurs´╝îerrors as above.