java.lang.ClassCastException: java.lang.IllegalAccessException

Atlassian JIRA | Kazimierz Pogoda | 9 years ago
  1. 0

    When stopping tomcat wich hosts only Jira, there is always such stack trace in tomcat logs: {code} 2008-02-18 19:25:32,767: [ERROR] [Thread-33] - org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/jira].release() - ApplicationFilterConfig.doAsPrivilege java.lang.ClassCastException: java.lang.IllegalAccessException at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:277) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:177) at org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:249) at org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3669) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4349) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:892) at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1164) at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1135) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1054) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1066) at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:447) at org.apache.catalina.core.StandardService.stop(StandardService.java:512) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:743) at org.apache.catalina.startup.Catalina.stop(Catalina.java:601) at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:644) {code} These errors occur only after turning on log4j logging on tomcat instead of standard logging. The procedure is described here: http://tomcat.apache.org/tomcat-5.5-doc/logging.html As we are sending error logs of tomcat to our system administrator's mail, we also had to remove all javamail related libraries from jira webapp, and put them in {{$TOMCAT_HOME/common/lib}} directory. Remote debug of this tomcat instance shows such error as a cause of the above stack trace: {code} Class org.apache.catalina.security.SecurityUtil$1 can not access a member of class com.atlassian.gzipfilter.AbstractFilter with modifiers "public" {code}

    Atlassian JIRA | 9 years ago | Kazimierz Pogoda
    java.lang.ClassCastException: java.lang.IllegalAccessException
  2. 0

    When stopping tomcat wich hosts only Jira, there is always such stack trace in tomcat logs: {code} 2008-02-18 19:25:32,767: [ERROR] [Thread-33] - org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/jira].release() - ApplicationFilterConfig.doAsPrivilege java.lang.ClassCastException: java.lang.IllegalAccessException at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:277) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:177) at org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:249) at org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3669) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4349) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:892) at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1164) at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1135) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1054) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1066) at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:447) at org.apache.catalina.core.StandardService.stop(StandardService.java:512) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:743) at org.apache.catalina.startup.Catalina.stop(Catalina.java:601) at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:644) {code} These errors occur only after turning on log4j logging on tomcat instead of standard logging. The procedure is described here: http://tomcat.apache.org/tomcat-5.5-doc/logging.html As we are sending error logs of tomcat to our system administrator's mail, we also had to remove all javamail related libraries from jira webapp, and put them in {{$TOMCAT_HOME/common/lib}} directory. Remote debug of this tomcat instance shows such error as a cause of the above stack trace: {code} Class org.apache.catalina.security.SecurityUtil$1 can not access a member of class com.atlassian.gzipfilter.AbstractFilter with modifiers "public" {code}

    Atlassian JIRA | 9 years ago | Kazimierz Pogoda
    java.lang.ClassCastException: java.lang.IllegalAccessException
  3. 0

    SQL Assistant Java Edition | Teradata Developer Exchange

    teradata.com | 11 months ago
    java.lang.ClassCastException: org.eclipse.core.internal.dtree.NoDataDeltaNode cannot be cast to org.eclipse.core.internal.dtree.DataTreeNode
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Issue while closiing Liferay Developer Studio 1.6.2 - Forums | Liferay

    liferay.com | 11 months ago
    java.lang.ClassCastException: org.eclipse.ui.ide.FileStoreEditorInput cannot be cast to org.eclipse.ui.IFileEditorInput
  6. 0

    Users forum - Get object form Parameters

    nabble.com | 11 months ago
    java.lang.ClassCastException: [Ljava.lang.String;

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.IllegalAccessException

      at org.apache.catalina.security.SecurityUtil.execute()
    2. Glassfish Core
      Catalina$CatalinaShutdownHook.run
      1. org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:277)
      2. org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
      3. org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:177)
      4. org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:249)
      5. org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3669)
      6. org.apache.catalina.core.StandardContext.stop(StandardContext.java:4349)
      7. org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:892)
      8. org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1164)
      9. org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1135)
      10. org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312)
      11. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
      12. org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1054)
      13. org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1066)
      14. org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:447)
      15. org.apache.catalina.core.StandardService.stop(StandardService.java:512)
      16. org.apache.catalina.core.StandardServer.stop(StandardServer.java:743)
      17. org.apache.catalina.startup.Catalina.stop(Catalina.java:601)
      18. org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:644)
      18 frames