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: | Removing Visual JSF Patch removes ALL libraries | ||
---|---|---|---|
Product: | projects | Reporter: | David Botterill <dbotterill> |
Component: | Libraries | Assignee: | Tomas Zezula <tzezula> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | mmirilovic, sustaining |
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | Macintosh | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Steps to reproduce
messages.log Visual JSF patch NBM |
Description
David Botterill
2008-01-24 21:31:54 UTC
Created attachment 55530 [details]
Steps to reproduce
Please attach the actual exception (or your log file). Created attachment 55543 [details]
messages.log
I don't consider reinstalling a workaround so I'm changing this back to a P1 according to http://qa.netbeans.org/bugzilla/bug_priority_guidelines.html. There is much easier workaround, just delete ${nbuserdir}/org-netbeans-api-project-libraries/Libraries/ folder. From the log it seems that the JSF patch modifies even existing j2se libraries and adds an additional volume which is unknown for j2se libraries, really nice pattern to modify someone else files. SEVERE: java.lang.IllegalArgumentException: Volume 'runtime' is not support by this library. The only acceptable values are: [classpath, javadoc, maven-pom, src] org.openide.ErrorManager$AnnException: From nbfs://nbhost/SystemFileSystem/org-netbeans-api-project-libraries/Libraries/junit-4.1.xml Checking in org/netbeans/modules/project/libraries/LibraryDeclarationHandlerImpl.java; /cvs/projects/libraries/src/org/netbeans/modules/project/libraries/LibraryDeclarationHandlerImpl.java,v <-- LibraryDeclarationHandlerImpl.java new revision: 1.10; previous revision: 1.9 done The problem was that after uninstallation of the patch the libraries installed by this patch were not removed but the libraries type (module handling them) was uninstalled. Fixed. To reporter: Can you verify the fix, it seems to me as a really serious problem which makes the IDE unusable, the fix is part of the hudson build 5400 (http://deadlock.netbeans.org/hudson/job/trunk/5400/) or later. Thank you for this report. If I try to install the same rogue patch, the IDE tells me it's already installed because it's named the same as the "Visual JSF" plugin. How else can I verify this? I looked at the NBM file for the patch and it doesn't seem to do very much. I'll attach that file as well and perhaps you know how to use it for verification. Created attachment 55582 [details]
Visual JSF patch NBM
Thanks for the patch, I will test it and let you know. T. Works fine, I wasn't able to use the patch, but I did the same by hand. 1) Started basic IDE and add Visual JSF using AutoUpdate 2) After restart new libraries provided by Visual JSF appeared in the IDE 3) I've modified some of them to let IDE to rewrite them into user dir, this are not deleted by uninstall. 4) I've uninstalled the Visual JSF 5) After restart of the IDE the Visual JSF libraries were uninstalled but the rest of the libraries (j2se) were available and working fine. This is a good candidate for NB 6.0.1 patch 1 - David/Tomas : agree/disagree ? Yes Agree. OK, we will include it into Patch 1 : David could you verify the fix ? Yes I can verifiy the fix if I'm pointed to Patch 1 to bring my NetBeans version up to 6.0.1 so Tomas' fix is included. Thanks David. The fix has been ported into the release601_fixes branch. Checking in LibraryDeclarationHandlerImpl.java; /cvs/projects/libraries/src/org/netbeans/modules/project/libraries/Attic/LibraryDeclarationHandlerImpl.java,v <-- LibraryDeclarationHandlerImpl.java new revision: 1.9.12.1; previous revision: 1.9 done |