Modify

Opened 13 years ago

Closed 12 years ago

#7787 closed defect (fixed)

Opendata plugin uses Java 7 API in dependent libraries

Reported by: bastiK Owned by: Don-vip
Priority: normal Milestone:
Component: Plugin opendata Version:
Keywords: Cc:

Description

See http://forum.openstreetmap.org/viewtopic.php?id=17045:

JOSM currently requires only Java 6, but Opendata-Plugin seems to have dependencies, that need Java 7 classes.

Attachments (0)

Change History (5)

comment:1 by bastiK, 13 years ago

Summary: Opendata plugin uses Java 7 APIOpendata plugin uses Java 7 API in dependent libraries

comment:2 by Don-vip, 13 years ago

Resolution: needinfo
Status: newclosed

I need more info to fix this bug. I tried to contact this person on the forum and by mail, but I didn't have any response.

If someone encounters this problem, please reopen this ticket with at least a full stacktrace.

comment:3 by bastiK, 13 years ago

Maybe a classpath issue? (Other version of the lib is already installed.)

comment:4 by anonymous, 13 years ago

Resolution: needinfo
Status: closedreopened

org.openstreetmap.josm.io.IllegalDataException: java.io.IOException: java.lang.NoClassDefFoundError: java/nio/channels/SeekableByteChannel

at org.openstreetmap.josm.plugins.opendata.core.io.geographic.ShpImporter.parseDataSet(ShpImporter.java:38)
at org.openstreetmap.josm.io.OsmImporter.loadLayer(OsmImporter.java:90)
at org.openstreetmap.josm.io.OsmImporter.importData(OsmImporter.java:71)
at org.openstreetmap.josm.io.OsmImporter.importData(OsmImporter.java:59)
at org.openstreetmap.josm.plugins.opendata.core.io.AbstractImporter.importData(AbstractImporter.java:65)
at org.openstreetmap.josm.io.FileImporter.importDataHandleExceptions(FileImporter.java:66)
at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.importData(OpenFileAction.java:328)
at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.realRun(OpenFileAction.java:271)
at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:82)
at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:145)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)

Caused by: java.io.IOException: java.lang.NoClassDefFoundError: java/nio/channels/SeekableByteChannel

at org.openstreetmap.josm.plugins.opendata.core.io.geographic.ShpReader.parse(ShpReader.java:215)
at org.openstreetmap.josm.plugins.opendata.core.io.geographic.ShpReader.parseDataSet(ShpReader.java:75)
at org.openstreetmap.josm.plugins.opendata.core.io.geographic.ShpImporter.parseDataSet(ShpImporter.java:36)
... 15 more

Caused by: java.lang.NoClassDefFoundError: java/nio/channels/SeekableByteChannel

at org.geotools.data.shapefile.ShpFiles.getReadChannel(Unknown Source)
at org.geotools.data.shapefile.shp.ShapefileReader.<init>(Unknown Source)
at org.geotools.data.shapefile.ShapefileDataStore.openShapeReader(Unknown Source)
at org.geotools.data.shapefile.ShapefileDataStore.readAttributes(Unknown Source)
at org.geotools.data.shapefile.ShapefileDataStore.getSchema(Unknown Source)
at org.geotools.data.shapefile.ShapefileDataStore.getSchema(Unknown Source)
at org.geotools.data.shapefile.ShapefileDataStore.getFeatureSource(Unknown Source)
at org.openstreetmap.josm.plugins.opendata.core.io.geographic.ShpReader.parse(ShpReader.java:175)
... 17 more

Caused by: java.lang.ClassNotFoundException: java.nio.channels.SeekableByteChannel

at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
... 25 more

comment:5 by Don-vip, 12 years ago

Resolution: fixed
Status: reopenedclosed

Fixed with the use of the new geotools plugin. Tested OK by opening a shapefile on Ubuntu 12.04 with default java installation (1.6.0_24).

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Don-vip.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.