[jboss-jira] [JBoss JIRA] (WFCORE-3513) StringIndexOutOfBoundsException if config file with wrong name is present in 'standalone_xml_history/snapshot' folder
Brian Stansberry (JIRA)
issues at jboss.org
Wed Jan 17 11:26:00 EST 2018
[ https://issues.jboss.org/browse/WFCORE-3513?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Stansberry updated WFCORE-3513:
-------------------------------------
Component/s: Domain Management
(was: Server)
> StringIndexOutOfBoundsException if config file with wrong name is present in 'standalone_xml_history/snapshot' folder
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: WFCORE-3513
> URL: https://issues.jboss.org/browse/WFCORE-3513
> Project: WildFly Core
> Issue Type: Bug
> Components: Domain Management
> Affects Versions: 3.0.8.Final
> Environment: The issue is reproduce able in 'wildfly-11.0.0.Final'
> Reporter: Jörg Bäsner
> Assignee: Dmitrii Tikhomirov
>
> In case a file not named as *yyyyMMdd-HHmmssSSSname.xml* is present in the _snapshot_ folder, the server start abort with a StringIndexOutOfBoundsException.
> {noformat}
> wildfly-11.0.0.Final $ ./bin/standalone.sh --admin-only -c standalone.xml
> =========================================================================
> JBoss Bootstrap Environment
> JBOSS_HOME: /home/jbaesner/wildfly-nightly/wildfly-11.0.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
> =========================================================================
> 12:21:09,710 INFO [org.jboss.modules] (main) JBoss Modules version 1.6.1.Final
> java.lang.StringIndexOutOfBoundsException: String index out of range: -4
> at java.lang.String.substring(String.java:1931)
> at org.jboss.as.controller.persistence.ConfigurationFile.findMainFileFromSnapshotPrefix(ConfigurationFile.java:403)
> at org.jboss.as.controller.persistence.ConfigurationFile.determineMainFile(ConfigurationFile.java:312)
> at org.jboss.as.controller.persistence.ConfigurationFile.<init>(ConfigurationFile.java:176)
> at org.jboss.as.server.ServerEnvironment.<init>(ServerEnvironment.java:454)
> at org.jboss.as.server.Main.determineEnvironment(Main.java:339)
> at org.jboss.as.server.Main.main(Main.java:95)
> at org.jboss.modules.Module.run(Module.java:344)
> at org.jboss.modules.Main.main(Main.java:525)
> 12:21:10,047 FATAL [org.jboss.as.server] (main) WFLYSRV0239: Aborting with exit code 1
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list