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 178584 - java.io.IOException: Adding project Archive Project as dependency to EJB and EAR would introduce cyclic dependency! Dependency was not added.
Summary: java.io.IOException: Adding project Archive Project as dependency to EJB and ...
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
: 180982 183437 184159 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-12-14 05:42 UTC by Petr Jiricka
Modified: 2010-05-10 09:24 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 163605


Attachments
stacktrace (3.05 KB, text/plain)
2009-12-14 05:42 UTC, Petr Jiricka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2009-12-14 05:42:52 UTC
Build: NetBeans IDE Dev (Build web-main-2275-on-091213)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.3-b01-101, Java(TM) SE Runtime Environment, 1.6.0_17-b04-248-9M3125
OS: Mac OS X, 10.5.8, x86_64

User Comments:
pjiricka: I was actually trying to *remove* the dependency of j2ee.kit (EJB and EAR) on javaee.api. Seems like the dependency algorithm is broken (besides the fact that an exception dialog should not pop up).



Stacktrace: 
java.io.IOException: Adding project Archive Project as dependency to EJB and EAR would introduce cyclic dependency! Dependency was not added.
   at org.netbeans.modules.apisupport.project.ui.customizer.SingleModuleProperties.storeProperties(SingleModuleProperties.java:918)
   at org.netbeans.modules.apisupport.project.ui.customizer.CustomizerProviderImpl.storeProperties(CustomizerProviderImpl.java:87)
   at org.netbeans.modules.apisupport.project.ui.customizer.BasicCustomizer$1.run(BasicCustomizer.java:159)
   at org.netbeans.modules.apisupport.project.ui.customizer.BasicCustomizer$1.run(BasicCustomizer.java:157)
   at org.openide.util.Mutex.writeAccess(Mutex.java:433)
   at org.netbeans.modules.apisupport.project.ui.customizer.BasicCustomizer.save(BasicCustomizer.java:157)
Comment 1 Petr Jiricka 2009-12-14 05:42:56 UTC
Created attachment 92520 [details]
stacktrace
Comment 2 Jesse Glick 2010-03-19 21:38:31 UTC
I am not able to reproduce.
Comment 3 Quality Engineering 2010-03-21 05:08:22 UTC
Integrated into 'main-golden', will be available in build *201003210200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/5f81d736a6c5
User: Jesse Glick <jglick@netbeans.org>
Log: Better diagnosis of #178584.
Comment 4 Jesse Glick 2010-03-31 22:43:47 UTC
Got it when making a new module against nbdev platform, adding openide.io dep, switching platform to nb67, removing dep, and trying to readd dep. Maybe this will be reproducible.
Comment 5 Jesse Glick 2010-04-01 18:28:33 UTC
Also EQ is blocked for a long time just incrementing a version of a dep:

"AWT-EventQueue-1" prio=10 tid=0xb44f6400 nid=0x55ae runnable [0xb02fc000]
   java.lang.Thread.State: RUNNABLE
	at org.netbeans.api.project.ProjectUtils.visit(ProjectUtils.java:197)
	at org.netbeans.api.project.ProjectUtils.visit(ProjectUtils.java:196)
	at org.netbeans.api.project.ProjectUtils.visit(ProjectUtils.java:196)
	at org.netbeans.api.project.ProjectUtils.visit(ProjectUtils.java:196)
	at org.netbeans.api.project.ProjectUtils.visit(ProjectUtils.java:196)
	at org.netbeans.api.project.ProjectUtils.visit(ProjectUtils.java:196)
	at org.netbeans.api.project.ProjectUtils.visit(ProjectUtils.java:196)
	at org.netbeans.api.project.ProjectUtils.visit(ProjectUtils.java:196)
	at org.netbeans.api.project.ProjectUtils.visit(ProjectUtils.java:196)
	at org.netbeans.api.project.ProjectUtils.access$000(ProjectUtils.java:71)
	at org.netbeans.api.project.ProjectUtils$1.run(ProjectUtils.java:149)
	at org.netbeans.api.project.ProjectUtils$1.run(ProjectUtils.java:147)
	at org.openide.util.Mutex.readAccess(Mutex.java:285)
	at org.netbeans.api.project.ProjectUtils.hasSubprojectCycles(ProjectUtils.java:147)
	at org.netbeans.modules.apisupport.project.ProjectXMLManager.getDependencyCycleWarning(ProjectXMLManager.java:400)
	at org.netbeans.modules.apisupport.project.ProjectXMLManager.replaceDependencies(ProjectXMLManager.java:428)
	at org.netbeans.modules.apisupport.project.ui.LibrariesNode$EditDependencyAction.actionPerformed(LibrariesNode.java:467)
Comment 6 Jesse Glick 2010-04-06 21:33:42 UTC
Still can't reproduce, but I did identify a lot of extra work being done. Once removed, editing deps should be a lot faster, and some false positives should be avoided (such as when only removing deps, or editing version numbers). Also moving what work remains off EQ.
Comment 7 Jesse Glick 2010-04-06 21:56:20 UTC
core-main #3c84344fd12f
Comment 8 Quality Engineering 2010-04-09 04:44:20 UTC
Integrated into 'main-golden', will be available in build *201004090201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/3c84344fd12f
User: Jesse Glick <jglick@netbeans.org>
Log: #178584: inefficient and buggy checks for cyclic dependencies.
Comment 9 Jesse Glick 2010-04-12 17:37:12 UTC
*** Bug 180982 has been marked as a duplicate of this bug. ***
Comment 10 Jesse Glick 2010-04-14 14:14:36 UTC
*** Bug 184159 has been marked as a duplicate of this bug. ***
Comment 11 Jesse Glick 2010-04-21 16:24:49 UTC
*** Bug 183437 has been marked as a duplicate of this bug. ***
Comment 12 Jesse Glick 2010-04-21 16:27:25 UTC
If someone can verify in dev builds, would be a good candidate for a 6.8.1 patch release (if one is made).
Comment 13 Quality Engineering 2010-05-10 09:24:39 UTC
Integrated into 'main-golden', will be available in build *201005100200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/
User: 
Log: