Jukka, can you file a ticket and attach a small example dataset?
..ede On 5/11/2018 16:50, Rahkonen Jukka (MML) wrote: > Hi, > > > > Correction: as it can be seen from the logs the error happened with a > Spatialite database, not with Geopackage. > > > > -Jukka- > > > > *Lähettäjä:*Rahkonen Jukka (MML) > *Lähetetty:* 11. toukokuuta 2018 11:19 > *Vastaanottaja:* OpenJump develop and use > (jump-pilot-devel@lists.sourceforge.net) > <jump-pilot-devel@lists.sourceforge.net> > *Aihe:* Impossible to close OJ after reading GeoPackage > > > > Hi, > > > > I noticed that at least with some GeoPackage databases OpenJUMP goes to a > strange state which makes it impossible to close OpenJUMP. The main reason is > probably that it is not possible to close the connection to GeoPackage > (SQLite) because the same exception comes if I try to close the connection > from the database connection manager. This does not seem to be a new issue > but happens for example with OpenJUMP-20171111-r5557-PLUS and all newer > versions which I tested. Java 8 vs. Java 10 does not make difference. > > > > java.lang.RuntimeException: > com.vividsolutions.jump.datastore.DataStoreException: java.sql.SQLException: > The prepared statement has been finalized > > at > com.vividsolutions.jump.workbench.datastore.ConnectionManager$2.exitApplication(ConnectionManager.java:84) > > at > com.vividsolutions.jump.workbench.ui.WorkbenchFrame.closeApplication(WorkbenchFrame.java:1380) > > at > com.vividsolutions.jump.workbench.ui.WorkbenchFrame.access$000(WorkbenchFrame.java:152) > > at > com.vividsolutions.jump.workbench.ui.WorkbenchFrame$ExitPlugin.execute(WorkbenchFrame.java:217) > > at > com.vividsolutions.jump.workbench.plugin.AbstractPlugIn$1.actionPerformed(AbstractPlugIn.java:339) > > at > javax.swing.AbstractButton.fireActionPerformed(Unknown Source) > > at > javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) > > at > javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) > > at > javax.swing.DefaultButtonModel.setPressed(Unknown Source) > > at javax.swing.AbstractButton.doClick(Unknown > Source) > > at > javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source) > > at > javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source) > > at java.awt.Component.processMouseEvent(Unknown > Source) > > at > javax.swing.JComponent.processMouseEvent(Unknown Source) > > at java.awt.Component.processEvent(Unknown Source) > > at java.awt.Container.processEvent(Unknown Source) > > at java.awt.Component.dispatchEventImpl(Unknown > Source) > > at java.awt.Container.dispatchEventImpl(Unknown > Source) > > at java.awt.Component.dispatchEvent(Unknown Source) > > at > java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) > > at > java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) > > at > java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) > > at java.awt.Container.dispatchEventImpl(Unknown > Source) > > at java.awt.Window.dispatchEventImpl(Unknown > Source) > > at java.awt.Component.dispatchEvent(Unknown Source) > > at java.awt.EventQueue.dispatchEventImpl(Unknown > Source) > > at java.awt.EventQueue.access$500(Unknown Source) > > at java.awt.EventQueue$3.run(Unknown Source) > > at java.awt.EventQueue$3.run(Unknown Source) > > at > java.security.AccessController.doPrivileged(Native Method) > > at > java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown > Source) > > at > java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown > Source) > > at java.awt.EventQueue$4.run(Unknown Source) > > at java.awt.EventQueue$4.run(Unknown Source) > > at > java.security.AccessController.doPrivileged(Native Method) > > at > java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown > Source) > > at java.awt.EventQueue.dispatchEvent(Unknown > Source) > > at > java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) > > at > java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) > > at > java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) > > at java.awt.EventDispatchThread.pumpEvents(Unknown > Source) > > at java.awt.EventDispatchThread.pumpEvents(Unknown > Source) > > at java.awt.EventDispatchThread.run(Unknown Source) > > Caused by: com.vividsolutions.jump.datastore.DataStoreException: > java.sql.SQLException: The prepared statement has been finalized > > at > com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesDSConnection.close(SpatialDatabasesDSConnection.java:95) > > at > com.vividsolutions.jump.workbench.datastore.ConnectionManager.closeConnections(ConnectionManager.java:235) > > at > com.vividsolutions.jump.workbench.datastore.ConnectionManager$2.exitApplication(ConnectionManager.java:82) > > ... 42 more > > Caused by: java.sql.SQLException: The prepared statement has been finalized > > at > org.sqlite.core.NativeDB.throwex(NativeDB.java:471) > > at org.sqlite.core.NativeDB.finalize(Native Method) > > at org.sqlite.core.DB.close(DB.java:190) > > at > org.sqlite.core.CoreConnection.close(CoreConnection.java:394) > > at > com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesDSConnection.close(SpatialDatabasesDSConnection.java:93) > > ... 44 more > > > > -Jukka Rahkonen- > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel