赞
踩
- java.net.UnknownHostException: XXX.XXX.com
- at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195)
- at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
- at java.net.Socket.connect(Socket.java:529)
- at java.net.Socket.connect(Socket.java:478)
- at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
- at sun.net.www.http.HttpClient.openServer(HttpClient.java:411)
- at sun.net.www.http.HttpClient.openServer(HttpClient.java:525)
- at sun.net.www.http.HttpClient.<init>(HttpClient.java:208)
- at sun.net.www.http.HttpClient.New(HttpClient.java:291)
- at sun.net.www.http.HttpClient.New(HttpClient.java:310)
- at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:987)
- at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:923)
- at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841)
- at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1031)
- at com.gsshop.svcImpl.imo.McBasImoService.sendMsg(McBasImoService.java:768)
- at com.gsshop.svcImpl.imo.McBasImoService$$FastClassByCGLIB$$6f7f9c98.invoke(<generated>)
- at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
- at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:698)
- at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
- at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
- at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
- at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
- at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
- at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:631)
- at com.gsshop.svcImpl.imo.McBasImoService$$EnhancerByCGLIB$$b32dda64.sendMsg(<generated>)
- at com.gsshop.quartz.JobImoMessageService.sendMcImoJob(JobImoMessageService.java:65)
- at com.gsshop.quartz.JobImoMessageService$$FastClassByCGLIB$$d480ae30.invoke(<generated>)
- at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
- at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:698)
- at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
- at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
- at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
- at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
- at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
- at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:631)
- at com.gsshop.quartz.JobImoMessageService$$EnhancerByCGLIB$$b9010fc.sendMcImoJob(<generated>)
- at sun.reflect.GeneratedMethodAccessor155.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
- at java.lang.reflect.Method.invoke(Method.java:597)
- at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:273)
- at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:311)
- at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113)
- at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
- at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
在做项目的时候遇到这个问题,在本机测试的时候一直都是没有问题的,但是到了测试服务器上一直报这个错,原因是在配置properties文件的时候配置某一个使用连接服务器主机的方法连接的主机错误,修改为正确的主机名就可以的了。
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。