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 179490 - ClassNotFoundException: javax.annotation.processing.ProcessingEnvironment starting from ModuleCL@dc1f04[org.netbeans.modules.javafx.platform] with possible defining loaders [ModuleCL@107108e[org.netbe
Summary: ClassNotFoundException: javax.annotation.processing.ProcessingEnvironment sta...
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: J Bachorik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-14 03:43 UTC by Alexandr Scherbatiy
Modified: 2010-02-03 03:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 164309


Attachments
stacktrace (5.11 KB, text/plain)
2010-01-14 03:43 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2010-01-14 03:43:50 UTC
Build: NetBeans IDE Dev (Build 201001131418)
VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Windows XP, 5.1, x86

User Comments:
sunflower: - Create JavaFX project
- Create Java interface
----------------------------  MyInterface.java -------------------------------------
public interface MyInterface {

}
----------------------------------------------------------------------------------------

- Create JavaFX class
----------------------------  A.fx  -------------------------------------
public class A  {

}
----------------------------------------------------------------------------------------

- Assume you want to implemen the interface
Add 'extends' keyword after A class name

----------------------------  A.fx  -------------------------------------
public class A extends {

}
----------------------------------------------------------------------------------------

- Press <Ctrl+Space>  after the 'extends' keyword
The exception pops up



Stacktrace: 
java.lang.ClassNotFoundException: javax.annotation.processing.ProcessingEnvironment starting from ModuleCL@dc1f04[org.netbeans.modules.javafx.platform] with possible defining loaders [ModuleCL@107108e[org.netbeans.libs.javacapi]] and declared parents [ModuleCL@1469658[org.netbeans.modules.project.ant], ModuleCL@15b8520[org.openide.nodes], ModuleCL@51ef4e[org.netbeans.libs.jsr223], ModuleCL@134eb84[org.netbeans.api.java], ModuleCL@1b7c76[org.netbeans.api.progress], ModuleCL@5a2eaa[org.netbeans.modules.projectapi], ModuleCL@d480ea[org.openide.dialogs], ModuleCL@873723[org.netbeans.api.java.classpath], ModuleCL@aea710[org.openide.loaders], ModuleCL@18adae2[org.openide.awt], ModuleCL@1f98d58[org.openide.actions], ModuleCL@9300cc[org.netbeans.modules.java.platform], org.netbeans.MainImpl$BootClassLoader@1893efe, ModuleCL@58dd2d[org.netbeans.modules.project.libraries], ModuleCL@18e18a3[org.netbeans.modules.classfile]]
   at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:265)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
   at java.lang.ClassLoader.defineClass1(ClassLoader.java:0)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
   at org.netbeans.JarClassLoader.doLoadClass(JarClassLoader.java:246)
Comment 1 Alexandr Scherbatiy 2010-01-14 03:43:55 UTC
Created attachment 93277 [details]
stacktrace
Comment 2 J Bachorik 2010-01-19 05:38:31 UTC
(see #179498)
This is caused by ClassNotFoundException deep down in the javafx compiler guts.
The compiler needs javax.annotation.processing.ProcessingEnvironment interface
to be loaded but it is nowhere to be found since it is imperatively hidden from
the javafx.platform module and there is no other active module providing the
javax.annotation package.
This is caused by either a change in NB class loading (between 6.8 and trunk)
or removing an erroneously published package from some other module.
Comment 3 J Bachorik 2010-01-19 05:41:20 UTC
fixed in http://hg.netbeans.org/javafx/rev/6b71f5af4690
Comment 4 Alexandr Scherbatiy 2010-02-03 03:01:36 UTC
verified in NetBeans-JavaFX-Soma: #141