Modify

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#16438 closed defect (fixed)

StringIndexOutOfBoundsException at iodb.ImageryIdGenerator.getImageryID

Reported by: anonymous Owned by: Zverikk
Priority: normal Milestone:
Component: Plugin imagery_offset_db Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

What is the expected result?

What happens instead?

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

URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2018-05-31 00:51:20 +0200 (Thu, 31 May 2018)
Build-Date:2018-05-30 22:58:01
Revision:13878
Relative:URL: ^/trunk

Identification: JOSM/1.5 (13878 ru) Windows 7 64-Bit
OS Build number: Windows 7 Professional (7601)
Memory Usage: 463 MB / 989 MB (121 MB allocated, but free)
Java version: 1.8.0_171-b11, Oracle Corporation, Java HotSpot(TM) Client VM
Screen: \Display0 1920x1080
Maximum Screen Size: 1920x1080
Program arguments: [L:\Garmin\GPX\Current\Current.gpx]

Plugins:
+ buildings_tools (34212)
+ imagery_offset_db (34337)
+ jogl (1.1.0)
+ reltoolbox (34212)
+ turnrestrictions (34129)
+ utilsplugin2 (34263)

Last errors/warnings:
- W: Cannot paint layer, it is not registered: GpxLayer [name=трек 1.gpx, associatedFile=null]
- W: Cannot paint layer, it is not registered: GpxLayer [name=ватулино 2.gpx, associatedFile=null]
- E: Handled by bug report queue: java.lang.StringIndexOutOfBoundsException: String index out of range: -2
- W: Cannot paint layer, it is not registered: WMSLayer [info=ImageryInfo{name='Пользовательская ссылка WMS ()', countryCode='', url='', imageryType=WMS}]
- W: Cannot paint layer, it is not registered: GpxLayer [name=трек 1.gpx, associatedFile=null]
- W: Cannot paint layer, it is not registered: WMSLayer [info=ImageryInfo{name='Пользовательская ссылка WMS ()', countryCode='', url='', imageryType=WMS}]
- W: Cannot paint layer, it is not registered: GpxLayer [name=трек 1.gpx, associatedFile=null]
- W: Внимание - <html>JOSM не может найти информацию о следующих модулях:<ul><li>imagery_offset_db</li><li>utilsplugin2</li><li>reltoolbox</li><li>buildings_tools</li><li>jogl</li><li>turnrestrictions</li></ul>Модули не загружаются с сервера.</html>
- W: Cannot paint layer, it is not registered: WMSLayer [info=ImageryInfo{name='Пользовательская ссылка WMS ()', countryCode='', url='', imageryType=WMS}]
- W: Cannot paint layer, it is not registered: GpxLayer [name=трек 1.gpx, associatedFile=null]


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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (17) of main
java.lang.StringIndexOutOfBoundsException: String index out of range: -2
	at java.lang.String.substring(Unknown Source)
	at iodb.ImageryIdGenerator.getImageryID(ImageryIdGenerator.java:44)
	at iodb.ImageryOffsetTools.getImageryID(ImageryOffsetTools.java:109)
	at iodb.GetImageryOffsetAction.updateEnabledState(GetImageryOffsetAction.java:80)
	at org.openstreetmap.josm.actions.JosmAction$LayerChangeAdapter.layerRemoving(JosmAction.java:387)
	at org.openstreetmap.josm.gui.layer.LayerManager.fireLayerRemoving(LayerManager.java:475)
	at org.openstreetmap.josm.gui.layer.LayerManager.realRemoveSingleLayer(LayerManager.java:277)
	at org.openstreetmap.josm.gui.layer.MainLayerManager.realRemoveSingleLayer(MainLayerManager.java:314)
	at org.openstreetmap.josm.gui.layer.LayerManager.realRemoveLayer(LayerManager.java:265)
	at org.openstreetmap.josm.gui.layer.LayerManager.lambda$removeLayer$1(LayerManager.java:247)
	at org.openstreetmap.josm.gui.util.GuiHelper.runInEDTAndWaitWithException(GuiHelper.java:234)
	at org.openstreetmap.josm.gui.layer.LayerManager.removeLayer(LayerManager.java:247)
	at org.openstreetmap.josm.gui.layer.LayerManager.realResetState(LayerManager.java:511)
	at org.openstreetmap.josm.gui.layer.MainLayerManager.realResetState(MainLayerManager.java:487)
	at org.openstreetmap.josm.gui.util.GuiHelper.runInEDTAndWaitWithException(GuiHelper.java:234)
	at org.openstreetmap.josm.gui.layer.LayerManager.resetState(LayerManager.java:502)
	at org.openstreetmap.josm.gui.MainApplication.shutdown(MainApplication.java:502)
	at org.openstreetmap.josm.Main.exitJosm(Main.java:332)
	at org.openstreetmap.josm.gui.MainApplication.exitJosm(MainApplication.java:653)
	at org.openstreetmap.josm.gui.MainFrame$ExitWindowAdapter.windowClosing(MainFrame.java:181)
	at java.awt.AWTEventMulticaster.windowClosing(Unknown Source)
	at java.awt.Window.processWindowEvent(Unknown Source)
	at javax.swing.JFrame.processWindowEvent(Unknown Source)
	at java.awt.Window.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(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)

Attachments (0)

Change History (5)

comment:1 by Don-vip, 7 years ago

Component: CorePlugin imagery_offset_db
Owner: changed from team to Zverikk

comment:2 by Don-vip, 7 years ago

Summary: vbStringIndexOutOfBoundsException at iodb.ImageryIdGenerator.getImageryID

comment:3 by Don-vip, 7 years ago

Resolution: fixed
Status: newclosed

Fixed in [o34370].

comment:4 by Zverikk, 7 years ago

Thank you! Sorry I didn't get to it myself.

comment:5 by Don-vip, 7 years ago

You're welcome! You can test it though, I fixed the code blindly :)

Modify Ticket

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