ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | c-jdbc List | May 2005 Index

<--  Date Index  --> <--  Thread Index  -->

InvocationTargetException when starting backends


Hi,
 
I get the following Exception when trying to start my controller + hsqldb backends. This also happens at getDatabaseMajorVersion and getDatabaseProductName. What does it mean (connection is closed)? My database backends are up and running. Is this why I have no chackpoint after I make a backup?
 
I also have Nullpointer exceptions on the same methods (getDatabaseMajorVersion, etc.) when using mysql backends (see the second attached exception). And another InvocationTargetException (Illegal operation on already closed connection) at the methods: getSQLStateType, nullsAreSortedAtStart, supportsCatalogsInDataManipulation, supportsSavepoints, supportsStoredProcedures, supportsSubqueriesInComparisons, supportsSubqueriesInExists, supportsSubqueriesInIns, supportsSubqueriesInQuantifieds, supportsUnion, supportsUnionAll.
 
I have the c-jdbc.log files if needed.
 
Regards,
 
Igor
 
----------------------------------------------------
 
2005-05-31 14:27:26,640 DEBUG backend.DatabaseBackend.localhost2 Problem calling getDatabaseMajorVersion
java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.objectweb.cjdbc.controller.backend.DatabaseBackendMetaData.insertMetadataInContainer(DatabaseBackendMetaData.java:118)
 at org.objectweb.cjdbc.controller.backend.DatabaseBackendMetaData.retrieveDatabaseMetadata(DatabaseBackendMetaData.java:260)
 at org.objectweb.cjdbc.controller.backend.DatabaseBackend.getDatabaseStaticMetadata(DatabaseBackend.java:1134)
 at org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabaseStaticMetaData.gatherStaticMetadata(VirtualDatabaseStaticMetaData.java:68)
 at org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabase.enableBackendFromCheckpoint(VirtualDatabase.java:987)
 at org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabase.forceEnableAllBackendsFromCheckpoint(VirtualDatabase.java:1142)
 at org.objectweb.cjdbc.controller.core.Controller.addVirtualDatabase(Controller.java:278)
 at org.objectweb.cjdbc.controller.xml.DatabasesParser.endElement(DatabasesParser.java:670)
 at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
 at org.apache.crimson.parser.Parser2.content(Unknown Source)
 at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
 at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
 at org.apache.crimson.parser.Parser2.parse(Unknown Source)
 at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
 at org.objectweb.cjdbc.controller.xml.DatabasesParser.readXML(DatabasesParser.java:271)
 at org.objectweb.cjdbc.controller.xml.DatabasesParser.readXML(DatabasesParser.java:318)
 at org.objectweb.cjdbc.controller.core.Controller.addVirtualDatabases(Controller.java:178)
 at org.objectweb.cjdbc.controller.core.Controller.loadXmlConfiguration(Controller.java:528)
 at org.objectweb.cjdbc.controller.core.ControllerFactory.setUpVirtualDatabase(ControllerFactory.java:406)
 at org.objectweb.cjdbc.controller.xml.ControllerParser.configureVirtualDatabase(ControllerParser.java:672)
 at org.objectweb.cjdbc.controller.xml.ControllerParser.startElement(ControllerParser.java:321)
 at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
 at org.apache.crimson.parser.Parser2.content(Unknown Source)
 at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
 at org.apache.crimson.parser.Parser2.content(Unknown Source)
 at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
 at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
 at org.apache.crimson.parser.Parser2.parse(Unknown Source)
 at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
 at org.objectweb.cjdbc.controller.xml.ControllerParser.readXML(ControllerParser.java:128)
 at org.objectweb.cjdbc.controller.xml.ControllerParser.readXML(ControllerParser.java:177)
 at org.objectweb.cjdbc.controller.xml.ControllerParser.readXML(ControllerParser.java:206)
 at org.objectweb.cjdbc.controller.core.ControllerFactory.setUpByXml(ControllerFactory.java:248)
 at org.objectweb.cjdbc.controller.core.ControllerFactory.setup(ControllerFactory.java:287)
 at org.objectweb.cjdbc.controller.core.ControllerFactory.getController(ControllerFactory.java:313)
 at org.objectweb.cjdbc.controller.core.Controller.main(Controller.java:725)
Caused by: java.sql.SQLException: Connection is closed
 at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
 at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
 at org.hsqldb.jdbc.jdbcConnection.checkClosed(Unknown Source)
 at org.hsqldb.jdbc.jdbcConnection.createStatement(Unknown Source)
 at org.hsqldb.jdbc.jdbcDatabaseMetaData.execute(Unknown Source)
 at org.hsqldb.jdbc.jdbcDatabaseMetaData.getDatabaseMajorVersion(Unknown Source)
 ... 40 more
----------------------------------------------------
 
2005-05-31 14:22:30,437 DEBUG backend.DatabaseBackend.backend1 Problem calling getDatabaseMajorVersion
java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.objectweb.cjdbc.controller.backend.DatabaseBackendMetaData.insertMetadataInContainer(DatabaseBackendMetaData.java:118)
 at org.objectweb.cjdbc.controller.backend.DatabaseBackendMetaData.retrieveDatabaseMetadata(DatabaseBackendMetaData.java:260)
 at org.objectweb.cjdbc.controller.backend.DatabaseBackend.getDatabaseStaticMetadata(DatabaseBackend.java:1134)
 at org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabaseStaticMetaData.gatherStaticMetadata(VirtualDatabaseStaticMetaData.java:68)
 at org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabase.enableBackendFromCheckpoint(VirtualDatabase.java:987)
 at org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabase.forceEnableAllBackendsFromCheckpoint(VirtualDatabase.java:1142)
 at org.objectweb.cjdbc.controller.core.Controller.addVirtualDatabase(Controller.java:278)
 at org.objectweb.cjdbc.controller.xml.DatabasesParser.endElement(DatabasesParser.java:670)
 at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
 at org.apache.crimson.parser.Parser2.content(Unknown Source)
 at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
 at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
 at org.apache.crimson.parser.Parser2.parse(Unknown Source)
 at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
 at org.objectweb.cjdbc.controller.xml.DatabasesParser.readXML(DatabasesParser.java:271)
 at org.objectweb.cjdbc.controller.xml.DatabasesParser.readXML(DatabasesParser.java:318)
 at org.objectweb.cjdbc.controller.core.Controller.addVirtualDatabases(Controller.java:178)
 at org.objectweb.cjdbc.controller.core.Controller.loadXmlConfiguration(Controller.java:528)
 at org.objectweb.cjdbc.controller.core.ControllerFactory.setUpVirtualDatabase(ControllerFactory.java:406)
 at org.objectweb.cjdbc.controller.xml.ControllerParser.configureVirtualDatabase(ControllerParser.java:672)
 at org.objectweb.cjdbc.controller.xml.ControllerParser.startElement(ControllerParser.java:321)
 at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
 at org.apache.crimson.parser.Parser2.content(Unknown Source)
 at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
 at org.apache.crimson.parser.Parser2.content(Unknown Source)
 at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
 at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
 at org.apache.crimson.parser.Parser2.parse(Unknown Source)
 at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
 at org.objectweb.cjdbc.controller.xml.ControllerParser.readXML(ControllerParser.java:128)
 at org.objectweb.cjdbc.controller.xml.ControllerParser.readXML(ControllerParser.java:177)
 at org.objectweb.cjdbc.controller.xml.ControllerParser.readXML(ControllerParser.java:206)
 at org.objectweb.cjdbc.controller.core.ControllerFactory.setUpByXml(ControllerFactory.java:248)
 at org.objectweb.cjdbc.controller.core.ControllerFactory.setup(ControllerFactory.java:287)
 at org.objectweb.cjdbc.controller.core.ControllerFactory.getController(ControllerFactory.java:313)
 at org.objectweb.cjdbc.controller.core.Controller.main(Controller.java:725)
Caused by: java.lang.NullPointerException
 at com.mysql.jdbc.Connection.getServerMajorVersion(Connection.java:2239)
 at com.mysql.jdbc.DatabaseMetaData.getDatabaseMajorVersion(DatabaseMetaData.java:1325)
 ... 40 more
----------------------------------------------------
 
2005-05-31 14:22:31,796 DEBUG backend.DatabaseBackend.backend1 Problem calling getSQLStateType
java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.objectweb.cjdbc.controller.backend.DatabaseBackendMetaData.insertMetadataInContainer(DatabaseBackendMetaData.java:118)
 at org.objectweb.cjdbc.controller.backend.DatabaseBackendMetaData.retrieveDatabaseMetadata(DatabaseBackendMetaData.java:276)
 at org.objectweb.cjdbc.controller.backend.DatabaseBackend.getDatabaseStaticMetadata(DatabaseBackend.java:1134)
 at org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabaseStaticMetaData.gatherStaticMetadata(VirtualDatabaseStaticMetaData.java:68)
 at org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabase.enableBackendFromCheckpoint(VirtualDatabase.java:987)
 at org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabase.forceEnableAllBackendsFromCheckpoint(VirtualDatabase.java:1142)
 at org.objectweb.cjdbc.controller.core.Controller.addVirtualDatabase(Controller.java:278)
 at org.objectweb.cjdbc.controller.xml.DatabasesParser.endElement(DatabasesParser.java:670)
 at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
 at org.apache.crimson.parser.Parser2.content(Unknown Source)
 at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
 at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
 at org.apache.crimson.parser.Parser2.parse(Unknown Source)
 at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
 at org.objectweb.cjdbc.controller.xml.DatabasesParser.readXML(DatabasesParser.java:271)
 at org.objectweb.cjdbc.controller.xml.DatabasesParser.readXML(DatabasesParser.java:318)
 at org.objectweb.cjdbc.controller.core.Controller.addVirtualDatabases(Controller.java:178)
 at org.objectweb.cjdbc.controller.core.Controller.loadXmlConfiguration(Controller.java:528)
 at org.objectweb.cjdbc.controller.core.ControllerFactory.setUpVirtualDatabase(ControllerFactory.java:406)
 at org.objectweb.cjdbc.controller.xml.ControllerParser.configureVirtualDatabase(ControllerParser.java:672)
 at org.objectweb.cjdbc.controller.xml.ControllerParser.startElement(ControllerParser.java:321)
 at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
 at org.apache.crimson.parser.Parser2.content(Unknown Source)
 at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
 at org.apache.crimson.parser.Parser2.content(Unknown Source)
 at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
 at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
 at org.apache.crimson.parser.Parser2.parse(Unknown Source)
 at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
 at org.objectweb.cjdbc.controller.xml.ControllerParser.readXML(ControllerParser.java:128)
 at org.objectweb.cjdbc.controller.xml.ControllerParser.readXML(ControllerParser.java:177)
 at org.objectweb.cjdbc.controller.xml.ControllerParser.readXML(ControllerParser.java:206)
 at org.objectweb.cjdbc.controller.core.ControllerFactory.setUpByXml(ControllerFactory.java:248)
 at org.objectweb.cjdbc.controller.core.ControllerFactory.setup(ControllerFactory.java:287)
 at org.objectweb.cjdbc.controller.core.ControllerFactory.getController(ControllerFactory.java:313)
 at org.objectweb.cjdbc.controller.core.Controller.main(Controller.java:725)
Caused by: java.sql.SQLException: Illegal operation on already closed connection
 at com.mysql.jdbc.Connection.versionMeetsMinimum(Connection.java:1636)
 at com.mysql.jdbc.DatabaseMetaData.getSQLStateType(DatabaseMetaData.java:3001)
 ... 40 more


<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.