Skip to main content

Posts

Showing posts with the label java

Java System Properties

This is a quick post with some useful code for printing a complete list of Java system properties. System properties give you access to certain JVM startup parameters and system information. The following code (SysProp.java) can be used to print all system properties. import java.util.Properties; import java.util.Enumeration; public class SysProp { public static void main(String[] args) { Properties sysprops = System .getProperties(); Enumeration e = sysprops.propertyNames(); while (e.hasMoreElements()) { String key = (String)e.nextElement(); String value = sysprops.getProperty(key); System.out.println(key + "=" + value); } } } The resulting output should look like this: java.vm.vendor.url.bug=http://edocs.bea.com/jrockit/go2troubleshooting.html java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition sun.boot.library.path=E:\APPS\bea_x64\jrockit-R27.5.0-jdk1.5.0_14\jre\bin java.vm.version=R27.5.0-110_o-99226-1.5.0_14-20080528-1505-windows-x86_64 ...

Connection refused: No available router to destination

This is a simple symptom-cause-solution blog entry only. I hope these blogs will help fellow administrators. Symptom The following exception occurs in WebLogic server logs. Most likely to occur during WebLogic server start-up, but similar exceptions may occur at other times. java.net.ConnectException: t3://myserver:8000: Destination unreachable; nested exception is: java.net.ConnectException: Connection refused: connect; No available router to destination] at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:49) at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:773) at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:363) at weblogic.jndi.Environment.getContext(Environment.java:307) at weblogic.jndi.Environment.getContext(Environment.java:277) Cause This message (Connection refused: connect; No available ...

The Connection Server (About)

The Connection Server is an informal blog about a range of professional server-related topics, with a focus on the everyday tasks of a corporate IT infrastructure administrator. Articles range from hard-core technical tips to more business-oriented discussions. What technologies do I cover? Potentially anything used in the corporate IT world, but to name a few big ones: Java (J2EE, J2SE and J2ME) Oracle WebLogic (previously BEA WebLogic) WebSphere and JBoss Oracle DB Apache and IIS Windows, AIX, Solaris and Red Hat Although a few articles are aimed at helping beginners become more advanced administrators or developers, most articles assume at least a medium level of technical knowledge.