Exception raised during RPF data loading
GoogleCodeExporter opened this issue · 2 comments
GoogleCodeExporter commented
Environment:
- OpenMap version: 5.0.3
- Operating System: Microsoft Windows XP
Issue description:
The loading of RPF data with [OpenMap] demonstrator leads to an exception (see
further in the issue).
This problem does not occur with the version 5.0 of [OpenMap].
The exception is not raised anymore when the
com.bbn.openmap.layer.rpf.RpfProductInfo class available in the version 5.0.3
is replaced by the one delivered in the version 5.0.
Exception:
Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
at com.bbn.openmap.layer.rpf.RpfConstants.<clinit>(RpfConstants.java:195)
at com.bbn.openmap.layer.rpf.RpfTocHandler.textScaleToLong(RpfTocHandler.java:795)
at com.bbn.openmap.layer.rpf.RpfTocEntry.read(RpfTocEntry.java:101)
at com.bbn.openmap.layer.rpf.RpfTocEntry.<init>(RpfTocEntry.java:71)
at com.bbn.openmap.layer.rpf.RpfTocHandler.parseToc(RpfTocHandler.java:347)
at com.bbn.openmap.layer.rpf.RpfTocHandler.loadFile(RpfTocHandler.java:259)
at com.bbn.openmap.layer.rpf.RpfTocHandler.<init>(RpfTocHandler.java:164)
at com.bbn.openmap.layer.rpf.RpfFrameCacheHandler.createTocHandlers(RpfFrameCacheHandler.java:631)
at com.bbn.openmap.layer.rpf.RpfFrameCacheHandler.<init>(RpfFrameCacheHandler.java:82)
at com.bbn.openmap.layer.rpf.RpfFrameCacheHandler.<init>(RpfFrameCacheHandler.java:71)
at com.bbn.openmap.layer.rpf.RpfLayer.setPaths(RpfLayer.java:214)
at com.bbn.openmap.layer.rpf.RpfLayer.setProperties(RpfLayer.java:265)
at com.bbn.openmap.util.propertyEditor.Inspector.actionPerformed(Inspector.java:447)
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.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(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.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)
Caused by: java.lang.NullPointerException
at com.bbn.openmap.layer.rpf.RpfProductInfo.<clinit>(RpfProductInfo.java:66)
... 38 more
Original issue reported on code.google.com by mel.seco...@gmail.com
on 16 Sep 2014 at 11:38
GoogleCodeExporter commented
As far as I see not fixed yet. The static intializer should not try to add
instances of its own class to the map (a bit too early ;). The lazy loading as
seen in 4.6.5 is doing fine.
Original comment by wolfgang...@gmx.de
on 29 May 2015 at 2:01
GoogleCodeExporter commented
Hmm, the static initializer by itself seems to be ok. The initializing as seen
in the stack trace above introduces the problem.
I'll work around it by calling a dummy
RpfProductInfo.getCatalog();
prior to any use of this class.
Original comment by wolfgang...@gmx.de
on 1 Jun 2015 at 8:10