Start a new topic

Whitespace(s) per Tab -> java.lang.ArithmeticException: / by zero

[This topic is migrated from our old forums. The original author name has been removed]

Hi @ all, I'm using DbVis 6.5 and will get following error: " +An internal error occurred:+ +java.lang.ArithmeticException: / by zero+ +The error may have affected the application state.+ +Please notify vendor.+ +Stack Trace:+ +java.lang.ArithmeticException: / by zero+ +at org.netbeans.editor.Utilities.getNextTabColumn(Utilities.java:803)+ +at org.netbeans.editor.Formatter.insertTabString(Formatter.java:293)+ +at org.netbeans.editor.BaseKit$InsertTabAction.actionPerformed(BaseKit.java:1012)& #38; lt; /i>+ +at org.netbeans.editor.ext.ExtKit$ExtInsertTabAction.actionPerformed(ExtKit.java:9 26)+ +at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:169+ +at javax.swing.SwingUtilities.notifyAction(Unknown Source+ +at javax.swing.JComponent.processKeyBinding(Unknown Source+ +at javax.swing.JComponent.processKeyBindings(Unknown Source+ +at javax.swing.JComponent.processKeyEvent(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.KeyboardFocusManager.redispatchEvent(Unknown Source+ +at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source+ +at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source+ +at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source+ +at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source+ +at java.awt.Component.dispatchEventImpl(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 com.onseven.dbvis.J.A.g.dispatchEvent(Z:2143+ +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+ " while setting <Whitespace(s) per Tab> under Menu Tools -> Tool properties -> General pane -> SQL Editor -> *Whitespace(s) per Tab = 0* -> Apply and format the SQL String. To prevent this error the input should be checked if it's greater than 0 or will set to 1 per default while pressing <Apply> or <OK>. Thanks, Markus Lucassen Edited by: lulu on 13.11.2008 13:31

[This reply is migrated from our old forums.]

Re: Whitespace(s) per Tab -> java.lang.ArithmeticException: / by zero
Markus, Thanks for reporting this. We will fix it in the next version. Best Regards Roger
[This reply is migrated from our old forums.]

Re: Whitespace(s) per Tab -> java.lang.ArithmeticException: / by zero
Hi, Just to inform you that DbVisualizer 6.5.1 is now available with a fix for this issue. Best Regards Roger