[logback-dev] [JIRA] Commented: (LBCLASSIC-125) NoClassDefFoundError in PackagingDataCalculator.loadClass()

Roland Klein (JIRA) noreply-jira at qos.ch
Tue May 5 15:30:10 CEST 2009


    [ http://jira.qos.ch/browse/LBCLASSIC-125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11108#action_11108 ] 

Roland Klein commented on LBCLASSIC-125:
----------------------------------------

solution:
add catch statement

try {
      return cl.loadClass(className);
    } catch (ClassNotFoundException e1) {
      return null;
// ==== BEGIN ====
    } catch (NoClassDefFoundError e1) {
      return null;
// ==== END ====
    } catch (Exception e) {
      e.printStackTrace(); // this is unexpected
      return null;
    }


> NoClassDefFoundError in PackagingDataCalculator.loadClass()
> -----------------------------------------------------------
>
>                 Key: LBCLASSIC-125
>                 URL: http://jira.qos.ch/browse/LBCLASSIC-125
>             Project: logback-classic
>          Issue Type: Bug
>    Affects Versions: 0.9.15
>         Environment: jdk 1.6 (build 1.6.0_10-b33)
> jboss 4.2.2ga
>            Reporter: Roland Klein
>            Assignee: Logback dev list
>
> In an EJB Client/Server Environment the loadClass() method could fail, because the vm issues a NoClassDefFoundError. And there is no corresponding catch, so the whole logging fails and throws a NoClassDefFoundError.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the logback-dev mailing list