Recently I changed my current system date to 5 days ago,
and then i tried to run nb6.5 .
Splash screen appeared but it doesn't continue after "Done loading modules ." message .
When i changed system date back, nb started normally .
I had 2 projects open in my workspace .
OS : Windows Vista SP1 32bit
JDK : 1.6u7
please, take thread dump when the IDE is stopped/locked and attach it.
It works for me on Win XP.
Created attachment 75122 [details]
thank you for the dump. It shows a deadlock in
"AWT-EventQueue-1" prio=6 tid=0x2daf2800 nid=0xfe0 in Object.wait() [0x2f43f000..0x2f43fd68]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x06f929a0> (a org.openide.text.CloneableEditor$DoInitialize)
- locked <0x06f929a0> (a org.openide.text.CloneableEditor$DoInitialize)
Reassigning to openide/text to check if it's problem of ClonableEditor or XmlMultiView
navid, what documents do you have opened in your IDE? Is there a xml file e.g. a web.xml etc? Are your files versioned?
yes, i have one xml file open (persistence.xml), and some java classes open in nb,
i closed the xml file, and then i restarted nb, it started up normally.
again i tried to open xml file (not current system date) and then nb hangs .
Please can you send me your project so that I can reproduce/investigate this problem? I created simple xml file so IDE
uses org.netbeans.modules.xml.text.TextEditorComponent (not XmlMultiView) and it opens fine. I do not know what specific
xml wil use XmlMultiView. I created this file modified, saved, closed, exited IDE. Set system time 1 day back (from 5
Jan to 4 Jan), started IDE and opened this xml file. It works fine. I need exact reliable steps how to reproduce this
problem. Attach your testing project or send it to me directly as it seems my xml does not use correct TopComponent. Thanks.
I use Linux/Ubuntu (it might be specific to Windows only), latest daily dev build 090102 (my own build from sources).
Sorry to replying back late ,
I Created a new simple java project and then new simple XML file
and I set system date to 5 days back,and IDE worked fine.
my main project contains a PersistenceUnit file (persistence.xml)
again i created a simple java application and then a PersistenceUnit file
i closed the IDE (while persistence.xml is open in workspace) and then changed system date to 5 days back
and i tried to start IDE again and... problem appeared !
I attached a simple project .
IDE : NB6.5 Pach1
OS : Windows Vista SP1 32bit
JDK : 1.6u7
Created attachment 75606 [details]
Please can you try latest dev build? I cannot reproduce this. If you can reproduce with latest dev build attach new
thread dump (there was some changes esp. in CloneableEditorSupport) and repeat steps to reproduce. Yes persistence.xml
uses multiview component. I am on Linux. I opened test project, opened persistence.xml, modified it to make sure it has
new time set. Exited IDE. Set system time 2 days (and later 5) back and started IDE. It works fine. I can eventually try
It was fixed as issue #149717: CloneableEditorSupport.getDocument() is now non blocking call. Provided that this is
obscure use case we will not backport this into 6.5 fixes.
Yes I can reproduce this problem with NB 6.5 patch 1 build and your test project but not with current trunk dev build.
Anyway I will try to ignore event file changed when getTime is called (getTime calls first FileObject.refresh and it
causes fileChanged event for file with future time stamp).
Decreasing priority to P3 as it does not cause deadlock now.
Ignore fileChange event from DES.Env.getTime -> FileObject.refresh. DES.Env has file change listener and generates
propertyChange event. Using FileSystem.AtomicAction fix filters out fileChange event.
Integrated into 'main-golden', will be available in build *200901140201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Marek Slama <email@example.com>
Log: #155680: Ignore fileChange event from DES.Env.getTime -> FileObject.refresh.