首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Exception >

java.lang.OutOfMemoryError,大批量处理数据,web serviecs客户端调用异常!

2014-01-26 
服务端成功发布后,在客户端调用时,出现如下异常:AxisFault faultCode:{http://xml.apache.org/axis/}HTTP f

服务端成功发布后,在客户端调用时,出现如下异常:
  AxisFault faultCode:
  {http://xml.apache.org/axis/}HTTP faultSubcode: faultString: (500)Internal Server Error faultActor: faultNode: faultDetail: {}:return code: 500
  <html><head><title>Apache Tomcat/5.0.27 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>javax.servlet.ServletException: Servlet execution threw an exception
  </pre></p><p><b>root cause</b> <pre>java.lang.OutOfMemoryError
  &lt;/pre&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;note&lt;/b&gt; &lt;u&gt;The full stack trace of the root cause is available in the Apache Tomcat/5.0.27 logs.&lt;/u&gt;&lt;/p&gt;&lt;HR size=&quot;1&quot; noshade=&quot;noshade&quot;&gt;&lt;h3&gt;Apache Tomcat/5.0.27&lt;/h3&gt;&lt;/body&gt;&lt;/html&gt; {http://xml.apache.org/axis/}HttpErrorCode:500(500)Internal Server Error at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:663) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:94) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:147) at org.apache.axis.client.Call.invokeEngine(Call.java:2735) at org.apache.axis.client.Call.invoke(Call.java:2718) at org.apache.axis.client.Call.invoke(Call.java:2394) at org.apache.axis.client.Call.invoke(Call.java:2317) at org.apache.axis.client.Call.invoke(Call.java:1774) at root.business.child.FyChildBOSoapBindingStub.getChildList(FyChildBOSoapBindingStub.java:151) at fydata.fybj.<init>(fybj.java:13) at fydata.fybj.main(fybj.java:16)   
  应该怎么解决这个异常?
 

------解决方法--------------------------------------------------------
就看见一个
  java.lang.OutOfMemoryError
 
  有大数据的运算操作?把虚拟机内存调高些试试看
------解决方法--------------------------------------------------------
几万条数据一次传过去还叫不大呀,web service实际上是用xml文件来传输数据
  你试试把几万条写到一个xml文件 看这文件有多大?!
 
  另外,你看看进程中 虚拟机javaw.exe出异常时用了多大的内存?
 
  要么加虚拟机内存 要么把几万条分页显示

        

热点排行