<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    KK

    Kim-'s-Blog.Object-Everything.I'm POJO.

    .紀-錄.爲了忘卻的記憶..真的勇士,要敢于直面遇到的問題,敢于正視繁雜的原碼......在實踐中積累!

      BlogJava :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
      74 Posts :: 1 Stories :: 70 Comments :: 0 Trackbacks

    發(fā)布個rmi服務居然出現(xiàn)如下:

    17.05.2009 10:19:50 [main] INFO  org.springframework.remoting.rmi.RmiServiceExporter  - Looking for RMI registry at port '1099'
    17.05.2009 10:19:54 [main] DEBUG org.springframework.remoting.rmi.RmiServiceExporter  - RMI registry access threw exception
    java.rmi.ConnectException: Connection refused to host: 
    172.18.7.235; nested exception is: 
     java.net.ConnectException: Connection refused: connect
     at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:
    601)
     at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:
    198)
     at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:
    184)
     at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:
    322)
     at sun.rmi.registry.RegistryImpl_Stub.list(Unknown Source)
     at org.springframework.remoting.rmi.RmiServiceExporter.testRegistry(RmiServiceExporter.java:
    411)
     at org.springframework.remoting.rmi.RmiServiceExporter.getRegistry(RmiServiceExporter.java:
    391)
     at org.springframework.remoting.rmi.RmiServiceExporter.getRegistry(RmiServiceExporter.java:
    370)
     at org.springframework.remoting.rmi.RmiServiceExporter.getRegistry(RmiServiceExporter.java:
    331)
     at org.springframework.remoting.rmi.RmiServiceExporter.prepare(RmiServiceExporter.java:
    263)
     at org.springframework.remoting.rmi.RmiServiceExporter.afterPropertiesSet(RmiServiceExporter.java:
    227)
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:
    1369)
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:
    1335)
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:
    473)
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$
    1.run(AbstractAutowireCapableBeanFactory.java:409)
     at java.security.AccessController.doPrivileged(Native Method)
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:
    380)
     at org.springframework.beans.factory.support.AbstractBeanFactory$
    1.getObject(AbstractBeanFactory.java:264)
     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:
    222)
     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:
    261)
     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
    185)
     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
    164)
     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:
    429)
     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:
    728)
     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:
    380)
     at org.springframework.context.support.ClassPathXmlApplicationContext.
    <init>(ClassPathXmlApplicationContext.java:139)
     at org.springframework.context.support.ClassPathXmlApplicationContext.
    <init>(ClassPathXmlApplicationContext.java:93)
     at cn.edu.hust.mes.webservice.CallWebServices.
    <clinit>(CallWebServices.java:31)
     at cn.edu.hust.mes.opcapp.OpcApplication.main(OpcApplication.java:
    15)
    Caused by: java.net.ConnectException: Connection refused: connect
     at java.net.PlainSocketImpl.socketConnect(Native Method)
     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:
    333)
     at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:
    195)
     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:
    182)
     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:
    366)
     at java.net.Socket.connect(Socket.java:
    519)
     at java.net.Socket.connect(Socket.java:
    469)
     at java.net.Socket.
    <init>(Socket.java:366)
     at java.net.Socket.
    <init>(Socket.java:180)
     at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:
    22)
     at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:
    128)
     at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:
    595)
      
    28 more
    17.05.2009 10:19:54 [main] INFO  org.springframework.remoting.rmi.RmiServiceExporter  - Could not detect RMI registry - creating new one
    17.05.2009 10:19:54 [main] DEBUG org.springframework.remoting.rmi.RmiServiceExporter  - RMI service [cn.edu.hust.mes.webservice.OpcPlcRmiServiceImpl@dac21] is an RMI invoker
    17.05.2009 10:19:54 [main] DEBUG org.springframework.aop.framework.JdkDynamicAopProxy  - Creating JDK dynamic proxy: target source is SingletonTargetSource for target object [cn.edu.hust.mes.webservice.OpcPlcRmiServiceImpl@dac21]
    17.05.2009 10:19:54 [main] INFO  org.springframework.remoting.rmi.RmiServiceExporter  - Binding service 'opcManager' to RMI registry: RegistryImpl[UnicastServerRef [liveRef: [endpoint:[172.18.7.235:1099](local),objID:[0:0:00]]]]

    --------------------------------------------------
    可見:Binding service 'opcManager' to RMI registry: RegistryImpl[UnicastServerRef [liveRef: [endpoint:[172.18.7.235:1099](local),objID:[0:0:0, 0]]]]
    RMI其實發(fā)布成功了...
    為什么開始有錯呢?
    查看源代碼發(fā)現(xiàn):其實是Spring的Debug log
    他會先看有沒rmi注冊

    org.springframework.remoting.rmi.RmiServiceExporter.testRegistry(RmiServiceExporter.java:411)
    沒有l(wèi)og下再
    Could not detect RMI registry - creating new one
    所以屏蔽該Log4j配置文件中加如:
    log4j.logger.org.springframework.remoting.rmi.RmiServiceExporter=INFO
    posted on 2009-05-17 11:03 Kim' 閱讀(10314) 評論(2)  編輯  收藏

    Feedback

    # re: Spring發(fā)布rmi服務出現(xiàn): java.rmi.ConnectException: Connection refused to host xxx 2009-05-17 19:11 聊天室
    暈! 沒看懂! 加油努力學習!!  回復  更多評論
      

    # re: Spring發(fā)布rmi服務出現(xiàn): java.rmi.ConnectException: Connection refused to host xxx 2009-05-20 12:25 wuzhongxing
    者rmiserver端,添加
    System.setProperty("java.rmi.server.hostname", "172.18.7.235");
    可以解決  回復  更多評論
      


    只有注冊用戶登錄后才能發(fā)表評論。


    網(wǎng)站導航:
     
    jj
    主站蜘蛛池模板: 国产精品内射视频免费| 亚洲av无码专区在线观看亚| aa午夜免费剧场| 一本色道久久88亚洲综合 | 亚洲va久久久噜噜噜久久狠狠| 免费一区二区三区在线视频| 免费一级毛片在线播放不收费| 国产亚洲精品美女2020久久| 国产大片免费观看中文字幕| 老外毛片免费视频播放| 免费国产在线观看老王影院| 色多多免费视频观看区一区| 中文字幕第13亚洲另类| 中文字幕乱码系列免费| 久久久久久亚洲精品中文字幕| 久久精品视频免费看| 亚洲国产一区在线观看| 在线观看AV片永久免费| 亚洲av无码专区在线观看下载| 国产大片线上免费看| 三年片免费高清版 | 亚洲精品电影天堂网| 88xx成人永久免费观看| 国产精品亚洲专区在线观看 | 亚洲va久久久久| 又大又粗又爽a级毛片免费看| 日本免费精品一区二区三区| 亚洲精品无码国产| 95免费观看体验区视频| 亚洲精品无码一区二区| 亚洲一本大道无码av天堂| 无码人妻久久一区二区三区免费| 亚洲图片校园春色| 亚洲国产成人精品91久久久| 久9这里精品免费视频| 亚洲色偷偷综合亚洲av78| 国产亚洲成人久久| 可以免费看的卡一卡二| 一级毛片在线免费视频| 亚洲图片激情小说| 亚洲午夜激情视频|