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.
Build: NetBeans IDE Dev (Build 20120911-bffa77583dc0) VM: Java HotSpot(TM) 64-Bit Server VM, 23.2-b09, Java(TM) SE Runtime Environment, 1.7.0_06-b24 OS: Windows 7 User Comments: jungi: deleting EJB module Stacktrace: java.lang.AssertionError at org.netbeans.modules.j2ee.ejbjarproject.EjbJarProjectOperations.notifyDeleting(EjbJarProjectOperations.java:169) at org.netbeans.spi.project.support.ProjectOperations.notifyDeleting(ProjectOperations.java:129) at org.netbeans.modules.project.uiapi.DefaultProjectOperationsImplementation.performDelete(DefaultProjectOperationsImplementation.java:130) at org.netbeans.modules.project.uiapi.DefaultProjectOperationsImplementation.access$200(DefaultProjectOperationsImplementation.java:101) at org.netbeans.modules.project.uiapi.DefaultProjectOperationsImplementation$1.execute(DefaultProjectOperationsImplementation.java:205) at org.netbeans.modules.project.uiapi.DefaultProjectOperationsImplementation$6$1.run(DefaultProjectOperationsImplementation.java:649)
Created attachment 124261 [details] stacktrace
Created attachment 125896 [details] stacktrace Trying to delete an Enterprise project
Created attachment 126276 [details] stacktrace
Thanks to MartinJ and Milos I was able to identify that it's likely regression since the fix for issue #219320. I created patch to fixing that in EJB project which I'm attaching. The fix is generally about registering project specific action provider via @ProjectServiceProvider + several needed changes around. BTW, it doesn't call CLEAN target directly over the ActionProvider (BaseActionProvider) - ap instance, since the BAP asserts for calling from AWT EDT which looks to me really useless here. BTW, the patch could be used similarly for fixing of the issue #218072 in WebProject case too. If you would agree with that change I could do the same for web project if you would be David interested.
Created attachment 126413 [details] patch with usage of PSP Attaching mentioned patch.
Thanks Martin, it would be great if you could fix it in WebProject as well. Re. patch - you have to change EjbJarActionProvider and EjbJarProject - merger will take care of that. Reading your patch EjbJarProjectOperations.notifyDeleting body could be further simplified to two lines, no: FileObject buildXML = project.getProjectDirectory().getFileObject(GeneratedFilesHelper.BUILD_XML_PATH); ActionUtils.runTarget(buildXML, new String[]{ActionProvider.COMMAND_CLEAN}, new Properties()).waitFinished();
(In reply to comment #6) > Re. patch - you have to change EjbJarActionProvider and EjbJarProject - merger > will take care of that. Reading your patch > EjbJarProjectOperations.notifyDeleting body could be further simplified to two > lines, no: That's right. But actually it could be simplified in that way in the original code as well. So I tried to keep few checks which were there. Anyway if you agree with that code simplification, I'm on your side for sure. Fixed in web-main #1692502d2c76.
Integrated into 'main-golden', will be available in build *201210250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/1692502d2c76 User: Martin Fousek <marfous@netbeans.org> Log: #218240 - AssertionError at org.netbeans.modules.j2ee.ejbjarproject.EjbJarProjectOperations.notifyDeleting
Created attachment 126670 [details] stacktrace
*** Bug 221009 has been marked as a duplicate of this bug. ***
*** Bug 220962 has been marked as a duplicate of this bug. ***
*** Bug 220961 has been marked as a duplicate of this bug. ***