Skip to Main Content

Error opening libraries section

562298Sep 5 2008 — edited Sep 8 2008
Hi all,

I had an unfortunate request to run a piece of code on jdk 1.2. Yes some of us are still forced to support ancient technology. Well to put a log story short I tried to add jdk1.2.2 to jdk list in libraries screen. It didn't really work and I had to manually add rt.jar to classpath and i18n.jar. After that I tried to compile that piece of code and all I got was a nice juicy Segmentation fault. So basically no joy.
Well I let it go and resorted to manual compilation using CLI. And I would have forgotten about it by now if the whole thing didn't have a nasty side effect. Every time I try to access library settings for any project I get following unfriendly stack trace:
<pre>
java.lang.NullPointerException
at oracle.jdeveloper.library.JLibraryManager.findJDK(JLibraryManager.java:294)
at oracle.jdeveloper.library.JLibraryManager.findJDKMatch(JLibraryManager.java:342)
at oracle.jdeveloper.library.LibraryReference.getLibrary(LibraryReference.java:81)
at oracle.jdeveloper.model.JProjectLibraries.getJDK(JProjectLibraries.java:115)
at oracle.jdeveloper.model.JProjectLibrariesPanel.reload(JProjectLibrariesPanel.java:266)
at oracle.jdeveloper.model.JProjectLibrariesPanel.onProjectPanelEntry(JProjectLibrariesPanel.java:223)
at oracle.ide.model.panels.ProjectSettingsTraversablePanel.onEntry(ProjectSettingsTraversablePanel.java:87)
at oracle.ide.panels.MDDPanel.enterTraversableImpl(MDDPanel.java:926)
at oracle.ide.panels.MDDPanel.enterTraversable(MDDPanel.java:899)
at oracle.ide.panels.MDDPanel.mav$enterTraversable(MDDPanel.java:106)
at oracle.ide.panels.MDDPanel$Tsl.updateSelectedNavigable(MDDPanel.java:1348)
at oracle.ide.panels.MDDPanel$Tsl.updateSelection(MDDPanel.java:1216)
at oracle.ide.panels.MDDPanel$Tsl.actionPerformed(MDDPanel.java:1210)
at javax.swing.Timer.fireActionPerformed(Timer.java:271)
at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
at java.awt.Dialog$1.run(Dialog.java:1045)
at java.awt.Dialog$3.run(Dialog.java:1097)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:1095)
at java.awt.Component.show(Component.java:1422)
at java.awt.Component.setVisible(Component.java:1375)
at java.awt.Window.setVisible(Window.java:806)
at java.awt.Dialog.setVisible(Dialog.java:985)
at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
at oracle.ide.dialogs.WizardLauncher.runDialog(WizardLauncher.java:55)
at oracle.ide.panels.TDialogLauncher.showDialog(TDialogLauncher.java:276)
at oracle.ide.model.panels.ProjectPropertiesDialog.showDialog(ProjectPropertiesDialog.java:223)
at oracle.ide.model.panels.ProjectPropertiesDialog.showDialog(ProjectPropertiesDialog.java:89)
at oracle.ide.model.panels.ProjectPropertiesDialog.showDialog(ProjectPropertiesDialog.java:80)
at oracle.jdeveloper.model.JProjectStructureController.handleEvent(JProjectStructureController.java:111)
at oracle.ide.controller.IdeAction.performAction(IdeAction.java:525)
at oracle.ide.controller.IdeAction$1.run(IdeAction.java:772)
at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:789)
at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:498)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1220)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1261)
at java.awt.Component.processMouseEvent(Component.java:6041)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5806)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
</pre>

Is there something I can do? Or should I resort to good ol' reinstall?

Thanks to everyone that shows interest in my woes.
Comments
Post Details
Added on Sep 5 2008
5 comments
326 views