You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2018/12/31 21:34:49 UTC

[Bug 63050] New: NumberFormatException depending on language and logging level

https://bz.apache.org/bugzilla/show_bug.cgi?id=63050

            Bug ID: 63050
           Summary: NumberFormatException depending on language and
                    logging level
           Product: Tomcat 9
           Version: 9.0.14
          Hardware: PC
            Status: NEW
          Severity: major
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: evernat@free.fr
  Target Milestone: -----

To reproduce the exception:
1. set a particular language, for example "set JAVA_OPTS=-Duser.language=fr"
2. set logging level, for example ".level = FINE" in conf/logging.properties
3. start Tomcat

Patch is pending.

Trace:
31-Dec-2018 22:26:31.587 GRAVE [main]
org.apache.catalina.startup.Catalina.start Le composant Server requis n'a pas
démarré, en conséquence Tomcat ne peut démarrer.
 org.apache.catalina.LifecycleException: Echec de démarrage du composant
[org.apache.catalina.mapper.MapperListener@6dc17b83]
        at
org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:441)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
        at
org.apache.catalina.core.StandardService.startInternal(StandardService.java:433)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at
org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:933)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:637)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
Caused by: java.lang.IllegalArgumentException: can't parse argument number: 2]
        at java.text.MessageFormat.makeFormat(MessageFormat.java:1429)
        at java.text.MessageFormat.applyPattern(MessageFormat.java:479)
        at java.text.MessageFormat.<init>(MessageFormat.java:362)
        at
org.apache.tomcat.util.res.StringManager.getString(StringManager.java:163)
        at
org.apache.catalina.mapper.MapperListener.registerContext(MapperListener.java:387)
        at
org.apache.catalina.mapper.MapperListener.registerHost(MapperListener.java:307)
        at
org.apache.catalina.mapper.MapperListener.startInternal(MapperListener.java:113)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        ... 11 more
Caused by: java.lang.NumberFormatException: For input string: "2]"
        at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
        at java.lang.Integer.parseInt(Integer.java:580)
        at java.lang.Integer.parseInt(Integer.java:615)
        at java.text.MessageFormat.makeFormat(MessageFormat.java:1427)
        ... 18 more

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 63050] NumberFormatException depending on language and logging level

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63050

evernat <ev...@free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from evernat <ev...@free.fr> ---
Patch for this exception and others like this one:
https://github.com/apache/tomcat/pull/135

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 63050] NumberFormatException depending on language and logging level

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63050

--- Comment #2 from evernat <ev...@free.fr> ---
Created attachment 36355
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36355&action=edit
patch

patch from PR 135:
https://patch-diff.githubusercontent.com/raw/apache/tomcat/pull/135.diff

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 63050] NumberFormatException depending on language and logging level

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63050

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Mark Thomas <ma...@apache.org> ---
Updates have been imported into 9.0.x for 9.0.15 onwards.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 63050] NumberFormatException depending on language and logging level

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63050

--- Comment #3 from Remy Maucherat <re...@apache.org> ---
I made the changes in poeditor, but you could have done it there just as well.
The changes will be merged in Tomcat before the next build.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org