Modify

Opened 4 years ago

Closed 4 years ago

#20594 closed defect (fixed)

NumberFormatException at TagConflictResolutionUtil$AutomaticCombine.resolve

Reported by: anonymous Owned by: Don-vip
Priority: normal Milestone: 21.03
Component: Core Version:
Keywords: template_report combine way conflict Cc:

Description

What steps will reproduce the problem?

  1. Select 3 ways
  2. Selected combine

What is the expected result?

An unexpected exception message.

What happens instead?

Please provide any additional information below. Attach a screenshot if possible.

Revision:17428
Is-Local-Build:true
Build-Date:2020-12-30 15:56:02

Identification: JOSM/1.5 (17428 SVN en) Mac OS X 10.13.6
OS Build number: Mac OS X 10.13.6 (17G14033)
Memory Usage: 1720 MB / 8192 MB (854 MB allocated, but free)
Java version: 15.0.1+9, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.apple.laf.AquaLookAndFeel
Screen: Display 418564416 1920×1080 (scaling 1.00×1.00)
Maximum Screen Size: 1920×1080
Best cursor sizes: 16×16→16×16, 32×32→32×32
VM arguments: [--module-path=/Applications/JOSM.app/Contents/app/mods]
Dataset consistency test: No problems found

Plugins:
+ apache-commons (35524)
+ photo_geotagging (35715)
+ reverter (35688)

Last errors/warnings:
- 02208.354 W: java.net.NoRouteToHostException: No route to host
- 02208.354 W: java.net.NoRouteToHostException: No route to host
- 02208.354 W: java.net.NoRouteToHostException: No route to host
- 02208.354 W: java.net.NoRouteToHostException: No route to host
- 02208.354 W: java.net.NoRouteToHostException: No route to host
- 02208.354 W: java.net.NoRouteToHostException: No route to host
- 02208.354 W: java.net.NoRouteToHostException: No route to host
- 02208.354 W: java.net.NoRouteToHostException: No route to host
- 02208.354 W: java.net.NoRouteToHostException: No route to host
- 10911.864 E: Handled by bug report queue: java.lang.NumberFormatException: For input string: "149461897; 149462036"



=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (23) of main
java.lang.NumberFormatException: For input string: "149461897; 149462036"
	at java.base/java.lang.NumberFormatException.forInputString(Unknown Source)
	at java.base/java.lang.Long.parseLong(Unknown Source)
	at java.base/java.lang.Long.valueOf(Unknown Source)
	at java.base/java.util.Comparator.lambda$comparing$77a9974f$1(Unknown Source)
	at java.base/java.util.TreeMap.put(Unknown Source)
	at java.base/java.util.TreeMap.put(Unknown Source)
	at java.base/java.util.TreeSet.add(Unknown Source)
	at java.base/java.util.AbstractCollection.addAll(Unknown Source)
	at java.base/java.util.TreeSet.addAll(Unknown Source)
	at org.openstreetmap.josm.gui.conflict.tags.TagConflictResolutionUtil$AutomaticCombine.resolve(TagConflictResolutionUtil.java:302)
	at org.openstreetmap.josm.gui.conflict.tags.TagConflictResolutionUtil.applyAutomaticTagConflictResolution(TagConflictResolutionUtil.java:215)
	at org.openstreetmap.josm.gui.conflict.tags.TagConflictResolutionUtil.applyAutomaticTagConflictResolution(TagConflictResolutionUtil.java:151)
	at org.openstreetmap.josm.gui.conflict.tags.CombinePrimitiveResolverDialog.launchIfNecessary(CombinePrimitiveResolverDialog.java:492)
	at org.openstreetmap.josm.actions.CombineWayAction.combineWaysWorker(CombineWayAction.java:191)
	at org.openstreetmap.josm.actions.CombineWayAction.actionPerformed(CombineWayAction.java:298)
	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at java.desktop/javax.swing.AbstractButton.doClick(Unknown Source)
	at java.desktop/com.apple.laf.ScreenMenuItem.actionPerformed(Unknown Source)
	at java.desktop/java.awt.MenuItem.processActionEvent(Unknown Source)
	at java.desktop/java.awt.MenuItem.processEvent(Unknown Source)
	at java.desktop/java.awt.MenuComponent.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.MenuComponent.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)

Attachments (0)

Change History (6)

comment:1 by GerdP, 4 years ago

I cannot reproduce this. It probably depends on the tags of the ways. Please attach an *.osm file that allows to reproduce.

comment:2 by skyper, 4 years ago

Owner: changed from team to anonymous
Status: newneedinfo

comment:3 by skyper, 4 years ago

Keywords: combine way conflict added

comment:4 by Don-vip, 4 years ago

Summary: Unexpected exception when combining waysNumberFormatException at TagConflictResolutionUtil$AutomaticCombine.resolve

comment:5 by Don-vip, 4 years ago

Milestone: 21.03
Owner: changed from anonymous to Don-vip
Status: needinfoassigned

comment:6 by Don-vip, 4 years ago

Resolution: fixed
Status: assignedclosed

In 17564/josm:

fix #20594 - add robustness to AutomaticCombine when Integer values cannot be parsed

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.