Resin4.0.37+Spring3.1.1+Hessian4.0.7+Linux+{ThreadLauncher2[ThreadPool[system]]-

问题描述

1、系统在Windows下运行是正常的,接口的调用没有问题;2、现在要迁移到Linux环境,问题就来了,客户端一调用接口服务就会挂掉啊[15-01-0515:54:13.858]{ThreadLauncher2[ThreadPool[system]]-1}ThreadLauncher2[ThreadPool[system]]100threadscreatedin1000mssleep=10ms3、通过本地调用也会提示引发一样的错误publicstaticvoidmain(String[]args){TestServiceservice;Stringurl="http://172.20.1.132/remoting/testService";HessianProxyFactoryfactory=newHessianProxyFactory();try{factory.setDebug(true);factory.setReadTimeout(5000);factory.setOverloadEnabled(true);//不设置会报expectedhessianreplyat0x48factory.setHessian2Reply(true);factory.setHessian2Request(true);service=(TestService)factory.create(TestService.class,url);//此处一调用,就会出现一开始的错误提示service.test(null);}catch(Exceptione){System.out.println("Exception:"+e.getMessage());return;}}

接口定义:<beanname="/testService"class="org.springframework.remoting.caucho.HessianServiceExporter"><propertyname="service"ref="testService"/><propertyname="serviceInterface"value="com.ring.test.service.TestService"/></bean>

<beanid="testService"class="org.springframework.remoting.caucho.HessianProxyFactoryBean"><propertyname="serviceInterface"value="com.ring.test.service.TestService"/><propertyname="serviceUrl"value="http://172.20.1.132/remoting/testService"/></bean>

解决方案

本帖最后由 millett 于 2015-01-06 17:02:56 编辑
解决方案二:
1、Hessian和Spring换了多个版本进行尝试,一样的错误。2、因为100threadscreatedin1000mssleep=10ms,这时候只有./resin.shstop,然后就会看到错误日志,N次的请求访问{resin-port-80-107}<WARN>[20150106131606.796]org.springframework.remoting.support.RemoteInvocationTraceInterceptor.invoke(RemoteInvocationTraceInterceptor.java:87)ProcessingofHessianServiceExporterremotecallresultedinfatalexception:com.ring.cms.service.TestService.testorg.springframework.remoting.RemoteConnectFailureException:CannotconnecttoHessianremoteserviceat[http://loalhost/remoting/testService];nestedexceptioniscom.caucho.hessian.client.HessianConnectionException:500:java.net.ConnectException:Connectionrefusedatorg.springframework.remoting.caucho.HessianClientInterceptor.convertHessianAccessException(HessianClientInterceptor.java:262)atorg.springframework.remoting.caucho.HessianClientInterceptor.invoke(HessianClientInterceptor.java:231)atorg.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)atorg.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)at$Proxy48.test(UnknownSource)atsun.reflect.GeneratedMethodAccessor62.invoke(UnknownSource)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atorg.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)atorg.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)atorg.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)atorg.springframework.remoting.support.RemoteInvocationTraceInterceptor.invoke(RemoteInvocationTraceInterceptor.java:77)atorg.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)atorg.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)at$Proxy49.test(UnknownSource)atsun.reflect.GeneratedMethodAccessor62.invoke(UnknownSource)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atcom.caucho.hessian.server.HessianSkeleton.invoke(HessianSkeleton.java:302)atcom.caucho.hessian.server.HessianSkeleton.invoke(HessianSkeleton.java:217)atorg.springframework.remoting.caucho.HessianExporter.doInvoke(HessianExporter.java:198)atorg.springframework.remoting.caucho.HessianExporter.invoke(HessianExporter.java:118)atorg.springframework.remoting.caucho.HessianServiceExporter.handleRequest(HessianServiceExporter.java:66)atorg.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle(HttpRequestHandlerAdapter.java:49)atorg.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)atorg.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)atorg.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)atorg.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:159)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:97)atcom.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:109)atorg.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:102)atcom.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:89)atcom.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:156)atcom.caucho.server.webapp.AccessLogFilterChain.doFilter(AccessLogFilterChain.java:95)atcom.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:289)atcom.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:838)atcom.caucho.network.listen.TcpSocketLink.dispatchRequest(TcpSocketLink.java:1346)atcom.caucho.network.listen.TcpSocketLink.handleRequest(TcpSocketLink.java:1302)atcom.caucho.network.listen.TcpSocketLink.handleRequestsImpl(TcpSocketLink.java:1286)atcom.caucho.network.listen.TcpSocketLink.handleRequests(TcpSocketLink.java:1194)atcom.caucho.network.listen.TcpSocketLink.handleAcceptTaskImpl(TcpSocketLink.java:993)atcom.caucho.network.listen.ConnectionTask.runThread(ConnectionTask.java:117)atcom.caucho.network.listen.ConnectionTask.run(ConnectionTask.java:93)atcom.caucho.network.listen.SocketLinkThreadLauncher.handleTasks(SocketLinkThreadLauncher.java:169)atcom.caucho.network.listen.TcpSocketAcceptThread.run(TcpSocketAcceptThread.java:61)atcom.caucho.env.thread2.ResinThread2.runTasks(ResinThread2.java:173)atcom.caucho.env.thread2.ResinThread2.run(ResinThread2.java:118)Causedby:com.caucho.hessian.client.HessianConnectionException:500:java.net.ConnectException:Connectionrefusedatcom.caucho.hessian.client.HessianURLConnection.sendRequest(HessianURLConnection.java:145)atcom.caucho.hessian.client.HessianProxy.sendRequest(HessianProxy.java:296)atcom.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:171)at$Proxy47.test(UnknownSource)atsun.reflect.GeneratedMethodAccessor62.invoke(UnknownSource)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atorg.springframework.remoting.caucho.HessianClientInterceptor.invoke(HessianClientInterceptor.java:222)...46moreCausedby:java.net.ConnectException:Connectionrefusedatsun.reflect.GeneratedConstructorAccessor38.newInstance(UnknownSource)atsun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)atjava.lang.reflect.Constructor.newInstance(Constructor.java:513)atsun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1345)atsun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1339)atsun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:993)atcom.caucho.hessian.client.HessianURLConnection.sendRequest(HessianURLConnection.java:125)...53moreCausedby:java.net.ConnectException:Connectionrefusedatjava.net.PlainSocketImpl.socketConnect(NativeMethod)atjava.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)atjava.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)atjava.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)atjava.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)atjava.net.Socket.connect(Socket.java:519)atjava.net.Socket.connect(Socket.java:469)atsun.net.NetworkClient.doConnect(NetworkClient.java:163)atsun.net.www.http.HttpClient.openServer(HttpClient.java:394)atsun.net.www.http.HttpClient.openServer(HttpClient.java:529)atsun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:760)atsun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)atsun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1049)atjava.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)atcom.caucho.hessian.client.HessianURLConnection.sendRequest(HessianURLConnection.java:112)...53more

时间: 2024-10-25 01:04:19

Resin4.0.37+Spring3.1.1+Hessian4.0.7+Linux+{ThreadLauncher2[ThreadPool[system]]-的相关文章

ProcessMaker 2.0.37发布 企业流程管理软件

ProcessMaker是一款http://www.aliyun.com/zixun/aggregation/9807.html">工作流程和企业流程管理软件,运用于客户/服务端的商业进程(BPM).其功能是自动化文档加强器,跨系统的批准进程,包括财务.人力资源和操作部门.它是一个完全基于Web和Ajax的应用程序,内置的开源WAMP/LAMP堆栈,包括设计表格工具.创建文件.分配角色和用户.创建路由规则.以及发送警报.它是一个全方位服务的架构(SOA)和Web服务界面,允许软件与商业智能

c# 基础知识-已知:0.37*X+1.14*Y=95927.6, X和Y是整数。求解:X=? Y=? 求大神帮忙

问题描述 已知:0.37*X+1.14*Y=95927.6, X和Y是整数.求解:X=? Y=? 求大神帮忙 本人新手一枚,用的是C#,就是得不出结果,求大神帮忙指点一下! using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace _1 { class Program { static void Main(string[] args) { for (int x =

Fimex 0.37.2发布 网格地理空间数据工具

Fimex 是一款用于文件插值.管理和网格地理空间数据的提取库.它能够在可扩展的不同数据格式之间进行转换(如:netcdf, NcML, grib1/2, felt),能够改变标量插值和矢量网格,使子集网格数据和提取部分的文件.Fimex简单易于使用,还带有命令行程序. Fimex 0.37.2该版本开始使用towgs84 Bursa Wolff 参数,数字地球文件能够进行配置. 软件信息:https://wiki.met.no/fimex/start 下载地址:https://wiki.met

Fimex 0.37.1发布 网格地理空间数据工具

Fimex 是一款用于文件插值.处理和网格地理空间数据的提取库.它能够在可扩展的不同数据格式之间进行转换(如:netcdf, NcML, grib1/2, felt),能够改变标量插值和矢量网格,使子集网格数据和提取部分的文件.Fimex简单易于使用,还带有命令行程序. Fimex 0.37.1该版本增加了WRF的阅读和解释模型数据的初步支持. 软件信息:https://wiki.met.no/fimex/start 下载地址:https://wiki.met.no/_media/fimex/f

传今晚将上调成品油价格汽油涨0.37元/升

传国家发改委将于7日零时上调成品油价格 据国际能源网消息,发改委7日零时将上调成品油最高限价,汽油每吨上调500元,柴油每吨上调400元.目前部分主营公司已停止开票. 传今晚将上调成品油价格 汽油涨0.37元/升 据 网友爆料,今晚(4月6日)发改委将涨油价,汽油每吨涨500,柴油每吨涨400 ,换算成升是汽油涨0.37元/升,柴油涨0.34元/升. 另据媒体报道称:接近发改委的人士透露,4月7日凌晨起,国家发改委将上调成品油零售价,而部分省份物价局也已确认.调价幅度暂未明确,但汽柴油涨幅或在5

巨力索具2010年净利润1.93亿元同比增长0.37%

网易财经3月4日讯 巨力索具4日晚间发布2010年年报,2010年净利润1.93亿元, 同比增长0.37%. 2010年巨力索具营收14.46亿元,同比增长2.92%:净利润1.93亿元,同比增长0.37%:基本每股收益0.41元,同比减少8.89%.

新鸿基微涨0.37%大华评持有看96.79港元

新鸿基地产(00016-HK)微涨0.37%,报94.70港元,成交1.47亿港元:该股目前基本同步大市,恒指涨0.23%. 大华继显维持该股持有评级,但将目标价从89.15港元上调至96.79港元:此前将每股净资产预期从101.31港元上调至109.00港元,因调整地产价格预期,以反映股市和地产市场表现活跃情况下经济前景有所改善.该行还维持新鸿基地产09财年盈利预期不变,将10财年盈利预期上调15%,因天玺项目销售加快.

Linux下Oracle 10.2.0.1升级到10.2.0.4总结

最近部署测试环境时,将测试环境ORACLE数据库从10.2.0.1升级到了10.2.0.4,顺便整理记录一下升级过程. 实验环境: 操作系统:Oracle Linux Server release 5.7 数据库:Oracle 10.2.0.1 下载解压补丁包 1: [oracle@DB-Server tmp]$ unzip p6810189_10204_Linux-x86-64.zip 2:  3: [oracle@DB-Server Disk1]$ ls 4: 10204_buglist.h

探索Oracle之数据库升级二 11.2.0.3升级到11.2.0.4完整步骤

探索Oracle之数据库升级二  11.2.0.3升级到11.2.0.4完整步骤   说明:         这篇文章主要是记录下单实例环境下Oracle 11.2.0.1升级到11.2.0.3的过程,当然RAC的升级是会有所不同.但是他们每个版本之间升级步骤都是差不多的,先升级Database Software,再升级Oracle Instance.  Oracle 11.2.0.4的Patchset No:19852360下载需要有Oracle Support才可以.  Patchset包含