请高手指点A connection to the database could not be made

04-05-13 zzzzzz
安置jive 3,我用的mysql,填好JDBC Driver 和Database URL,再继续出错。

A connection to the database could not be made. View the error message by opening the "[jiveHome]\logs\jive.error.log" log file, then go back to fix the problem. 如何测试mysql数据库建好了?多谢大侠指点!

2004.05.13 16:03 [com.jivesoftware.base.database.ConnectionManager.setConnectionProvider(ConnectionManager.java:251)

]

java.lang.NullPointerException

at com.jivesoftware.base.database.ConnectionManager.setMetaData(ConnectionManager.java:389)

at com.jivesoftware.base.database.ConnectionManager.setConnectionProvider(ConnectionManager.java:248)

at com.jivesoftware.forum.action.setup.DatasourceSetupAction.doDriver(DatasourceSetupAction.java:354)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at com.jivesoftware.webwork.action.ActionSupport.invokeCommand(ActionSupport.java:408)

at com.jivesoftware.webwork.action.ActionSupport.execute(ActionSupport.java:106)

at com.jivesoftware.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:275)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)

at com.jivesoftware.base.presence.PresenceFilter.doFilter(PresenceFilter.java:86)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:233)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)

at com.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:40)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:233)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)

at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)

at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)

at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)

at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)

at java.lang.Thread.run(Thread.java:536)

2004.05.13 16:03 [com.jivesoftware.base.database.DefaultConnectionProvider.getConnection(DefaultConnectionProvider.java:65)

] Warning: DbConnectionDefaultPool.getConnection() was called before the internal pool has been initialized.

2004.05.13 16:03 [com.jivesoftware.base.database.ConnectionManager.getConnection(ConnectionManager.java:90)

] WARNING: ConnectionManager.getConnection() failed to obtain a connection.

1
猜你喜欢