[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] Derby & addStructConverters fails with NPE
|
If you look in your log you will first see the error,
23:47:39.510--ServerSession(30266940)--Thread(Thread[ModalContext,6,main])--java.sql.SQLException:
No suitable driver
Which means that either Derby is not on your classpath, or not visible to
EclipseLink (not on same classpath as EclipseLink). What environment are
you running in, and where have your put your eclipselink.jar and derby.jar?
The second null-pointer error is cause because the deploy failed from the
first error, and you tried to access the factory again in a failed state. I
recently logged this bug, please vote for it.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=271476
philk wrote:
>
> Using Derby as a database driver I get the following error:
>
>
> [EL Config]: 2009.04.07
> 23:47:39.500--ServerSession(30266940)--Connection(6606816)--Thread(Thread[ModalContext,6,main])--connecting(DatabaseLogin(
> platform=>DerbyPlatform
> user name=> ""
> datasource URL=>
> "jdbc:derby:C:/DerbyDatabases/hellojpa-database8;create=true"
> ))
> [EL Warning]: 2009.04.07
> 23:47:39.510--ServerSession(30266940)--Thread(Thread[ModalContext,6,main])--java.sql.SQLException:
> No suitable driver
> java.lang.NullPointerException
> at
> org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.addStructConverters(EntityManagerSetupImpl.java:319)
> at
> org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:249)
> at
> org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:69)
> at
> org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:118)
> at
> org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:112)
> at
> org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:100)
> at
> de.topsystem.tks.demo.legacy.persistence.internal.Activator.createEntityManagerFactory(Activator.java:25)
> at
> de.topsystem.tks.demo.legacy.persistence.internal.DatabaseLoginDialog$LoginWizard$1.run(DatabaseLoginDialog.java:55)
> at
> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
>
>
>
> <persistence-unit name="demo-pu" transaction-type="RESOURCE_LOCAL">
> <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
>
> <class>de.topsystem.tks.demo.legacy.warehouse.core.models.pickers.LegacyPicker</class>
>
> <class>de.topsystem.tks.demo.legacy.warehouse.core.models.orders.LegacyPickOrder</class>
>
> <class>de.topsystem.tks.demo.legacy.warehouse.core.models.orders.LegacyOrderPosition</class>
>
> <class>de.topsystem.tks.demo.legacy.warehouse.core.models.orders.OrderProgress</class>
>
> <class>de.topsystem.tks.demo.devices.core.internal.models.Voxter</class>
> <properties>
> <property name="eclipselink.jdbc.driver"
> value="org.apache.derby.jdbc.EmbeddedDriver"/>
> <property name="eclipselink.target-database"
> value="org.eclipse.persistence.platform.database.DerbyPlatform"/>
> <property name="eclipselink.ddl-generation" value="create-tables"/>
> <property name="eclipselink.ddl-generation.output-mode"
> value="database"/>
> <property name="eclipselink.logging.level" value="FINE"/>
> </properties>
> </persistence-unit>
>
> What can it mean? Same error I get when using H2/HSQL as the driver.
>
> Thanks,
> Phil
>
-----
---
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland
http://www.eclipse.org/eclipselink/
EclipseLink , http://www.oracle.com/technology/products/ias/toplink/
TopLink
Wiki: http://wiki.eclipse.org/EclipseLink EclipseLink ,
http://wiki.oracle.com/page/TopLink TopLink
Forums: http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink ,
http://www.nabble.com/EclipseLink-f26430.html EclipseLink
Book: http://en.wikibooks.org/wiki/Java_Persistence Java Persistence
--
View this message in context: http://www.nabble.com/Derby---addStructConverters-fails-with-NPE-tp22939199p22950746.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.