2 Replies Latest reply on Nov 6, 2011 3:15 PM by Radoslav Husar

    JBoss AS7  standalone.xml is getting corrupted automatically

    Roberto Beeman Newbie



          I am able to reproduce an issue in 3 fresh installation of JBoss AS7.0.1 Final  


      Step1).  Open the "standalone-preview.xml" file  and then remove the "<level name="INFO"/>" from the FILE appender.


      Step2). Restart JBoss AS7 as   "./standalone.sh --server-config standalone-preview.xml" everything works Fine.


      Step3).  Kill the server and then restart it again, you will see the following exception: 


      NOTE:  In your standalone-preview.xml  file you will notice that the following tag automatically disappears "<file relative-to="jboss.server.log.dir" path="server.log"/>"



      02:54:17,727 INFO  [org.jboss.modules] JBoss Modules version 1.0.1.GA

      02:54:18,157 INFO  [org.jboss.msc] JBoss MSC version 1.0.0.GA

      02:54:18,243 INFO  [org.jboss.as] JBoss AS 7.0.1.Final "Zap" starting

      02:54:18,883 ERROR [stderr] Exception in thread "Controller Boot Thread" java.lang.RuntimeException: org.jboss.as.controller.persistence.ConfigurationPersistenceException: Failed to parse configuration

      02:54:18,883 ERROR [stderr]           at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:89)

      02:54:18,883 ERROR [stderr]           at java.lang.Thread.run(Thread.java:619)

      02:54:18,884 ERROR [stderr] Caused by: org.jboss.as.controller.persistence.ConfigurationPersistenceException: Failed to parse configuration

      02:54:18,884 ERROR [stderr]           at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:115)

      02:54:18,884 ERROR [stderr]           at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:104)

      02:54:18,884 ERROR [stderr]           at org.jboss.as.server.ServerService.boot(ServerService.java:193)

      02:54:18,884 ERROR [stderr]           at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:83)

      02:54:18,885 ERROR [stderr]           ... 1 more

      02:54:18,885 ERROR [stderr] Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[57,13]

      02:54:18,885 ERROR [stderr] Message: Missing required attribute(s): FILE

      02:54:18,885 ERROR [stderr]           at org.jboss.as.controller.parsing.ParseUtils.missingRequired(ParseUtils.java:116)

      02:54:18,885 ERROR [stderr]           at org.jboss.as.logging.LoggingSubsystemParser.parsePeriodicRotatingFileHandlerElement(LoggingSubsystemParser.java:693)

      02:54:18,885 ERROR [stderr]           at org.jboss.as.logging.LoggingSubsystemParser.readElement(LoggingSubsystemParser.java:152)

      02:54:18,886 ERROR [stderr]           at org.jboss.as.logging.LoggingSubsystemParser.readElement(LoggingSubsystemParser.java:88)

      02:54:18,886 ERROR [stderr]           at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:100)

      02:54:18,886 ERROR [stderr]           at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.handleAny(XMLExtendedStreamReaderImpl.java:69)

      02:54:18,886 ERROR [stderr]           at org.jboss.as.controller.parsing.StandaloneXml.parseServerProfile(StandaloneXml.java:311)

      02:54:18,886 ERROR [stderr]           at org.jboss.as.controller.parsing.StandaloneXml.readServerElement(StandaloneXml.java:163)

      02:54:18,886 ERROR [stderr]           at org.jboss.as.controller.parsing.StandaloneXml.readElement(StandaloneXml.java:91)

      02:54:18,887 ERROR [stderr]           at org.jboss.as.controller.parsing.StandaloneXml.readElement(StandaloneXml.java:79)

      02:54:18,887 ERROR [stderr]           at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:100)

      02:54:18,887 ERROR [stderr]           at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:59)

      02:54:18,887 ERROR [stderr]           at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:107)



        • 1. Re: JBoss AS7  standalone.xml is getting corrupted automatically
          Radoslav Husar Master

          Hi Roberto,


          can you try with 7.0.2 as there have been improvements in this aspect and then let us know?





          • 2. Re: JBoss AS7  standalone.xml is getting corrupted automatically
            Radoslav Husar Master

            Hi Roberto,


            ok so I tested it and I have good and bad news.


            Yes, on 7.0.2 there should be something that the log level should default to but it stays inconsistent (undefined) and results in an erorr you described.


            However this is fixed in the master 7.1 branch which is ongoing development. The logger is now defined as

                    <periodic-rotating-file-handler name="FILE">
                            <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
                        <file relative-to="jboss.server.log.dir" path="server.log"/>
                        <suffix value=".yyyy-MM-dd"/>
                        <append value="true"/>

            and as you  see there isnt even level defined :-) but I cant reproduce the issue from the 7.0.x.


            There will be no further 7.0.x release so there is no need to report this as an issue. There will be a Beta coming out very soon which you can pick up for your future work  or you can build the master branch yourself (as I do :-))




            1 of 1 people found this helpful