Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-3037

Fix NPE thrown from logging framework

XMLWordPrintable

      log4j:ERROR Could not create level [TRACE]. Reported error follows.
      java.lang.ClassNotFoundException: org.jboss.logging.XLevel
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:169)
      at org.apache.log4j.helpers.Loader.loadClass(Loader.java:178)
      at org.apache.log4j.xml.DOMConfigurator.parseLevel(DOMConfigurator.java:519)
      at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:438)
      at org.apache.log4j.xml.DOMConfigurator.parseCategory(DOMConfigurator.java:345)
      at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:827)
      at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:712)
      at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:618)
      at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:470)
      at org.apache.log4j.LogManager.<clinit>(LogManager.java:122)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:247)
      at org.jboss.logging.LoggerProviders.findProvider(LoggerProviders.java:37)
      at org.jboss.logging.LoggerProviders.<clinit>(LoggerProviders.java:28)
      at org.jboss.logging.Logger.getI18nLogger(Logger.java:2124)
      at org.jboss.logging.Logger.getLogger(Logger.java:2162)
      at org.jboss.logging.Logger.getLogger(Logger.java:2187)
      at org.jboss.ws.core.jaxws.spi.ProviderImpl.<clinit>(ProviderImpl.java:59)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:247)
      at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:345)
      at java.util.ServiceLoader$1.next(ServiceLoader.java:421)
      at javax.xml.ws.spi.Provider.getProviderUsingServiceLoader(Provider.java:146)
      at javax.xml.ws.spi.Provider.provider(Provider.java:106)
      at javax.xml.ws.Service.<init>(Service.java:57)
      at javax.xml.ws.Service.create(Service.java:687)
      at org.jboss.test.ws.jaxws.jbws1666.TestClient.testPortAccess(TestClient.java:38)
      at org.jboss.test.ws.jaxws.jbws1666.TestClient.main(TestClient.java:48)
      log4j:ERROR Could not create an Appender. Reported error follows.
      java.lang.ClassNotFoundException: org.jboss.logging.appender.DailyRollingFileAppender
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:169)
      at org.apache.log4j.helpers.Loader.loadClass(Loader.java:178)
      at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:174)
      at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:150)
      at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:163)
      at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:425)
      at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:394)
      at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:829)
      at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:712)
      at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:618)
      at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:470)
      at org.apache.log4j.LogManager.<clinit>(LogManager.java:122)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:247)
      at org.jboss.logging.LoggerProviders.findProvider(LoggerProviders.java:37)
      at org.jboss.logging.LoggerProviders.<clinit>(LoggerProviders.java:28)
      at org.jboss.logging.Logger.getI18nLogger(Logger.java:2124)
      at org.jboss.logging.Logger.getLogger(Logger.java:2162)
      at org.jboss.logging.Logger.getLogger(Logger.java:2187)
      at org.jboss.ws.core.jaxws.spi.ProviderImpl.<clinit>(ProviderImpl.java:59)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:247)
      at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:345)
      at java.util.ServiceLoader$1.next(ServiceLoader.java:421)
      at javax.xml.ws.spi.Provider.getProviderUsingServiceLoader(Provider.java:146)
      at javax.xml.ws.spi.Provider.provider(Provider.java:106)
      at javax.xml.ws.Service.<init>(Service.java:57)
      at javax.xml.ws.Service.create(Service.java:687)
      at org.jboss.test.ws.jaxws.jbws1666.TestClient.testPortAccess(TestClient.java:38)
      at org.jboss.test.ws.jaxws.jbws1666.TestClient.main(TestClient.java:48)
      log4j:ERROR Could not parse url file:/home/opalka/svn/jbossws/stack/native/trunk/modules/testsuite/framework-tests/target/test-classes/log4j.xml.
      java.lang.NullPointerException
      at java.util.Hashtable.put(Hashtable.java:394)
      at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:151)
      at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:163)
      at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:425)
      at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:394)
      at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:829)
      at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:712)
      at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:618)
      at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:470)
      at org.apache.log4j.LogManager.<clinit>(LogManager.java:122)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:247)
      at org.jboss.logging.LoggerProviders.findProvider(LoggerProviders.java:37)
      at org.jboss.logging.LoggerProviders.<clinit>(LoggerProviders.java:28)
      at org.jboss.logging.Logger.getI18nLogger(Logger.java:2124)
      at org.jboss.logging.Logger.getLogger(Logger.java:2162)
      at org.jboss.logging.Logger.getLogger(Logger.java:2187)
      at org.jboss.ws.core.jaxws.spi.ProviderImpl.<clinit>(ProviderImpl.java:59)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:247)
      at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:345)
      at java.util.ServiceLoader$1.next(ServiceLoader.java:421)
      at javax.xml.ws.spi.Provider.getProviderUsingServiceLoader(Provider.java:146)
      at javax.xml.ws.spi.Provider.provider(Provider.java:106)
      at javax.xml.ws.Service.<init>(Service.java:57)
      at javax.xml.ws.Service.create(Service.java:687)
      at org.jboss.test.ws.jaxws.jbws1666.TestClient.testPortAccess(TestClient.java:38)
      at org.jboss.test.ws.jaxws.jbws1666.TestClient.main(TestClient.java:48)

              ropalka Richard Opalka
              ropalka Richard Opalka
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: