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 200710241200) VM: Java HotSpot(TM) Client VM, 1.6.0_01-b06 OS: Linux, 2.6.20-16-generic, i386 User Comments: Just created rails project, confirmed wizard defaults. Used Jruby.
Created attachment 51660 [details] stacktrace
Race condition. Will synchronize.
rake/src/org/netbeans/modules/ruby/modules/project/rake/FileChangeSupport.java; new revision: 1.3; previous revision: 1.2
THIS ISSUE HAS ALREADY 10 DUPLICATES
I encountered this exception with the trunk 200807101204.
Created attachment 64297 [details] messages.log
Unfortunately, I can't reproduce this exception in a regular way. I will attach the message log enabling detailed logging when available.
*** Issue 120992 has been marked as a duplicate of this issue. ***
Build: NetBeans IDE Dev (Build 080905) VM: Java HotSpot(TM) 64-Bit Server VM, 1.5.0_15-b04, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_15-b04 OS: Linux, 2.6.24-19-generic, amd64 User Comments: Creating a Rails project. Stacktrace: java.lang.IllegalArgumentException: Already listening to /home/erno/NetBeansProjects/RailsApplication5/app/controllers at org.netbeans.modules.ruby.modules.project.rake.FileChangeSupport.addListener(FileChangeSupport.java:92) at org.netbeans.modules.ruby.spi.project.support.rake.SourcesHelper$SourcesImpl.listen(SourcesHelper.java:475) at org.netbeans.modules.ruby.spi.project.support.rake.SourcesHelper$SourcesImpl.getSourceGroups(SourcesHelper.java:409) at org.netbeans.modules.ruby.railsprojects.RailsSources$2.run(RailsSources.java:114) at org.netbeans.modules.ruby.railsprojects.RailsSources$2.run(RailsSources.java:105) at org.openide.util.Mutex.readAccess(Mutex.java:327)
Created attachment 69133 [details] stacktrace
This issue has already 50 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=9242
Very likely related to issue 119244. Bug in Rails project. I'll try to come with fix.
Tried to fix, please reopen whether you can still reproduce. Fixed: #e2d38a5c0059
Integrated into 'main-golden', will be available in build *200809201401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/e2d38a5c0059 User: Martin Krauskopf <mkrauskopf@netbeans.org> Log: Fixing #120014 by taking back fix for #119244 and workarounding it in the safe way. #119244: log error: SEVERE: Attempt to call ProjectManager.findProject within the body of ProjectFactory.loadProject #120014: IllegalArgumentException: Already listening to /RailsApplication/something
Happened again during commit validation: http://deadlock.netbeans.org/hudson/job/trunk/3933/testReport/org.netbeans.test.ruby/RubyValidation/testRailsGenerate/
P1 doesn't seem justified, so I'm downgrading this. Happens rarely and the workaround is simple.
New stacktrace is needed. The one from the commit-validation has died, during my vacation. Next time let's put it as attachment here.
Created attachment 72444 [details] stacktrace from c/v test
Fixed: #cdefc815695e Commit log: Preventing apparent race condition (similarly to #121059). Utilizing o.o.u.ChangeSupport.
Integrated into 'main-golden', will be available in build *200810240201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/cdefc815695e User: Martin Krauskopf <mkrauskopf@netbeans.org> Log: #120014: Preventing apparent race condition (similarly to #121059). Utilizing o.o.u.ChangeSupport.
*** Issue 151911 has been marked as a duplicate of this issue. ***
Build: NetBeans IDE 6.5 (Build 200811100001) VM: Java HotSpot(TM) Client VM, 11.2-b01, Java(TM) SE Runtime Environment, 1.6.0_12-b04 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: java.lang.IllegalArgumentException: Already listening to D:\Projetos\Depot\app\controllers at org.netbeans.modules.ruby.modules.project.rake.FileChangeSupport.addListener(FileChangeSupport.java:92) at org.netbeans.modules.ruby.spi.project.support.rake.SourcesHelper$SourcesImpl.listen(SourcesHelper.java:475) at org.netbeans.modules.ruby.spi.project.support.rake.SourcesHelper$SourcesImpl.getSourceGroups(SourcesHelper.java:409) at org.netbeans.modules.ruby.railsprojects.RailsSources$1.run(RailsSources.java:110) at org.netbeans.modules.ruby.railsprojects.RailsSources$1.run(RailsSources.java:101) at org.openide.util.Mutex.readAccess(Mutex.java:285)
Created attachment 76627 [details] stacktrace