Opened 5 years ago

Closed 5 years ago

#11724 closed defect (irreproducible)

InvalidClassException in IndexedDiskCache

Reported by: naoliv Owned by: naoliv
Priority: normal Milestone:
Component: Core imagery Version:
Keywords: Cc: wiktorn


Clicked to load one IBGE layer and saw this:

[ERROR] IndexedDiskCache - Region [TMS] Problem loading keys for file TMS < org.apache.commons.jcs.auxiliary.disk.indexed.IndexedDiskElementDescriptor; local class incompatible: stream classdesc serialVersionUID = 7685317388573182052, local class serialVersionUID = -3029163572847659450> org.apache.commons.jcs.auxiliary.disk.indexed.IndexedDiskElementDescriptor; local class incompatible: stream classdesc serialVersionUID = 7685317388573182052, local class serialVersionUID = -3029163572847659450
	at java.util.HashMap.readObject(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at org.apache.commons.jcs.utils.serialization.StandardSerializer.deSerialize(
	at org.apache.commons.jcs.auxiliary.disk.indexed.IndexedDisk.readObject(
	at org.apache.commons.jcs.auxiliary.disk.indexed.IndexedDiskCache.loadKeys(
	at org.apache.commons.jcs.auxiliary.disk.indexed.IndexedDiskCache.initializeStoreFromPersistedData(
	at org.apache.commons.jcs.auxiliary.disk.indexed.IndexedDiskCache.initializeKeysAndData(
	at org.apache.commons.jcs.auxiliary.disk.indexed.IndexedDiskCache.<init>(
	at org.apache.commons.jcs.auxiliary.disk.indexed.IndexedDiskCache.<init>(
	at org.apache.commons.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory.createCache(
	at org.apache.commons.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory.createCache(
	at org.openstreetmap.josm.gui.layer.AbstractCachedTileSourceLayer.getCache(
	at org.openstreetmap.josm.gui.layer.AbstractCachedTileSourceLayer.<init>(
	at org.openstreetmap.josm.gui.layer.TMSLayer.<init>(
	at org.openstreetmap.josm.gui.layer.ImageryLayer.create(
	at org.openstreetmap.josm.actions.AddImageryLayerAction.actionPerformed(
	at javax.swing.AbstractButton.fireActionPerformed(
	at javax.swing.AbstractButton$Handler.actionPerformed(
	at javax.swing.DefaultButtonModel.fireActionPerformed(
	at javax.swing.DefaultButtonModel.setPressed(
	at javax.swing.AbstractButton.doClick(
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(
	at java.awt.AWTEventMulticaster.mouseReleased(
	at java.awt.Component.processMouseEvent(
	at javax.swing.JComponent.processMouseEvent(
	at java.awt.Component.processEvent(
	at java.awt.Container.processEvent(
	at java.awt.Component.dispatchEventImpl(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
	at java.awt.LightweightDispatcher.retargetMouseEvent(
	at java.awt.LightweightDispatcher.processMouseEvent(
	at java.awt.LightweightDispatcher.dispatchEvent(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Window.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
	at java.awt.EventQueue.dispatchEventImpl(
	at java.awt.EventQueue.access$300(
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue.dispatchEvent(
	at java.awt.EventDispatchThread.pumpOneEventForFilters(
	at java.awt.EventDispatchThread.pumpEventsForFilter(
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.awt.EventDispatchThread.pumpEvents(
	at java.awt.EventDispatchThread.pumpEvents(


Repository Root:
Build-Date: 2015-07-27 01:32:05
Last Changed Author: wiktorn
Revision: 8621
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Relative URL: ^/trunk
Last Changed Date: 2015-07-27 00:01:30 +0200 (Mon, 27 Jul 2015)
Last Changed Rev: 8621

Identification: JOSM/1.5 (8621 pt_BR) Linux Debian GNU/Linux unstable (sid)
Memory Usage: 247 MB / 4029 MB (149 MB allocated, but free)
Java version: 1.7.0_79, Oracle Corporation, OpenJDK 64-Bit Server VM
Java package: openjdk-7-jre:amd64-7u79-2.5.5-1
VM arguments: [-Dawt.useSystemAAFontSettings=on]

- AddrInterpolation (31241)
- Create_grid_of_ways (31241)
- FastDraw (31265)
- FixAddresses (31241)
- OpeningHoursEditor (31241)
- PicLayer (31241)
- SimplifyArea (31241)
- buildings_tools (31361)
- download_along (31241)
- editgpx (31241)
- geotools (31126)
- graphview (31241)
- jts (31126)
- measurement (31289)
- merge-overlap (31241)
- opendata (31241)
- pdfimport (31241)
- poly (31241)
- reverter (31241)
- tagging-preset-tester (31241)
- todo (29154)
- turnrestrictions (31241)
- undelete (31241)
- utilsplugin2 (31241)

Attachments (0)

Change History (5)

comment:1 Changed 5 years ago by wiktorn

Owner: changed from team to naoliv
Status: newneedinfo

Do you have any way to reproduce this error? There was no changes to IndexElementDescriptor class, so you couldn't have older version of the class. So I suspected disk or RAM corruption.

When I tried converting both values in Windows Calculator to binary form, I've got the same value. When I used Java Long.toBinaryString(), I got a bit different values. I do not know how longs are stored in memory in Java, nor how they are serialized, but disk or RAM corruption might be the case.

It might be rowhammer:

Or silent disk corruption.

comment:2 Changed 5 years ago by naoliv

Doesn't seem to be rowhammer nor a disk/filesystem issue.
Could it be caused by JOSM getting closed unproperly or some kind of issue when upgrading from an older version?

comment:3 Changed 5 years ago by wiktorn

Upgrading from an older version should not result in such error.

Closing forcibly could result in such error, but if this was a bit-flip, that changed the value from positive to negative, then it is of low probability, that this error was due to forcibly closing. If this was random junk, then yes - closing forcibly could result in such error.

comment:4 Changed 5 years ago by naoliv

Maybe some kind of overflow making the value negative?
But anyway, since it's not a reproducible problem I guess we can close it.

comment:5 Changed 5 years ago by wiktorn

Resolution: irreproducible
Status: needinfoclosed

Then this would be then some Java bug. I'm closing this then.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain naoliv.
as The resolution will be set.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.