Hi.
The following patch makes jikes more happy.
There are still warnings; check the output.txt file.
Cheers,
Jesper
Index: ejb/plugins/jms/JMSContainerInvoker.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jms/JMSContainerInvoker.java,v
retrieving revision 1.12
diff -u -r1.12 JMSContainerInvoker.java
--- ejb/plugins/jms/JMSContainerInvoker.java 2001/06/01 06:06:37 1.12
+++ ejb/plugins/jms/JMSContainerInvoker.java 2001/06/12 10:32:13
@@ -535,37 +535,30 @@
public void onException(JMSException ex) {
currentThread = Thread.currentThread();
- try {
- Logger.warning("MDB lost connection to provider");
- boolean tryIt = true;
- while(tryIt && notStoped) {
- Logger.log("MDB Trying to reconnect...");
- try {
- try {
- Thread.sleep(10000);
- }catch(InterruptedException ie) { tryIt=false; return;}
- //try {
- // Reboot container
- invoker.innerStop();
- invoker.destroy();
- invoker.init();
- invoker.start();
- tryIt = false;
- Logger.log("OK - reconnected");
- //return;
- }catch(Exception e) {
- Logger.log("MDB error reconnecting: " +e);
- }
- }
+
+ Logger.warning("MDB lost connection to provider");
+ boolean tryIt = true;
+ while(tryIt && notStoped) {
+ Logger.log("MDB Trying to reconnect...");
+ try {
+ try {
+ Thread.sleep(10000);
+ }catch(InterruptedException ie) { tryIt=false; return;}
+ //try {
+ // Reboot container
+ invoker.innerStop();
+ invoker.destroy();
+ invoker.init();
+ invoker.start();
+ tryIt = false;
+ Logger.log("OK - reconnected");
+ //return;
+ }catch(Exception e) {
+ Logger.log("MDB error reconnecting: " +e);
+ }
+ }
-
- //topicConnection.close();
- }catch(Exception je) {
- Logger.warning("Could not restart connection " + je);
- je.printStackTrace();
- } finally {
- currentThread = null;
- }
+ currentThread = null;
}
}
Index: jdbc/HypersonicDatabase.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/jdbc/HypersonicDatabase.java,v
retrieving revision 1.8
diff -u -r1.8 HypersonicDatabase.java
--- jdbc/HypersonicDatabase.java 2001/05/21 20:30:52 1.8
+++ jdbc/HypersonicDatabase.java 2001/06/12 10:32:13
@@ -119,7 +119,7 @@
public void run()
{
// Get DB directory
- URL dbLocator = getClass().getResource("/db.properties");
+ URL dbLocator = this.getClass().getResource("/db.properties");
File dbDir = new File(dbLocator.getFile()).getParentFile();
File dbName = new File(dbDir, "hypersonic/"+name);
Index: jmx/client/ConnectorFactoryService.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/jmx/client/ConnectorFactoryService.java,v
retrieving revision 1.6
diff -u -r1.6 ConnectorFactoryService.java
--- jmx/client/ConnectorFactoryService.java 2001/05/10 22:01:17 1.6
+++ jmx/client/ConnectorFactoryService.java 2001/06/12 10:32:13
@@ -84,12 +84,7 @@
// Protected -----------------------------------------------------
protected void initService() throws Exception {
- try {
mFactory = new ConnectorFactoryImpl( mServer );
- }
- catch( Exception e ) {
- e.printStackTrace();
- }
}
protected void startService() throws Exception {
Index: web/ThreadPool.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/web/ThreadPool.java,v
retrieving revision 1.4
diff -u -r1.4 ThreadPool.java
--- web/ThreadPool.java 2000/12/07 15:45:25 1.4
+++ web/ThreadPool.java 2001/06/12 10:32:14
@@ -112,7 +112,7 @@
public synchronized void die()
{
running = false;
- notify();
+ this.notify();
}
/**
@@ -126,7 +126,7 @@
if (this.work != null)
throw new IllegalStateException("Worker already has work to do.");
this.work = work;
- notify();
+ this.notify();
}
/**
@@ -153,7 +153,7 @@
synchronized (this) {
while (running && work == null) {
try {
- wait();
+ this.wait();
} catch (InterruptedException e) {
// Ignore
}
output.txt.gz