Bug 447395 - Class loading problem during dynamic workflow execution when workflow contains generator components
Summary: Class loading problem during dynamic workflow execution when workflow contain...
Status: CLOSED WONTFIX
Alias: None
Product: Sphinx
Classification: Automotive
Component: Core (show other bugs)
Version: 0.8.0   Edit
Hardware: All Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-15 11:01 EDT by Amine Lajmi CLA
Modified: 2024-05-07 00:14 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Amine Lajmi CLA 2014-10-15 11:01:25 EDT
A class loading problem occurs when running a dynamic workflow which contains a generator component written in Xtend. IFileSystemAccess is loaded twice: once by the default class loader, and later by the project class loader, leading to a constraint violation.

Caused by: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.eclipse.sphinx.examples.hummingbird20.genfile.DummyGenerator.doGenerate(Lorg/eclipse/emf/ecore/resource/Resource;Lorg/eclipse/xtext/generator/IFileSystemAccess;)V" the class loader (instance of org/eclipse/sphinx/jdt/loaders/ProjectClassLoader) of the current class, org/eclipse/sphinx/examples/hummingbird20/genfile/DummyGenerator, and the class loader (instance of org/eclipse/osgi/internal/loader/EquinoxClassLoader) for interface org/eclipse/xtext/generator/IGenerator have different Class objects for the type ingbird20.genfile.DummyGenerator.doGenerate(Lorg/eclipse/emf/ecore/resource/Resource;Lorg/eclipse/xtext/generator/IFileSystemAccess;)V used in the signature
	at java.lang.Class.getDeclaredConstructors0(Native Method)
Comment 1 Balazs Grill CLA 2024-05-07 00:14:06 EDT
Closed stale issue before migration