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 2012/04/22 12:38:07 UTC
DO NOT REPLY [Bug 53122] New: NullPointer Exception
https://issues.apache.org/bugzilla/show_bug.cgi?id=53122
Bug #: 53122
Summary: NullPointer Exception
Product: Tomcat 7
Version: 7.0.27
Platform: PC
Status: NEW
Severity: normal
Priority: P2
Component: Servlet & JSP API
AssignedTo: dev@tomcat.apache.org
ReportedBy: santhosh@8kmiles.com
Classification: Unclassified
Exception while using JDBC DB Connection pool along with MySQL.
java.lang.NullPointerException
at com.mysql.jdbc.Statement.executeUpdate(Statement.java:1418)
at com.mysql.jdbc.Statement.executeUpdate(Statement.java:1317)
at com.load.servlet.SQLInsert.doGet(SQLInsert.java:69)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I do not get the above error when the request rates are low to the servlet, as
I steadily increase the number of requests to the servlet/second. The exception
occurs.
JDBC Connection pool configuration is as below :
<Resource name="jdbc/loadtestdb"
auth="Container"
type="javax.sql.DataSource"
factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
testWhileIdle="true"
testOnBorrow="true"
testOnReturn="false"
validationQuery="SELECT 1"
validationInterval="30000"
timeBetweenEvictionRunsMillis="30000"
maxActive="550"
minIdle="25"
maxWait="30000"
initialSize="500"
removeAbandonedTimeout="60"
removeAbandoned="true"
logAbandoned="true"
minEvictableIdleTimeMillis="30000"
jmxEnabled="true"
jdbcInterceptors=
"org.apache.tomcat.jdbc.pool.interceptor.ConnectionState;org.apache.tomcat.jdbc.pool.interceptor.StatementFinalizer"
username="root"
password="root"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://loadtest.xxxxxxxxxxx.us-east-1.rds.amazonaws.com:3306/loadtest"/>
and the mysql database supports by default a max of 600 connections.
--
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
DO NOT REPLY [Bug 53122] NullPointer Exception
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53122
Chuck Caldarale <ch...@unisys.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
OS/Version| |All
--- Comment #1 from Chuck Caldarale <ch...@unisys.com> 2012-04-22 19:27:14 UTC ---
(In reply to comment #0)
> Exception while using JDBC DB Connection pool along with MySQL.
>
> java.lang.NullPointerException
> at com.mysql.jdbc.Statement.executeUpdate(Statement.java:1418)
> at com.mysql.jdbc.Statement.executeUpdate(Statement.java:1317)
> at com.load.servlet.SQLInsert.doGet(SQLInsert.java:69)
Note that the call to the MySQL code is coming from your servlet, not Tomcat.
Regardless, bugzilla is not a support forum; please post usage queries to the
Tomcat user's mailing list.
--
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