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 110872

Summary: NPE from dataconnectivity blocks to create model and load designer
Product: obsolete Reporter: Peter Zavadsky <pzavadsky>
Component: visualwebAssignee: John Baker <jbaker>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Peter Zavadsky 2007-07-25 07:59:34 UTC
Steps:

1) Open the HMS project from issue #110849,
2) There appears NPE (see below)
3) The desinger is shown but never loaded (the model is never constructed and delivered), obviously due to the NPE

Missing DB shouldn't cause to break the model:

SEVERE [global]
java.lang.NullPointerException
        at
org.netbeans.modules.visualweb.dataconnectivity.naming.DesignTimeContext.createDesignTimeContext(DesignTimeContext.java:112)
        at
org.netbeans.modules.visualweb.dataconnectivity.naming.DesignTimeInitialContextFactory.getInitialContext(DesignTimeInitialContextFactory.java:95)
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
        at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:275)
        at javax.naming.InitialContext.lookup(InitialContext.java:351)
        at com.sun.faces.config.WebConfiguration.processJndiEntries(WebConfiguration.java:441)
        at com.sun.faces.config.WebConfiguration.<init>(WebConfiguration.java:86)
        at com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:139)
        at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:249)
        at
org.netbeans.modules.visualweb.jsfsupport.container.RaveConfigureListener.contextInitialized(RaveConfigureListener.java:71)
        at org.netbeans.modules.visualweb.jsfsupport.container.FacesContainer.initialize(FacesContainer.java:165)
        at org.netbeans.modules.visualweb.jsfsupport.container.FacesContainer.<init>(FacesContainer.java:113)
        at org.netbeans.modules.visualweb.insync.models.FacesModelSet.getFacesContainer(FacesModelSet.java:458)
        at org.netbeans.modules.visualweb.insync.models.FacesModelSet.<init>(FacesModelSet.java:373)
Caused: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at org.netbeans.modules.visualweb.insync.ModelSet.getInstance(ModelSet.java:372)
Caused: java.lang.RuntimeException
        at org.netbeans.modules.visualweb.insync.ModelSet.getInstance(ModelSet.java:378)
        at org.netbeans.modules.visualweb.insync.ModelSet$1$1.run(ModelSet.java:343)
        at org.netbeans.modules.visualweb.insync.java.ReadTaskWrapper.run(ReadTaskWrapper.java:51)
        at org.netbeans.modules.visualweb.insync.java.ReadTaskWrapper.run(ReadTaskWrapper.java:34)
        at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:563)
        at org.netbeans.modules.visualweb.insync.java.ReadTaskWrapper.execute(ReadTaskWrapper.java:58)
        at org.netbeans.modules.visualweb.insync.ModelSet$1.run(ModelSet.java:340)
Comment 1 Peter Zavadsky 2007-07-25 08:06:21 UTC
Also trying to close such project leads to another NPE.
This also seems to be an insync issue, which silently continues to work with broken model, not fixing it or notifying
anybody about it.


SEVERE [global]
java.lang.NullPointerException
        at org.netbeans.modules.visualweb.insync.ModelSet.destroy(ModelSet.java:506)
        at org.netbeans.modules.visualweb.insync.models.FacesModelSet.destroy(FacesModelSet.java:443)
        at org.netbeans.modules.visualweb.insync.ModelSet$OpenProjectsListener.propertyChange(ModelSet.java:253)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:270)
        at org.netbeans.modules.project.ui.OpenProjectsTrampolineImpl.propertyChange(OpenProjectsTrampolineImpl.java:84)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:270)
        at org.netbeans.modules.project.ui.OpenProjectList.close(OpenProjectList.java:420)
        at org.netbeans.modules.project.ui.actions.CloseProject.actionPerformed(CloseProject.java:60)
        at org.netbeans.modules.project.ui.actions.LookupSensitiveAction.actionPerformed(LookupSensitiveAction.java:139)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
        at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
        at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
        at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
        at java.awt.Component.processMouseEvent(Component.java:5501)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
        at java.awt.Component.processEvent(Component.java:5266)
        at java.awt.Container.processEvent(Container.java:1966)
        at java.awt.Component.dispatchEventImpl(Component.java:3968)
        at java.awt.Container.dispatchEventImpl(Container.java:2024)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
        at java.awt.Container.dispatchEventImpl(Container.java:2010)
        at java.awt.Window.dispatchEventImpl(Window.java:1778)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
[catch] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 2 Peter Zavadsky 2007-07-25 08:24:03 UTC
It seems this is not connected to specific project, but to any project, I can't get new project to work. Increasing the
priority, this makes VW unusable.
Comment 3 _ jimdavidson 2007-07-25 16:44:59 UTC
This may or may not be the same as: #110948.
Comment 4 John Baker 2007-07-25 22:26:18 UTC
110948 should have been marked as a duplicate of this one. In either case they are the same bug

*** This issue has been marked as a duplicate of 110948 ***