Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 54081 invoked from network); 23 Feb 2007 02:25:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Feb 2007 02:25:27 -0000 Received: (qmail 19071 invoked by uid 500); 23 Feb 2007 02:25:35 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 19040 invoked by uid 500); 23 Feb 2007 02:25:35 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 19031 invoked by uid 99); 23 Feb 2007 02:25:35 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Feb 2007 18:25:35 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Feb 2007 18:25:25 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 85BA871408A for ; Thu, 22 Feb 2007 18:25:05 -0800 (PST) Message-ID: <15279767.1172197505518.JavaMail.jira@brutus> Date: Thu, 22 Feb 2007 18:25:05 -0800 (PST) From: "mike bell (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-2367) Derby fails to connect to a formerly properly created DB on NetWare In-Reply-To: <2735751.1172106366161.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-2367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12475241 ] mike bell commented on DERBY-2367: ---------------------------------- I'm not sure Raymond has explained everything clearly so here's a go. We have an webapp that uses Derby. The latest general release 10.2.something from Dec was used. We use JDK 1.42 on all the platforms. Tomcat version varies from 4.1 to 5.5. Derby is started in a servlet initializer of our app as a Network Server, and we connect to it as a Network Client. It is similarly politely shutdown. Anyway, all has been well on Windows (xp, 2000,2003) and Linux (SLES9). We then had to test on NetWare. Netware provides a JVM (1.42_06 on the SP I tested,), and Tomcat 4.1 (Tomcat 5.0 is also available, but I didn't test this). We deployed the app, and started TomCat up. We ran our app. It created the database flawlessly. It performed a decent number of inserts and selects, etc. We then unloaded the app, and then reloaded the app. At this point, Derby throws an exception (listed above) when we try to connect.. If I copy the DB to Windows and connect (either client/server or embedded) all is fine. > Derby fails to connect to a formerly properly created DB on NetWare > ------------------------------------------------------------------- > > Key: DERBY-2367 > URL: https://issues.apache.org/jira/browse/DERBY-2367 > Project: Derby > Issue Type: Bug > Components: JDBC > Affects Versions: 10.2.2.0 > Environment: Novell NetWare 6.0 Novell NetWare 6.5 > Reporter: Raymond H > > We try to use Derby inside a Tomcat WebAPP on NetWare which seemed to work pretty good at first. > But as soon as we restart the server, Derby failed to connect to the DB: > This is the contents of the derby log file: > Apache Derby Network Server - 10.2.2.0 - (485682) started and ready to accept connections on port 1527 at 2007-02-21 23:28:43.687 GMT > ---------------------------------------------------------------- > 2007-02-21 23:29:32.577 GMT: > Booting Derby version The Apache Software Foundation - Apache Derby - 10.2.2.0 - (485682): instance c013800d-0110-e6a2-a26e-000000319ee0 > on database directory SYS:\tomcat\4\webapps\RetainServer\WEB-INF\ebdb\RetainDB > Database Class Loader started - derby.database.classpath='' > 2007-02-21 23:38:38.927 GMT: > Shutting down instance c013800d-0110-e6a2-a26e-000000319ee0 > ---------------------------------------------------------------- > Here is the exception we get: > org.apache.derby.client.am.SqlException: DERBY SQL error: SQLCODE: -1, SQLSTATE: XJ040, SQLERRMC: Failed to start database '\tomcat\4\webapps\RetainServer\WEB-INF\ebdb\RetainDB', see the next exception for details.::SQLSTATE: XJ001Java exception: ': java.lang.NullPointerException'. > at org.apache.derby.client.am.Connection.completeSqlca(Unknown Source) > at org.apache.derby.client.net.NetConnectionReply.parseRdbAccessFailed(Unknown Source) > at org.apache.derby.client.net.NetConnectionReply.parseAccessRdbError(Unknown Source) > at org.apache.derby.client.net.NetConnectionReply.parseACCRDBreply(Unknown Source) > at org.apache.derby.client.net.NetConnectionReply.readAccessDatabase(Unknown Source) > at org.apache.derby.client.net.NetConnection.readSecurityCheckAndAccessRdb(Unknown Source) > at org.apache.derby.client.net.NetConnection.flowSecurityCheckAndAccessRdb(Unknown Source) > at org.apache.derby.client.net.NetConnection.flowUSRIDPWDconnect(Unknown Source) > at org.apache.derby.client.net.NetConnection.flowConnect(Unknown Source) > at org.apache.derby.client.net.NetConnection.(Unknown Source) > at org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newNetConnection(Unknown Source) > at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source) > at java.sql.DriverManager.getConnection(DriverManager.java:512) > at java.sql.DriverManager.getConnection(DriverManager.java:171) > at com.maintainet.cfg.ASConfig.getEbdCon(ASConfig.java:88) > at org.apache.jsp.db_jsp._jspService(db_jsp.java:52) > at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210) > at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) > at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) > at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) > at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422) > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) > at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) > at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) > at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) > at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163) > at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) > at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) > at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) > at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199) > at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828) > at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700) > at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584) > at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) > at java.lang.Thread.run(Thread.java:534) > Some background info: > We use the network server variant of Derby. > The first ( creating ) connect is always successful. > The folders log and seg0 are created and populated successfully. > We can create tables and data without a problem. > We checked that by copying the folder to windows and connecting > and seeing our data being there. > But all other ( i.e. a second ) connection attempts to an existing DB foilder fail > with forementioned exception. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.