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 91238 - Exception in NetBeans output when using JavaEE project inside Composite App
Summary: Exception in NetBeans output when using JavaEE project inside Composite App
Status: NEW
Alias: None
Product: soa
Classification: Unclassified
Component: Composite Application (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Roderico Cruz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-18 21:51 UTC by Edward Chou
Modified: 2007-10-26 05:53 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 Edward Chou 2006-12-18 21:51:17 UTC
If I left a CompApp project open when shuting down Netbeans, and then 
start the Netbeans again I will always see this exception.  If I close 
the CompApp project before shutting down Netbeans, then I don't see 
this exception when restarting Netbeans.


*********** Exception occurred ************ at 7:09 PM on Dec 16, 2006
java.lang.IllegalArgumentException: Project JbiProject[MasterFileObject@6a1fbe
[C:/nbprojects/CompositeApp2]] not created by 
org.netbeans.api.project.ProjectManager@a32803 or was already deleted
        at org.netbeans.api.project.ProjectManager$6.run
(ProjectManager.java:539)
        at org.openide.util.Mutex.writeAccess(Mutex.java:356)
        at org.netbeans.api.project.ProjectManager.saveProject
(ProjectManager.java:536)
        at 
org.netbeans.modules.compapp.projects.jbi.JbiProject$ProjectOpenedHookImpl.proje
ctClosed(JbiProject.java:595)
        at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectClosed
(ProjectOpenedHook.java:59)
[catch] at org.netbeans.modules.project.ui.OpenProjectList.notifyClosed
(OpenProjectList.java:606)
        at org.netbeans.modules.project.ui.OpenProjectList.close
(OpenProjectList.java:348)
        at org.netbeans.modules.project.ui.actions.CloseProject.actionPerformed
(CloseProject.java:64)
        at 
org.netbeans.modules.project.ui.actions.LookupSensitiveAction.actionPerformed
(LookupSensitiveAction.java:139)
        at javax.swing.AbstractButton.fireActionPerformed
(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed
(AbstractButton.java:2318)
        at javax.swing.DefaultButtonModel.fireActionPerformed
(DefaultButtonModel.java:377)
        at javax.swing.DefaultButtonModel.setPressed
(DefaultButtonModel.java:232)
        at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick
(BasicMenuItemUI.java:1157)
        at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased
(BasicMenuItemUI.java:1198)
        at java.awt.AWTEventMulticaster.mouseReleased
(AWTEventMulticaster.java:231)
        at java.awt.Component.processMouseEvent(Component.java:5999)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3240)
        at java.awt.Component.processEvent(Component.java:5764)
        at java.awt.Container.processEvent(Container.java:1984)
        at java.awt.Component.dispatchEventImpl(Component.java:4407)
        at java.awt.Container.dispatchEventImpl(Container.java:2042)
        at java.awt.Component.dispatchEvent(Component.java:4237)
        at java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:4248)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3912)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3842)
        at java.awt.Container.dispatchEventImpl(Container.java:2028)
        at java.awt.Window.dispatchEventImpl(Window.java:2405)
        at java.awt.Component.dispatchEvent(Component.java:4237)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:600)
        at java.awt.EventDispatchThread.pumpOneEventForFilters
(EventDispatchThread.java:273)
        at java.awt.EventDispatchThread.pumpEventsForFilter
(EventDispatchThread.java:183)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:173)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
*********** Exception occurred ************ at 7:09 PM on Dec 16, 2006
java.lang.IllegalArgumentException: Project JbiProject[MasterFileObject@6a1fbe
[C:/nbprojects/CompositeApp2]] not created by 
org.netbeans.api.project.ProjectManager@a32803 or was already deleted
        at org.netbeans.api.project.ProjectManager$6.run
(ProjectManager.java:539)
        at org.openide.util.Mutex.writeAccess(Mutex.java:356)
        at org.netbeans.api.project.ProjectManager.saveProject
(ProjectManager.java:536)
        at org.netbeans.modules.project.ui.OpenProjectList.close
(OpenProjectList.java:374)
        at org.netbeans.modules.project.ui.actions.CloseProject.actionPerformed
(CloseProject.java:64)
        at 
org.netbeans.modules.project.ui.actions.LookupSensitiveAction.actionPerformed
(LookupSensitiveAction.java:139)
        at javax.swing.AbstractButton.fireActionPerformed
(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed
(AbstractButton.java:2318)
        at javax.swing.DefaultButtonModel.fireActionPerformed
(DefaultButtonModel.java:377)
        at javax.swing.DefaultButtonModel.setPressed
(DefaultButtonModel.java:232)
        at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick
(BasicMenuItemUI.java:1157)
        at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased
(BasicMenuItemUI.java:1198)
        at java.awt.AWTEventMulticaster.mouseReleased
(AWTEventMulticaster.java:231)
        at java.awt.Component.processMouseEvent(Component.java:5999)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3240)
        at java.awt.Component.processEvent(Component.java:5764)
        at java.awt.Container.processEvent(Container.java:1984)
        at java.awt.Component.dispatchEventImpl(Component.java:4407)
        at java.awt.Container.dispatchEventImpl(Container.java:2042)
        at java.awt.Component.dispatchEvent(Component.java:4237)
        at java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:4248)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3912)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3842)
        at java.awt.Container.dispatchEventImpl(Container.java:2028)
        at java.awt.Window.dispatchEventImpl(Window.java:2405)
        at java.awt.Component.dispatchEvent(Component.java:4237)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:600)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters
(EventDispatchThread.java:273)
        at java.awt.EventDispatchThread.pumpEventsForFilter
(EventDispatchThread.java:183)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:173)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
BUILD SUCCESSFUL (total time: 1 minute 22 seconds)
Comment 1 Edward Chou 2006-12-22 19:52:31 UTC
Here is another exception I see sometimes when I am adding a JavaEE module to
CompApp project.
 
 
java.lang.NullPointerException
 at
org.netbeans.modules.compapp.projects.jbi.ui.customizer.VisualClassPathItem.equals(VisualClassPathItem.java:345)
 at java.util.ArrayList.indexOf(ArrayList.java:216)
 at
org.netbeans.modules.compapp.projects.jbi.ui.customizer.JbiProjectProperties$PathParser.encode(JbiProjectProperties.java:1643)
 at
org.netbeans.modules.compapp.projects.jbi.ui.customizer.JbiProjectProperties$PropertyInfo.encode(JbiProjectProperties.java:1225)
 at
org.netbeans.modules.compapp.projects.jbi.ui.customizer.JbiProjectProperties$1.run(JbiProjectProperties.java:778)
 at org.openide.util.Mutex.writeAccess(Mutex.java:356)
 at
org.netbeans.modules.compapp.projects.jbi.ui.customizer.JbiProjectProperties.store(JbiProjectProperties.java:768)
 at
org.netbeans.modules.compapp.projects.jbi.ui.actions.AddProjectAction.perform(AddProjectAction.java:209)
 at
org.netbeans.modules.compapp.projects.jbi.ui.JbiModuleViewNode$2.actionPerformed(JbiModuleViewNode.java:173)
 at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
 at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
 at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:377)
 at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:232)
 at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
 at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1157)
 at
javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1198)
 at java.awt.Component.processMouseEvent(Component.java:5999)
 at javax.swing.JComponent.processMouseEvent(JComponent.java:3240)
 at java.awt.Component.processEvent(Component.java:5764)
 at java.awt.Container.processEvent(Container.java:1984)
 at java.awt.Component.dispatchEventImpl(Component.java:4407)
 at java.awt.Container.dispatchEventImpl(Container.java:2042)
 at java.awt.Component.dispatchEvent(Component.java:4237)
 at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4248)
 at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3912)
 at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3842)
 at java.awt.Container.dispatchEventImpl(Container.java:2028)
 at java.awt.Window.dispatchEventImpl(Window.java:2405)
 at java.awt.Component.dispatchEvent(Component.java:4237)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:600)
 at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
 at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
 at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 2 Edward Chou 2007-02-07 23:53:31 UTC
Additional information for the first issue: 
java.lang.IllegalArgumentException: Project JbiProject[MasterFileObject@6a1fbe
[C:/nbprojects/CompositeApp2]] not created by 
org.netbeans.api.project.ProjectManager@a32803 or was already deleted

I found out that this only happens when I am developing the Jbi Composite App 
Netbeans module project, that is, I do a "Install and Reload module in Target 
Platform" of this module project.  And if I left a Composite App project open 
from a previous run, then I will hit this exception.  This doesn't not happen 
when I do a straight build of the Enterprise pack and start a Netbeans instance 
from build.  I am not sure if this is a bug in Jbi CompositeApp project or not.


Comment 3 Jun Qian 2007-02-14 02:21:21 UTC
The first exception has nothing to do with JavaEE project. It seems that it only
applies to the CompApp Project System developers. 

A temporary workaround is to use the "Run Project" action instead of
"Install/Reload in Target Platform". If you do use the "Install/Reload in Target
Platform" action, the exception is only thrown when you try to close an
previously opened project.

Another related observation I have is that most of the context sensitive actions
on the compapp project node are disabled if you use the "Install/Reload in
Target Platform" action.

I think if we can fix the second exception which is a totally unrelated issue,
then we can downgrade this ticket to P3/P4.
Comment 4 Jun Qian 2007-02-14 03:04:42 UTC
Is the second exception still reproducible?
Comment 5 Roderico Cruz 2007-02-14 17:34:32 UTC
The second exception seems to be a duplicate of
http://www.netbeans.org/issues/show_bug.cgi?id=94916
which has been fixed. Kindly verify that this is the case, then we can downgrade
this to P3 or P4.
Comment 6 Edward Chou 2007-02-14 19:10:45 UTC
The second exception is an intermitent error I encountered a while back, since 
then I haven't encounter this exception anymore.  And Bug #94916 does fix it, 
so I am setting this bug to P3.
Comment 7 Jiri Prox 2007-09-17 20:21:04 UTC
Obsolete milestone, please reevaluate
Comment 8 Sergey Lunegov 2007-10-25 12:10:20 UTC
Rico, would you please evaluate it (set the proper milestone).
Comment 9 Roderico Cruz 2007-10-26 05:53:41 UTC
The first exception is encountered only if the IDE is started by using
the Install/Reload target platform menu. In short, the regular Netbeans
user will not encounter this. I think this should be downgraded into
a P4.