0 Replies Latest reply on Sep 14, 2016 5:41 AM by Aman Jaiswal

    Current event not START_ELEMENT error in keycloak-2.1.0.Final

    Aman Jaiswal Newbie

      Hi

      I am trying to rum keycloak-2.1.0.Final and getting following error please help me to solve this...

       

      /home/ubuntu/keycloak/keycloak-2.1.0.Final/bin/standalone.sh --debug --server-config=standalone-ha.xml -b=$ip -Djava.net.preferIPv4Stack=true -Djboss.default.jgroups.stack=s3 -Djgroups.s3.bucket=keycloak-dev -Djgroups.s3.access_key=AKIAJLZZOFCWT37CYAXQ -Djgroups.s3.secret_access_key=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 -Djgroups.management.address=$ip

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

       

       

        JBoss Bootstrap Environment

       

       

        JBOSS_HOME: /home/ubuntu/keycloak/keycloak-2.1.0.Final

       

       

        JAVA: java

       

       

        JAVA_OPTS:  -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n

       

       

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

       

       

      Listening for transport dt_socket at address: 8787

      09:33:56,270 INFO  [org.jboss.modules] (main) JBoss Modules version 1.5.1.Final

      09:33:56,530 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final

      09:33:56,626 INFO  [org.jboss.as] (MSC service thread 1-4) WFLYSRV0049: Keycloak 2.1.0.Final (WildFly Core 2.0.10.Final) starting

      09:33:57,251 ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0055: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0085: Failed to parse configuration

        at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:131)

        at org.jboss.as.server.ServerService.boot(ServerService.java:356)

        at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:299)

        at java.lang.Thread.run(Thread.java:745)

      Caused by: java.lang.IllegalStateException: Current event not START_ELEMENT

        at com.ctc.wstx.sr.BasicStreamReader.getAttributeValue(BasicStreamReader.java:625)

        at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.getAttributeValue(XMLExtendedStreamReaderImpl.java:240)

        at org.jboss.as.controller.parsing.ParseUtils.invalidAttributeValue(ParseUtils.java:150)

        at org.jboss.as.controller.parsing.ExtensionXml.parseExtensions(ExtensionXml.java:119)

        at org.jboss.as.server.parsing.StandaloneXml$DefaultExtensionHandler.parseExtensions(StandaloneXml.java:126)

        at org.jboss.as.server.parsing.StandaloneXml_4.readServerElement(StandaloneXml_4.java:218)

        at org.jboss.as.server.parsing.StandaloneXml_4.readElement(StandaloneXml_4.java:141)

        at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:103)

        at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:49)

        at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)

        at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)

        at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:123)

        ... 3 more

       

       

      09:33:57,253 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.

      09:33:57,302 INFO  [org.jboss.as.server] (Thread-2) WFLYSRV0220: Server shutdown has been requested.

      09:33:57,336 INFO  [org.jboss.as] (MSC service thread 1-2) WFLYSRV0050: Keycloak 2.1.0.Final (WildFly Core 2.0.10.Final) stopped in 12ms

      ubuntu@ip-10-1-6-128:~$ emacs keycloak/keycloak-2.1.0.Final/standalone/configuration/standalone-ha.xmlubuntu@ip-10-1-6-128:~$

       

      /home/ubuntu/keycloak/keycloak-2.1.0.Final/bin/standalone.sh --debug --server-config=standalone-ha.xml -b=$ip -Djava.net.preferIPv4Stack=true -Djboss.default.jgroups.stack=s3 -Djgroups.s3.bucket=keycloak-dev -Djgroups.s3.access_key=AKIAJLZZOFCWT37CYAXQ -Djgroups.s3.secret_access_key=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 -Djgroups.management.address=$ip=========================================================================
        JBoss Bootstrap Environment
        JBOSS_HOME: /home/ubuntu/keycloak/keycloak-2.1.0.Final
        JAVA: java
        JAVA_OPTS:  -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n
      =========================================================================
      Listening for transport dt_socket at address: 878709:33:56,270 INFO  [org.jboss.modules] (main) JBoss Modules version 1.5.1.Final09:33:56,530 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final09:33:56,626 INFO  [org.jboss.as] (MSC service thread 1-4) WFLYSRV0049: Keycloak 2.1.0.Final (WildFly Core 2.0.10.Final) starting09:33:57,251 ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0055: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0085: Failed to parse configuration at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:131) at org.jboss.as.server.ServerService.boot(ServerService.java:356) at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:299) at java.lang.Thread.run(Thread.java:745)Caused by: java.lang.IllegalStateException: Current event not START_ELEMENT at com.ctc.wstx.sr.BasicStreamReader.getAttributeValue(BasicStreamReader.java:625) at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.getAttributeValue(XMLExtendedStreamReaderImpl.java:240) at org.jboss.as.controller.parsing.ParseUtils.invalidAttributeValue(ParseUtils.java:150) at org.jboss.as.controller.parsing.ExtensionXml.parseExtensions(ExtensionXml.java:119) at org.jboss.as.server.parsing.StandaloneXml$DefaultExtensionHandler.parseExtensions(StandaloneXml.java:126) at org.jboss.as.server.parsing.StandaloneXml_4.readServerElement(StandaloneXml_4.java:218) at org.jboss.as.server.parsing.StandaloneXml_4.readElement(StandaloneXml_4.java:141) at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:103) at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:49) at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110) at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69) at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:123) ... 3 more
      09:33:57,253 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.09:33:57,302 INFO  [org.jboss.as.server] (Thread-2) WFLYSRV0220: Server shutdown has been requested.09:33:57,336 INFO  [org.jboss.as] (MSC service thread 1-2) WFLYSRV0050: Keycloak 2.1.0.Final (WildFly Core 2.0.10.Final) stopped in 12msubuntu@ip-10-1-6-128:~$ emacs keycloak/keycloak-2.1.0.Final/standalone/configuration/standalone-ha.xmlubuntu@ip-10-1-6-128:~$