2 Replies Latest reply on Feb 4, 2008 12:55 AM by tekniklas

    ClassCastException: org.jnp.interfaces.NamingContext

    tekniklas

      Dear guys,
      How do I interpret the following stacktrace after upgrading to 4.2.2.GA:

      2008-02-02 19:12:28,151 DEBUG [org.jboss.web.tomcat.security.SecurityFlushSessionListener] Obtaining SecurityManagerService failed::
      java.lang.ClassCastException: org.jnp.interfaces.NamingContext
       at org.jboss.web.tomcat.security.SecurityFlushSessionListener.getSecurityManagerService(SecurityFlushSessionListener.java:201)
       at org.jboss.web.tomcat.security.SecurityFlushSessionListener.getSubjectAndSecurityDomain(SecurityFlushSessionListener.java:168
      )
       at org.jboss.web.tomcat.security.SecurityFlushSessionListener.sessionDestroyed(SecurityFlushSessionListener.java:81)
       at org.apache.catalina.session.StandardSession.expire(StandardSession.java:702)
       at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:592)
       at org.apache.catalina.session.ManagerBase.processExpires(ManagerBase.java:681)
       at org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:666)
       at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1315)
       at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1600)
       at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1609)
       at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1609)
       at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1589)
       at java.lang.Thread.run(Thread.java:595)
      2008-02-02 19:12:28,151 DEBUG [org.jboss.web.tomcat.security.SecurityFlushSessionListener] Unable to obtain SecurityDomain
      2008-02-02 19:12:45,555 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - first pass <Sat, 2 Feb 2008 19:12:45>
      2008-02-02 19:12:45,555 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] StatusModule: first pass
      2008-02-02 19:12:45,555 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_3] -
       TORecoveryModule - first pass
      2008-02-02 19:12:45,555 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.firstpass] Local XARec
      overyModule - first pass
      2008-02-02 19:12:55,557 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - second pass <Sat, 2 Feb 2008 19:12:55>
      2008-02-02 19:12:55,557 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] AtomicActionRecoveryModule: Second pass
      2008-02-02 19:12:55,557 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_6] -
       TORecoveryModule - second pass
      2008-02-02 19:12:55,557 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.secondpass] Local XARe
      coveryModule - second pass
      

      Best regards
      Niklas

        • 1. Re: ClassCastException: org.jnp.interfaces.NamingContext
          jaikiran

          You will have to provide more details. From which version did you upgrade? Which version of Java do you use? When does this exception occur? Is it happening when JBoss is starting or when you application is deployed/accessed? And finally, this looks like just a DEBUG message, is it affecting any functionality? If yes then provide more details about your application.


          2008-02-02 19:12:28,151 DEBUG [org.jboss.web.tomcat.security.SecurityFlushSessionListener] Obtaining
          SecurityManagerService failed::
          java.lang.ClassCastException: org.jnp.interfaces.NamingContext


          • 2. Re: ClassCastException: org.jnp.interfaces.NamingContext
            tekniklas

            Thanks for your reply. Upgrade from jboss 4.0.1SP1 to 4.2.2.GA with jdk 1.5. The exception occurs regularly without affecting any functionality that I can see. It does not happen during startup but during deployment and running the app. But it seems to have been resolved now that I removed <security-domain flushOnSessionInvalidation="false"/> from jboss-web.xml.
            Thanks
            Niklas