tracked down a nasty error reporting bug
[mir.git] / source / OpenMir.java
index 2ea1a6e..2c6f092 100755 (executable)
@@ -74,6 +74,8 @@ public class OpenMir extends AbstractServlet {
 
     // get the configration - this could conflict if 2 mirs are in the
     // VM maybe? to be checked. -mh
+    // -- they would have different servlet contexts, so the following is
+    // no problem (br1)
     if(getServletContext().getAttribute("mir.confed") == null) {
       getConfig(req);
     }
@@ -97,11 +99,11 @@ public class OpenMir extends AbstractServlet {
       ServletModuleDispatch.dispatch(ServletModuleOpenIndy.getInstance(),req,res);
     }
     catch (ServletModuleUserException e) {
-      handleUserError(req,res,res.getWriter(), e.getMsg());
+      handleUserError(req,res,res.getWriter(), e.getMessage());
     }
     catch (ServletModuleException e){
       e.printStackTrace();
-      handleError(req,res,res.getWriter(), "OpenIndy :: ServletException in Module ServletModule -- " + e.toString());
+      handleError(req,res,res.getWriter(), "OpenIndy :: ServletException in Module ServletModule -- " + e.getMessage());
     }
     // timing...
     sessionConnectTime = new java.util.Date().getTime() - startTime;
@@ -120,7 +122,7 @@ public class OpenMir extends AbstractServlet {
       out.close();
     }
     catch (Exception e) {
-      System.err.println("Fehler in UserErrorTemplate");
+      System.err.println("Error in UserErrorTemplate");
     }
 
   }
@@ -138,7 +140,7 @@ public class OpenMir extends AbstractServlet {
       out.close();
     }
     catch (Exception e) {
-      System.err.println("Fehler in ErrorTemplate");
+      System.err.println("Error in ErrorTemplate");
     }
 
   }