Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account
List archives

DO NOT REPLY New: UnsupportedOperationException logged when fetching BasicDataSource 'loginTimeout'

buildbot success in ASF Buildbot on tomcat-7-trunk
(23 lines)
svn commit: r1240234 - in /tomcat/maven-plugin/trunk: tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat6/RunMojo.java tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/RunMojo.java
(22 lines)
Feb 3, 2012
Bugzilla
Bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=52591

             Bug #: 52591
           Summary: UnsupportedOperationException logged when fetching
                    BasicDataSource 'loginTimeout'
           Product: Tomcat 7
           Version: 7.0.25
          Platform: PC
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Manager
        AssignedTo: d### @tomcat.apache.org
        ReportedBy: ch### @christopherschultz.net
    Classification: Unclassified


With a BasicDataSource configured (using a <Resource>), simply list
the
available MBeans and this exception will be emitted to stdout:

SEVERE: Error getting attribute
Catalina:type=DataSource,context=/context,host=localhost,class=javax.sql.DataSource,name="jdbc/myDataSource"
loginTimeout
javax.management.RuntimeOperationsException: Exception invoking method
loginTimeout
        at
org.apache.tomcat.util.modeler.BaseModelMBean.getAttribute(BaseModelMBean.java:197)
        at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:666)
        at
com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:638)
        at
org.apache.catalina.mbeans.MBeanDumper.dumpBeans(MBeanDumper.java:81)
        at
org.apache.catalina.manager.JMXProxyServlet.listBeans(JMXProxyServlet.java:166)
        at
org.apache.catalina.manager.JMXProxyServlet.doGet(JMXProxyServlet.java:121)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
[...]
Caused by: java.lang.UnsupportedOperationException: Not supported by
BasicDataSource
        at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getLoginTimeout(BasicDataSource.java:1083)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


This exception does not cause the request to fail, but definitely puts an
ugly
stack trace in catalina.out. It might be better to catch
UnsupportedOperationException and emit a one-line error message -- one that
isn't SEVERE.




Reply
Tags: bugzillaapache
DO NOT REPLY java.lang.UnsupportedOperationException: The getName() method should never be called
September 5, 2010 03:44:44 PM
https://issues.apache.org/bugzilla/show_bug.cgi?id=49883 Mark Thomas <mar### @apache.org> changed: What |Removed |Added
DO NOT REPLY New: PUT failures are not logged
November 25, 2010 06:11:50 AM
https://issues.apache.org/bugzilla/show_bug.cgi?id=50336 Summary: PUT failures are not logged Product: Apache httpd-2 Version: 2.2.15 Platform: PC OS/Version: Linux Status: NEW …
DO NOT REPLY New: Log PID in first entry logged for each request
October 7, 2010 02:16:08 AM
https://issues.apache.org/bugzilla/show_bug.cgi?id=50051 Summary: Log PID in first entry logged for each request Product: Apache httpd-2 Version: 2.2.16 Platform: PC OS/Version: Linux …
DO NOT REPLY remote_user not logged in apache logfile
October 25, 2011 02:08:04 PM
https://issues.apache.org/bugzilla/show_bug.cgi?id=47327 --- Comment #1 from Rainer Jung <rainer### @kippdata.de> 2011-10-25 19:05:40 UTC --- This would be a protocol enhancement for AJP. You can work around the issue by using a filter…
DO NOT REPLY New: mod_remoteip: ErrorDocument causes proxy's IP to be logged
August 28, 2010 03:17:03 PM
https://issues.apache.org/bugzilla/show_bug.cgi?id=49839 Summary: mod_remoteip: ErrorDocument causes proxy's IP to be logged Product: Apache httpd-2 Version: 2.3-HEAD Platform: PC …
DO NOT REPLY Timeout causes a status code of 200 to be logged
March 21, 2011 10:22:31 AM
https://issues.apache.org/bugzilla/show_bug.cgi?id=21637 Malte S. Stretz <m### @apache.org> changed: What |Removed |Added
DO NOT REPLY Status code 408 (Request Timeout) is not logged
November 11, 2011 12:23:14 AM
https://issues.apache.org/bugzilla/show_bug.cgi?id=39785 --- Comment #4 from Graham Poulter <graham.p### @gmail.com> 2011-11-11 06:22:26 UTC --- >> Created an attachment (id=25086) [details] >> Prevent excessive 408 log entries…
DO NOT REPLY Using % after context prefix results in 400 but nothing is logged in access log
November 2, 2010 01:13:40 PM
https://issues.apache.org/bugzilla/show_bug.cgi?id=49099 Mark Thomas <ma### @apache.org> changed: What |Removed |Added
DO NOT REPLY Using % after context prefix results in 400 but nothing is logged in access log
June 2, 2010 10:23:48 AM
https://issues.apache.org/bugzilla/show_bug.cgi?id=49099 --- Comment #5 from Igor Fedulov <igor@fedulov.com> 2010-06-02 11:23:44 EDT --- Excellent, thank you Mark!
DO NOT REPLY New: Exception thrown and logged for all web apps without /WEB-INF/classes
January 23, 2012 03:02:35 PM
https://issues.apache.org/bugzilla/show_bug.cgi?id=52511 Bug #: 52511 Summary: Exception thrown and logged for all web apps without /WEB-INF/classes Product: Tomcat 7 Version:…
DO NOT REPLY Status code 408 (Request Timeout) is not logged
November 14, 2011 06:43:04 PM
https://issues.apache.org/bugzilla/show_bug.cgi?id=39785 Jonathan Sabo <jonatha### @audaxhealth.com> changed: What |Removed |Added
DO NOT REPLY Status code 408 (Request Timeout) is not logged
November 14, 2011 06:43:54 PM
https://issues.apache.org/bugzilla/show_bug.cgi?id=39785 --- Comment #5 from Jonathan Sabo <jonath### @audaxhealth.com> 2011-11-15 00:43:28 UTC --- This is definitely still an issue behind Amazon ELB's... I'm getting lots of 408 status…
DO NOT REPLY Status code 408 (Request Timeout) is not logged
November 14, 2011 07:17:18 PM
https://issues.apache.org/bugzilla/show_bug.cgi?id=39785 Eric Covener <cove### @gmail.com> changed: What |Removed |Added
DO NOT REPLY Using % after context prefix results in 400 but nothing is logged in access log
June 2, 2010 10:15:36 AM
https://issues.apache.org/bugzilla/show_bug.cgi?id=49099 --- Comment #4 from Mark Thomas <markt@apache.org> 2010-06-02 11:15:29 EDT --- I have applied a fix for trunk (7.0.x) which will be included in 7.0.0 onwards and proposed the same fix…
DO NOT REPLY .htaccess errors logged outside the virtual host logs
March 21, 2011 10:20:52 AM
https://issues.apache.org/bugzilla/show_bug.cgi?id=16631 Malte S. Stretz <ms### @apache.org> changed: What |Removed |Added
DO NOT REPLY New: Msg shows: An error occured while fetching this message, sorry !
February 2, 2012 10:56:23 AM
https://issues.apache.org/bugzilla/show_bug.cgi?id=52584 Bug #: 52584 Summary: Msg shows: An error occured while fetching this message, sorry ! Product: Apache httpd-2 Version:…
DO NOT REPLY New: Wrong "bytes sent" logged when connection is closed prematurely
February 2, 2012 03:42:51 AM
https://issues.apache.org/bugzilla/show_bug.cgi?id=52578 Bug #: 52578 Summary: Wrong "bytes sent" logged when connection is closed prematurely Product: Apache httpd-2 Version:…
DO NOT REPLY After users login on the web page, the page does not show they are logged in
March 12, 2011 08:38:53 PM
https://issues.apache.org/bugzilla/show_bug.cgi?id=48819 Eric Covener <cove### @gmail.com> changed: What |Removed |Added
DO NOT REPLY error log - No client logged for error
July 19, 2010 08:12:08 PM
https://issues.apache.org/bugzilla/show_bug.cgi?id=41732 Nick Kew <nick@webthing.com> changed: What |Removed |Added
UnsupportedOperationException from RootContext
July 7, 2010 08:56:58 PM
Hi, We were using JXPath 1.2 and met a tough issue in customer's environment. We executed below code to count node set. It works fine with other customers but only has issue in this one. This code doesn't always throw exception but only occurs…
Configure BasicDataSource as bean in web.xml
June 19, 2011
I'm trying to configure org.apache.commons.dbcp.BasicDataSource as bean in web.xml under a tomcat project using tomcat 6. (it's red5 with tomcat, we…
"java.lang.UnsupportedOperationException: Not supported yet."
February 1, 2011
Hi, What I am trying to do : I am trying to connect to Web Portal [that uses https]using Java. I have written code for supplying user credentials…
Java.lang.UnsupportedOperationException in Application.getResourceHandler when running JSF 2 webapp
March 17, 2011
Im trying to setup a new jsf 2 project on my tomcat 7, and i'm encountering this error upon accessing my webapp for the first time. Any idea what…
How to send HTTP reply using chunked-encoding ?
February 28, 2011
Hi everyone I am trying to stream multimedia data using chunked encoding. So I first tried my hand at sending text data using chunked encoding. Here…
Problem with apache seding reply status
April 24, 2011
Hello can any one help with this how do I resolve this problem : http://pastebin.com/Xq4n1Je8 this make my server down can any one help me and tell…
MySQL multilevel comment reply sorting
January 9, 2011
My current comment reply system: 1 1.1 1.2 1.2.1 10 2 2.1 I can sort the comments from table by their ids (as above) and indent depending on the…
Arrange forum posts by time of latest reply
March 20, 2011
Before you shout ORDER BY id , the situation is quite different. The forum I was asked to make is a guestbook forum, where unregistered users can…
Compareing tables and updating 3rd table - can't understand answer - it does not work and I don't know to reply to that
March 1, 2011
use a while mysql_fetch_array and UPDATE during the loop - PART TWO I am sorry to post this again but I can't see how else to find an answer that…
How to live stream video using C program. What should be the HTTP reply ? How can I use chunked encoding if possible ?
March 1, 2011
I am trying to live stream a video file which in which I continuously dump data. The client's HTML page is this: <html> <body> <video…
How does a form know when you are logged in ?
January 14, 2011
Ok next, I got 2 forms, login form and main form, when i press login on the mainform, the loginform show up. On the login form you can create a…
Seeing if I am Logged in on a different site PHP
June 17, 2011
On Domain.com I have a user handler that creates a session to tell him I am logged in. So on each page I simply just do: <?php…
Response is not getting logged?
January 13, 2011
Hi I am using tomcat + spring 3.0 ws trying to log request and response can see request in catalina, but no reponse?? <bean…
Force ssl for logged in users
June 10, 2011
I have a web application that we need to force SSL for, but only when the user is logged in. Unfortunately, the login page is the same url as the…
PHP: Server check if user is logged in or out
April 16, 2011
I'm wanting to be able to tell if a user is logged in or not from the server end. I currently have it set up where each user record in my database…
How to detemine if someone is logged in and viewing your web page(s)
May 12, 2011
I have a private web app with login requirements. I have seen many sites (mainly forum sites) that list the members that are currently logged in and…
Apache2 PHP Notice errors logged
March 21, 2011
My /var/log/apache2/error.log is filling up about 1GB per hour with PHP Notice errors. I've tried adding this: /apache2.conf php_value error_log…
MongoDB document design for comments (and their reply comments)
February 28, 2011
I have a model that looks like: class Comment { public string ID { get; set; } public string ArticleType { get; set; } public string ArticleID {…
How do I get the curernt username of someone logged-in using JDBCRealm in Tomcat 6
April 19, 2011
I'm running Tomcat 6 and have implemented JDBCRealm to authenticate my users. I've got everything setup and authentication is working just fine. My…
Maintaining a single logged user into an account in php
February 12, 2011
Hi everyone, I want to make a login system using PHP and MySQL and do it in such a way that every-time only one person is logged into my system at…
PHP: I can't have users logged into site on multiple browsers
April 14, 2011
Apologies if this question is already posted. I didn't find the answer i was looking for when searching through the related questions. I have a…