[
https://issues.jboss.org/browse/WFLY-8863?page=com.atlassian.jira.plugin....
]
Martin Švehla moved JBEAP-11250 to WFLY-8863:
---------------------------------------------
Project: WildFly (was: JBoss Enterprise Application Platform)
Key: WFLY-8863 (was: JBEAP-11250)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: JDR
(was: JDR)
Affects Version/s: (was: 7.1.0.DR19)
JDR throws NPE when running through jdr.sh with non-English locale
------------------------------------------------------------------
Key: WFLY-8863
URL:
https://issues.jboss.org/browse/WFLY-8863
Project: WildFly
Issue Type: Bug
Components: JDR
Reporter: Martin Švehla
Assignee: Brad Maxwell
When running jdr.sh script with non-English locale, the script throws
NullPointerException. Problem seems to be that the generate-jdr-output always uses English
locale, but when parsing start-date and end-date, SimpleDateFormat uses system defined
locales.
{code}
Initializing JBoss Diagnostic Reporter...
Trying to connect to http-remoting localhost:9990
Exception in thread "main" java.lang.NullPointerException
at org.jboss.as.jdr.CommandLineMain.printJdrReportInfo(CommandLineMain.java:150)
at org.jboss.as.jdr.CommandLineMain.main(CommandLineMain.java:144)
at org.jboss.modules.Module.run(Module.java:344)
at org.jboss.modules.Main.main(Main.java:519)
{code}
This is not issue when running generate-jdr-report() from CLI. Also easy to workaround by
enforcing locale for the script run
{code}
LC_ALL=C $JBOSS_HOME/bin/jdr.sh
{code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)