0 Replies Latest reply on Mar 16, 2005 6:41 AM by Stig Frode Samnøy

    Connection refused msg when accessing beans from remote clie

    Stig Frode Samnøy Newbie

      Hi all. I'm not sure if this is the right posting for this but anyway...

      I have developed a set of beans that connects to an image-database. The client user can list the content of the database and select images for viewing. The JBOSS is installed on a RedHat server (dynamic ip-adress). The client is installed on Windows 2000/XP in the same segment. This is all working fine when the client and server is on the same machine - listing and selecting images. When the client is on a different machine, however,I do get contact with the beans at the server and can list the content of the database, but when trying to download an image i get an "java.net.ConnectException: Connection refused: connect" error msg. Any ideas anyone?

      Please help me.
      Thanks in advance

      Stig

      ************************
      Listing of error msg:
      [java] Exception in thread "AWT-EventQueue-0" javax.media.jai.util.ImagingException: IOExceptio
      n occurs when create the socket.
      [java] at javax.media.jai.remote.SerializableRenderedImage.connectToServer(SerializableRend
      eredImage.java:1181)
      [java] at javax.media.jai.remote.SerializableRenderedImage.getData(SerializableRenderedImag
      e.java:822)
      [java] at javax.media.jai.remote.SerializableRenderedImage.getTile(SerializableRenderedImag
      e.java:998)
      [java] at javax.media.jai.RenderedImageAdapter.getTile(RenderedImageAdapter.java:156)
      [java] at javax.media.jai.RenderedImageAdapter.getTile(RenderedImageAdapter.java:156)
      [java] at sun.java2d.SunGraphics2D.drawTranslatedRenderedImage(SunGraphics2D.java:2542)
      [java] at sun.java2d.SunGraphics2D.drawRenderedImage(SunGraphics2D.java:2429)
      [java] at com.sun.media.jai.widget.DisplayJAI.paintComponent(DisplayJAI.java:254)
      [java] at javax.swing.JComponent.paint(JComponent.java:1003)
      [java] at javax.swing.JComponent.paintChildren(JComponent.java:840)
      [java] at javax.swing.JComponent.paint(JComponent.java:1012)
      [java] at javax.swing.JViewport.paint(JViewport.java:728)
      [java] at javax.swing.JComponent.paintChildren(JComponent.java:840)
      [java] at javax.swing.JComponent.paint(JComponent.java:1012)
      [java] at javax.swing.JComponent.paintChildren(JComponent.java:840)
      [java] at javax.swing.JComponent.paint(JComponent.java:1012)
      [java] at javax.swing.JComponent.paintChildren(JComponent.java:840)
      [java] at javax.swing.JComponent.paint(JComponent.java:1012)
      [java] at javax.swing.JLayeredPane.paint(JLayeredPane.java:559)
      [java] at javax.swing.JComponent.paintChildren(JComponent.java:840)
      [java] at javax.swing.JComponent.paint(JComponent.java:1012)
      [java] at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4930)
      [java] at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4883)
      [java] at javax.swing.JComponent._paintImmediately(JComponent.java:4826)
      [java] at javax.swing.JComponent.paintImmediately(JComponent.java:4633)
      [java] at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:451)
      [java] at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUt
      ilities.java:114)
      [java] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
      [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
      [java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:23
      4)
      [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)

      [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
      [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
      [java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
      [java] Caused by: java.net.ConnectException: Connection refused: connect
      [java] at java.net.PlainSocketImpl.socketConnect(Native Method)
      [java] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
      [java] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
      [java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
      [java] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
      [java] at java.net.Socket.connect(Socket.java:507)
      [java] at java.net.Socket.connect(Socket.java:457)
      [java] at java.net.Socket.(Socket.java:365)
      [java] at java.net.Socket.(Socket.java:207)
      [java] at javax.media.jai.remote.SerializableRenderedImage.connectToServer(SerializableRend
      eredImage.java:1178)
      [java] ... 33 more
      [java] Caused by:
      [java] java.net.ConnectException: Connection refused: connect
      [java] at java.net.PlainSocketImpl.socketConnect(Native Method)
      [java] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
      [java] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
      [java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
      [java] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
      [java] at java.net.Socket.connect(Socket.java:507)
      [java] at java.net.Socket.connect(Socket.java:457)
      [java] at java.net.Socket.(Socket.java:365)
      [java] at java.net.Socket.(Socket.java:207)
      [java] at javax.media.jai.remote.SerializableRenderedImage.connectToServer(SerializableRend
      eredImage.java:1178)
      [java] at javax.media.jai.remote.SerializableRenderedImage.getData(SerializableRenderedImag
      e.java:822)
      [java] at javax.media.jai.remote.SerializableRenderedImage.getTile(SerializableRenderedImag
      e.java:998)
      [java] at javax.media.jai.RenderedImageAdapter.getTile(RenderedImageAdapter.java:156)
      [java] at javax.media.jai.RenderedImageAdapter.getTile(RenderedImageAdapter.java:156)
      [java] at sun.java2d.SunGraphics2D.drawTranslatedRenderedImage(SunGraphics2D.java:2542)
      [java] at sun.java2d.SunGraphics2D.drawRenderedImage(SunGraphics2D.java:2429)
      [java] at com.sun.media.jai.widget.DisplayJAI.paintComponent(DisplayJAI.java:254)
      [java] at javax.swing.JComponent.paint(JComponent.java:1003)
      [java] at javax.swing.JComponent.paintChildren(JComponent.java:840)
      [java] at javax.swing.JComponent.paint(JComponent.java:1012)
      [java] at javax.swing.JViewport.paint(JViewport.java:728)
      [java] at javax.swing.JComponent.paintChildren(JComponent.java:840)
      [java] at javax.swing.JComponent.paint(JComponent.java:1012)
      [java] at javax.swing.JComponent.paintChildren(JComponent.java:840)
      [java] at javax.swing.JComponent.paint(JComponent.java:1012)
      [java] at javax.swing.JComponent.paintChildren(JComponent.java:840)
      [java] at javax.swing.JComponent.paint(JComponent.java:1012)
      [java] at javax.swing.JLayeredPane.paint(JLayeredPane.java:559)
      [java] at javax.swing.JComponent.paintChildren(JComponent.java:840)
      [java] at javax.swing.JComponent.paint(JComponent.java:1012)
      [java] at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4930)
      [java] at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4883)
      [java] at javax.swing.JComponent._paintImmediately(JComponent.java:4826)
      [java] at javax.swing.JComponent.paintImmediately(JComponent.java:4633)
      [java] at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:451)
      [java] at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUt
      ilities.java:114)
      [java] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
      [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
      [java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:23
      4)
      [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)

      [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
      [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
      [java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)