Modify

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#8246 closed defect (fixed)

ImportImagePlugin does install geotools but not its dependency plugin jts

Reported by: skyper Owned by: team
Priority: major Milestone:
Component: Plugin Version:
Keywords: geotools jts depend Cc:

Description (last modified by skyper)

  1. start JOSM with empty preference directory
  2. download plugin list in plugin preferences.
  3. select "utilsplugin2" and "ImportImagePlugin"
  4. four plugins (utilsplugin2,ImportImagePlugin,log4j,geotools) are downloaded.
  5. restart JOSM
  6. jts is missing for geotools
lade Plugin 'log4j' (Version 28968)
lade Plugin 'ImportImagePlugin' (Version 28969)
Logging properties file not found. Using standard settings.
org.openstreetmap.josm.plugins.PluginException: Ein Fehler ist in dem Plugin ImportImagePlugin aufgetreten.
	at org.openstreetmap.josm.plugins.PluginInformation.load(PluginInformation.java:308)
	at org.openstreetmap.josm.plugins.PluginHandler.loadPlugin(PluginHandler.java:508)
	at org.openstreetmap.josm.plugins.PluginHandler.loadPlugins(PluginHandler.java:566)
	at org.openstreetmap.josm.plugins.PluginHandler.loadLatePlugins(PluginHandler.java:605)
	at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:348)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
	at org.openstreetmap.josm.plugins.PluginInformation.load(PluginInformation.java:299)
	... 4 more
Caused by: java.lang.NoClassDefFoundError: org/opengis/referencing/FactoryException
	at org.openstreetmap.josm.plugins.ImportImagePlugin.ImportImagePlugin.<init>(ImportImagePlugin.java:90)
	... 9 more
Caused by: java.lang.ClassNotFoundException: org.opengis.referencing.FactoryException
	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)
	... 10 more
lade Plugin 'utilsplugin2' (Version 28807)
Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2012-11-29 02:31:07
Last Changed Author: stoecker
Revision: 5608
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2012-11-28 23:47:46 +0100 (Wed, 28 Nov 2012)
Last Changed Rev: 5608

Identification: JOSM/1.5 (5608 de)
Memory Usage: 80 MB / 592 MB (18 MB allocated, but free)
Java version: 1.6.0_24, Sun Microsystems Inc., OpenJDK 64-Bit Server VM
Operating system: Linux

Plugin: ImportImagePlugin
Plugin: geotools
Plugin: log4j (28968)
Plugin: utilsplugin2 (28807)
  • Installing plugin jts solves the problem.
  • Installing plugin geotools only properly pulls jts.
  • I also noticed that downloading the plugin geotools takes quite long.
  • Why is there no plugin version number in the status report ?
    • Plugin 'geotools' (Version 28978)

Attachments (0)

Change History (10)

comment:1 by skyper, 12 years ago

Description: modified (diff)

comment:2 by skyper, 12 years ago

Description: modified (diff)

comment:3 by skyper, 12 years ago

Description: modified (diff)

comment:4 by skyper, 12 years ago

Priority: normalmajor

in reply to:  description ; comment:5 by Don-vip, 12 years ago

Replying to skyper:

  • I also noticed that downloading the plugin geotools takes quite long.

Normal. The GeoTools library is huge. This is why JOSM core will never rely on it. The two plugins using it (ImportImagePlugin and opendata) were also really big and have seen their size drastically reduced now. We just need to stabilize geotools now, but this plugin will not be updated very often after that.

comment:6 by Don-vip, 12 years ago

Resolution: fixed
Status: newclosed

In 5609/josm:

fix #8246 - Recursive dependencies resolution at plugin selection

in reply to:  5 ; comment:7 by skyper, 12 years ago

Replying to Don-vip:

Replying to skyper:

  • I also noticed that downloading the plugin geotools takes quite long.

Normal. The GeoTools library is huge. This is why JOSM core will never rely on it. The two plugins using it (ImportImagePlugin and opendata) were also really big and have seen their size drastically reduced now. We just need to stabilize geotools now, but this plugin will not be updated very often after that.

Does not help me much cause I often work on PC which are reseted on reboot and I have to manually download each time. Is it possible to have download in background ?

  • Why is there no plugin version number in the status report

Looks like the numbers are only displayed if the plugin is loaded successfully.

in reply to:  7 ; comment:8 by Don-vip, 12 years ago

Replying to skyper:

Does not help me much cause I often work on PC which are reseted on reboot and I have to manually download each time. Is it possible to have download in background ?

Sounds too complicated, I don't think so.

comment:9 by Don-vip, 12 years ago

I have updated both plugins ([o29023],[o29028]) for people that will stay with tested (r5608).

in reply to:  8 comment:10 by skyper, 12 years ago

Replying to Don-vip:

Replying to skyper:

Does not help me much cause I often work on PC which are reseted on reboot and I have to manually download each time. Is it possible to have download in background ?

Sounds too complicated, I don't think so.

You are right.
Mmh, I remembered my bigger problem: #7483.
Right now it is not really possible to share the plugins. Probably will work for plugins which are not often updated but each update might bring a problem.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
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.