[MOBY-guts] biomoby commit

senger@ebi.ac.uk senger at pub.open-bio.org
Thu Apr 1 23:24:27 UTC 2004


senger
Thu Apr  1 18:24:27 EST 2004
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/client
In directory pub.open-bio.org:/tmp/cvs-serv7731/src/main/org/biomoby/client

Modified Files:
	CentralImpl.java GraphsServlet.java 
Log Message:


moby-live/Java/src/main/org/biomoby/client CentralImpl.java,1.9,1.10 GraphsServlet.java,1.5,1.6
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/CentralImpl.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/CentralImpl.java	2004/04/01 17:30:08	1.9
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/CentralImpl.java	2004/04/01 23:24:26	1.10
@@ -1174,6 +1174,10 @@
 	    result = doCall (methodName, new Object[] { });
 	else 
 	    result = doCall (methodName, new Object[] { inputXML });
+
+	if (result == null)
+	    throw new MobyException ("Returned result is null.");
+
 	if (result instanceof String)
 	    return (String)result;
 	if (result instanceof String[]) {

===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/GraphsServlet.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/GraphsServlet.java	2004/04/01 21:03:42	1.5
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/GraphsServlet.java	2004/04/01 23:24:27	1.6
@@ -205,7 +205,7 @@
 	for (Enumeration en = context.getInitParameterNames(); en.hasMoreElements(); ) {
 	    String name = (String)en.nextElement();
 	    if (name != null)
-		initParams.put (name.toLowerCase(), context.getInitParameter (name));
+		initParams.put (name, context.getInitParameter (name));
 	}
 
 	// then read config parameters (scope: this servlet) - they may overwrite
@@ -213,7 +213,7 @@
 	for (Enumeration en = getInitParameterNames(); en.hasMoreElements(); ) {
 	    String name = (String)en.nextElement();
 	    if (name != null)
-		initParams.put (name.toLowerCase(), getInitParameter (name));
+		initParams.put (name, getInitParameter (name));
 	}
 
 	// read some suggested defaults from the init parameters
@@ -869,6 +869,7 @@
 	// do this only the first time
 	if (registry == null) {
 	    registry = new CentralImpl (endpoint, namespace);
+	    ((CentralImpl)registry).setCacheMode (false);
 	    registry.setDebug (debug);
 	}
 




More information about the MOBY-guts mailing list