Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » [check] Problem with the metamodel
[check] Problem with the metamodel [message #529141] Fri, 23 April 2010 04:14 Go to next message
Eclipse UserFriend


Hi,
I have 2 projects, the first contains the MetaModel and the second contains the validation with check, but when i remove the project containing the model and i import it agian, it display an error on the check file, like what it doesnt now the MM.

Any Ideas?

Mahmoud
Re: [check] Problem with the metamodel [message #529147 is a reply to message #529141] Fri, 23 April 2010 04:26 Go to previous messageGo to next message
Eclipse UserFriend
Have you tried to restart Eclipse ?
I get problems close to yours sometimes, because all changes are not yet "included" in memory.

Remember that the project is still incubation (even if it is already ready-to-use).
Re: [check] Problem with the metamodel [message #529265 is a reply to message #529147] Fri, 23 April 2010 11:58 Go to previous messageGo to next message
Eclipse UserFriend
Hi Maxime,

you are right. The Xpand / Check IDE tooling does not invalidate its
caches properly on workspace changes.
See also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=303069

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 23.04.10 10:26, schrieb Maxime Lecourt:
> Have you tried to restart Eclipse ?
> I get problems close to yours sometimes, because all changes are not yet
> "included" in memory.
>
> Remember that the project is still incubation (even if it is already
> ready-to-use).
Re: [check] Problem with the metamodel [message #529525 is a reply to message #529265] Mon, 26 April 2010 05:34 Go to previous messageGo to next message
Eclipse UserFriend


Hi,

I still got the same problem evenif i hve restarted eclipse, i dont understand the validation still works but they are some markers on the check file
Re: [check] Problem with the metamodel [message #529560 is a reply to message #529525] Mon, 26 April 2010 07:25 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

this seems to be a bug. Would you please be so kind and file a ticket at
https://bugs.eclipse.org/bugs/ and attach a reproducable example?

Thanks in advance,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 26.04.10 11:34, schrieb elhamlaoui:
>
>
> Hi,
>
> I still got the same problem evenif i hve restarted eclipse, i dont
> understand the validation still works but they are some markers on the
> check file
Re: [check] Problem with the metamodel [message #529866 is a reply to message #529525] Tue, 27 April 2010 10:06 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

what version of Xpand do you use?
I tried 1.0.0 (see: http://www.eclipse.org/modeling/m2t/downloads/?project=xpand)
and 0.7.2 but in both versions the error markers disapear if I reimport the first project.

If the error still exists in 0.7.2 or 1.0.0 please be so kind and add a bugzilla (see last post) and add a little example project.

Regards
Darius
Re: [check] Problem with the metamodel [message #530356 is a reply to message #529866] Thu, 29 April 2010 09:51 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

i tried to make a debug and i got the following error:

Debug system initialization problem.Didn't find a plugin adapter for the file extension: 'chk'

N.B : the validation is still working even with this error



thios is my manifest :
Quote:


Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Validation
Bundle-SymbolicName: com.ensias.Projets.validation;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: com.ensias.validation.Activator
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.xtend.typesystem.emf;bundle-version="0.7.2",
org.eclipse.xtend.util.stdlib;bundle-version="0.7.2",
org.openarchitectureware.adapter.emf.check;bundle-version="4.3.1 ",
com.ensias.Projets;bundle-version="1.0.0"
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-ClassPath: .,
checks/



thnaks,
mahmoud
Re: [check] Problem with the metamodel [message #530363 is a reply to message #530356] Thu, 29 April 2010 09:58 Go to previous messageGo to next message
Eclipse UserFriend


hi,

I forget to add this error too :

Quote:

Error whilst running task to check conformance to registered metamodel of each model in the workspace.



yours
Re: [check] Problem with the metamodel [message #530369 is a reply to message #530356] Thu, 29 April 2010 10:09 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

you mix old oAW and new Xpand jars in your manifest.
Please remove the depedency to check
(is is included in xtend now).

Quote:

org.eclipse.xtend.typesystem.emf;bundle-version="0.7.2",
org.eclipse.xtend.util.stdlib;bundle-version="0.7.2",
org.openarchitectureware.adapter.emf.check;bundle-version="4.3.1 ",
...



Regards
Darius
Re: [check] Problem with the metamodel [message #530375 is a reply to message #530369] Thu, 29 April 2010 10:22 Go to previous messageGo to next message
Eclipse UserFriend


Hi Darius,

i remove the oaw dependency : but i still got this error ;


Quote:

Error whilst running task to check conformance to registered metamodel of each model in the workspace.


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)


mahmoud, any ideas
Re: [check] Problem with the metamodel [message #530471 is a reply to message #530375] Thu, 29 April 2010 13:56 Go to previous messageGo to next message
Eclipse UserFriend
Hello.

Do your problem with the error marker still exist after removing the check dependency? I need to know, because I would have to fix it Smile

Regards
Darius
Re: [check] Problem with the metamodel [message #530597 is a reply to message #530471] Fri, 30 April 2010 05:42 Go to previous messageGo to next message
Eclipse UserFriend



Hello Darius,

Soory to have to tell you this but i still got both errors that i mentionned before even if the calidation are still workin

i got this when i double click on the marker :
Quote:

Warning: Debug system initialization problem.
Didn't find a plugin adapter for the file extension: 'chk'
plug-in: org.eclipse.emf.mwe.ui



an the other one is in te log file :

Quote:

Error whilst running task to check conformance to registered metamodel of each model in the workspace.


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: [check] Problem with the metamodel [message #530627 is a reply to message #530597] Fri, 30 April 2010 07:16 Go to previous messageGo to next message
Eclipse UserFriend


hello,

Good you have a look in my activator perhaps it contains some thing weird :

Quote:


package com.ensias.validation;

import org.eclipse.core.runtime.Plugin;
import org.osgi.framework.BundleContext;
/**
* The activator class controls the plug-in life cycle
*/
public class Activator extends Plugin {
// The plug-in ID
public static final String PLUGIN_ID = "com.ensias.validation";

// The shared instance
private static Activator plugin;

/**
* The constructor
*/
public Activator() {
}

/*
* (non-Javadoc)
* @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.Bu ndleContext)
*/
public void start(BundleContext context) throws Exception {
org.eclipse.xtend.typesystem.emf.check.CheckRegistry.getInst ance();
super.start(context);
plugin = this;
}

/*
* (non-Javadoc)
* @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.Bund leContext)
*/
public void stop(BundleContext context) throws Exception {
plugin = null;
super.stop(context);
}

/**
* Returns the shared instance
*
* @return the shared instance
*/
public static Activator getDefault() {
return plugin;
}

}




thanks,

mahmoud
Re: [check] Problem with the metamodel [message #530637 is a reply to message #530597] Fri, 30 April 2010 08:00 Go to previous message
Eclipse UserFriend
elhamlaoui wrote on Fri, 30 April 2010 11:42

Soory to have to tell you this but i still got both errors that i mentionned before even if the calidation are still workin

i got this when i double click on the marker :
Quote:

Warning: Debug system initialization problem.
Didn't find a plugin adapter for the file extension: 'chk'
plug-in: org.eclipse.emf.mwe.ui




I can reproduce the error. I also get two error markers an the warning message.

But I do not get this message in the log.
Maybe it is not an Xpand problem?

Quote:

Error whilst running task to check conformance to registered metamodel of each model in the workspace.

java.lang.NullPointerException
at org.eclipse.epsilon.hutn.xmi.dt.ModelHashCache.getHashFor(Mo delHashCache.java:46)
...


Previous Topic:Externalization of check messages
Next Topic:Check: problem with a constraint
Goto Forum:
  


Current Time: Wed Jul 30 14:11:59 EDT 2025

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

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

Back to the top