[ http://jira.jboss.com/jira/browse/JBAS-1395?page=comments#action_12315262 ] Claude Quïzel commented on JBAS-1395: -------------------------------------
Once I discovered my bug, by tracing through the JBoss code, I wrote a simple test driver. The Exception that you present here is thrown in all sorts of situation. Sometimes this exception is thrown even before the URL is actually accepted by the driver (which makes the message more of a problem than a potential solution). Of course the error is in the driver but JBoss provides no significant debugging message. Where is the stack trace that would help me fix the situation? Was the problem caused by loading the driver? Accepting the URL? At the point where the exception is thrown, the program does not have the contextual information on what actually caused the problem. This seems to be the real problem to me. > LocalManagedConnectionFactory.isDriverLoadedForURL logs an insignificant > error message > -------------------------------------------------------------------------------------- > > Key: JBAS-1395 > URL: http://jira.jboss.com/jira/browse/JBAS-1395 > Project: JBoss Application Server > Type: Bug > Versions: JBossAS-4.0.0 Final > Environment: Win XP > Reporter: Claude Quïzel > Assignee: Scott M Stark > Priority: Minor > > Original Estimate: 1 hour > Remaining: 1 hour > > The LocalManagedConnectionFactory.isDriverLoadedForURL method logs an > insignificant error message. If you look on line 11 (below). I would log the > exception and write a more significant message. At this point the driver has > been successfully loaded. The acceptsURL method failure is more likely the > cause of the problem. > 1> private boolean isDriverLoadedForURL(String url) > 2> { > 3> try > 4> { > 5> driver = DriverManager.getDriver(url); > 6> log.debug("Driver already registered for url: " + url); > 7> return true; > 8> } > 9> catch (Exception e) > 10> { > 11> log.debug("Driver not yet registered for url: " + url); > 12> return false; > 13> } // end of try-catch > 14> } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ JBoss-Development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-development
