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.
JavaFX_NB_Plugin_NB61_daily: #217 28-Aug-2008 02:01:21 Product Version = NetBeans IDE 6.1 (Build 200804211638) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11; Sun Microsystems Inc. Steps to reproduce: - Create a JavaFX Script project The exception pops up: java.lang.LinkageError: loader constraint violation: loader (instance of org/netbeans/StandardModule$OneModuleClassLoader) previously initiated loading for a different type with name "javax/lang/model/element/Element" at org.netbeans.modules.javafx.editor.semantic.SemanticHighlighter$JavaFXThreeVisitor.visitClassDeclaration(SemanticHighlighter.java:367) at org.netbeans.modules.javafx.editor.semantic.SemanticHighlighter$JavaFXThreeVisitor.visitClassDeclaration(SemanticHighlighter.java:207) at com.sun.tools.javafx.tree.JFXClassDeclaration.accept(JFXClassDeclaration.java:122) at com.sun.javafx.api.tree.JavaFXTreePathScanner.scan(JavaFXTreePathScanner.java:63) at com.sun.javafx.api.tree.JavaFXTreeScanner.scan(JavaFXTreeScanner.java:94) at com.sun.javafx.api.tree.JavaFXTreeScanner.scanAndReduce(JavaFXTreeScanner.java:111) at com.sun.javafx.api.tree.JavaFXTreeScanner.visitCompilationUnit(JavaFXTreeScanner.java:122) at com.sun.tools.javafx.tree.JFXScript.accept(JFXScript.java:129) at com.sun.javafx.api.tree.JavaFXTreePathScanner.scan(JavaFXTreePathScanner.java:63) at org.netbeans.modules.javafx.editor.semantic.SemanticHighlighter.process(SemanticHighlighter.java:135) at org.netbeans.modules.javafx.editor.semantic.SemanticHighlighter.run(SemanticHighlighter.java:117) at org.netbeans.modules.javafx.editor.semantic.SemanticHighlighter.run(SemanticHighlighter.java:82) at org.netbeans.modules.javafx.source.scheduler.CompilationJob.run(CompilationJob.java:199) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [catch] at java.lang.Thread.run(Thread.java:619)
Created attachment 68519 [details] IDE log file
The issue is reproduced after the userdir removing. A lot exceptions are thrown in this case: java.lang.ClassCastException: org.netbeans.modules.javafx.source.classpath.SourceFileObject cannot be cast to javax.tools.JavaFileObject java.lang.LinkageError: loader constraint violation: loader (instance of org/netbeans/StandardModule$OneModuleClassLoader) previously initiated loading for a different type with name "javax/tools/DiagnosticListener" java.lang.NoClassDefFoundError: Could not initialize class org.netbeans.modules.javafx.preview.CodeManager
Created attachment 68521 [details] IDE log file
From the stack trace we see that it raised from semantic highlighter > reassign. Looks like the problem is in using not right classes ... use Element from java libraries instead of javafx runtime.
Fixed last week (or so) by fixing dependencies of javafx.editor module.
verified
Cleaning bugzilla categories ....