Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Second GeneratorFragment
Second GeneratorFragment [message #756072] Thu, 10 November 2011 19:11 Go to next message
Jens Missing name is currently offline Jens Missing nameFriend
Messages: 27
Registered: November 2011
Junior Member
hi,

I have a problem with the second generator and I am getting a strange error message.
In the following I have posted some code to illustrate it (the error message is at the end of the posting).

package org.xtext.gui;

import org.xtext.gui.generator.GuiDslGeneratorAnother;
import com.google.inject.Guice;
import com.google.inject.Injector;

public class AnotherInjector extends GuiDslStandaloneSetup {

	public Injector createInjector() {
		return Guice.createInjector(new AnotherRuntimeModule());
	}
	
	public class AnotherRuntimeModule extends GuiDslRuntimeModule {
		@Override
		public Class<? extends org.eclipse.xtext.generator.IGenerator> bindIGenerator() {
			return GuiDslGeneratorAnother.class;
		}
	}	
}


My GuiDslGeneratorMWE.mwe2 in the generator package looks like this:


module org.xtext.gui.generator.GuiDslGeneratorMWE

import org.eclipse.emf.mwe.utils.*


var targetDir = "src-gen"
var modelPath = "dmodel"


Workflow {

	component = org.eclipse.xtext.mwe.Reader {
		// lookup all resources on the classpath
		// useJavaClassPath = true

		// or define search scope explicitly
		path = modelPath

		// this class will be generated by the xtext generator 
		register = org.xtext.gui.GuiDslStandaloneSetup {}
		loadResource = {
			slot = "model"
		}
	}
	component = org.eclipse.xtext.generator.GeneratorComponent {
		register = org.xtext.gui.GuiDslStandaloneSetup {}
		slot = 'model'
		outlet = {
			path = targetDir
			
		}	
	}
}



In the generator package I have also created two xtend files:

GuiDslGenerator.xtend
GuiDslGeneratorAnother.xtend

But I am getting a strang error message now.


0 [main] ERROR mf.mwe2.launch.runtime.Mwe2Launcher - Problems instantiating module org.xtext.gui.generator.GuiDslGeneratorMWE: java.lang.reflect.InvocationTargetException
java.lang.RuntimeException: Problems instantiating module org.xtext.gui.generator.GuiDslGeneratorMWE: java.lang.reflect.InvocationTargetException
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:90)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:73)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:64)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:55)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:74)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:35)



I hope you can help me out.

regards,

jens.

[Updated on: Thu, 10 November 2011 19:12]

Report message to a moderator

Re: Second GeneratorFragment [message #756088 is a reply to message #756072] Thu, 10 November 2011 20:12 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13409
Registered: July 2009
Senior Member
Hi,

this looks ok from here - besides you dont actually use AnotherInjector .
did you try to debug into the code? from the stacktrace you posted one cannot see
where the InvocationTargetException comes from.

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Second GeneratorFragment [message #756245 is a reply to message #756088] Fri, 11 November 2011 16:27 Go to previous messageGo to next message
Jens Missing name is currently offline Jens Missing nameFriend
Messages: 27
Registered: November 2011
Junior Member
hi,

sorry I don't know how to debug. I tried to keep it more simple.
So now I have only a console output in my generator file.
"run as" of the GuiDslGeneratorMWE.mwe2 file gives me the following response:

0 [main] INFO .emf.mwe2.runtime.workflow.Workflow - Done.

But there is no console output?
- System::out.println("Hello i'm the normal generator!");



package org.xtext.gui.generator

import org.eclipse.emf.ecore.resource.Resource
import org.eclipse.xtext.generator.IGenerator
import org.eclipse.xtext.generator.IFileSystemAccess
import org.eclipse.emf.ecore.resource.Resource
import org.eclipse.xtext.xbase.compiler.*
import org.eclipse.xtext.xbase.*
import org.eclipse.xtext.common.types.*
import com.google.inject.*
import org.xtext.gui.guiDsl.*
import java.util.*
import static extension org.eclipse.xtext.xtend2.lib.ResourceExtensions.*
import org.eclipse.xtext.naming.*

class GuiDslGenerator implements IGenerator {
	
	@Inject extension IQualifiedNameProvider nameProvider
	
	override void doGenerate(Resource resource, IFileSystemAccess fsa) {
		System::out.println("Hello i'm the normal generator!");
	}
}


package org.xtext.gui.generator.another

import org.eclipse.emf.ecore.resource.Resource
import org.eclipse.xtext.generator.IGenerator
import org.eclipse.xtext.generator.IFileSystemAccess
import org.eclipse.emf.ecore.resource.Resource
import org.eclipse.xtext.xbase.compiler.*
import org.eclipse.xtext.xbase.*
import org.eclipse.xtext.common.types.*
import com.google.inject.*
import org.xtext.gui.guiDsl.*
import java.util.*
import static extension org.eclipse.xtext.xtend2.lib.ResourceExtensions.*
import org.eclipse.xtext.naming.*

class AnotherGenerator implements IGenerator {
	
	@Inject extension IQualifiedNameProvider nameProvider
	
	override void doGenerate(Resource resource, IFileSystemAccess fsa) {
		System::out.println("Hello I'm another Generator!");		
	}

}



module org.xtext.gui.generator.GuiDslGeneratorMWE

import org.eclipse.emf.mwe.utils.*

var targetDir = "src-gen"
var modelPath  = "model"

Workflow {

	component = org.eclipse.xtext.mwe.Reader {
		// lookup all resources on the classpath
		// useJavaClassPath = true
		
		// or define search scope explicitly
		path = modelPath

		// this class will be generated by the xtext generator 
		register = org.xtext.gui.GuiDslStandaloneSetup {}
		loadResource = {
			slot = "model"
		}
	}

	component = org.eclipse.xtext.generator.GeneratorComponent {
		register = org.xtext.gui.GuiDslStandaloneSetup {}
		slot = 'model'
		outlet = {
			path = targetDir
		}
	}
	
}



I have created a folder "model" in my workspace.
With the file "gui.mydsl"

package com.gui {
	
	window win {

	}
}
and so on..


regards,

jens



Even when I start a complete new project. I don't get the console output.


	override void doGenerate(Resource resource, IFileSystemAccess fsa) {
		System::out.println("Hello i'm the normal generator!");
		
		for(e: resource.allContentsIterable.filter(typeof(PackageDeclaration))) {
	          	
	          	fsa.generateFile(
            	e.fullyQualifiedName.toString.replace(".", "/") + ".java",
            	e.compile)         	
	    }
	}



How can I make sure, that the doGenerate-method is called?

[Updated on: Fri, 11 November 2011 19:21]

Report message to a moderator

Re: Second GeneratorFragment [message #756291 is a reply to message #756245] Fri, 11 November 2011 19:31 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13409
Registered: July 2009
Senior Member
Hi

here the steps for a new MyDsl Project
(1) create project with wizard and dont change anything and generate the language
(2) create a folder "model" in the runtimeproject and place a test.mydsl there
Hello Generator!

(3) change the generator workflow to
module org.xtext.example.mydsl.generator.MyDslGeneratorMWE

import org.eclipse.emf.mwe.utils.*

var targetDir = "src-gen"
var modelPath = "model"

Workflow {

	component = org.eclipse.xtext.mwe.Reader {
		// lookup all resources on the classpath
		// useJavaClassPath = true

		// or define search scope explicitly
		path = modelPath

		// this class will be generated by the xtext generator 
		register = org.xtext.example.mydsl.MyDslStandaloneSetup {}
		loadResource = {
			slot = "model"
		}
	}
	component = org.eclipse.xtext.generator.GeneratorComponent {
		register = org.xtext.example.mydsl.MyDslStandaloneSetup {}
		slot = 'model'
		outlet = {
			path = targetDir
			
		}	
	}
}

(4) change the generator itself to
package org.xtext.example.mydsl.generator

import org.eclipse.emf.ecore.resource.Resource
import org.eclipse.xtext.generator.IGenerator
import org.eclipse.xtext.generator.IFileSystemAccess

class MyDslGenerator implements IGenerator {
	
	override void doGenerate(Resource resource, IFileSystemAccess fsa) {
		System::out.println("Hey here is the Generator")
	}
}

(5) run the workflow

and it works

=> i think you dont read any model files.
did you place them in the right folder?

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Fri, 11 November 2011 19:32]

Report message to a moderator

Re: Second GeneratorFragment [message #756303 is a reply to message #756291] Fri, 11 November 2011 20:57 Go to previous messageGo to next message
Jens Missing name is currently offline Jens Missing nameFriend
Messages: 27
Registered: November 2011
Junior Member
hi,

thanks a lot. Now it works.
But I don't know what my fault was..
The only difference this time was, that I chose "Use Stable API only"
instead of "Use Experimental 2.0 Features (Compare, Refactoring and new Serializer)".
And I named my model file like the extensions.

regards, jens



Re: Second GeneratorFragment [message #756353 is a reply to message #756303] Sat, 12 November 2011 10:44 Go to previous messageGo to next message
Jens Missing name is currently offline Jens Missing nameFriend
Messages: 27
Registered: November 2011
Junior Member
update of my post:

It works now, but only when the beautifier is not activated.

in the .xtend file:


	override void doGenerate(Resource resource, IFileSystemAccess fsa) {
		System::out.println("Hey here is the Generator!!!!!!!!!!!")
		
		
		for(e: resource.allContentsIterable.filter(typeof(PackageDeclaration))) {
	     fsa.generateFile(
	            e.fullyQualifiedName.toString.replace(".", "/") + "/Win" + ".java",
	            b.format(e.fullyQualifiedName.toString.replace(".", "/") + "/Win" + ".java",
	            e.compile))
	    }



package org.xtext.gui.dm.generator;

import java.io.File;

import org.eclipse.xpand2.output.FileHandle;
import org.eclipse.xpand2.output.FileHandleImpl;
import org.eclipse.xpand2.output.JavaBeautifier;
import org.eclipse.xpand2.output.Outlet;

import com.google.inject.Inject;
import com.google.inject.Singleton;

@Singleton
public class Beautifier {

	@Inject
	JavaBeautifier javaBeautifier;
	
	/**
	* Format code with PostProcessor (XPand style).
	*/
	public CharSequence format(String fileName, CharSequence code) {
		
		// create fileHandle with dummy outlet.
		File file = new File(fileName);
		FileHandle fileHandle = new FileHandleImpl(new Outlet(), file);
		fileHandle.setBuffer(code);
		
		// call postProcessor for formatting the code.
		javaBeautifier.beforeWriteAndClose(fileHandle);
		
		// return formatted results.
		return fileHandle.getBuffer();
	
	}
}



With the activated beautifier I still get the error message:

1 [main] ERROR mf.mwe2.launch.runtime.Mwe2Launcher - Problems instantiating module org.xtext.gui.dm.generator.GuiDslGeneratorMWE: java.lang.reflect.InvocationTargetException
java.lang.RuntimeException: Problems instantiating module org.xtext.gui.dm.generator.GuiDslGeneratorMWE: java.lang.reflect.InvocationTargetException
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:90)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:73)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:64)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:55)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:74)



regards,
Jens



Re: Second GeneratorFragment [message #756364 is a reply to message #756353] Sat, 12 November 2011 11:49 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13409
Registered: July 2009
Senior Member
Hi,

why are your error messages so short - i get a full stacktrace that tells me to add
org.eclipse.jface.text, org.eclipse.jdt.core, org.eclipse.core.runtime to the deps.

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Second GeneratorFragment [message #756381 is a reply to message #756364] Sat, 12 November 2011 14:08 Go to previous messageGo to next message
Jens Missing name is currently offline Jens Missing nameFriend
Messages: 27
Registered: November 2011
Junior Member
hi,

here is my full stackstrace:

It seem that I don't have the necessary library installed.

org.eclipse.jface.text, org.eclipse.jdt.core, org.eclipse.core.runtime
is not accessable.

"java.lang.NoClassDefFoundError: org/eclipse/jface/text/BadLocationException"




1    [main] ERROR mf.mwe2.launch.runtime.Mwe2Launcher  - Problems instantiating module org.xtext.gui.dm.generator.GuiDslGeneratorMWE: java.lang.reflect.InvocationTargetException
java.lang.RuntimeException: Problems instantiating module org.xtext.gui.dm.generator.GuiDslGeneratorMWE: java.lang.reflect.InvocationTargetException
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:90)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:73)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:64)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:55)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:74)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:35)
Caused by: org.eclipse.emf.common.util.WrappedException: java.lang.reflect.InvocationTargetException
	at org.eclipse.emf.mwe2.language.factory.SettingProviderImpl$1$1.setValue(SettingProviderImpl.java:56)
	at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.internalApplyAssignments(Mwe2ExecutionEngine.java:137)
	at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.inCase(Mwe2ExecutionEngine.java:112)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.xtext.util.PolymorphicDispatcher.invoke(PolymorphicDispatcher.java:291)
	at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.internalSwitch(Mwe2ExecutionEngine.java:64)
	at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.internalApplyAssignments(Mwe2ExecutionEngine.java:136)
	at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.inCase(Mwe2ExecutionEngine.java:112)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.xtext.util.PolymorphicDispatcher.invoke(PolymorphicDispatcher.java:291)
	at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.internalSwitch(Mwe2ExecutionEngine.java:64)
	at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.inCase(Mwe2ExecutionEngine.java:78)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.xtext.util.PolymorphicDispatcher.invoke(PolymorphicDispatcher.java:291)
	at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.internalSwitch(Mwe2ExecutionEngine.java:64)
	at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.create(Mwe2ExecutionEngine.java:60)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:88)
	... 5 more
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.emf.mwe2.language.factory.SettingProviderImpl$1$1.setValue(SettingProviderImpl.java:54)
	... 30 more
Caused by: com.google.inject.internal.ComputationException: com.google.inject.internal.ComputationException: com.google.inject.internal.ComputationException: com.google.inject.internal.ComputationException: com.google.inject.internal.ComputationException: java.lang.NoClassDefFoundError: org/eclipse/jface/text/BadLocationException
	at com.google.inject.internal.MapMaker$StrategyImpl.compute(MapMaker.java:553)
	at com.google.inject.internal.MapMaker$StrategyImpl.compute(MapMaker.java:419)
	at com.google.inject.internal.CustomConcurrentHashMap$ComputingImpl.get(CustomConcurrentHashMap.java:2041)
	at com.google.inject.internal.FailableCache.get(FailableCache.java:46)
	at com.google.inject.ConstructorInjectorStore.get(ConstructorInjectorStore.java:52)
	at com.google.inject.ConstructorBindingImpl.initialize(ConstructorBindingImpl.java:57)
	at com.google.inject.InjectorImpl.initializeBinding(InjectorImpl.java:377)
	at com.google.inject.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:645)
	at com.google.inject.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:581)
	at com.google.inject.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:172)
	at com.google.inject.InjectorImpl.getBindingOrThrow(InjectorImpl.java:132)
	at com.google.inject.InjectorImpl.getInternalFactory(InjectorImpl.java:651)
	at com.google.inject.FactoryProxy.notify(FactoryProxy.java:48)
	at com.google.inject.BindingProcessor.runCreationListeners(BindingProcessor.java:230)
	at com.google.inject.InjectorBuilder.initializeStatically(InjectorBuilder.java:131)
	at com.google.inject.InjectorBuilder.build(InjectorBuilder.java:105)
	at com.google.inject.Guice.createInjector(Guice.java:92)
	at com.google.inject.Guice.createInjector(Guice.java:69)
	at com.google.inject.Guice.createInjector(Guice.java:59)
	at org.xtext.gui.dm.GuiDslStandaloneSetupGenerated.createInjector(GuiDslStandaloneSetupGenerated.java:26)
	at org.xtext.gui.dm.GuiDslStandaloneSetupGenerated.createInjectorAndDoEMFRegistration(GuiDslStandaloneSetupGenerated.java:20)
	at org.eclipse.xtext.mwe.AbstractReader.addRegister(AbstractReader.java:53)
	... 35 more
Caused by: com.google.inject.internal.ComputationException: com.google.inject.internal.ComputationException: com.google.inject.internal.ComputationException: com.google.inject.internal.ComputationException: java.lang.NoClassDefFoundError: org/eclipse/jface/text/BadLocationException
	at com.google.inject.internal.MapMaker$StrategyImpl.compute(MapMaker.java:553)
	at com.google.inject.internal.MapMaker$StrategyImpl.compute(MapMaker.java:419)
	at com.google.inject.internal.CustomConcurrentHashMap$ComputingImpl.get(CustomConcurrentHashMap.java:2041)
	at com.google.inject.internal.FailableCache.get(FailableCache.java:46)
	at com.google.inject.MembersInjectorStore.get(MembersInjectorStore.java:66)
	at com.google.inject.ConstructorInjectorStore.createConstructor(ConstructorInjectorStore.java:69)
	at com.google.inject.ConstructorInjectorStore.access$000(ConstructorInjectorStore.java:31)
	at com.google.inject.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:39)
	at com.google.inject.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:35)
	at com.google.inject.internal.FailableCache$1.apply(FailableCache.java:35)
	at com.google.inject.internal.MapMaker$StrategyImpl.compute(MapMaker.java:549)
	... 56 more
Caused by: com.google.inject.internal.ComputationException: com.google.inject.internal.ComputationException: com.google.inject.internal.ComputationException: java.lang.NoClassDefFoundError: org/eclipse/jface/text/BadLocationException
	at com.google.inject.internal.MapMaker$StrategyImpl.compute(MapMaker.java:553)
	at com.google.inject.internal.MapMaker$StrategyImpl.compute(MapMaker.java:419)
	at com.google.inject.internal.CustomConcurrentHashMap$ComputingImpl.get(CustomConcurrentHashMap.java:2041)
	at com.google.inject.internal.FailableCache.get(FailableCache.java:46)
	at com.google.inject.ConstructorInjectorStore.get(ConstructorInjectorStore.java:52)
	at com.google.inject.ConstructorBindingImpl.initialize(ConstructorBindingImpl.java:57)
	at com.google.inject.InjectorImpl.initializeBinding(InjectorImpl.java:377)
	at com.google.inject.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:645)
	at com.google.inject.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:581)
	at com.google.inject.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:172)
	at com.google.inject.InjectorImpl.getBindingOrThrow(InjectorImpl.java:132)
	at com.google.inject.InjectorImpl.getInternalFactory(InjectorImpl.java:651)
	at com.google.inject.SingleFieldInjector.<init>(SingleFieldInjector.java:44)
	at com.google.inject.MembersInjectorStore.getInjectors(MembersInjectorStore.java:113)
	at com.google.inject.MembersInjectorStore.createWithListeners(MembersInjectorStore.java:83)
	at com.google.inject.MembersInjectorStore.access$000(MembersInjectorStore.java:35)
	at com.google.inject.MembersInjectorStore$1.create(MembersInjectorStore.java:43)
	at com.google.inject.MembersInjectorStore$1.create(MembersInjectorStore.java:40)
	at com.google.inject.internal.FailableCache$1.apply(FailableCache.java:35)
	at com.google.inject.internal.MapMaker$StrategyImpl.compute(MapMaker.java:549)
	... 66 more
Caused by: com.google.inject.internal.ComputationException: com.google.inject.internal.ComputationException: java.lang.NoClassDefFoundError: org/eclipse/jface/text/BadLocationException
	at com.google.inject.internal.MapMaker$StrategyImpl.compute(MapMaker.java:553)
	at com.google.inject.internal.MapMaker$StrategyImpl.compute(MapMaker.java:419)
	at com.google.inject.internal.CustomConcurrentHashMap$ComputingImpl.get(CustomConcurrentHashMap.java:2041)
	at com.google.inject.internal.FailableCache.get(FailableCache.java:46)
	at com.google.inject.MembersInjectorStore.get(MembersInjectorStore.java:66)
	at com.google.inject.ConstructorInjectorStore.createConstructor(ConstructorInjectorStore.java:69)
	at com.google.inject.ConstructorInjectorStore.access$000(ConstructorInjectorStore.java:31)
	at com.google.inject.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:39)
	at com.google.inject.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:35)
	at com.google.inject.internal.FailableCache$1.apply(FailableCache.java:35)
	at com.google.inject.internal.MapMaker$StrategyImpl.compute(MapMaker.java:549)
	... 85 more
Caused by: com.google.inject.internal.ComputationException: java.lang.NoClassDefFoundError: org/eclipse/jface/text/BadLocationException
	at com.google.inject.internal.MapMaker$StrategyImpl.compute(MapMaker.java:553)
	at com.google.inject.internal.MapMaker$StrategyImpl.compute(MapMaker.java:419)
	at com.google.inject.internal.CustomConcurrentHashMap$ComputingImpl.get(CustomConcurrentHashMap.java:2041)
	at com.google.inject.internal.FailableCache.get(FailableCache.java:46)
	at com.google.inject.ConstructorInjectorStore.get(ConstructorInjectorStore.java:52)
	at com.google.inject.ConstructorBindingImpl.initialize(ConstructorBindingImpl.java:57)
	at com.google.inject.InjectorImpl.initializeBinding(InjectorImpl.java:377)
	at com.google.inject.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:645)
	at com.google.inject.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:581)
	at com.google.inject.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:172)
	at com.google.inject.InjectorImpl.getBindingOrThrow(InjectorImpl.java:132)
	at com.google.inject.InjectorImpl.getInternalFactory(InjectorImpl.java:651)
	at com.google.inject.SingleFieldInjector.<init>(SingleFieldInjector.java:44)
	at com.google.inject.MembersInjectorStore.getInjectors(MembersInjectorStore.java:113)
	at com.google.inject.MembersInjectorStore.createWithListeners(MembersInjectorStore.java:83)
	at com.google.inject.MembersInjectorStore.access$000(MembersInjectorStore.java:35)
	at com.google.inject.MembersInjectorStore$1.create(MembersInjectorStore.java:43)
	at com.google.inject.MembersInjectorStore$1.create(MembersInjectorStore.java:40)
	at com.google.inject.internal.FailableCache$1.apply(FailableCache.java:35)
	at com.google.inject.internal.MapMaker$StrategyImpl.compute(MapMaker.java:549)
	... 95 more
Caused by: java.lang.NoClassDefFoundError: org/eclipse/jface/text/BadLocationException
	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
	at java.lang.Class.getDeclaredConstructors(Unknown Source)
	at com.google.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint.java:185)
	at com.google.inject.ConstructorInjectorStore.createConstructor(ConstructorInjectorStore.java:61)
	at com.google.inject.ConstructorInjectorStore.access$000(ConstructorInjectorStore.java:31)
	at com.google.inject.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:39)
	at com.google.inject.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:35)
	at com.google.inject.internal.FailableCache$1.apply(FailableCache.java:35)
	at com.google.inject.internal.MapMaker$StrategyImpl.compute(MapMaker.java:549)
	... 114 more
Caused by: java.lang.ClassNotFoundException: org.eclipse.jface.text.BadLocationException
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 124 more



regards,

jens.

[Updated on: Sat, 12 November 2011 14:09]

Report message to a moderator

Re: Second GeneratorFragment [message #756384 is a reply to message #756381] Sat, 12 November 2011 14:12 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13409
Registered: July 2009
Senior Member
same as the message i got - the solution is clear

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Second GeneratorFragment [message #756405 is a reply to message #756384] Sat, 12 November 2011 19:40 Go to previous message
Jens Missing name is currently offline Jens Missing nameFriend
Messages: 27
Registered: November 2011
Junior Member
now it works, great. Thanks for your help.
Previous Topic:Extend javascript grammer
Next Topic:How to write Language Intellesense
Goto Forum:
  


Current Time: Sun Mar 29 22:49:24 GMT 2020

Powered by FUDForum. Page generated in 0.03647 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top