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 27816 - Cannot start Netbeans IDE
Summary: Cannot start Netbeans IDE
Status: CLOSED WORKSFORME
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P1 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-04 09:59 UTC by kristi5
Modified: 2003-07-08 14:22 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide.log from netbeans userhome directory (27.52 KB, text/plain)
2002-10-04 10:01 UTC, kristi5
Details
Zipped user dir (816.98 KB, application/octet-stream)
2002-10-04 11:14 UTC, kristi5
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kristi5 2002-10-04 09:59:11 UTC
Every time when the Netbeans are started the 
following error is displayed.


java.lang.NullPointerException: peer
        at sun.awt.windows.WCanvasPeer.create
(Native Method)
        at 
sun.awt.windows.WComponentPeer.<init>
(WComponentPeer.java:478)
        at sun.awt.windows.WCanvasPeer.<init>
(WCanvasPeer.java:29)
        at sun.awt.windows.WPanelPeer.<init>
(WPanelPeer.java:53)
        at sun.awt.windows.WToolkit.createPanel
(WToolkit.java:343)
        at java.awt.Panel.addNotify
(Panel.java:70)
        at java.awt.Container.addImpl
(Container.java:476)
        at java.awt.ScrollPane.addImpl
(ScrollPane.java:228)
        at java.awt.Container.add
(Container.java:298)
        at java.awt.ScrollPane.addNotify
(ScrollPane.java:536)
        at java.awt.Container.addNotify
(Container.java:1859)
        at javax.swing.JComponent.addNotify
(JComponent.java:4270)
        at java.awt.Container.addNotify
(Container.java:1859)
        at 
org.netbeans.modules.form.fakepeer.FakePeerCont
ainer.addNotify(FakePeerContainer.java:33)
        at java.awt.Container.addNotify
(Container.java:1859)
        at javax.swing.JComponent.addNotify
(JComponent.java:4270)
        at java.awt.Container.addNotify
(Container.java:1859)
        at javax.swing.JComponent.addNotify
(JComponent.java:4270)
        at java.awt.Container.addNotify
(Container.java:1859)
        at javax.swing.JComponent.addNotify
(JComponent.java:4270)
        at java.awt.Container.addNotify
(Container.java:1859)
        at javax.swing.JComponent.addNotify
(JComponent.java:4270)
        at java.awt.Container.addNotify
(Container.java:1859)
        at javax.swing.JComponent.addNotify
(JComponent.java:4270)
        at java.awt.Container.addNotify
(Container.java:1859)
        at javax.swing.JComponent.addNotify
(JComponent.java:4270)
        at java.awt.Container.addImpl
(Container.java:476)
        at javax.swing.JTabbedPane.insertTab
(JTabbedPane.java:568)
        at 
org.netbeans.core.windows.frames.SplitContainer
Impl.insertTCIntoTab
(SplitContainerImpl.java:604)
        at 
org.netbeans.core.windows.frames.SplitContainer
Impl.componentAdded
(SplitContainerImpl.java:528)
        at 
org.netbeans.core.windows.frames.DefaultContain
erImpl.addTopComponent
(DefaultContainerImpl.java:563)
        at 
org.netbeans.core.windows.ModeImpl.addToContain
er(ModeImpl.java:2023)
        at 
org.netbeans.core.windows.ModeImpl.access$400
(ModeImpl.java:79)
        at 
org.netbeans.core.windows.ModeImpl$1.performCom
mand(ModeImpl.java:526)
        at 
org.netbeans.core.windows.DeferredPerformer.pro
cessCommand(DeferredPerformer.java:189)
        at 
org.netbeans.core.windows.DeferredPerformer.put
Request(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$Top
ComponentManager.doOpen
(WindowManagerImpl.java:1687)
        at 
org.netbeans.core.windows.WindowManagerImpl$Top
ComponentManager.open
(WindowManagerImpl.java:1644)
        at 
org.openide.windows.TopComponent.open
(TopComponent.java:201)
        at 
org.netbeans.modules.form.FormDesigner.open
(FormDesigner.java:723)
        at 
org.netbeans.core.windows.layers.TCRefImpl.perf
ormCommand(TCRefImpl.java:165)
        at 
org.netbeans.core.windows.DeferredPerformer.pro
cessCommand(DeferredPerformer.java:189)
        at 
org.netbeans.core.windows.DeferredPerformer.sta
teChanged(DeferredPerformer.java:154)
        at 
org.netbeans.core.windows.StateManager.fireStat
eChanged(StateManager.java:117)
        at 
org.netbeans.core.windows.StateManager.setVisib
ilityState(StateManager.java:142)
        at 
org.netbeans.core.windows.StateManager.property
Change(StateManager.java:164)
        at 
java.beans.PropertyChangeSupport.firePropertyCh
ange(PropertyChangeSupport.java:330)
        at 
java.beans.PropertyChangeSupport.firePropertyCh
ange(PropertyChangeSupport.java:257)
        at 
java.awt.Component.firePropertyChange
(Component.java:6607)
        at 
org.netbeans.core.windows.MainWindow.doShowWind
ow(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.pumpOneEventForHie
rarchy(EventDispatchThread.java:190)
        at 
java.awt.EventDispatchThread.pumpEventsForHiera
rchy(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 kristi5 2002-10-04 10:01:22 UTC
Created attachment 7598 [details]
ide.log from netbeans userhome directory
Comment 2 David Simonek 2002-10-04 11:00:12 UTC
Kristian,
I can't reproduce on my machine, everything works ok for me. Here is a
couple of things you may try:
- use jdk 1.4.1 FCS instead of 1.4.0
- try to start netbeans with clean user dir (point netbeans to some
empty dir useing -userdir switch)
- please attach zipped content of your user directory (where IDE
settings are stored) to this bug

I see in log that problem is somehow connected to opening of form
editor, so I'm reassigning to proper people if they can find anything.
Comment 3 kristi5 2002-10-04 11:14:58 UTC
Created attachment 7603 [details]
Zipped user dir
Comment 4 Tomas Pavek 2002-10-04 15:44:26 UTC
Looks like problem with one particular form which fails on creation in
Form Editor. If you delete the user dir, the IDE should start without
problem. BTW I would be interested in that form, could you attach it?
Thanks

(In fact, this issue contains two problems:
- some form cannot be created due to a component peer problem,
- the IDE does not start due to failure of one window being
  opened.
They should be probably tracked separately, the second is IMO much
more serious. If you are able to provide the problematic form, we
might file a separate issue for it.)

Comment 5 Tomas Pavek 2002-10-11 10:30:35 UTC
cannot reproduce