Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception raised during RPF data loading #8

Open
GoogleCodeExporter opened this issue Aug 3, 2015 · 2 comments
Open

Exception raised during RPF data loading #8

GoogleCodeExporter opened this issue Aug 3, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 16 Sep 2014 at 11:38

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 29 May 2015 at 2:01

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 1 Jun 2015 at 8:10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant