Changeset 2130 for trunk/java-client/org
- Timestamp:
- 2001-03-08T01:41:37+13:00 (23 years ago)
- Location:
- trunk/java-client/org/nzdl/gsdl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/java-client/org/nzdl/gsdl/SimpleClient.java
r2128 r2130 93 93 String IORFromCommandLine = null; 94 94 /** The collection to query */ 95 String collectionNameToQuery = " demo";95 String collectionNameToQuery = ""; 96 96 /** The query to use */ 97 97 String queryToQuery = "the"; … … 138 138 System.err.println("Error reading properties file:" + i); 139 139 } 140 141 Enumeration e = knownIORs.keys(); 142 while (e.hasMoreElements() && nzdl == null) { 143 String IOR = (String) e.nextElement(); 144 attemptToInitialise(args, null, IOR); 145 146 } 140 141 if (IORFromCommandLine != null) 142 attemptToInitialise(args, null, IORFromCommandLine); 147 143 148 144 if (nzdl == null) { … … 151 147 System.err.println("after IOR"); 152 148 attemptToInitialise(args, null, IOR); 153 knownIORs.put(IOR,""); 154 } 155 149 } 150 151 Enumeration e = knownIORs.keys(); 152 while (e.hasMoreElements() && nzdl == null) { 153 String IOR = (String) e.nextElement(); 154 attemptToInitialise(args, null, IOR); 155 156 } 157 158 knownIORs.put(IOR,""); 156 159 } 157 160 … … 202 205 catch (java.io.IOException e) { 203 206 System.err.println("Error reading IOR key:\n" + e); 204 System.err.println("Aborting service...");205 System.exit(1);206 207 } 207 208 return ior; -
trunk/java-client/org/nzdl/gsdl/service/NzdlServiceClient.java
r2128 r2130 38 38 System.err.println("Nzdl init ... NO"); 39 39 System.err.println("CORBA error:" + error.value.value()); 40 System.err.println("Aborting service ..."); 41 System.exit(1); 40 throw new Error("Initialisation failed ..."); 42 41 } 43 42 … … 45 44 System.err.println("Error in service init:\n" + e) ; 46 45 System.err.println("CORBA error:" + error.value.value()); 47 System.err.println("Aborting service ..."); 48 System.exit(1); 46 throw new Error("Initialisation failed ..."); 49 47 } 50 48 if (error.value.value() != corbaComError._corbaNoError) {
Note:
See TracChangeset
for help on using the changeset viewer.