Author: mszefler
Date: Thu May 17 05:18:45 2007
New Revision: 538884

URL: http://svn.apache.org/viewvc?view=rev&rev=538884
Log:
Use 127.0.0.1 address for synchronizing GUID creation. (avoids problems 
when localhost name is not resolveable to ip address). 

Modified:
    incubator/ode/trunk/utils/src/main/java/org/apache/ode/utils/GUID.java

Modified: incubator/ode/trunk/utils/src/main/java/org/apache/ode/utils/GUID.java
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/utils/src/main/java/org/apache/ode/utils/GUID.java?view=diff&rev=538884&r1=538883&r2=538884
==============================================================================
--- incubator/ode/trunk/utils/src/main/java/org/apache/ode/utils/GUID.java 
(original)
+++ incubator/ode/trunk/utils/src/main/java/org/apache/ode/utils/GUID.java Thu 
May 17 05:18:45 2007
@@ -58,7 +58,7 @@
        static String PROP_PORT = "fivesight.uid.port";
 
        // 32 bits
-       private static final byte[] ipadd;
+       private static final byte[] ipadd = {127,0,0,1};
 
        // 64 bits
        private static byte[] baseId = getSystemUniqId();
@@ -69,12 +69,6 @@
        private static GUID _VM_GUID;
 
        static {
-               try {
-                       ipadd = InetAddress.getLocalHost().getAddress();
-               } catch (Exception e) {
-                       throw new RuntimeException("GUID.<sinit>:" + 
e.toString());
-               }
-
                _VM_GUID = new GUID();
        }
 


Reply via email to