You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by Tim Holloway <ti...@mousetech.com> on 2007/11/07 03:31:51 UTC
Bug in schematool encountering malformed connection URL
I was trying to construct a jdbc URL from my so-called memory and
triggered this. I don't know if there are other malformed URLs that can
also set it off.
when missing '//' from hostname in the connection URL:
timh@autolin:~/workspace/jtaonthemove$ java
-Dopenjpa.ConnectionDriverName=com.mysql.jdbc.Driver
'-Dopenjpa.ConnectionURL=jdbc:mysql:tamsdb/tamsdb_test'
-Dopenjpa.ConnectionUserName=root -Dopenjpa.ConnectionPassword=
org.apache.openjpa.jdbc.schema.SchemaTool -a reflect
114 INFO [main] openjpa.jdbc.JDBC - Using dictionary class
"org.apache.openjpa.jdbc.sql.MySQLDictionary".
140 INFO [main] openjpa.Tool - Reflecting on schemas "all". This
process may take some time. Enable the org.apache.openjpa.jdbc.Schema
logging category to see messages about the collection of schema data.
Exception in thread "main" java.lang.NullPointerException
at
org.apache.openjpa.lib.jdbc.DelegatingConnection.getAutoCommit(DelegatingConnection.java:200)
at
org.apache.openjpa.lib.jdbc.DelegatingConnection.getAutoCommit(DelegatingConnection.java:200)
at org.apache.openjpa.lib.jdbc.ConfiguringConnectionDecorator
$ConfiguringConnection.<init>(ConfiguringConnectionDecorator.java:109)
at
org.apache.openjpa.lib.jdbc.ConfiguringConnectionDecorator.decorate(ConfiguringConnectionDecorator.java:93)
at
org.apache.openjpa.lib.jdbc.DecoratingDataSource.decorate(DecoratingDataSource.java:100)
at
org.apache.openjpa.lib.jdbc.DecoratingDataSource.getConnection(DecoratingDataSource.java:94)
at
org.apache.openjpa.lib.jdbc.DelegatingDataSource.getConnection(DelegatingDataSource.java:113)
at org.apache.openjpa.jdbc.schema.DataSourceFactory
$DefaultsDataSource.getConnection(DataSourceFactory.java:269)
at
org.apache.openjpa.jdbc.schema.SchemaGenerator.generateSchema(SchemaGenerator.java:328)
at
org.apache.openjpa.jdbc.schema.SchemaGenerator.generateSchemas(SchemaGenerator.java:263)
at
org.apache.openjpa.jdbc.schema.SchemaGenerator.generateSchemas(SchemaGenerator.java:243)
at
org.apache.openjpa.jdbc.schema.SchemaTool.run(SchemaTool.java:1424)
at
org.apache.openjpa.jdbc.schema.SchemaTool.run(SchemaTool.java:1394)
at
org.apache.openjpa.jdbc.schema.SchemaTool.main(SchemaTool.java:1339)