Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 26083 invoked from network); 5 Sep 2010 02:59:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Sep 2010 02:59:42 -0000 Received: (qmail 70204 invoked by uid 500); 5 Sep 2010 02:59:41 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 69735 invoked by uid 500); 5 Sep 2010 02:59:40 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 69721 invoked by uid 99); 5 Sep 2010 02:59:39 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Sep 2010 02:59:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Sep 2010 02:59:17 +0000 Received: from thor.apache.org (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o852wulT010287 for ; Sun, 5 Sep 2010 02:58:56 GMT Received: (from daemon@localhost) by thor.apache.org (8.13.8+Sun/8.13.8/Submit) id o852wtbE010286; Sat, 4 Sep 2010 22:58:55 -0400 (EDT) Date: Sat, 4 Sep 2010 22:58:55 -0400 (EDT) From: bugzilla@apache.org To: dev@tomcat.apache.org Subject: DO NOT REPLY [Bug 49883] New: java.lang.UnsupportedOperationException: The getName() method should never be called X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Tomcat 7 X-Bugzilla-Component: Catalina X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kevin@infofinity.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@tomcat.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=49883 Summary: java.lang.UnsupportedOperationException: The getName() method should never be called Product: Tomcat 7 Version: trunk Platform: PC Status: NEW Severity: normal Priority: P2 Component: Catalina AssignedTo: dev@tomcat.apache.org ReportedBy: kevin@infofinity.com Hi, I am running Tomcat trunk (revision 992708, 2010-09-03). I added this line to conf/logging.properties: org.apache.catalina.level=FINEST The server fails to start with: Throwable occurred: java.lang.UnsupportedOperationException: The getName() method should never be called at org.apache.catalina.realm.CombinedRealm.getName(CombinedRealm.java:268) at org.apache.catalina.realm.RealmBase.toString(RealmBase.java:1015) at java.text.MessageFormat.subformat(MessageFormat.java:1258) at java.text.MessageFormat.format(MessageFormat.java:807) at org.apache.tomcat.util.res.StringManager.getString(StringManager.java:152) at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:320) at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:305) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:98) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:131) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1020) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:276) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:429) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:649) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140) at org.apache.catalina.startup.Catalina.start(Catalina.java:584) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:600) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:416) java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:600) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:416) Caused by: java.lang.UnsupportedOperationException: The getName() method should never be called at org.apache.catalina.realm.CombinedRealm.getName(CombinedRealm.java:268) at org.apache.catalina.realm.RealmBase.toString(RealmBase.java:1015) at java.text.MessageFormat.subformat(MessageFormat.java:1258) at java.text.MessageFormat.format(MessageFormat.java:807) at org.apache.tomcat.util.res.StringManager.getString(StringManager.java:152) at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:320) at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:305) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:98) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:131) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1020) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:276) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:429) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:649) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140) at org.apache.catalina.startup.Catalina.start(Catalina.java:584) ... 6 more If I comment out that line in logging.properties, the server starts fine. Looking at the code in LifecycleBase line 320, it is a log.debug call: if (log.isDebugEnabled()) { log.debug(sm.getString("lifecycleBase.setState", this, state)); } -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- 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