2 Replies Latest reply: Apr 10, 2013 1:14 PM by 1002292 RSS

    Code Formatter error

    1002292
      I get an error when i try to adjust the settings on SQL Formatter. (SQL Developer 3.0.0.4, Ubuntu 12.04, 64 bit). Below is what i get from Tools, Preferences, Database, SQL Formatter, Oracle Formatting.

      Any ideas?

      SQL Formatter: Oracle Formatting
      Internal Error when attempting to create this panel:

      java.lang.NullPointerException
           at oracle.dbtools.proformatter.treePreferences.style.profile.ProfileModel$ProfileComparator.compare(ProfileModel.java:387)
           at oracle.dbtools.proformatter.treePreferences.style.profile.ProfileModel$ProfileComparator.compare(ProfileModel.java:383)
           at java.util.Arrays.mergeSort(Arrays.java:1283)
           at java.util.Arrays.sort(Arrays.java:1223)
           at java.util.Collections.sort(Collections.java:176)
           at oracle.dbtools.proformatter.treePreferences.style.profile.ProfileModel.<init>(ProfileModel.java:70)
           at oracle.dbtools.proformatter.treePreferences.style.preferences.CodingStylePreferencesPanel.reinit(CodingStylePreferencesPanel.java:156)
           at oracle.dbtools.proformatter.treePreferences.style.preferences.CodingStylePreferencesPanel.onEntry(CodingStylePreferencesPanel.java:431)
           at oracle.ide.panels.MDDPanel.enterTraversableImpl(MDDPanel.java:1220)
           at oracle.ide.panels.MDDPanel.enterTraversable(MDDPanel.java:1201)
           at oracle.ide.panels.MDDPanel.access$1200(MDDPanel.java:128)
           at oracle.ide.panels.MDDPanel$Tsl.updateSelectedNavigable(MDDPanel.java:1657)
           at oracle.ide.panels.MDDPanel$Tsl.updateSelection(MDDPanel.java:1525)
           at oracle.ide.panels.MDDPanel$Tsl.actionPerformed(MDDPanel.java:1519)
           at javax.swing.Timer.fireActionPerformed(Timer.java:313)
           at javax.swing.Timer$DoPostEvent.run(Timer.java:244)
           at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
           at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:673)
           at java.awt.EventQueue.access$300(EventQueue.java:96)
           at java.awt.EventQueue$2.run(EventQueue.java:634)
           at java.awt.EventQueue$2.run(EventQueue.java:632)
           at java.security.AccessController.doPrivileged(Native Method)
           at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
           at java.awt.EventQueue.dispatchEvent(EventQueue.java:643)
           at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
           at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
           at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:194)
           at java.awt.Dialog$1.run(Dialog.java:1079)
           at java.awt.Dialog$3.run(Dialog.java:1133)
           at java.security.AccessController.doPrivileged(Native Method)
           at java.awt.Dialog.show(Dialog.java:1131)
           at java.awt.Component.show(Component.java:1571)
           at java.awt.Component.setVisible(Component.java:1523)
           at java.awt.Window.setVisible(Window.java:951)
           at java.awt.Dialog.setVisible(Dialog.java:1013)
           at oracle.bali.ewt.dialog.JEWTDialog.runDialog(JEWTDialog.java:395)
           at oracle.bali.ewt.dialog.JEWTDialog.runDialog(JEWTDialog.java:356)
           at oracle.ide.dialogs.WizardLauncher.runDialog(WizardLauncher.java:55)
           at oracle.ide.panels.TDialogLauncher.showDialog(TDialogLauncher.java:225)
           at oracle.ide.config.IdeSettings.showDialog(IdeSettings.java:808)
           at oracle.ide.config.IdeSettings.showDialog(IdeSettings.java:593)
           at oracle.ide.cmd.IdeSettingsCommand.doit(IdeSettingsCommand.java:45)
           at oracle.ide.controller.CommandProcessor.invoke(CommandProcessor.java:317)
           at oracle.ide.controller.IdeAction.performAction(IdeAction.java:556)
           at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:884)
           at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:501)
           at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
           at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
           at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
           at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
           at javax.swing.AbstractButton.doClick(AbstractButton.java:374)
           at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:829)
           at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:873)
           at java.awt.Component.processMouseEvent(Component.java:6288)
           at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
           at java.awt.Component.processEvent(Component.java:6053)
           at java.awt.Container.processEvent(Container.java:2045)
           at java.awt.Component.dispatchEventImpl(Component.java:4649)
           at java.awt.Container.dispatchEventImpl(Container.java:2103)
           at java.awt.Component.dispatchEvent(Component.java:4475)
           at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4633)
           at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4297)
           at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4227)
           at java.awt.Container.dispatchEventImpl(Container.java:2089)
           at java.awt.Window.dispatchEventImpl(Window.java:2587)
           at java.awt.Component.dispatchEvent(Component.java:4475)
           at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:675)
           at java.awt.EventQueue.access$300(EventQueue.java:96)
           at java.awt.EventQueue$2.run(EventQueue.java:634)
           at java.awt.EventQueue$2.run(EventQueue.java:632)
           at java.security.AccessController.doPrivileged(Native Method)
           at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
           at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
           at java.awt.EventQueue$3.run(EventQueue.java:648)
           at java.awt.EventQueue$3.run(EventQueue.java:646)
           at java.security.AccessController.doPrivileged(Native Method)
           at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
           at java.awt.EventQueue.dispatchEvent(EventQueue.java:645)
           at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
           at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
           at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
           at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
           at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
           at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)