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.
Summary: | @ServiceProvider services sooner than filesystem content causes: Broken platform reference when opening not activated J2SE | ||
---|---|---|---|
Product: | java | Reporter: | asenk |
Component: | Project | Assignee: | Tomas Zezula <tzezula> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | jtulach, masaki, mmirilovic |
Priority: | P3 | Keywords: | THREAD |
Version: | 7.1 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
asenk
2011-09-22 10:24:03 UTC
Please evaluate ASAP .. thanks in advance. Product Version: NetBeans IDE 7.1 Beta (Build 201109212202) Java: 1.7.0; Java HotSpot(TM) 64-Bit Server VM 21.0-b18 System: Linux version 2.6.38-11-generic running on amd64; UTF-8; en_US (nb) User directory: /home/petr/.netbeans/7.1beta Cache directory: /home/petr/.netbeans/7.1beta/var/cache are you sure there isn't just something wrong with your java platform? I use exactly this scenario after install and it works correctly - i.e. run, build, profile etc works... It doesn't seem to be P1 if it is just some corner case... Adam, I expect you reused older userdir - didn't you ? (In reply to comment #3) > Adam, I expect you reused older userdir - didn't you ? No, I started IDE with fresh userdir and I didn't import anything. (In reply to comment #2) > > are you sure there isn't just something wrong with your java platform? I use > exactly this scenario after install and it works correctly - i.e. run, build, > profile etc works... I will try reinstall Java on my computer. Product Version: NetBeans IDE 7.1 Beta (Build 201109212202) Java: 1.6.0_27; Java HotSpot(TM) Client VM 20.2-b06 System: Linux version 2.6.38-11-generic running on i386; UTF-8; en_US (nb) User directory: /home/tester/.netbeans/7.1beta Cache directory: /home/tester/.netbeans/7.1beta/var/cache I'm able to reproduce this bug with JDK1.6... Seems as FoD. Can you reproduce it without FoD? Does the reassignment mean that it's not reproduceable without FoD? (In reply to comment #7) > Does the reassignment mean that it's not reproduceable without FoD? Yes, it is reproducible only with FOD. Finally I was able to reproduce it, it's a race. The problem is that the service registered by @ServiceProvider is instantiated before the layer, of the same module which provides the service, is merged into system filesystem. So the service is not able to find the config folder on the system filesystem. It seems to be changed. Is this desired? I can probably workaround it in java.platform module if needed. If you can make the code more robust, please try. Fixed jet-main 5a392d63ec8a Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/5a392d63ec8a User: Tomas Zezula <tzezula@netbeans.org> Log: #202479:@ServiceProvider services sooner than filesystem content causes: Broken platform reference when opening not activated J2SE *** Bug 204348 has been marked as a duplicate of this bug. *** Thanks for making the code more robust. I have to reopen this bug :-( Fix helped a little bit, but the whole problem isn't solved. If I follow steps to reproduce I got the same error. But now is it more easier to solve the problem. 1. IDE restart 2. Add new platform in project properties So I think that the priority is P3 after this fix. Fixed jet-main 392beab16a9f I've added even more defensive code, it not only delays the folder lookup but also listens on its creation. If even this does not work please reopen and assign on ide/fod (the folder does not exist at all). Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/392beab16a9f User: Tomas Zezula <tzezula@netbeans.org> Log: #202479:@ServiceProvider services sooner than filesystem content causes: Broken platform reference when opening not activated J2SE |