[ http://issues.apache.org/jira/browse/GERONIMO-1426?page=all ] Aaron Mulder reopened GERONIMO-1426: ------------------------------------
> DatabasePoolPortlet gets NPE when saving > ---------------------------------------- > > Key: GERONIMO-1426 > URL: http://issues.apache.org/jira/browse/GERONIMO-1426 > Project: Geronimo > Type: Bug > Components: console > Versions: 1.0 > Environment: Windows XP, MySQL Connector 3.1.12, MySQL 5.0, JDK 1.4.2 > Reporter: Cary Clark > Assignee: Aaron Mulder > Fix For: 1.0.1, 1.1 > Attachments: GERONIMO-1426.patch > > From a clean Geronimo 1.0 install: > * Log in to console > * add mysql-connector-java-3.1.12-bin.jar as a Common Library > Group: mysql > Artifact: mysql-connector-java-3.1.12 > Version: bin > Type: jar > * Go to Database Pools, click "Using the Geronimo database pool wizard" > Name of Database Pool:: CPPool > Database Type: MySQL > * Click Next > JDBC Driver Class: JDBC Driver Class: > Driver JAR: <select mysql/.... > > DB User Name: cpdb > DB Password: cpdbuser > Port: 3306 > Host: localhost > Database: cpdb > * Click Next > JDBC Connect URL: jdbc:mysql://localhost:3306/cpdb > Driver Status: Loaded Successfully > Pool Min Size: 10 > Pool Max Size: 15 > Blocking Timeout: NO VALUE ENTERED...assuming default > Idle Timeout: NO VALUE ENTERED...assuming default > * Click Test Connection, then Show Plan OR click Skip Test and Show Plan to > get the following stack trace: > 16:24:04,137 ERROR [DatabasePoolPortlet] Unable to save connection pool > java.lang.NullPointerException > at sun.misc.URLClassPath$3.run(URLClassPath.java:312) > at java.security.AccessController.doPrivileged(Native Method) > at sun.misc.URLClassPath.getLoader(URLClassPath.java:309) > at sun.misc.URLClassPath.getLoader(URLClassPath.java:286) > at sun.misc.URLClassPath.findResource(URLClassPath.java:137) > at java.net.URLClassLoader$2.run(URLClassLoader.java:352) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findResource(URLClassLoader.java:349) > at java.lang.ClassLoader.getResource(ClassLoader.java:787) > at > org.apache.geronimo.deployment.tools.loader.AbstractDeployable.<init>(AbstractDeployable.java:57) > at > org.apache.geronimo.deployment.tools.loader.ConnectorDeployable.<init>(ConnectorDeployable.java:37) > at > org.apache.geronimo.console.databasemanager.wizard.DatabasePoolPortlet.save(DatabasePoolPortlet.java:813) > at > org.apache.geronimo.console.databasemanager.wizard.DatabasePoolPortlet.processAction(DatabasePoolPortlet.java:339) > at > org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:229) > at org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:158) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:595) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:688) > at org.apache.pluto.core.PortletServlet.service(PortletServlet.java:153) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > at > org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) > at > org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574) > at > org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499) > at > org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:120) > at > org.apache.pluto.invoker.impl.PortletInvokerImpl.action(PortletInvokerImpl.java:68) > at > org.apache.pluto.PortletContainerImpl.processPortletAction(PortletContainerImpl.java:164) > at > org.apache.pluto.portalImpl.core.PortletContainerWrapperImpl.processPortletAction(PortletContainerWrapperImpl.java:82) > at org.apache.pluto.portalImpl.Servlet.doGet(Servlet.java:227) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:595) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:688) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) > at > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482) > at > org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:272) > at > org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:46) > at > org.apache.geronimo.tomcat.valve.PolicyContextValve.invoke(PolicyContextValve.java:50) > at > org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(TransactionContextValve.java:53) > at > org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(ComponentContextValve.java:47) > at > org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(InstanceContextValve.java:60) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) > at > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) > at > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) > at java.lang.Thread.run(Thread.java:534) > Hope this helps, > Cary > Idle Timeout: NO VALUE ENTERED...assuming default -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira