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 145407 - Project creation throws LinkageError: loader constraint violation
Summary: Project creation throws LinkageError: loader constraint violation
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-28 11:33 UTC by Alexandr Scherbatiy
Modified: 2011-10-19 12:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log file (32.85 KB, text/plain)
2008-08-28 11:33 UTC, Alexandr Scherbatiy
Details
IDE log file (52.35 KB, text/plain)
2008-08-28 11: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 2008-08-28 11:33:21 UTC
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)
Comment 1 Alexandr Scherbatiy 2008-08-28 11:33:48 UTC
Created attachment 68519 [details]
IDE log file
Comment 2 Alexandr Scherbatiy 2008-08-28 11:42:27 UTC
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
Comment 3 Alexandr Scherbatiy 2008-08-28 11:43:09 UTC
Created attachment 68521 [details]
IDE log file
Comment 4 Andrey Yamkovoy 2008-09-02 13:19:11 UTC
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.
Comment 5 Petr Nejedly 2008-09-08 16:13:15 UTC
Fixed last week (or so) by fixing dependencies of javafx.editor module.
Comment 6 Alexandr Scherbatiy 2008-09-10 09:39:58 UTC
verified
Comment 7 David Strupl 2011-10-19 12:04:33 UTC
Cleaning bugzilla categories ....