This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 34391 - Ide displays java.lang.ArithmeticException: / by zero error and fails to load
Summary: Ide displays java.lang.ArithmeticException: / by zero error and fails to load
Status: CLOSED WORKSFORME
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-13 23:22 UTC by andrewroy
Modified: 2005-07-13 09:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description andrewroy 2003-06-13 23:22:02 UTC
When attempting to run netbeans ide an 
java.lang.ArithmeticException: / by zero

error was displayed and I was unable to load.
Netbeans does not load at all and crashes.

The main debugging error is:

java.lang.ArithmeticException: / by zero
        at 
org.netbeans.modules.debugger.support.nodes.DebuggerWindow.
showViews(DebuggerWindow.java:609)
        at 
org.netbeans.modules.debugger.support.nodes.DebuggerWindow.
setViews(DebuggerWindow.java:370)
        at 
org.netbeans.modules.debugger.support.nodes.DebuggerWindow.
addNotify(DebuggerWindow.java:201)
        at java.awt.Container.addNotify
(Container.java:2004)
        at javax.swing.JComponent.addNotify
(JComponent.java:4270)
        at java.awt.Container.addImpl(Container.java:621)
        at java.awt.Container.add(Container.java:298)
        at 
org.netbeans.core.windows.frames.MultiTabbedContainerImpl.a
ttachComponents(MultiTabbedContainerImpl.java:207)
        at 


java.lang.ArrayIndexOutOfBoundsException
        at javax.swing.SizeRequirements.compressedTile
(SizeRequirements.java:321)
        at 
javax.swing.SizeRequirements.calculateTiledPositions
(SizeRequirements.java:301)
        at javax.swing.BoxLayout.layoutContainer
(BoxLayout.java:371)
        at 
javax.swing.JToolBar$DefaultToolBarLayout.layoutContainer
(JToolBar.java:768)
        at java.awt.Container.layout(Container.java:980)
        at java.awt.Container.doLayout(Container.java:970)
        at java.awt.Container.validateTree
(Container.java:1048)
        at java.awt.Container.validateTree
(Container.java:1055)
      

java.lang.ArithmeticException: / by zero
        at 
org.netbeans.modules.debugger.support.nodes.DebuggerWindow.
showViews(DebuggerWindow.java:609)
        at 
org.netbeans.modules.debugger.support.nodes.DebuggerWindow.
setViews(DebuggerWindow.java:370)
        at 
org.netbeans.modules.debugger.support.nodes.DebuggerWindow.
addNotify(DebuggerWindow.java:201)
        at java.awt.Container.addNotify
(Container.java:2004)
        at javax.swing.JComponent.addNotify
(JComponent.java:4270)
        at java.awt.Container.addImpl(Container.java:621)
        at java.awt.Container.add(Container.java:298)
        at 
org.netbeans.core.windows.frames.MultiTabbedContainerImpl.a
ttachComponents(MultiTabbedContainerImpl.java:207)
        at 
org.netbeans.core.windows.frames.DefaultContainerImpl.setAt
tached(DefaultContainerImpl.java:796)
        at org.netbeans.core.windows.ModeImpl.setVisible
(ModeImpl.java:1410)
        at 
org.netbeans.core.windows.ModeImpl$1.performCommand
(ModeImpl.java:534)
        at 
org.netbeans.core.windows.DeferredPerformer.processCommand
(DeferredPerformer.java:189)
        at 
org.netbeans.core.windows.DeferredPerformer.putRequest
(DeferredPerformer.java:83)
        at org.netbeans.core.windows.ModeImpl.doDockInto
(ModeImpl.java:493)
        at org.netbeans.core.windows.ModeImpl.dockInto
(ModeImpl.java:433)
        at org.netbeans.core.windows.ModeImpl.dockInto
(ModeImpl.java:419)
        at org.netbeans.core.windows.ModeImpl.dockInto
(ModeImpl.java:407)
        at 
org.netbeans.core.windows.WindowManagerImpl$TopComponentMan
ager.doOpen(WindowManagerImpl.java:1687)
        at 
org.netbeans.core.windows.WindowManagerImpl$TopComponentMan
ager.open(WindowManagerImpl.java:1644)
        at org.openide.windows.TopComponent.open
(TopComponent.java:201)
        at 
org.netbeans.core.windows.layers.TCRefImpl.performCommand
(TCRefImpl.java:165)
        at 
org.netbeans.core.windows.DeferredPerformer.processCommand
(DeferredPerformer.java:189)
        at 
org.netbeans.core.windows.DeferredPerformer.stateChanged
(DeferredPerformer.java:154)
        at 
org.netbeans.core.windows.StateManager.fireStateChanged
(StateManager.java:117)
        at 
org.netbeans.core.windows.StateManager.setVisibilityState
(StateManager.java:142)
        at 
org.netbeans.core.windows.StateManager.propertyChange
(StateManager.java:164)
        at 
java.beans.PropertyChangeSupport.firePropertyChange
(PropertyChangeSupport.java:330)
        at 
java.beans.PropertyChangeSupport.firePropertyChange
(PropertyChangeSupport.java:257)
        at java.awt.Component.firePropertyChange
(Component.java:6607)
        at 
org.netbeans.core.windows.MainWindow.doShowWindow
(MainWindow.java:237)
        at org.netbeans.core.windows.MainWindow.access$300
(MainWindow.java:59)
[catch] at org.netbeans.core.windows.MainWindow$4.run
(MainWindow.java:212)
        at java.awt.event.InvocationEvent.dispatch
(InvocationEvent.java:178)
        at java.awt.EventQueue.dispatchEvent
(EventQueue.java:443)
        at 
java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:191)
        at 
java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:144)
        at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:138)
        at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:130)
        at java.awt.EventDispatchThread.run
(EventDispatchThread.java:98)
Comment 1 pzajac 2003-06-16 08:44:08 UTC
reassigned to debugger
Comment 2 Jan Lahoda 2003-06-20 14:24:46 UTC
Hi,
    not sure how this may happen. It should be impossible to cause
this exception in the current code (DebuggerWindow.java, release35,
revision 1.37.2.2):
608: if (resCount != 0) {
609:     avgResSize = (dwSize - fixSize) / resCount;
610:    fixSize += avgResSize * newResCount;    //reserve space for
new resizable components
611: }

May I ask you which JDK do you use (as exactly as possible, best is
output from "java -version", be sure this is the same java that runs
NetBeans) and which build of NetBeans are you exactly using (can be
found in Help/About/Detail)?

Hanz, where there any recent changes to this file?
Comment 3 Milan Kubec 2003-06-25 12:31:31 UTC
Please could you evaluate those P1 prio bugs. Thanks.
Comment 4 Jan Jancura 2003-07-02 14:39:25 UTC
Can not reproduce, looks like the bug is already fixed.
Comment 5 Max Sauer 2005-07-13 09:54:37 UTC
Cannot be reproduced in currrent builds.Closing.