Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

javax.naming.Communication Exception:  RSS feed

 
angelin prema
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am new to jboss jass.
While starting my server i got this exception.
Exception is attached below for your reference.
what is the problem and how to rectify it.
Any one help me.
client side Exception :
[org.jnp.interfaces.NamingContext] Failed to connect to localhost:1099
javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:269)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1385)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:594)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.dhyan.nms.client.common.util.JNDIUtil.isServerResponding(JNDIUtil.java:115)
at com.dhyan.nms.client.security.ui.LoginControl$1.actionPerformed(LoginControl.java:1024)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicRootPaneUI$Actions.actionPerformed(BasicRootPaneUI.java:190)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1571)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2763)
at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:255)
at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:204)
at javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2840)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2832)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2726)
at java.awt.Component.processEvent(Component.java:5265)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1810)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:672)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:920)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:798)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:636)
at java.awt.Component.dispatchEventImpl(Component.java:3841)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:243)
... 39 more
Caused by: java.net.ConnectException: Connection refused
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:516)
at java.net.Socket.connect(Socket.java:466)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:266)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:84)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:77)
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:239)
... 39 more
2007-06-21 17:29:13,061 INFO [System.out] Server communication failure
2007-06-21 17:29:13,061 WARN [System.err] javax.naming.CommunicationException: Server Communication Failure.
2007-06-21 17:29:13,062 WARN [System.err] at com.dhyan.nms.client.common.util.JNDIUtil.isServerResponding(JNDIUtil.java:127)2007-06-21 17:29:13,062 WARN [System.err] at com.dhyan.nms.client.security.ui.LoginControl$1.actionPerformed(LoginControl.java:1024)
2007-06-21 17:29:13,062 WARN [System.err] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
2007-06-21 17:29:13,062 WARN [System.err] at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
2007-06-21 17:29:13,062 WARN [System.err] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)2007-06-21 17:29:13,062 WARN [System.err] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
2007-06-21 17:29:13,062 WARN [System.err] at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
2007-06-21 17:29:13,062 WARN [System.err] at javax.swing.plaf.basic.BasicRootPaneUI$Actions.actionPerformed(BasicRootPaneUI.java:190)
2007-06-21 17:29:13,063 WARN [System.err] at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1571)
2007-06-21 17:29:13,063 WARN [System.err] at javax.swing.JComponent.processKeyBinding(JComponent.java:2763)
2007-06-21 17:29:13,063 WARN [System.err] at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:255)
2007-06-21 17:29:13,063 WARN [System.err] at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:204)
2007-06-21 17:29:13,063 WARN [System.err] at javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2840)2007-06-21 17:29:13,063 WARN [System.err] at javax.swing.JComponent.processKeyBindings(JComponent.java:2832)
2007-06-21 17:29:13,063 WARN [System.err] at javax.swing.JComponent.processKeyEvent(JComponent.java:2726)
2007-06-21 17:29:13,063 WARN [System.err] at java.awt.Component.processEvent(Component.java:5265)
2007-06-21 17:29:13,063 WARN [System.err] at java.awt.Container.processEvent(Container.java:1966)
2007-06-21 17:29:13,064 WARN [System.err] at java.awt.Component.dispatchEventImpl(Component.java:3955)
2007-06-21 17:29:13,065 WARN [System.err] at java.awt.Container.dispatchEventImpl(Container.java:2024)
2007-06-21 17:29:13,065 WARN [System.err] at java.awt.Component.dispatchEvent(Component.java:3803)
2007-06-21 17:29:13,065 WARN [System.err] at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1810)
2007-06-21 17:29:13,065 WARN [System.err] at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:672)
2007-06-21 17:29:13,065 WARN [System.err] at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:920)
2007-06-21 17:29:13,065 WARN [System.err] at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:798)
2007-06-21 17:29:13,066 WARN [System.err] at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:636)
2007-06-21 17:29:13,066 WARN [System.err] at java.awt.Component.dispatchEventImpl(Component.java:3841)
2007-06-21 17:29:13,066 WARN [System.err] at java.awt.Container.dispatchEventImpl(Container.java:2024)
2007-06-21 17:29:13,066 WARN [System.err] at java.awt.Window.dispatchEventImpl(Window.java:1774)
2007-06-21 17:29:13,066 WARN [System.err] at java.awt.Component.dispatchEvent(Component.java:3803)
2007-06-21 17:29:13,066 WARN [System.err] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
2007-06-21 17:29:13,066 WARN [System.err] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
2007-06-21 17:29:13,066 WARN [System.err] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
2007-06-21 17:29:13,066 WARN [System.err] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
2007-06-21 17:29:13,066 WARN [System.err] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
2007-06-21 17:29:13,066 WARN [System.err] at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

server side exception :
[JMSContainerInvoker] Reconnect failed: JMS provider failure detected for ServerStartupSchedulerMDBean
javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]]]
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1414)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:594)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:192)
at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:188)
at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerStartDelivery(JMSContainerInvoker.java:510)
at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl$ExceptionListenerRunnable.run(JMSContainerInvoker.java:1428)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:269)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1385)
... 9 more
Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:243)
... 10 more
Caused by: java.net.ConnectException: Connection refused
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:516)
at java.net.Socket.connect(Socket.java:466)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:266)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:84)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:77)
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:239)
... 10 more
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch!

I'm not sure whether this belongs in one of our more specific forums, but it's definitely not a beginners issue, so I'm promoting this to the intermediate forum.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16057
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On port 1099 there should be a JNDI service listening (this should be part of the JBoss server). It looks like on your configuration, JNDI isn't started or configured correctly.

You might want to ask this on the JBoss.com Forums, where there will be a lot of JBoss experts who could tell you more.
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jesper Young:
...You might want to ask this on the JBoss.com Forums, where there will be a lot of JBoss experts who could tell you more.

Or perhaps a moderator wants to move this to our Portals and Portlets forum, if that's more appropriate.
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Angelin,

Can you post the server log containing the log messages from the server startup. Want to make sure that the server had started properly and there were no port binding related errors.

By the way, this post would be more appropriate in our own JBoss Forum
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!