idea 闪退,项目重启时stream closed问题的解决方案

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/hacker_Lees/article/details/79579559

曾多次遇到这个问题,自己摸索出两个比较快捷的方法,记录一下,分享给大家。

方案一:
很简单,重启电脑就是了。

方案二:
打开【任务管理器】==》【详细信息】,找到java.exe进程,关闭此进程,重启idea即可。

想了想:接着把闪退的原因及解决方案一起记录下来吧

认真思索后,发现是IDEA的运行内存大小的问题,就做了如下修改:

Intellij IDEA 2017目录结构:

这里写图片描述

对idea.exe.vmoptions作如下修改:

这里写图片描述

对idea64.exe.vmoptions作如下修改:

这里写图片描述

如此便可以正常运行。

如果IDEA不再出现闪退,但是运行缓慢的话,电脑内存允许的话,可以把上述两个文件中的-Xms128m和-Xmx1024m修改

为 ——> -Xms256m和-Xmx2048m

——————————————————————————————————————————————————

当然,上述情况是针对你的内存充足的情况,如果你的内存比较小,把最大运行内存设置成2048m也会造成IDEA闪退,所以,可以根据自己内存的情况进行修改。其次,为了让IDEA启动速度快一些,可以调整-Xms256m为-Xms512m。

展开阅读全文

java.io.IOException: Stream closed

03-04

HTTP Status 500 - Stream closedrnrnrntype Exception reportrnrnmessage Stream closedrnrndescription The server encountered an internal error that prevented it from fulfilling this request.rnrnexception rnjava.io.IOException: Stream closedrn org.apache.jasper.runtime.JspWriterImpl.ensureOpen(JspWriterImpl.java:210)rn org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:115)rn org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:177)rn org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:942)rn org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:656)rn org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:123)rn org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)rn com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:362)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:266)rn cn.labsoft.labos.framework.common.interceptor.IsLoginInterceptorNew.intercept(Unknown Source)rn cn.labsoft.labos.framework.common.interceptor.IsLoginInterceptorNew$$FastClassByCGLIB$$d5f81fd5.invoke()rn net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)rn org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)rn org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)rn org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:50)rn org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)rn org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor.invoke(ThrowsAdviceInterceptor.java:126)rn org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)rn org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)rn org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)rn org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)rn cn.labsoft.labos.framework.common.interceptor.IsLoginInterceptorNew$$EnhancerByCGLIB$$bb81b672.intercept()rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488)rn org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)rn cn.labsoft.labos.framework.common.filter.HttpSessionContextDataFilter.doFilter(Unknown Source)rn org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)rn org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rnrnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/7.0.59 logs.rn 论坛

cxf 调用接口时报stream is closed

04-03

在用cxf的方式调用另一系统的接口时报下面的错,而且调其他系统的接口的时候也是报同样的错,所以应该是这个系统的问题,而且这个系统的测试环境也是正常的,所以感觉应该跟程序没有关系,而是环境的问题,请各们大神帮忙看看啊,多谢多谢啦!具体报错内容如下:rn[03 Apr 2014 11:39:32,029] [INFO ] [http-0.0.0.0-8180-1] [com.online.ris.client.OutWebServiceClient.getCustomerPolicyList(OutWebServiceClient.java:57)] [com.online.ris.client.OutWebServiceClient] [getCustomerPolicyList RuntimeException :]rnorg.apache.cxf.interceptor.Fault: Could not send Message.rn at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:131)rn at $Proxy230.getCustomerPolicyList(Unknown Source)rn at com.online.ris.client.OutWebServiceClient.getCustomerPolicyList(OutWebServiceClient.java:54)rn at com.online.action.UserAction.mainPage(UserAction.java:1505)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274)rn at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:194)rn at frame.action.BaseAction.execute(BaseAction.java:44)rn at com.online.action.UserAction.execute(UserAction.java:121)rn at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at frame.filter.KeyWordFilter.doFilter(KeyWordFilter.java:32)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)rn at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)rn at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)rn at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.internalProcess(ActiveRequestResponseCacheValve.java:74)rn at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:47)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:599)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)rn at java.lang.Thread.run(Thread.java:662)rnCaused by: java.io.IOException: IOException invoking http://ris/ris/services/outerWebService: Stream is closedrn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1385)rn at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1370)rn at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)rn at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:614)rn at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)rn at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)rn at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:484)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:414)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:317)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:269)rn at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)rn at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)rn ... 45 morern 论坛

java多线程报错 java.io.IOException: Stream closed

08-22

虽然程序可以正确的讲读取到的信息输出到文本文件 但是报错:java.io.IOException: Stream closed n不知道是什么原因 菜鸟请各位帮忙看一下n代码如下:npackage test;nnimport java.io.FileReader;nimport java.io.FileWriter;nimport java.io.IOException;nimport java.util.Scanner;nimport java.util.concurrent.ExecutorService;nimport java.util.concurrent.Executors;nnnpublic class Test implements Runnablen String lineString;n public Test(String line)n this.lineString = line;n n static FileWriter writer;n static FileReader reader;n public static void main(String[] args) throws IOException n try n reader = new FileReader("/Users/tcredit-0002/Desktop/car.txt");n Scanner scanner = new Scanner(reader);n String lineString;n writer = new FileWriter("/Users/tcredit-0002/Desktop/hebei.txt");n // TODO Auto-generated method stubn ExecutorService pool = Executors.newFixedThreadPool(3);n while(scanner.hasNext())n lineString = scanner.nextLine();n pool.execute(new Test(lineString));n n scanner.close();n writer.close();n catch (Exception e) n // TODO Auto-generated catch blockn e.printStackTrace();n n n n nn @Overriden public void run() n try n writeResult(lineString);n catch (InterruptedException e) n // TODO Auto-generated catch blockn e.printStackTrace();n n n n public static synchronized void writeResult(String lineString) throws InterruptedExceptionn try n writer.write(lineString+"\r\n");n writer.flush();n System.out.println(lineString);n catch (IOException e) n // TODO Auto-generated catch blockn e.printStackTrace();n n n n nnn 问答

axis客户端出现.ConfigurationException: java.io.IOException: Stream closed

03-03

使用axis客户端发送xml消息,出现org.apache.axis.ConfigurationException: java.io.IOException: Stream closed.rn代码如下:rnrnHttpUrlWebClient.sendMobilMessage方法rn[code=java]rnpublic String sendMobilMessage(List flagList)rn rn if(!isSendMessage(flagList))rn return null;rn rn String sentSOAPMsg = null;rn try rn String xmlInfo = messageServiceInfo.getXmlInfo();rn xmlInfo = xmlInfo.replace("#1", "one");rn String flag = System.currentTimeMillis()+"";rn flag = flag.substring(flag.length()-8);rn xmlInfo = xmlInfo.replace("#2", flag);rn xmlInfo = xmlInfo.replace("#3", "调用:["+httpUrlStatusInfo.getUrl()+"]异常!");rn logger.warn("服务调用异常信息:"+xmlInfo);rn logger.warn("开始调用短信服务进行通知.... ");rn InnerAdapterImpl innerAdapterImpl = SmsService.getInnerAdapterImpl(messageServiceInfo);rn sentSOAPMsg = innerAdapterImpl.process("SMS_SEND_MESSAGE_REMEDY", "POMS", xmlInfo);rn logger.warn("短信服务调用结束:"+sentSOAPMsg);rn return sentSOAPMsg;rn catch (Exception e) rn logger.error("短信服务发送异常:"+e.getMessage());rn e.printStackTrace();rn rn return null;rn rn rn[/code]rnrn此处为axis生成的代码rn[code=java]rn/**rn * InnerAdapterImpl.javarn *rn * This file was auto-generated from WSDLrn * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.rn */rnrnrnrnpublic interface InnerAdapterImpl extends java.rmi.Remote rn public java.lang.String process(java.lang.String operation, java.lang.String systemName, java.lang.String xmlData) throws java.rmi.RemoteException;rnrn[/code]rnrnrnSoapUtil类的相关代码rn[code=java]rnpublic class SoapUtil rn rn public static Call addSoapHandle(Call call)rn String sid = UUID.randomUUID().toString();rn SoapRepHandle rep = new SoapRepHandle(sid);rn SoapReqHandle req = new SoapReqHandle(sid , call.getTargetEndpointAddress());rn call.setClientHandlers(req, rep);rn //System.out.println("已添加handle");rn return call;rn rn[/code]rnrnrn报错信息如下:rn[code=text]rn2018-03-03 18:00:47 WARN HttpUrlWebClient:188 [pool-6-thread-6] - 服务调用异常信息:1371902928171247544调用:[http://192.168.4.25:8063/addrServer]异常!rn2018-03-03 18:00:47 WARN HttpUrlWebClient:189 [pool-6-thread-6] - 开始调用短信服务进行通知.... rn2018-03-03 18:00:47 FATAL InternalException:88 [pool-6-thread-6] - Exception:rnorg.apache.axis.ConfigurationException: java.io.IOException: Stream closedrnjava.io.IOException: Stream closedrn at java.util.zip.InflaterInputStream.ensureOpen(InflaterInputStream.java:67)rn at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:121)rn at java.io.FilterInputStream.read(FilterInputStream.java:83)rn at com.sun.org.apache.xerces.internal.impl.XMLEntityManager$RewindableInputStream.read(XMLEntityManager.java:2889)rn at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:670)rn at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:189)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:812)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)rn at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)rn at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)rn at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:347)rn at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)rn at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:388)rn at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)rn at org.apache.axis.AxisEngine.init(AxisEngine.java:172)rn at org.apache.axis.AxisEngine.(AxisEngine.java:156)rn at org.apache.axis.client.AxisClient.(AxisClient.java:52)rn at org.apache.axis.client.Service.getAxisClient(Service.java:104)rn at org.apache.axis.client.Call.setSOAPService(Call.java:2910)rn at org.apache.axis.client.Call.setClientHandlers(Call.java:2924)rn at com.gpdi.common.util.SoapUtil.addSoapHandle(SoapUtil.java:34)rn at com.gpdi.gx.adapter.InnerAdapterSoapBindingStub.createCall(InnerAdapterSoapBindingStub.java:113)rn at com.gpdi.gx.adapter.InnerAdapterSoapBindingStub.process(InnerAdapterSoapBindingStub.java:127)rn at com.gpdi.gx.HttpUrlWebClient.sendMobilMessage(HttpUrlWebClient.java:191)rn at com.gpdi.gx.HttpUrlWebClient.check(HttpUrlWebClient.java:48)rn at com.gpdi.gx.HttpUrlStatusMonitor$1.run(HttpUrlStatusMonitor.java:83)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rnrnorg.apache.axis.ConfigurationException: java.io.IOException: Stream closedrnjava.io.IOException: Stream closedrn at java.util.zip.InflaterInputStream.ensureOpen(InflaterInputStream.java:67)rn at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:121)rn at java.io.FilterInputStream.read(FilterInputStream.java:83)rn at com.sun.org.apache.xerces.internal.impl.XMLEntityManager$RewindableInputStream.read(XMLEntityManager.java:2889)rn at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:670)rn at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:189)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:812)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)rn at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)rn at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)rn at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:347)rn at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)rn at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:388)rn at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)rn at org.apache.axis.AxisEngine.init(AxisEngine.java:172)rn at org.apache.axis.AxisEngine.(AxisEngine.java:156)rn at org.apache.axis.client.AxisClient.(AxisClient.java:52)rn at org.apache.axis.client.Service.getAxisClient(Service.java:104)rn at org.apache.axis.client.Call.setSOAPService(Call.java:2910)rn at org.apache.axis.client.Call.setClientHandlers(Call.java:2924)rn at com.gpdi.common.util.SoapUtil.addSoapHandle(SoapUtil.java:34)rn at com.gpdi.gx.adapter.InnerAdapterSoapBindingStub.createCall(InnerAdapterSoapBindingStub.java:113)rn at com.gpdi.gx.adapter.InnerAdapterSoapBindingStub.process(InnerAdapterSoapBindingStub.java:127)rn at com.gpdi.gx.HttpUrlWebClient.sendMobilMessage(HttpUrlWebClient.java:191)rn at com.gpdi.gx.HttpUrlWebClient.check(HttpUrlWebClient.java:48)rn at com.gpdi.gx.HttpUrlStatusMonitor$1.run(HttpUrlStatusMonitor.java:83)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rnrn at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:188)rn at org.apache.axis.AxisEngine.init(AxisEngine.java:172)rn at org.apache.axis.AxisEngine.(AxisEngine.java:156)rn at org.apache.axis.client.AxisClient.(AxisClient.java:52)rn at org.apache.axis.client.Service.getAxisClient(Service.java:104)rn at org.apache.axis.client.Call.setSOAPService(Call.java:2910)rn at org.apache.axis.client.Call.setClientHandlers(Call.java:2924)rn at com.gpdi.common.util.SoapUtil.addSoapHandle(SoapUtil.java:34)rn at com.gpdi.gx.adapter.InnerAdapterSoapBindingStub.createCall(InnerAdapterSoapBindingStub.java:113)rn at com.gpdi.gx.adapter.InnerAdapterSoapBindingStub.process(InnerAdapterSoapBindingStub.java:127)rn at com.gpdi.gx.HttpUrlWebClient.sendMobilMessage(HttpUrlWebClient.java:191)rn at com.gpdi.gx.HttpUrlWebClient.check(HttpUrlWebClient.java:48)rn at com.gpdi.gx.HttpUrlStatusMonitor$1.run(HttpUrlStatusMonitor.java:83)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rnrn at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:188)rn at org.apache.axis.AxisEngine.init(AxisEngine.java:172)rn at org.apache.axis.AxisEngine.(AxisEngine.java:156)rn at org.apache.axis.client.AxisClient.(AxisClient.java:52)rn at org.apache.axis.client.Service.getAxisClient(Service.java:104)rn at org.apache.axis.client.Call.setSOAPService(Call.java:2910)rn at org.apache.axis.client.Call.setClientHandlers(Call.java:2924)rn at com.gpdi.common.util.SoapUtil.addSoapHandle(SoapUtil.java:34)rn at com.gpdi.gx.adapter.InnerAdapterSoapBindingStub.createCall(InnerAdapterSoapBindingStub.java:113)rn at com.gpdi.gx.adapter.InnerAdapterSoapBindingStub.process(InnerAdapterSoapBindingStub.java:127)rn at com.gpdi.gx.HttpUrlWebClient.sendMobilMessage(HttpUrlWebClient.java:191)rn at com.gpdi.gx.HttpUrlWebClient.check(HttpUrlWebClient.java:48)rn at com.gpdi.gx.HttpUrlStatusMonitor$1.run(HttpUrlStatusMonitor.java:83)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rn2018-03-03 18:00:47 ERROR HttpUrlWebClient:195 [pool-6-thread-6] - 短信服务发送异常:Failure trying to get the Call object; nested exception is: rn org.apache.axis.InternalException: org.apache.axis.ConfigurationException: java.io.IOException: Stream closedrnjava.io.IOException: Stream closedrn[/code]rnrn貌似并不是自己编写的代码方面的问题,google百度过,相关的问答不多,有说多线程运行导致的,最接近的就是有个问答用cxf客户端也出现了类似我这个问题,链接如下:http://bbs.csdn.net/topics/390750221 但我用的不是cxf。请问各位大神有否遇上过类似的问题,解决方法是怎样的?在此先行感谢。 论坛

没有更多推荐了,返回首页