-
Bug
-
Resolution: Done
-
Major
-
2.2.14.Final
-
None
Attached sample web application with embedded Jetty. To launch it use AppRunner.main method.
During startup we got:
java.lang.IllegalArgumentException: can't parse argument number: at java.text.MessageFormat.makeFormat(MessageFormat.java:1429) ~[na:1.8.0_40] at java.text.MessageFormat.applyPattern(MessageFormat.java:479) ~[na:1.8.0_40] at java.text.MessageFormat.<init>(MessageFormat.java:362) ~[na:1.8.0_40] at java.text.MessageFormat.format(MessageFormat.java:840) ~[na:1.8.0_40] at org.jboss.logging.Slf4jLocationAwareLogger.doLog(Slf4jLocationAwareLogger.java:74) ~[jboss-logging-3.1.3.GA.jar:3.1.3.GA] at org.jboss.logging.Logger.logv(Logger.java:1938) ~[jboss-logging-3.1.3.GA.jar:3.1.3.GA] at org.jboss.logging.DelegatingBasicLogger.tracev(DelegatingBasicLogger.java:84) ~[jboss-logging-3.1.3.GA.jar:3.1.3.GA] at org.jboss.weld.environment.deployment.discovery.jandex.JandexIndexBeanArchiveHandler.loadJandexIndex(JandexIndexBeanArchiveHandler.java:104) ~[weld-environment-common-2.2.14.Final.jar:2015-06-24 15:18] at org.jboss.weld.environment.deployment.discovery.jandex.JandexIndexBeanArchiveHandler.getIndex(JandexIndexBeanArchiveHandler.java:73) ~[weld-environment-common-2.2.14.Final.jar:2015-06-24 15:18] at org.jboss.weld.environment.deployment.discovery.jandex.JandexIndexBeanArchiveHandler.handle(JandexIndexBeanArchiveHandler.java:59) ~[weld-environment-common-2.2.14.Final.jar:2015-06-24 15:18] at org.jboss.weld.environment.deployment.discovery.AbstractDiscoveryStrategy.performDiscovery(AbstractDiscoveryStrategy.java:91) ~[weld-environment-common-2.2.14.Final.jar:2015-06-24 15:18] at org.jboss.weld.environment.servlet.WeldServletLifecycle.createDeployment(WeldServletLifecycle.java:238) ~[weld-servlet-core-2.2.14.Final.jar:2015-06-24 15:18] at org.jboss.weld.environment.servlet.WeldServletLifecycle.initialize(WeldServletLifecycle.java:116) ~[weld-servlet-core-2.2.14.Final.jar:2015-06-24 15:18] at org.jboss.weld.environment.servlet.Listener.contextInitialized(Listener.java:56) ~[weld-servlet-core-2.2.14.Final.jar:2015-06-24 15:18] at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:794) ~[jetty-server-9.3.0.v20150612.jar:9.3.0.v20150612] at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:522) ~[jetty-servlet-9.3.0.v20150612.jar:9.3.0.v20150612] at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:785) ~[jetty-server-9.3.0.v20150612.jar:9.3.0.v20150612] at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:341) ~[jetty-servlet-9.3.0.v20150612.jar:9.3.0.v20150612] at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1357) ~[jetty-webapp-9.3.0.v20150612.jar:9.3.0.v20150612] at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1350) ~[jetty-webapp-9.3.0.v20150612.jar:9.3.0.v20150612] at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:734) ~[jetty-server-9.3.0.v20150612.jar:9.3.0.v20150612] at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:258) ~[jetty-servlet-9.3.0.v20150612.jar:9.3.0.v20150612] at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:512) ~[jetty-webapp-9.3.0.v20150612.jar:9.3.0.v20150612] at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.3.0.v20150612.jar:9.3.0.v20150612] at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) [jetty-util-9.3.0.v20150612.jar:9.3.0.v20150612] at org.eclipse.jetty.server.Server.start(Server.java:405) [jetty-server-9.3.0.v20150612.jar:9.3.0.v20150612] at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) [jetty-util-9.3.0.v20150612.jar:9.3.0.v20150612] at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) [jetty-server-9.3.0.v20150612.jar:9.3.0.v20150612] at org.eclipse.jetty.server.Server.doStart(Server.java:372) [jetty-server-9.3.0.v20150612.jar:9.3.0.v20150612] at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.3.0.v20150612.jar:9.3.0.v20150612] at com.xyz.AppRunner.startJettyJersey_AndWeld(AppRunner.java:47) [classes/:na] at com.xyz.AppRunner.main(AppRunner.java:19) [classes/:na] Caused by: java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.8.0_40] at java.lang.Integer.parseInt(Integer.java:592) ~[na:1.8.0_40] at java.lang.Integer.parseInt(Integer.java:615) ~[na:1.8.0_40] at java.text.MessageFormat.makeFormat(MessageFormat.java:1427) ~[na:1.8.0_40] ... 31 common frames omitted
As far as I can tell, the bug is caused by the Jandex tool.
The only known workaround which I'm aware, is to downgrade Weld to version before Jandex, for example: 2.2.0.Final.