Patches item #524384, was opened at 2002-03-01 15:54
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=376687&aid=524384&group_id=22866
Category: JBossCMP
Group: v3.0 Rabbit Hole (unstable)
Status: Open
Resolution: None
Priority: 5
Submitted By: Hugh Greene (hgreene_np)
Assigned to: Nobody/Anonymous (nobody)
Summary: Patch for Bug 512649
Initial Comment:
Hi guys,
here's a patch for Bug 512649, which I just bumped
into. This is against
"jboss/jboss/src/main/org/jboss/ejb/plugins/jaws/bmp/CustomFindByEntitiesCommand.java"
revision 1.12 (i.e., release 3.0), though I'd also like
to see it back-ported to any further 2.4.x releases :-)
I've used printStackTrace to extract the maximum info
from the Throwable, though you may prefer to just use
"target.toString()". This is untested "but it should
just work" :-)
--------------------------------------------------------
--- CustomFindByEntitiesCommand.java.orig Fri Mar
1 15:47:04 2002
+++ CustomFindByEntitiesCommand.java Fri Mar 1
15:46:20 2002
@@ -7,6 +7,9 @@
package org.jboss.ejb.plugins.jaws.bmp;
+import java.io.PrintWriter;
+import java.io.StringWriter;
+
import java.lang.reflect.Method;
import java.lang.reflect.InvocationTargetException;
@@ -93,7 +96,9 @@
if(target instanceof Exception) {
throw (Exception)target;
}
- throw new FinderException("Unable to
initialize finder implementation: " +
finderImplMethod.getName());
+ StringWriter sw = new StringWriter();
+ target.printStackTrace(new PrintWriter(sw));
+ throw new FinderException("Throwable from
finder implementation: " + finderImplMethod.getName() +
": " + sw.toString());
}
}
}
--------------------------------------------------------
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=376687&aid=524384&group_id=22866
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development