Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » EVL file not getting called?
EVL file not getting called? [message #587778] Fri, 26 March 2010 15: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.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)
Re: EVL file not getting called? [message #587799 is a reply to message #587778] Fri, 26 March 2010 15:35 Go to previous 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
Previous Topic:Problem with epsilon.eol: Does not resolve referenced metamodels (Type 'Ecore!EPackage' not found)
Next Topic:Problem with epsilon.eol: Does not resolve referenced metamodels (Type 'Ecore!EPackage' not found)
Goto Forum:
  


Current Time: Fri Oct 24 08:39:34 GMT 2014

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

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