1 Reply Latest reply on Mar 15, 2017 7:46 PM by Gary Graham-Oracle

    4.2 EA2 - Crash on illegal character in export file name

    jnp1234

      4.2 EA2 crashes on export (single file to xlsx) when there is an illegal character in the file.

       

      Export from "Query result" window.

       

      File name: C:\xxxx.xxxx\rep 2017-03-15 08.30 - 15:30.xlsx

       

      There is not error message, the produced file is just left empty with a strange name.

       

      Starting export again shows:

       

      java.lang.reflect.InvocationTargetException

          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

          at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

          at oracle.ide.panels.MetaTraversable.newTraversable(MetaTraversable.java:315)

          at oracle.ide.wizard.Step.newTraversable(Step.java:171)

          at oracle.ide.wizard.FSMStateInfo.getTraversable(FSMStateInfo.java:99)

          at oracle.ide.wizard.FSMWizard._addPage(FSMWizard.java:580)

          at oracle.ide.wizard.FSMWizard._populatePages(FSMWizard.java:534)

          at oracle.ide.wizard.FSMWizard.<init>(FSMWizard.java:121)

          at oracle.dbtools.raptor.export.wizard.ExportWizMain.launchWizard(ExportWizMain.java:226)

          at oracle.dbtools.raptor.export.wizard.ExportWizMain.launchForGrid(ExportWizMain.java:204)

          at oracle.dbtools.raptor.dialogs.actions.TableExportAction.launchForGrid(TableExportAction.java:73)

          at oracle.dbtools.raptor.controls.grid.contextmenu.ExportGrid$1.actionPerformed(ExportGrid.java:165)

          at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)

          at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)

          at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)

          at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)

          at javax.swing.AbstractButton.doClick(AbstractButton.java:376)

          at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)

          at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)

          at java.awt.Component.processMouseEvent(Component.java:6533)

          at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)

          at java.awt.Component.processEvent(Component.java:6298)

          at java.awt.Container.processEvent(Container.java:2236)

          at java.awt.Component.dispatchEventImpl(Component.java:4889)

          at java.awt.Container.dispatchEventImpl(Container.java:2294)

          at java.awt.Component.dispatchEvent(Component.java:4711)

          at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)

          at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)

          at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)

          at java.awt.Container.dispatchEventImpl(Container.java:2280)

          at java.awt.Window.dispatchEventImpl(Window.java:2746)

          at java.awt.Component.dispatchEvent(Component.java:4711)

          at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)

          at java.awt.EventQueue.access$500(EventQueue.java:97)

          at java.awt.EventQueue$3.run(EventQueue.java:709)

          at java.awt.EventQueue$3.run(EventQueue.java:703)

          at java.security.AccessController.doPrivileged(Native Method)

          at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)

          at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)

          at java.awt.EventQueue$4.run(EventQueue.java:731)

          at java.awt.EventQueue$4.run(EventQueue.java:729)

          at java.security.AccessController.doPrivileged(Native Method)

          at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)

          at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)

          at oracle.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)

          at oracle.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)

          at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)

          at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)

          at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)

          at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)

          at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)

          at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

      Caused by: java.lang.NullPointerException

          at oracle.dbtools.raptor.ui.URLFileChooser.setCurrentDirectory(URLFileChooser.java:507)

          at oracle.dbtools.raptor.ui.URLFileChooser.setToFirstContextPathDirectory(URLFileChooser.java:1495)

          at oracle.dbtools.raptor.ui.URLFileChooser.setCurrentDirectoryFromPathContext(URLFileChooser.java:1471)

          at oracle.dbtools.raptor.ui.URLFileChooser.setDefaultPathContext(URLFileChooser.java:1537)

          at oracle.dbtools.raptor.ui.URLFileChooser.<init>(URLFileChooser.java:130)

          at oracle.dbtools.raptor.ui.URLFileChooser.<init>(URLFileChooser.java:114)

          at oracle.dbtools.raptor.ui.URLFileChooser.<init>(URLFileChooser.java:110)

          at oracle.dbtools.raptor.ui.URLFileChooser.<init>(URLFileChooser.java:106)

          at oracle.dbtools.raptor.ui.URLFileChooser$URLFileChooserPanel.<init>(URLFileChooser.java:831)

          at oracle.dbtools.raptor.ui.URLFileChooser$URLFileChooserPanel.<init>(URLFileChooser.java:889)

          at oracle.dbtools.raptor.ui.URLFileChooser.createURLFileChooserPanel(URLFileChooser.java:794)

          at oracle.dbtools.raptor.export.wizard.TargetOptionsPanel.initFilePanel(TargetOptionsPanel.java:237)

          at oracle.dbtools.raptor.export.wizard.TargetOptionsPanel.<init>(TargetOptionsPanel.java:63)

          at oracle.dbtools.raptor.export.wizard.TargetOptionsPanel.<init>(TargetOptionsPanel.java:55)

          at oracle.dbtools.raptor.export.wizard.ExportWizDestinstaionPanel.<init>(ExportWizDestinstaionPanel.java:98)

          ... 54 more

      java.lang.NullPointerException

          at oracle.dbtools.raptor.ui.URLFileChooser.setCurrentDirectory(URLFileChooser.java:507)

          at oracle.dbtools.raptor.ui.URLFileChooser.setToFirstContextPathDirectory(URLFileChooser.java:1495)

          at oracle.dbtools.raptor.ui.URLFileChooser.setCurrentDirectoryFromPathContext(URLFileChooser.java:1471)

          at oracle.dbtools.raptor.ui.URLFileChooser.setDefaultPathContext(URLFileChooser.java:1537)

          at oracle.dbtools.raptor.ui.URLFileChooser.<init>(URLFileChooser.java:130)

          at oracle.dbtools.raptor.ui.URLFileChooser.<init>(URLFileChooser.java:114)

          at oracle.dbtools.raptor.ui.URLFileChooser.<init>(URLFileChooser.java:110)

          at oracle.dbtools.raptor.ui.URLFileChooser.<init>(URLFileChooser.java:106)

          at oracle.dbtools.raptor.ui.URLFileChooser$URLFileChooserPanel.<init>(URLFileChooser.java:831)

          at oracle.dbtools.raptor.ui.URLFileChooser$URLFileChooserPanel.<init>(URLFileChooser.java:889)

          at oracle.dbtools.raptor.ui.URLFileChooser.createURLFileChooserPanel(URLFileChooser.java:794)

          at oracle.dbtools.raptor.export.wizard.TargetOptionsPanel.initFilePanel(TargetOptionsPanel.java:237)

          at oracle.dbtools.raptor.export.wizard.TargetOptionsPanel.<init>(TargetOptionsPanel.java:63)

          at oracle.dbtools.raptor.export.wizard.TargetOptionsPanel.<init>(TargetOptionsPanel.java:55)

          at oracle.dbtools.raptor.export.wizard.ExportWizDestinstaionPanel.<init>(ExportWizDestinstaionPanel.java:98)

          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

          at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

          at oracle.ide.panels.MetaTraversable.newTraversable(MetaTraversable.java:315)

          at oracle.ide.wizard.Step.newTraversable(Step.java:171)

          at oracle.ide.wizard.FSMStateInfo.getTraversable(FSMStateInfo.java:99)

          at oracle.ide.wizard.FSMWizard._addPage(FSMWizard.java:580)

          at oracle.ide.wizard.FSMWizard._populatePages(FSMWizard.java:534)

          at oracle.ide.wizard.FSMWizard.<init>(FSMWizard.java:121)

          at oracle.dbtools.raptor.export.wizard.ExportWizMain.launchWizard(ExportWizMain.java:226)

          at oracle.dbtools.raptor.export.wizard.ExportWizMain.launchForGrid(ExportWizMain.java:204)

          at oracle.dbtools.raptor.dialogs.actions.TableExportAction.launchForGrid(TableExportAction.java:73)

          at oracle.dbtools.raptor.controls.grid.contextmenu.ExportGrid$1.actionPerformed(ExportGrid.java:165)

          at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)

          at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)

          at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)

          at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)

          at javax.swing.AbstractButton.doClick(AbstractButton.java:376)

          at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)

          at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)

          at java.awt.Component.processMouseEvent(Component.java:6533)

          at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)

          at java.awt.Component.processEvent(Component.java:6298)

          at java.awt.Container.processEvent(Container.java:2236)

          at java.awt.Component.dispatchEventImpl(Component.java:4889)

          at java.awt.Container.dispatchEventImpl(Container.java:2294)

          at java.awt.Component.dispatchEvent(Component.java:4711)

          at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)

          at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)

          at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)

          at java.awt.Container.dispatchEventImpl(Container.java:2280)

          at java.awt.Window.dispatchEventImpl(Window.java:2746)

          at java.awt.Component.dispatchEvent(Component.java:4711)

          at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)

          at java.awt.EventQueue.access$500(EventQueue.java:97)

          at java.awt.EventQueue$3.run(EventQueue.java:709)

          at java.awt.EventQueue$3.run(EventQueue.java:703)

          at java.security.AccessController.doPrivileged(Native Method)

          at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)

          at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)

          at java.awt.EventQueue$4.run(EventQueue.java:731)

          at java.awt.EventQueue$4.run(EventQueue.java:729)

          at java.security.AccessController.doPrivileged(Native Method)

          at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)

          at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)

          at oracle.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)

          at oracle.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)

          at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)

          at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)

          at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)

          at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)

          at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)

          at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

        • 1. Re: 4.2 EA2 - Crash on illegal character in export file name
          Gary Graham-Oracle

          Brilliant!  You have stumbled across what seems like a nasty bug since it appears to block any additional exports or imports. Fortunately a simple workaround exists.  Just erase the directory containing the malformed file name (or probably just the malformed file name itself).

           

          Since this behavior is neither a regression nor a bug in a new feature (it easily reproduces in 4.1.3 and has probably been present from the earliest release), standard procedure is to log a SR with MOS.