Modify

Opened 3 years ago

Closed 3 years ago

#5112 closed defect (fixed)

"Divide building" issues error

Reported by: OliverW Owned by: zerebubuth@…
Priority: normal Component: Plugin terracer
Version: tested Keywords: Plugin, terracer, NoClassDefFoundError, AutoCompletingComboBox
Cc:

Description

JOSM issues an error when selecting a building and calling "Divide building".

Stack trace:
java.lang.NoClassDefFoundError: org/openstreetmap/josm/gui/tagging/ac/AutoCompletingComboBox

at terracer.HouseNumberInputHandler.<init>HouseNumberInputHandler.java:63)
at terracer.TerracerAction.actionPerformed(TerracerAction.java:148)
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)

Attachments (0)

Change History (14)

comment:1 Changed 3 years ago by bastiK

  • Resolution set to invalid
  • Status changed from new to closed

Please update plugins.

comment:2 follow-up: Changed 3 years ago by OliverW

  • Resolution invalid deleted
  • Status changed from closed to reopened

The tested version reports my terracer version as current, the problem still persists with JOSM 3208.

comment:3 Changed 3 years ago by bastiK

  • Resolution set to invalid
  • Status changed from reopened to closed

Plugin update helps, just trust me on this one. :)

comment:4 Changed 3 years ago by OliverW

So what went wrong in my case? I updated *all* plugins, but it did not help.

comment:5 Changed 3 years ago by bastiK

Hm, i did a fresh install of 3208 and got terracer 20956. This works for me.

Maybe click "download list" again and then "update plugins".

comment:6 Changed 3 years ago by stoecker

Please look in you josm plugins directory and compare the site....txt file there with the information from Plugins page. Does it probably contain old information? Is there mor than one file? What names do they have? Does updating plugin list help?

comment:7 Changed 3 years ago by OliverW

Thanks for the hints.

I updated the site....txt as suggested by Dirk, made sure that all Plugins are up-to-date and restarted JOSM.

The error still persists:
...
lade Plugin 'terracer' (Version 20956)
lade Plugin 'measurement' (Version 21307)
lade Plugin 'ColumbusCSV' (Version 299)
lade Plugin 'colorscheme' (Version 21563)
lade Plugin 'editgpx' (Version 21582)
lade Plugin 'openvisible' (Version 20067)
lade Plugin 'DirectUpload' (Version 20881)
lade Plugin 'buildings_tools' (Version 21236)
GET http://www.openstreetmap.org/api/capabilities... OK
...
java.lang.NoClassDefFoundError: org/openstreetmap/josm/gui/tagging/ac/AutoComple
tingComboBox

...


Any ideas?

What about AutoCompletingComboBox?

comment:8 Changed 3 years ago by bastiK

Frankly I don't understand this. The error comes when you use an incompatible plugin version with you main version. But josm 3208 should work well with terracer 20956. I tested it just now.

You could locate terracer.jar file in your josm user folder (under plugins), unpack it and open the Manifest file: What version does it show?

The first post looks as if you are quite sure it is caused by terracer plugin, right?

A quick solution for your problem would be to clear the user folder:

Help/ResetPreferences

comment:9 Changed 3 years ago by stoecker

  • Resolution invalid deleted
  • Status changed from closed to reopened

Also try deleting the terracer.jar and let josm redownload it. Maybe you got one of the files, where plugins have been checked in wrong temporary.

comment:10 Changed 3 years ago by anonymous

As far as I can see is AutoCompleteComboBox moved from trunk/src/org/openstreetmap/josm/gui/widgets/AutoCompleteComboBox.java in r3210 (See http://josm.openstreetmap.de/log/trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletingComboBox.java). So terracer could not find this class with current josm stable (r3208).

comment:12 in reply to: ↑ 2 Changed 3 years ago by bastiK

@anonymous

your analysis is correct, the error suggests, that OliverW is using a later version (> 20957) of the terracer plugin (along with r3208). But it seems he is using 20957 (which should be looking for AutoCompletingComboBox in the old path gui/widgets/ and not gui/tagging/ac) so this error should not come.

comment:13 Changed 3 years ago by stoecker

I think this was again a plugin checkin mismatch. I fixed the old-link. OliverW, please delete terracer.jar again and redownload it. Should now work as expected.

comment:14 Changed 3 years ago by OliverW

  • Resolution set to fixed
  • Status changed from reopened to closed

I updated to 3329 today and the plugin seems to work now as well 20956 and 21706, thanks.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.