Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » EVL file not getting called?
icon8.gif  EVL file not getting called? [message #523482] Fri, 26 March 2010 11:15 Go to next message
Adam Wynne is currently offline Adam Wynne
Messages: 7
Registered: July 2009
Junior Member
I am using EVL in a GMF .diagram project to validate a GMF editor, which is working when I test the plugin. But it does not work when I export the plugins and deploy them to a standalone instance of eclipse. The problem is that although EMF validation is working based on model constraints, the evl validation does not seem to be called at all. I can tell because when there is a problem with the model in GMF, I do not see my custom error messages from the evl file.

Any ideas?

This message appears in the .metadata/.log file:


!SESSION 2010-03-25 15:19:44.247 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_16
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.modeling.product
Command-line arguments:  -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.modeling.product

!ENTRY org.eclipse.osgi 2 1 2010-03-25 15:22:15.584
!MESSAGE NLS unused message: Components1Group_title in: messages

!ENTRY org.eclipse.osgi 2 1 2010-03-25 15:22:15.585
!MESSAGE NLS unused message: Components1Group_desc in: messages

!ENTRY org.eclipse.osgi 2 1 2010-03-25 15:22:15.585
!MESSAGE NLS unused message: Modules2Group_title in: messages

!ENTRY org.eclipse.osgi 2 1 2010-03-25 15:22:15.585
!MESSAGE NLS unused message: Modules2Group_desc in: messages

!ENTRY org.eclipse.osgi 2 1 2010-03-25 15:22:15.585
!MESSAGE NLS unused message: Advanced5Group_title in: messages

!ENTRY org.eclipse.osgi 2 1 2010-03-25 15:22:15.585
!MESSAGE NLS unused message: Advanced5Group_desc in: messages

!ENTRY org.eclipse.epsilon.common.dt 4 0 2010-03-25 15:22:18.948
!MESSAGE 
!STACK 0
java.lang.NullPointerException
	at org.eclipse.epsilon.evl.emf.validation.EValidatorPopulator.earlyStartup(EValidatorPopulator.java:60)
	at org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup(EarlyStartupRunnable.java:87)
	at org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartupRunnable.java:66)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.ui.internal.Workbench$55.run(Workbench.java:2192)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

!ENTRY org.eclipse.epsilon.common.dt 4 0 2010-03-25 15:22:18.975
!MESSAGE Error whilst running task to check conformance to registered metamodel of each model in the workspace.
!STACK 0
java.lang.NullPointerException
	at org.eclipse.epsilon.hutn.xmi.dt.ModelHashCache.getHashFor(ModelHashCache.java:46)
	at org.eclipse.epsilon.hutn.xmi.dt.startup.ModelHashChecker.previousHash(ModelHashChecker.java:70)
	at org.eclipse.epsilon.hutn.xmi.dt.startup.ModelHashChecker.hasHashChangedFor(ModelHashChecker.java:45)
	at org.eclipse.epsilon.hutn.xmi.dt.startup.CheckConformanceOnStartup$ConformanceChecker.metamodelHasChangedFor(CheckConformanceOnStartup.java:86)
	at org.eclipse.epsilon.hutn.xmi.dt.startup.CheckConformanceOnStartup$ConformanceChecker.checkConformanceOfEveryModelInWorkspaceWhoseMetamodelHasChanged(CheckConformanceOnStartup.java:67)
	at org.eclipse.epsilon.hutn.xmi.dt.startup.CheckConformanceOnStartup$ConformanceChecker.run(CheckConformanceOnStartup.java:49)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Re: EVL file not getting called? [message #523494 is a reply to message #523482] Fri, 26 March 2010 11:35 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi Adam,

Is the folder that contains your .evl file included in the build
(Manifest.MF->Build tab->Binary Build)?

Cheers,
Dimitris

Adam Wynne wrote:
> I am using EVL in a GMF .diagram project to validate a GMF editor, which
> is working when I test the plugin. But it does not work when I export
> the plugins and deploy them to a standalone instance of eclipse. The
> problem is that although EMF validation is working based on model
> constraints, the evl validation does not seem to be called at all. I
> can tell because when there is a problem with the model in GMF, I do not
> see my custom error messages from the evl file.
> Any ideas?
>
> This message appears in the .metadata/.log file:
>
>
>
> !SESSION 2010-03-25 15:19:44.247
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.6.0_16
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
> Framework arguments: -product org.eclipse.epp.package.modeling.product
> Command-line arguments: -os linux -ws gtk -arch x86_64 -product
> org.eclipse.epp.package.modeling.product
>
> !ENTRY org.eclipse.osgi 2 1 2010-03-25 15:22:15.584
> !MESSAGE NLS unused message: Components1Group_title in: messages
>
> !ENTRY org.eclipse.osgi 2 1 2010-03-25 15:22:15.585
> !MESSAGE NLS unused message: Components1Group_desc in: messages
>
> !ENTRY org.eclipse.osgi 2 1 2010-03-25 15:22:15.585
> !MESSAGE NLS unused message: Modules2Group_title in: messages
>
> !ENTRY org.eclipse.osgi 2 1 2010-03-25 15:22:15.585
> !MESSAGE NLS unused message: Modules2Group_desc in: messages
>
> !ENTRY org.eclipse.osgi 2 1 2010-03-25 15:22:15.585
> !MESSAGE NLS unused message: Advanced5Group_title in: messages
>
> !ENTRY org.eclipse.osgi 2 1 2010-03-25 15:22:15.585
> !MESSAGE NLS unused message: Advanced5Group_desc in: messages
>
> !ENTRY org.eclipse.epsilon.common.dt 4 0 2010-03-25 15:22:18.948
> !MESSAGE !STACK 0
> java.lang.NullPointerException
> at
> org.eclipse.epsilon.evl.emf.validation.EValidatorPopulator.e arlyStartup(EValidatorPopulator.java:60)
>
> at
> org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup (EarlyStartupRunnable.java:87)
>
> at
> org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartu pRunnable.java:66)
>
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.ui.internal.Workbench$55.run(Workbench.java:2192 )
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
> !ENTRY org.eclipse.epsilon.common.dt 4 0 2010-03-25 15:22:18.975
> !MESSAGE Error whilst running task to check conformance to registered
> metamodel of each model in the workspace.
> !STACK 0
> java.lang.NullPointerException
> at
> org.eclipse.epsilon.hutn.xmi.dt.ModelHashCache.getHashFor(Mo delHashCache.java:46)
>
> at
> org.eclipse.epsilon.hutn.xmi.dt.startup.ModelHashChecker.pre viousHash(ModelHashChecker.java:70)
>
> at
> org.eclipse.epsilon.hutn.xmi.dt.startup.ModelHashChecker.has HashChangedFor(ModelHashChecker.java:45)
>
> at
> org.eclipse.epsilon.hutn.xmi.dt.startup.CheckConformanceOnSt artup$ConformanceChecker.metamodelHasChangedFor(CheckConform anceOnStartup.java:86)
>
> at
> org.eclipse.epsilon.hutn.xmi.dt.startup.CheckConformanceOnSt artup$ConformanceChecker.checkConformanceOfEveryModelInWorks paceWhoseMetamodelHasChanged(CheckConformanceOnStartup.java: 67)
>
> at
> org.eclipse.epsilon.hutn.xmi.dt.startup.CheckConformanceOnSt artup$ConformanceChecker.run(CheckConformanceOnStartup.java: 49)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: EVL file not getting called? [message #523588 is a reply to message #523494] Fri, 26 March 2010 22:13 Go to previous messageGo to next message
Adam Wynne is currently offline Adam Wynne
Messages: 7
Registered: July 2009
Junior Member
that fixed it. thanks!
Re: EVL file not getting called? [message #587830 is a reply to message #523494] Fri, 26 March 2010 22:13 Go to previous message
Adam Wynne is currently offline Adam Wynne
Messages: 7
Registered: July 2009
Junior Member
that fixed it. thanks!
Previous Topic:tracing source/code from model developed in euginea based editor
Next Topic:Syntax of iterate operation
Goto Forum:
  


Current Time: Fri Aug 01 12:14:48 EDT 2014

Powered by FUDForum. Page generated in 0.03479 seconds