Taneb / ecore2thrift

1 stars 1 forks source link

Thrift2Eclipse does not work (NoClassDefFoundError) #14

Open bergmanngabor opened 8 years ago

bergmanngabor commented 8 years ago

Symptom

When executing the "Generate Thrift IDL" command, the following error message is shown:

An internal error occurred during: "ecore2thrift". org/eclipse/epsilon/eol/execute/operations/OperationFactory

At the same time, this exception is logged at the Eclipse Error Log:

org.eclipse.core.jobs
Error
Fri Feb 12 04:20:00 PST 2016
An internal error occurred during: "ecore2thrift".

java.lang.NoClassDefFoundError: org/eclipse/epsilon/eol/execute/operations/OperationFactory
    at uk.ac.york.mondo.ecore2thrift.handlers.GenerateThriftCommand$1.run(GenerateThriftCommand.java:75)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.lang.ClassNotFoundException: org.eclipse.epsilon.eol.execute.operations.OperationFactory cannot be found by org.eclipse.epsilon.evl.engine_1.2.0.201408251031
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:439)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 2 more

How to reproduce

Grab a fresh Eclipse, install the latest Epsilon release (EMF Development tools) and ecore2thrift from the respective update sites. Check out this project and try to generate the .thrift from this file.

agarciadom commented 8 years ago

I'm sorry that you're having issues with Ecore2Thrift. Please keep in mind after Nathan finished his internship, development is now taking place at my fork:

https://github.com/bluezio/ecore2thrift

This problem does not happen with the latest version of the above fork, since its update site is a composite site that automatically brings in all the required Epsilon components. I have followed these steps: