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 212257 - UnsupportedOperationException: Project in /home/mgraciano/NetBeansProjects/test-project of class org.netbeans.modules.ant.freeform.FreeformProject has neither a ProjectClassPathModifierImplementation
Summary: UnsupportedOperationException: Project in /home/mgraciano/NetBeansProjects/te...
Status: RESOLVED WORKSFORME
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-09 17:18 UTC by Michel Graciano
Modified: 2015-02-04 03:27 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 187795


Attachments
stacktrace (5.01 KB, text/plain)
2012-05-09 17:18 UTC, Michel Graciano
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Graciano 2012-05-09 17:18:24 UTC
Build: NetBeans IDE Dev (Build 20120508-bc77094b1af6)
VM: Java HotSpot(TM) Client VM, 23.0-b21, Java(TM) SE Runtime Environment, 1.7.0_04-b20
OS: Linux

User Comments:
hmichel: Trying to change a free from project matisse form from Standard Java 6 generation style to Swing Layout Extension, but the lib was not in classpath yet




Stacktrace: 
java.lang.UnsupportedOperationException: Project in /home/mgraciano/NetBeansProjects/test-project of class org.netbeans.modules.ant.freeform.FreeformProject has neither a ProjectClassPathModifierImplementation nor a ProjectClassPathExtender in its lookup
   at org.netbeans.api.java.project.classpath.ProjectClassPathModifier.findExtensible(ProjectClassPathModifier.java:399)
   at org.netbeans.api.java.project.classpath.ProjectClassPathModifier.addLibraries(ProjectClassPathModifier.java:92)
   at org.netbeans.modules.nbform.project.ClassSourceResolver$LibraryEntry.addToProjectClassPath(ClassSourceResolver.java:227)
   at org.netbeans.modules.form.project.ClassSource.addToProjectClassPath(ClassSource.java:114)
   at org.netbeans.modules.form.project.ClassPathUtils$1.run(ClassPathUtils.java:234)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1452)
Comment 1 Michel Graciano 2012-05-09 17:18:30 UTC
Created attachment 119228 [details]
stacktrace
Comment 2 Tomas Zezula 2012-05-10 07:41:21 UTC
The freeform project does not support ProjectClassPathModifierImplementation nor a ProjectClassPathExtender intentionally. The Freeform project is a view over user managed build script. Adding something automatically into project's classpath will cause inconsistency among IDE classpath and javac classpath used in user managed build script. In freeform user needs to modify the build script and add the jar to project cp.
The form should catch the exception and notify user that (s)he needs to do it.
Comment 3 Quality Engineering 2015-02-04 03:27:32 UTC
Reported for 7.3.x or earlier, no new info since then -> closing as worksforme, please reopen in case you see it.