I have problems associated with Hibernate/JPA using an Apache Derby embedded database and hope somone might provide some pointers on how I might diagnose what is going on.
I might have multiple problems interferring with each other but my first concern is that changes to the database (adding rows) do not seem to appear when I inspect the database using DbVisualizer tool (DvVisualizer Free 9.0.8). I use that tool because NetBeans IDE Database services cannot be used to inspect Embedded Derby databases (only server databases - not what I want to use).
EDIT: I finally was able to configure the database service in the IDE to allow me to inspect the data within the IDE, so I don't need to use the DbVisualizer tool anymore.
My test is a NetBeans Platform (RPC) application using NetBeans version 7.3.1, Apache Derby verson 10.3.2.1 and Hibernate 4.0.2 Final.
I suspect I need to include in my application a Shutdown command, but I have not been able to make that work. The issue with the Shutdown might be related to how to access that in NetBeans Platform applications. I am using Entity Manager (not Session manager) When I try a shutdown, I always get this exception:
Code:
java.sql.SQLException: No suitable driver found for jdbc:derby:hibernatejpa-db;shutdown=true
I tried adding the full path to the database directory in the shutdown command and to use the URL of just "jdbc:derby:" (omitting the database) which should shutdown the Derby engine (I think) with no change to my symptoms. The application sets the System Property for Derby_Home, so just giving the database name to Derby should work - Right?
After running - exiting my application the database directory has the files: "db.lck" and "dbex.lck". It is my understanding those files should not exist if the database is shutdown correctly - Right? When I was using HSQLDB that was true, but I have not been able to find out if that is also true for Derby.
EDIT: Another problem is that I don't see a traditional LOG file for Derby activities. There is a Log directory with three files in it, but I cannot view the contents (in a text editor, such as GEdit). I expected to see a file named derby.log, but I have instead: "log.ctrl", "log1.dat", and "logmirror.ctrl". Should I have a traditional log file viewable with a text editor/viewer program?
The database is setup in the Installer class of a NetBeans Module named Controller - contents below:
Code:
/*
* MyDBTest Application - Controller Module - Installer class
* Controller Module life-cycle processing
* Simple DB initialization test
*/
package com.bss.ppi.controller;
import com.bss.ppi.entities.Category;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import org.openide.modules.ModuleInstall;
import org.openide.util.Exceptions;
import org.openide.util.NbBundle;
public class Installer extends ModuleInstall {
static final Logger myLog = Logger.getLogger(com.bss.ppi.controller.Installer.class.getName());
static final String appName = NbBundle.getBundle("org.netbeans.core.windows.view.ui.Bundle").getString("CTL_MainWindow_Title_No_Project");
public static final EntityManagerFactory EMF;
public static final EntityManager EM;
static {
try {
myLog.info("Applicaiton Name = " + appName);
System.setProperty("app.data.home",
System.getProperty("user.home") + "/" + appName);
myLog.log(Level.INFO, "System Property(app.data.home): {0}", System.getProperty("app.data.home"));
System.setProperty("derby.system.home",
System.getProperty("app.data.home") + "/database");
System.setProperty("derby.stream.error.file", "../log/derby.log");
myLog.log(Level.INFO, "System Property(derby.system.home): {0}", System.getProperty("derby.system.home"));
//System.setProperty("derby.system.home", System.getProperty("netbeans.user"));
EMF = Persistence.createEntityManagerFactory("HibernateJPA");
EM = EMF.createEntityManager();
} catch (Throwable ex) {
System.err.println("Initial EntityManagerFactory creation failed." + ex);
throw new ExceptionInInitializerError(ex);
}
}
@Override
public void close() {
try {
DriverManager.getConnection("jdbc:derby:hibernatejpa-db;shutdown=true");
} catch (SQLException ex) {
Exceptions.printStackTrace(ex);
}
EM.close();
EMF.close();
}
@Override
public void restored() {
myLog.log(Level.INFO, "Starting application {0}", appName);
EM.getTransaction().begin();
EM.merge(new Category(1, "Electronics", "Category for Electronics"));
EM.merge(new Category(2, "Electronics | Computers", "Subcategory for computer equipment and accessories"));
EM.merge(new Category(3, "Electronics | Audio/Video", "Subcategory for stereo and TV components"));
EM.getTransaction().commit();
}
}
My Persistence file contains:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!--
Java Persistence with Hibernate Configuration
Using JavaDB (Apache Derby) Embedded database
-->
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="1.0">
<persistence-unit name="HibernateJPA" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<class>com.bss.ppi.entities.Category</class>
<properties>
<!-- Database connection settings -->
<property name="hibernate.connection.driver_class" value="org.apache.derby.jdbc.EmbeddedDriver"/>
<property name="hibernate.connection.url" value="jdbc:derby:hibernatejpa-db;create=true"/>
<!-- <property name="hibernate.connection.driver_class" value="org.apache.derby.jdbc.ClientDriver"/>
<property name="hibernate.connection.url" value="jdbc:derby://localhost:1527/hibernatejpa-db;create=true"/>-->
<property name="hibernate.connection.username" value="user"/>
<property name="hibernate.connection.password" value="password"/>
<!-- JDBC connection pool (use the built-in) -->
<property name="hibernate.connection.pool_size" value="1"/>
<!-- SQL dialect -->
<property name="hibernate.dialect" value="org.hibernate.dialect.DerbyDialect"/>
<!-- Echo all executed SQL to stdout -->
<property name="hibernate.show_sql" value="true"/>
<!-- Create or update the database schema on startup -->
<property name="hibernate.hbm2ddl.auto" value="update"/>
</properties>
</persistence-unit>
</persistence>
If it helps, below is the Log of the application running:
Code:
-------------------------------------------------------------------------------
>Log Session: Thursday, September 26, 2013 11:10:51 AM MDT
>System Info:
Product Version = MyDBTest 201306052037
Operating System = Linux version 3.2.0-53-generic running on amd64
Java; VM; Vendor = 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01; Oracle Corporation
Runtime = Java(TM) SE Runtime Environment 1.7.0_25-b15
Java Home = /usr/lib/jvm/jdk1.7.0_25/jre
System Locale; Encoding = en_US (mydbtest); UTF-8
Home Directory = /home/jim2
Current Directory = /userfiles/jim2/Programming/NetBeansProjects/NBPlatform/Inventory/MyDBTest
User Directory = /userfiles/jim2/Programming/NetBeansProjects/NBPlatform/Inventory/MyDBTest/build/testuserdir
Cache Directory = /userfiles/jim2/Programming/NetBeansProjects/NBPlatform/Inventory/MyDBTest/build/testuserdir/var/cache
Installation = /userfiles/jim2/Programming/NetBeansProjects/NBPlatform/Inventory/MyDBTest/build/cluster
/home/jim2/netbeans-7.3.1/platform
/home/jim2/netbeans-7.3.1/platform
Boot & Ext. Classpath = /usr/lib/jvm/jdk1.7.0_25/jre/lib/resources.jar:/usr/lib/jvm/jdk1.7.0_25/jre/lib/rt.jar:/usr/lib/jvm/jdk1.7.0_25/jre/lib/sunrsasign.jar:/usr/lib/jvm/jdk1.7.0_25/jre/lib/jsse.jar:/usr/lib/jvm/jdk1.7.0_25/jre/lib/jce.jar:/usr/lib/jvm/jdk1.7.0_25/jre/lib/charsets.jar:/usr/lib/jvm/jdk1.7.0_25/jre/lib/jfr.jar:/usr/lib/jvm/jdk1.7.0_25/jre/classes:/usr/lib/jvm/jdk1.7.0_25/jre/lib/ext/zipfs.jar:/usr/lib/jvm/jdk1.7.0_25/jre/lib/ext/dnsns.jar:/usr/lib/jvm/jdk1.7.0_25/jre/lib/ext/localedata.jar:/usr/lib/jvm/jdk1.7.0_25/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/jdk1.7.0_25/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/jdk1.7.0_25/jre/lib/ext/sunec.jar
Application Classpath = /home/jim2/netbeans-7.3.1/platform/lib/boot.jar:/home/jim2/netbeans-7.3.1/platform/lib/org-openide-modules.jar:/home/jim2/netbeans-7.3.1/platform/lib/org-openide-util-lookup.jar:/home/jim2/netbeans-7.3.1/platform/lib/org-openide-util.jar:/home/jim2/netbeans-7.3.1/platform/lib/locale/boot_ja.jar:/home/jim2/netbeans-7.3.1/platform/lib/locale/boot_pt_BR.jar:/home/jim2/netbeans-7.3.1/platform/lib/locale/boot_ru.jar:/home/jim2/netbeans-7.3.1/platform/lib/locale/boot_zh_CN.jar:/home/jim2/netbeans-7.3.1/platform/lib/locale/org-openide-modules_ja.jar:/home/jim2/netbeans-7.3.1/platform/lib/locale/org-openide-modules_pt_BR.jar:/home/jim2/netbeans-7.3.1/platform/lib/locale/org-openide-modules_ru.jar:/home/jim2/netbeans-7.3.1/platform/lib/locale/org-openide-modules_zh_CN.jar:/home/jim2/netbeans-7.3.1/platform/lib/locale/org-openide-util-lookup_ja.jar:/home/jim2/netbeans-7.3.1/platform/lib/locale/org-openide-util-lookup_pt_BR.jar:/home/jim2/netbeans-7.3.1/platform/lib/locale/org-openide-util-lookup_ru.jar:/home/jim2/netbeans-7.3.1/platform/lib/locale/org-openide-util-lookup_zh_CN.jar:/home/jim2/netbeans-7.3.1/platform/lib/locale/org-openide-util_ja.jar:/home/jim2/netbeans-7.3.1/platform/lib/locale/org-openide-util_pt_BR.jar:/home/jim2/netbeans-7.3.1/platform/lib/locale/org-openide-util_ru.jar:/home/jim2/netbeans-7.3.1/platform/lib/locale/org-openide-util_zh_CN.jar:/usr/lib/jvm/jdk1.7.0_25/lib/dt.jar:/usr/lib/jvm/jdk1.7.0_25/lib/tools.jar
Startup Classpath = /home/jim2/netbeans-7.3.1/platform/core/core.jar:/home/jim2/netbeans-7.3.1/platform/core/org-openide-filesystems.jar:/home/jim2/netbeans-7.3.1/platform/core/locale/core_pt_BR.jar:/home/jim2/netbeans-7.3.1/platform/core/locale/core_ja.jar:/home/jim2/netbeans-7.3.1/platform/core/locale/org-openide-filesystems_zh_CN.jar:/home/jim2/netbeans-7.3.1/platform/core/locale/core_ru.jar:/home/jim2/netbeans-7.3.1/platform/core/locale/core_zh_CN.jar:/home/jim2/netbeans-7.3.1/platform/core/locale/org-openide-filesystems_pt_BR.jar:/home/jim2/netbeans-7.3.1/platform/core/locale/org-openide-filesystems_ja.jar:/home/jim2/netbeans-7.3.1/platform/core/locale/org-openide-filesystems_ru.jar:/userfiles/jim2/Programming/NetBeansProjects/NBPlatform/Inventory/MyDBTest/build/cluster/core/locale/core_mydbtest.jar
-------------------------------------------------------------------------------
INFO [com.bss.ppi.controller.Installer]: Applicaiton Name = MyDBTest
INFO [com.bss.ppi.controller.Installer]: System Property(app.data.home): /home/jim2/MyDBTest
INFO [com.bss.ppi.controller.Installer]: System Property(derby.system.home): /home/jim2/MyDBTest/database
INFO [org.hibernate.annotations.common.Version]: HCANN000001: Hibernate Commons Annotations {4.0.2.Final}
INFO [org.hibernate.Version]: HHH000412: Hibernate Core {4.2.3.Final}
INFO [org.hibernate.cfg.Environment]: HHH000206: hibernate.properties not found
INFO [org.hibernate.cfg.Environment]: HHH000021: Bytecode provider name : javassist
INFO [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl]: HHH000402: Using Hibernate built-in connection pool (not for production use!)
2013-09-26 17:10:53.787 GMT Thread[main,5,IDE Main] java.io.FileNotFoundException: /home/jim2/MyDBTest/database/../log/derby.log (No such file or directory)
INFO [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl]: HHH000115: Hibernate connection pool size: 1
INFO [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl]: HHH000006: Autocommit mode: true
INFO [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl]: HHH000401: using driver [org.apache.derby.jdbc.EmbeddedDriver] at URL [jdbc:derby:hibernatejpa-db;create=true]
INFO [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl]: HHH000046: Connection properties: {user=user, password=****, autocommit=true, release_mode=auto}
----------------------------------------------------------------
2013-09-26 17:10:53.978 GMT:
Booting Derby version The Apache Software Foundation - Apache Derby - 10.3.2.1 - (599110): instance c013800d-0141-5b40-785d-ffffdeb89264
on database directory /home/jim2/MyDBTest/database/hibernatejpa-db
Database Class Loader started - derby.database.classpath=''
INFO [org.hibernate.dialect.Dialect]: HHH000400: Using dialect: org.hibernate.dialect.DerbyDialect
WARN [org.hibernate.dialect.DerbyDialect]: HHH000430: The DerbyDialect dialect has been deprecated; use one of the version-specific dialects instead
INFO [org.hibernate.engine.transaction.internal.TransactionFactoryInitiator]: HHH000268: Transaction strategy: org.hibernate.engine.transaction.internal.jdbc.JdbcTransactionFactory
INFO [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory]: HHH000397: Using ASTQueryTranslatorFactory
INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate]: HHH000228: Running hbm2ddl schema update
INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate]: HHH000102: Fetching database metadata
INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate]: HHH000396: Updating schema
Hibernate: select category0_.id as id1_0_0_, category0_.description as descript2_0_0_, category0_.name as name3_0_0_ from Category category0_ where category0_.id=?
Hibernate: insert into Category (id, description, name) values (default, ?, ?)
Hibernate: values identity_val_local()
Hibernate: select category0_.id as id1_0_0_, category0_.description as descript2_0_0_, category0_.name as name3_0_0_ from Category category0_ where category0_.id=?
Hibernate: insert into Category (id, description, name) values (default, ?, ?)
Hibernate: values identity_val_local()
Hibernate: select category0_.id as id1_0_0_, category0_.description as descript2_0_0_, category0_.name as name3_0_0_ from Category category0_ where category0_.id=?
Hibernate: insert into Category (id, description, name) values (default, ?, ?)
Hibernate: values identity_val_local()
INFO [java.sql.DatabaseMetaData]: HHH000262: Table not found: Category
INFO [java.sql.DatabaseMetaData]: HHH000262: Table not found: Category
INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate]: HHH000232: Schema update complete
INFO [com.bss.ppi.controller.Installer]: Starting application MyDBTest
INFO [org.netbeans.core.startup.NbEvents]: Turning on modules:
org.openide.util.lookup [8.19.1 201306052037]
org.openide.util [8.29.3 201306052037]
org.openide.modules [7.35.1 201306052037]
org.openide.filesystems [8.5.1 201306052037]
org.netbeans.api.annotations.common/1 [1.17.1 201306052037]
org.openide.awt [7.55.1 201306052037]
org.netbeans.api.progress/1 [1.32.1 201306052037]
org.openide.dialogs [7.28.1 201306052037]
org.openide.nodes [7.33.2 201306052037]
org.openide.windows [6.60.1 201306052037]
org.netbeans.modules.editor.mimelookup/1 [1.29.1 201306052037]
org.openide.text [6.54.2 201306052037]
org.netbeans.swing.tabcontrol [1.42.1 201306052037]
org.netbeans.swing.outline [1.23.3 201306052037]
org.openide.explorer [6.50.3 201306052037]
org.openide.actions [6.29.1 201306052037]
org.netbeans.modules.queries/1 [1.32.1 201306052037]
org.openide.loaders [7.44.3 201306052037]
org.openide.io [1.35.1 201306052037]
org.netbeans.swing.plaf [1.30.1 201306052037]
org.netbeans.spi.quicksearch [1.17.1 201306052037]
org.netbeans.bootstrap/1 [2.56.2 201306052037]
org.netbeans.core.startup/1 [1.47.2 201306052037]
org.netbeans.modules.settings/1 [1.38.2 201306052037]
org.netbeans.modules.sampler [1.4.1 201306052037]
org.netbeans.modules.progress.ui [1.23.1 201306052037]
org.netbeans.modules.print [7.16.1 201306052037]
org.netbeans.modules.keyring [1.14.1 201306052037]
org.netbeans.core/2 [3.37.2 201306052037]
org.netbeans.modules.options.api/1 [1.31.2 201306052037]
org.netbeans.modules.options.keymap [1.25.1 201306052037]
org.netbeans.modules.masterfs/2 [2.41.2 201306052037]
org.netbeans.libs.jna/1 [1.25.1 201306052037]
org.netbeans.modules.masterfs.linux [1.4.1 201306052037]
org.netbeans.modules.keyring.impl [1.10.1 201306052037]
org.netbeans.modules.editor.mimelookup.impl/1 [1.21.1 201306052037]
org.netbeans.libs.osgi [1.12.1 201306052037]
org.netbeans.libs.felix [2.6.1 201306052037]
org.netbeans.core.windows/2 [2.58.5 201306052037]
org.netbeans.core.ui/1 [1.35.1 201306052037]
org.netbeans.core.output2/1 [1.30.2 201306052037]
org.netbeans.core.netigso [1.20.1 201306052037]
org.netbeans.core.nativeaccess/1 [1.19.1 201306052037]
org.netbeans.core.io.ui/1 [1.20.1 201306052037]
org.apache.derby [1.0 130817]
org.hibernate [1.0 130817]
com.bss.ppi.entities [1.0 130925]
com.bss.ppi.controller [1.0 130926]
com.bss.ppi.categoryui [1.0 130926]
Hibernate: select category0_.id as id1_0_, category0_.description as descript2_0_, category0_.name as name3_0_ from Category category0_ order by category0_.name
Diagnostic information
Input arguments:
-Djdk.home=/usr/lib/jvm/jdk1.7.0_25
-Dnetbeans.system_http_proxy=DIRECT
-Dnetbeans.system_http_non_proxy_hosts=
-Dnetbeans.dirs=/userfiles/jim2/Programming/NetBeansProjects/NBPlatform/Inventory/MyDBTest/build/cluster:/home/jim2/netbeans-7.3.1/platform
-Dnetbeans.home=/home/jim2/netbeans-7.3.1/platform
-Dnetbeans.logger.console=true
-ea
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=/userfiles/jim2/Programming/NetBeansProjects/NBPlatform/Inventory/MyDBTest/build/testuserdir/var/log/heapdump.hprof
Compiler: HotSpot 64-Bit Tiered Compilers
Heap memory usage: initial 60.7MB maximum 864.0MB
Non heap memory usage: initial 23.2MB maximum 130.0MB
Garbage collector: PS Scavenge (Collections=6 Total time spent=0s)
Garbage collector: PS MarkSweep (Collections=0 Total time spent=0s)
Classes: loaded=7191 total loaded=7191 unloaded 0
INFO [org.netbeans.core.ui.warmup.DiagnosticTask]: Total memory 4,074,311,680
INFO [null]: Total physical memory 4,074,311,680
WARNING [org.openide.filesystems.Ordering]: Not all children in Menu/Window/ marked with the position attribute: [com-bss-ppi-controller-CategoryTopComponent.shadow], but some are: [org-netbeans-core-windows-actions-GlobalPropertiesAction.shadow, Output, Web, SwitchToRecentDocumentAction.shadow, ProgressListAction.shadow, Separator3.instance, ConfigureWindow, org-netbeans-core-windows-actions-ResetWindowsAction.shadow, Separator4.instance, CloseWindowAction.shadow, CloseAllDocumentsAction.shadow, CloseAllButThisAction.shadow, DocumentsAction.shadow]
Hibernate: insert into Category (id, description, name) values (default, ?, ?)
Hibernate: values identity_val_local()
SEVERE [org.openide.util.Exceptions]
java.sql.SQLException: No suitable driver found for jdbc:derby:hibernatejpa-db;shutdown=true
at java.sql.DriverManager.getConnection(DriverManager.java:596)
at java.sql.DriverManager.getConnection(DriverManager.java:233)
[catch] at com.bss.ppi.controller.Installer.close(Installer.java:55)
at org.netbeans.core.startup.NbInstaller.closeAsync(NbInstaller.java:738)
at org.netbeans.ModuleManager.shutDownAsync(ModuleManager.java:1979)
at org.netbeans.core.startup.ModuleSystem.shutDownAsync(ModuleSystem.java:349)
at org.netbeans.core.NbLifeExit.doExit(NbLifeExit.java:134)
at org.netbeans.core.NbLifeExit.run(NbLifeExit.java:94)
at org.openide.util.Mutex.doEvent(Mutex.java:1343)
at org.openide.util.Mutex.readAccess(Mutex.java:350)
at org.netbeans.core.NbLifecycleManager.exit(NbLifecycleManager.java:210)
at org.netbeans.core.NbLifecycleManager.exit(NbLifecycleManager.java:119)
at org.netbeans.core.windows.view.ui.MainWindow$6.windowClosing(MainWindow.java:479)
at java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:349)
at java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:349)
at java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:349)
at java.awt.Window.processWindowEvent(Window.java:2051)
at javax.swing.JFrame.processWindowEvent(JFrame.java:296)
at java.awt.Window.processEvent(Window.java:2009)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:708)
at java.awt.EventQueue$4.run(EventQueue.java:706)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
INFO [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl]: HHH000030: Cleaning up connection pool [jdbc:derby:hibernatejpa-db;create=true]
BUILD SUCCESSFUL (total time: 53 seconds)
I cannot seem to add screenshots to this post. I took screenshots of DbVisualizer showing the data and also my application window shing the data in the database and they do not agree. I am sure both have the same path to the database - so they should agree.
Does anyone have any ideas on what might be wrong, or what information I can provide to help figure out what is going on?
Thanks for your time,
Jim