db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r796372 - /db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/NetworkServerControlImpl.java
Date Tue, 21 Jul 2009 16:37:01 GMT
Author: mamta
Date: Tue Jul 21 16:37:01 2009
New Revision: 796372

URL: http://svn.apache.org/viewvc?rev=796372&view=rev
Log:
Backing out change 796316 for DERBY-4304 until I can figure out the cause of NPE in DerbyNetAutoStart
Starting test case 1. 
java.lang.NullPointerException 
at org.apache.derby.impl.services.jmx.JMXManagementService.unregisterMBean(JMXManagementService.java:286)

at org.apache.derby.impl.services.jmx.JMXManagementService.unregisterMBean(JMXManagementService.java:277)

at org.apache.derby.impl.drda.NetworkServerControlImpl.blockingStart(NetworkServerControlImpl.java:892)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) 
at java.lang.reflect.Method.invoke(Method.java:599) 
at org.apache.derby.iapi.jdbc.DRDAServerStarter.run(DRDAServerStarter.java:236) 
at java.lang.Thread.run(Thread.java:735) 
Starting test case 2. 
java.lang.NullPointerException 
at org.apache.derby.impl.services.jmx.JMXManagementService.unregisterMBean(JMXManagementService.java:286)

at org.apache.derby.impl.services.jmx.JMXManagementService.unregisterMBean(JMXManagementService.java:277)

at org.apache.derby.impl.drda.NetworkServerControlImpl.blockingStart(NetworkServerControlImpl.java:892)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) 
at java.lang.reflect.Method.invoke(Method.java:599) 
at org.apache.derby.iapi.jdbc.DRDAServerStarter.run(DRDAServerStarter.java:236) 
at java.lang.Thread.run(Thread.java:735) 


Modified:
    db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/NetworkServerControlImpl.java

Modified: db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/NetworkServerControlImpl.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/NetworkServerControlImpl.java?rev=796372&r1=796371&r2=796372&view=diff
==============================================================================
--- db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/NetworkServerControlImpl.java
(original)
+++ db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/NetworkServerControlImpl.java
Tue Jul 21 16:37:01 2009
@@ -819,9 +819,9 @@
                        }
                     });
         } catch (Exception exception) {
-            consoleExceptionPrintTrace(exception);
             consolePropertyMessage("DRDA_UnexpectedException.S",			
                 exception.getMessage());
+            consoleExceptionPrintTrace(exception);
         }
 		
  		// Close out the sessions
@@ -832,9 +832,9 @@
  				try {
  					session.close();
  				} catch (Exception exception) {
- 					consoleExceptionPrintTrace(exception);
  					consolePropertyMessage("DRDA_UnexpectedException.S",			
  							exception.getMessage());
+ 					consoleExceptionPrintTrace(exception);
  				}
  			}
  		}
@@ -856,9 +856,9 @@
  									}
  								});
  				} catch (Exception exception) {
- 					consoleExceptionPrintTrace(exception);
  					consolePropertyMessage("DRDA_UnexpectedException.S",			
  							exception.getMessage());
+ 					consoleExceptionPrintTrace(exception);
  				}
  			}
  			threadList.clear();
@@ -870,9 +870,9 @@
 	    }catch(IOException e){
 			consolePropertyMessage("DRDA_ListenerClose.S", true);
 	    } catch (Exception exception) {
-			consoleExceptionPrintTrace(exception);
 			consolePropertyMessage("DRDA_UnexpectedException.S",			
 					exception.getMessage());
+			consoleExceptionPrintTrace(exception);
 	    }
 
 		// Wake up those waiting on sessions, so
@@ -882,9 +882,9 @@
 				runQueue.notifyAll();
 			}	
 	    } catch (Exception exception) {
-			consoleExceptionPrintTrace(exception);
 			consolePropertyMessage("DRDA_UnexpectedException.S",			
 					exception.getMessage());
+			consoleExceptionPrintTrace(exception);
 	    }
         
         // And now unregister any MBeans.
@@ -892,9 +892,9 @@
 	        mgmtService.unregisterMBean(versionMBean);
 	        mgmtService.unregisterMBean(networkServerMBean);
 	    } catch (Exception exception) {
-			consoleExceptionPrintTrace(exception);
 			consolePropertyMessage("DRDA_UnexpectedException.S",			
 					exception.getMessage());
+			consoleExceptionPrintTrace(exception);
 	    }
 
 		if (shutdownDatabasesOnShutdown) {
@@ -925,9 +925,9 @@
 										   sqle.getMessage());
 				}
 			} catch (Exception exception) {
-				consoleExceptionPrintTrace(exception);
 				consolePropertyMessage("DRDA_UnexpectedException.S",			
 						exception.getMessage());
+				consoleExceptionPrintTrace(exception);
 			}
 		}
 



Mime
View raw message