1 Reply Latest reply on Feb 1, 2018 4:49 PM by David Le Borgne

    javax.xml.parsers.FactoryConfigurationError running JBoss AS 7.1 with Java 7 update 171

    David Le Borgne

      Upgrading Java from 7u161 to 7u171 prevents JBoss AS 7.1.1.Final from starting. I know JBoss AS 7.1.1 is EOL but for compatibility reasons, we still need to run this version.

      Very early in the startup, a NullPointerException occurs in some JBoss method :

      Calling "C:\PRODUCT\jboss-as-7.1.1\bin\standalone.conf.bat"

      "JAVA_OPTS already set in environment; overriding default settings with values: -server -Xrs -Xms256m -Xmx512m -XX:MaxPermSize=128m -Dproduct.home=C:\PRODUCT -Djboss.server.base.dir=C:\PRODUCT\jboss-as-7.1.1\standalone -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.server.default.config=standalone.xml "

      ===============================================================================

       

        JBoss Bootstrap Environment

       

        JBOSS_HOME: C:\PRODUCT\jboss-as-7.1.1

       

        JAVA: C:\Java\jdk1.7.0\bin\java

       

        JAVA_OPTS: -XX:+TieredCompilation -Dprogram.name=standalone.bat -server -Xrs -Xms256m -Xmx512m -XX:MaxPermSize=128m -Dproduct.home=C:\PRODUCT -Djboss.server.base.dir=C:\PRODUCT\jboss-as-7.1.1\standalone -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.server.default.config=standalone.xml

       

      ===============================================================================

       

      Exception in thread "main" javax.xml.parsers.FactoryConfigurationError: Provider __redirected.__SAXParserFactory could not be instantiated: java.lang.NullPointerException

      at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:132)

      at jdk.xml.internal.JdkXmlUtils.getSAXFactory(JdkXmlUtils.java:231)

      at jdk.xml.internal.JdkXmlUtils.<clinit>(JdkXmlUtils.java:77)

      at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.<init>(SchemaParsingConfig.java:319)

      at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.<init>(SchemaParsingConfig.java:254)

      at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.<init>(XSDHandler.java:473)

      at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.<init>(XSDHandler.java:480)

      at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.<init>(XMLSchemaLoader.java:357)

      at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.<init>(XMLSchemaLoader.java:292)

      at com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory.<init>(XMLSchemaFactory.java:96)

      at javax.xml.validation.SchemaFactoryFinder._newFactory(SchemaFactoryFinder.java:238)

      at javax.xml.validation.SchemaFactoryFinder.newFactory(SchemaFactoryFinder.java:145)

      at javax.xml.validation.SchemaFactory.newInstance(SchemaFactory.java:202)

      at __redirected.__SchemaFactory.<clinit>(__SchemaFactory.java:66)

      at __redirected.__JAXPRedirected.initAll(__JAXPRedirected.java:88)

      at org.jboss.modules.Module$1.run(Module.java:85)

      at org.jboss.modules.Module$1.run(Module.java:72)

      at java.security.AccessController.doPrivileged(Native Method)

      at org.jboss.modules.Module.<clinit>(Module.java:72)

      at org.jboss.modules.Main.main(Main.java:255)

      Caused by: java.lang.NullPointerException

      at __redirected.__RedirectedUtils.loadProvider(__RedirectedUtils.java:94)

      at __redirected.__RedirectedUtils.loadProvider(__RedirectedUtils.java:87)

      at __redirected.__SAXParserFactory.<init>(__SAXParserFactory.java:102)

      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

      at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

      at java.lang.Class.newInstance(Class.java:383)

      at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:179)

      at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:147)

      at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:219)

      at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:126)

      ... 19 more

       

      This question was also asked on Stack Overflow : https://stackoverflow.com/questions/48403832/javax-xml-parsers-factoryconfigurationerror-running-jboss-as-7-1-with-java-…