Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Issue

 
Ron Cohen
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Big Moose Saloon and merry christmas to you all!
im facing a java problem and i really hope you can help me out.
i added some lines from the Jboss logs server and a picture of my problem.
the picture provide the issue and the log file provides - i guess the issue... (the log file in the machine called "jbossServer")
hope that is enough, if you need anything else let me know.

some log file lines:
2011-12-26 10:16:00,384 ERROR [STDERR] javax.naming.CommunicationException: Could not obtain connection to any of these urls: ********-NNM-TRF.********.corp:12099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server ********-NNM-TRF.********.corp:12099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server ********-NNM-TRF.********.corp:12099 [Root exception is java.net.ConnectException: Connection refused: connect]]]
2011-12-26 10:16:00,384 ERROR [STDERR] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1562)
2011-12-26 10:16:00,384 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:634)
2011-12-26 10:16:00,384 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
2011-12-26 10:16:00,384 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialContext.java:392)
2011-12-26 10:16:00,384 ERROR [STDERR] at com.hp.ov.nms.spi.ui.ejb.JBossEjbDispatcher.lookup(JBossEjbDispatcher.java:71)
2011-12-26 10:16:00,384 ERROR [STDERR] at com.hp.ov.nms.spi.traffic.licensing.TrafficSPILicenseReport.lookupService(TrafficSPILicenseReport.java:58)
2011-12-26 10:16:00,384 ERROR [STDERR] at com.hp.ov.nms.spi.traffic.licensing.TrafficSPILicenseReport.getTrafficPointsUsed(TrafficSPILicenseReport.java:76)
2011-12-26 10:16:00,384 ERROR [STDERR] at com.hp.ov.nms.spi.traffic.licensing.TRAFFICCOLLSPILicenseProcessor.getConsumption(TRAFFICCOLLSPILicenseProcessor.java:131)
2011-12-26 10:16:00,384 ERROR [STDERR] at com.hp.ov.nms.licensing.api.AbstractLicenseProcessor.reportLicenseViolation(AbstractLicenseProcessor.java:467)
2011-12-26 10:16:00,384 ERROR [STDERR] at com.hp.ov.nms.licensing.api.AbstractLicenseProcessor.reportLicenseViolation(AbstractLicenseProcessor.java:408)
2011-12-26 10:16:00,384 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor913.invoke(Unknown Source)
2011-12-26 10:16:00,384 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2011-12-26 10:16:00,384 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
2011-12-26 10:16:00,384 ERROR [STDERR] at com.hp.ov.nms.licensing.nnm.ProcessorEntryList.invokeProcessorClassMethod(ProcessorEntryList.java:139)
2011-12-26 10:16:00,384 ERROR [STDERR] at com.hp.ov.nms.licensing.internal.ExtensionInvoker$ExtnInvokerTask.call(ExtensionInvoker.java:121)
2011-12-26 10:16:00,384 ERROR [STDERR] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
2011-12-26 10:16:00,384 ERROR [STDERR] at java.util.concurrent.FutureTask.run(FutureTask.java:138)
2011-12-26 10:16:00,384 ERROR [STDERR] at com.hp.ov.nms.topo.spi.server.concurrent.AbstractNmsWorkManager$RunnableWork.run(AbstractNmsWorkManager.java:300)
2011-12-26 10:16:00,384 ERROR [STDERR] at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:213)
2011-12-26 10:16:00,384 ERROR [STDERR] at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
2011-12-26 10:16:00,384 ERROR [STDERR] at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:761)
2011-12-26 10:16:00,384 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
2011-12-26 10:16:00,384 ERROR [STDERR] Caused by: javax.naming.CommunicationException: Failed to connect to server ********-NNM-TRF.********.corp:12099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server ********-NNM-TRF.********.corp:12099 [Root exception is java.net.ConnectException: Connection refused: connect]]
2011-12-26 10:16:00,384 ERROR [STDERR] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:274)
2011-12-26 10:16:00,384 ERROR [STDERR] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1533)
2011-12-26 10:16:00,384 ERROR [STDERR] ... 21 more
2011-12-26 10:16:00,384 ERROR [STDERR] Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server ********-NNM-TRF.********.corp:12099 [Root exception is java.net.ConnectException: Connection refused: connect]
2011-12-26 10:16:00,384 ERROR [STDERR] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:248)
2011-12-26 10:16:00,384 ERROR [STDERR] ... 22 more
2011-12-26 10:16:00,384 ERROR [STDERR] Caused by: java.net.ConnectException: Connection refused: connect
2011-12-26 10:16:00,384 ERROR [STDERR] at java.net.PlainSocketImpl.socketConnect(Native Method)
2011-12-26 10:16:00,384 ERROR [STDERR] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
2011-12-26 10:16:00,384 ERROR [STDERR] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
2011-12-26 10:16:00,384 ERROR [STDERR] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
2011-12-26 10:16:00,384 ERROR [STDERR] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
2011-12-26 10:16:00,384 ERROR [STDERR] at java.net.Socket.connect(Socket.java:525)
2011-12-26 10:16:00,384 ERROR [STDERR] at java.net.Socket.connect(Socket.java:475)
2011-12-26 10:16:00,384 ERROR [STDERR] at java.net.Socket.<init>(Socket.java:372)
2011-12-26 10:16:00,384 ERROR [STDERR] at java.net.Socket.<init>(Socket.java:273)
2011-12-26 10:16:00,384 ERROR [STDERR] at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:84)
2011-12-26 10:16:00,384 ERROR [STDERR] at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:77)
2011-12-26 10:16:00,384 ERROR [STDERR] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:244)
2011-12-26 10:16:00,384 ERROR [STDERR] ... 22 more
2011-12-26 10:16:00,384 INFO [STDOUT] TrafficSPI getConsumption returned: -1
2011-12-26 10:16:00,384 INFO [STDOUT] Traffic SPI collector getProductName

Happy New Year,
Slyfer.
jboss error.GIF
[Thumbnail for jboss error.GIF]
 
Hebert Coelho
Ranch Hand
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[Root exception is java.net.ConnectException: Connection refused: connect]
Check the IP of the database or check if correct door is opened.

Check also if the firewall is not blocking the connection.
 
Ron Cohen
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hebert Coelho wrote:[Root exception is java.net.ConnectException: Connection refused: connect]
Check the IP of the database or check if correct door is opened.

Check also if the firewall is not blocking the connection.


thanks for your answer,
im pretty clueless when it comes to java and databases,
how can i check the ip of the database or to check if the correct door is opened?
there is no firewall on the server, so nothing blocks it.

Best Regards,
Slyfer.
 
Hebert Coelho
Ranch Hand
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check in the code or a properties file, where you set up the connection.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic