Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo/MoDisco] Problem generating Java source code
[Acceleo/MoDisco] Problem generating Java source code [message #528009] Sun, 18 April 2010 17:31 Go to next message
Philip Mayer is currently offline Philip MayerFriend
Messages: 30
Registered: July 2009
Member
Dear all,

I am having a problem generating java source code from java models using MoDisco (similar but not identical to the problem of Timothy Marc).

I am running a Junit4 PLUGIN test case to create a java model and to write it out as java code.

First: Creating the model works nicely, and it is serialised just fine (I can open the resulting file "x.javaxmi" in Eclipse with the MoDisco Model Browser):

Model model = JavaFactory.eINSTANCE.createModel();
ResourceSet resourceSet = new ResourceSetImpl();
URI fileURI = URI.createFileURI("x.javaxmi");

XMIResource xmlResource = (XMIResource) resourceSet
  .createResource(fileURI);
xmlResource.getContents().add(model);
xmlResource.save(null);


The problem arises when I try to generate code with the following fragment:

Generate_JavaStructures s = new Generate_JavaStructures(model,
	new File("."), new ArrayList<Object>());
s.doGenerate(new BasicMonitor());


I get the error message

org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Package with uri 'http://www.eclipse.org/acceleo/mtl/0.8.0' not found. 


I have installed a plain helios m6 to test this (I understood that I need helios, correct?) I have used the following packages, nothing else is installed;

I installed eclipse-modeling-helios-M6-incubation-win32.zip, afterwards, via downloaded JAR update sites and the "Install New Software", the following (all these were required to allow me to finally install "MODISCO-Update-0.8.0M6"


  • m2t-jet-Update-1.1.0M6
  • m2m-atl-Update-3.1.0M6
  • mdt-ocl-Update-3.0.0M6
  • m2t-acceleo-Update-incubation-3.0.0M6
  • MODISCO-Update-0.8.0M6


Please let me know how to correct this problem, and whether there is an easier way of installing all of this - I am probably doing something horribly wrong Wink

(By the way, another question would by why I need to serialize the model first - the generation seems to require an attached resource set. Is there another way?).

Thanks a lot!

Philip

[Updated on: Mon, 19 April 2010 06:35]

Report message to a moderator

Re: [Acceleo/MoDisco] Problem generating Java source code [message #528132 is a reply to message #528009] Mon, 19 April 2010 13:19 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------060007020206010203060905
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi Philip,

I'd say yours is the "easy" problem I told Timothy Marc about at the
very beginning of his thread (and which wasn't the issue for him :p).

First of all, Helios is not required for Acceleo 3.0. We're compatible
with Eclipse 3.4, Eclipse 3.5 and Eclipse 3.6. The changes that can
arise are behavioral changes in the OCL parsing : an Acceleo module that
parses well in 3.6 (with OCL 3.0) may not parse in Eclipse 3.4 (with OCL
1.2). However a module that can be parsed in 3.4 will parser in 3.6. The
runtime is fully compatible as far as my tests have gone : a template
parsed in 3.6, 3.5 or 3.4 can be evaluated in all three seamlessly.

That aside, what you have here is that you compiled a module (mtl file)
with Acceleo previous to 3.0M6 (thus creating an emtl file) ; yet you
try to load and evaluate this compiled emtl with Acceleo 3.0M6. The
issue is : we changed the Acceleo metamodels' URIs for M6. What was
"http://www.eclipse.org/acceleo/mtl/0.8.0" before is now
"http://www.eclipse.org/acceleo/mtl/3.0".

Recompile your generation modules with your current Acceleo (3.0M6) and
you shouldn't see this problem again.

Laurent Goubet
Obeo

P.S: if you are not responsible for the module files
("generate_javastucture.mtl"), but try to run the generation from your
code anyway, you'll have to switch back to the Acceleo version the
module manager uses, in this case, anything previous to 3.0M6.

Philip Mayer wrote:
> Dear all,
>
> I am having a problem generating java source code from java models using
> MoDisco (similar but not identical to the problem of Timothy Marc).
>
> I am running a Junit4 PLUGIN test case to create a java modeland to
> serialise it.
> First: Creating the model works nicely, and it is serialised just fine
> (I can open the resulting file "x.javaxmi" in Eclipse with the MoDisco
> Model Browser):
>
>
> Model model = JavaFactory.eINSTANCE.createModel();
> ResourceSet resourceSet = new ResourceSetImpl();
> URI fileURI = URI.createFileURI("x.javaxmi");
>
> XMIResource xmlResource = (XMIResource) resourceSet
> .createResource(fileURI);
> xmlResource.getContents().add(model);
> xmlResource.save(null);
>
>
> The problem arises when I try to generate code with the following fragment:
>
>
> Generate_JavaStructures s = new Generate_JavaStructures(model,
> new File("."), new ArrayList<Object>());
> s.doGenerate(new BasicMonitor());
>
>
> I get the error message
>
>
> org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Package with
> uri 'http://www.eclipse.org/acceleo/mtl/0.8.0' not found.
>
> I have installed a plain helios m6 to test this (I understood that I
> need helios, correct?) I have used the following packages, nothing else
> is installed;
>
> I installed eclipse-modeling-helios-M6-incubation-win32.zip, afterwards,
> via downloaded JAR update sites and the "Install New Software", the
> following (all these were required to allow me to finally install
> "MODISCO-Update-0.8.0M6"
>
>
> m2t-jet-Update-1.1.0M6
> m2m-atl-Update-3.1.0M6
> mdt-ocl-Update-3.0.0M6
> m2t-acceleo-Update-incubation-3.0.0M6
> MODISCO-Update-0.8.0M6
>
>
> Please let me know how to correct this problem, and whether there is an
> easier way of installing all of this - I am probably doing something
> horribly wrong ;)
>
> Thanks a lot!
>
> Philip
>


--------------060007020206010203060905
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="laurent_goubet.vcf"

YmVnaW46dmNhcmQNCmZuOkxhdXJlbnQgR291YmV0DQpuOkdvdWJldDtMYXVy ZW50DQpvcmc6
PGEgaHJlZj0iaHR0cDovL3d3dy5vYmVvLmZyIj5PYmVvPC9hPg0KZW1haWw7 aW50ZXJuZXQ6
bGF1cmVudC5nb3ViZXRAb2Jlby5mcg0KdXJsOmh0dHA6Ly93d3cub2Jlby5m cg0KdmVyc2lv
bjoyLjENCmVuZDp2Y2FyZA0KDQo=
--------------060007020206010203060905--
Re: [Acceleo/MoDisco] Problem generating Java source code [message #528196 is a reply to message #528132] Mon, 19 April 2010 16:28 Go to previous messageGo to next message
Philip Mayer is currently offline Philip MayerFriend
Messages: 30
Registered: July 2009
Member
Dear Laurent,

first of all, thanks for your answer and for pointing me into the right direction. I believe that my problem is more with MoDisco than with Acceleo.

Edit: I have thus posted my question in the MoDisco forum.

Thanks,

Philip

[Updated on: Mon, 19 April 2010 19:36]

Report message to a moderator

Re: [Acceleo/MoDisco] Problem generating Java source code [message #528329 is a reply to message #528196] Tue, 20 April 2010 07:54 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030005040201010405030009
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi Philip,

Ok, much I didn't understand in your first post, notably the relation
with modisco. In short : you need to install an earlier version of
Acceleo to use the generators bundled with modisco. Easiest way to do
this is to go to
http://www.eclipse.org/modeling/m2t/downloads/?project=accel eo and
download the all in one update site for the 0.9.0M5 version (which is
the build previous to 3.0.0M6). This particular update site is on
http://www.eclipse.org/modeling/download.php?file=/modeling/ m2t/acceleo/downloads/drops/0.9.0/S201002020636/m2t-acceleo- Update-incubation-0.9.0M5.zip
..

For a longer explanation, see my comments inlined below :p.

Laurent Goubet
Obeo

Philip Mayer wrote:
> Dear Laurent,
>
> first of all, thanks for your answer. I believe, however, that my
> problem is more with MoDisco than with Acceleo.
> What I am trying to do is invoke the modisco java code generator, as
> described on the website
> http://wiki.eclipse.org/MoDisco/Components/Java/Documentatio n/0.8#Java_Generation
> So let's go away from my initial code and to just invoking this code
> generation.
>
>> P.S: if you are not responsible for the module files
>> ("generate_javastucture.mtl"),
>
> You are correct, I am not. I am simply trying to use this file, which is
> provided in the "org.eclipse.gmt.modisco.java.generation" plugin, to
> generate java code. As far as I understand the picture, the code
> generation is a modisco feature, but it requires acceleo to run (and
> herein lies the problem).

Yup, and they used Acceleo 0.8.* or 0.9.* to compile their generator,
which is why you cannot launch the generation with Acceleo 3.0 (see my
previous mail).

>
> Now, the MoDisco website (http://wiki.eclipse.org/MoDisco/Components)
> states that the full java metamodel and the code generation is only
> available in "MoDisco 0.8". The same page also says that "MoDisco 0.8"
> is for helios.
> So I assumed that I need Helios. I actually tried checking out the
> modisco plugins from SVN in a galileo eclipse instance, too, but there
> were lots of compile errors (for example, the class import
> org.eclipse.acceleo.engine.generation.strategy.DefaultStrate gy is not
> found in the Generate_JavaStructure.java file). So I assume that it
> indeed does not work in Galileo.

True, my comment on us being compatible with Ganymede, Galileo and
Helios was only related to Acceleo ; maintaining compatibility with
different versions of Eclipse is not mandatory and other projects (such
as MoDisco) may not do it.

>
> I thus installed everything in Helios M6 + Acceleo 3.0.0 + the milestone
> modisco update site
> ( http://download.eclipse.org/modeling/gmt/modisco/updates/mil estones/).
> Now, the website
> http://wiki.eclipse.org/MoDisco/Components/Java/Documentatio n/0.8#Java_Generation
> states two methods of invoking the code generator:
>
> a) use the import plugin wizard for the java.generation package and run
> an Acceleo launch configuration for the Generate_JavaStructures class.
> When I do this, I get (in the error log)
>
>
> ERROR: Couldn't load class
> org.eclipse.gmt.modisco.java.generation.files.Generate_JavaS tructures
> from project org.eclipse.gmt.modisco.java.generation
>
> WARN:
> org.eclipse.osgi.framework.internal.core.Framework$Duplicate BundleException:
> Bundle "org.eclipse.gmt.modisco.java.generation" version
> "0.8.0.v201003161136" has already been installed from:
> reference:file:plugins/org.eclipse.gmt.modisco.java.generati on_0.8.0.v201003161136.jar
>

The warning and error are not related, the warning being an information
that we keep for debugging purposes (it'll be removed from the Helios
release, we're mostly done with the underlying problem's correction).
And the error indicating a classpath issue ... yet indeed the issue
seems to lie in having a generator project in both workspace and
installed plugins.

>
>
> b) again, use the import plugin wizard for the java.generation package ,
> but launch the main class not with a Acceleo launch config but as
> standard java app (this should be equivalent to launching it from my own
> plugin) This yields:
>
>
> org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Package with
> uri 'http://www.eclipse.org/acceleo/mtl/0.8.0' not found.
>

And we're back at the initial issue : MoDisco compiles its Acceleo
generator with a version prior to 3.0M6, and you try to load it with
this version. Uninstall 3.0M6 and switch back to anything previous to
it, and the issue shall be gone.

>
>
> So, in a) I seem to not be allowed to have a copy of the .generation
> project in the workspace and somehow it cannot find the class, and in
> b), the acceleo version does not match, because the
> generate_javastructure.emtl which is provided in "MoDisco 0.8" in the
> "org.eclipse.gmt.modisco.java.generation" plugin carries the namespace
> "http://www.eclipse.org/acceleo/mtl/0.8.0", but the Acceleo version
> installed in Helios is actually 3.0.0.
>
> I sadly do not know how to proceed. Can you point out to me how to set
> up an Eclipse installation in which I can use the MoDisco java model
> generator? What is the preferred way of doing this?
>
>
> Thanks,
>
> Philip


--------------030005040201010405030009
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="laurent_goubet.vcf"

YmVnaW46dmNhcmQNCmZuOkxhdXJlbnQgR291YmV0DQpuOkdvdWJldDtMYXVy ZW50DQpvcmc6
PGEgaHJlZj0iaHR0cDovL3d3dy5vYmVvLmZyIj5PYmVvPC9hPg0KZW1haWw7 aW50ZXJuZXQ6
bGF1cmVudC5nb3ViZXRAb2Jlby5mcg0KdXJsOmh0dHA6Ly93d3cub2Jlby5m cg0KdmVyc2lv
bjoyLjENCmVuZDp2Y2FyZA0KDQo=
--------------030005040201010405030009--
Re: [Acceleo/MoDisco] Problem generating Java source code [message #528393 is a reply to message #528329] Tue, 20 April 2010 11:34 Go to previous messageGo to next message
Philip Mayer is currently offline Philip MayerFriend
Messages: 30
Registered: July 2009
Member
Dear Laurent,

thanks again for your answer, I now have a better understanding of the relationship between the components.

(I have moved my question also to http://www.eclipse.org/forums/index.php?t=msg&goto=52823 9&#msg_528239 but there is no reply yet).

I have done as you suggested and installed HeliosM6 Classic + Acceleo (m2t-acceleo-Update-incubation-0.9.0M5) + MoDisco 0.8.0.

regarding a): Trying to run "Generate_JavaStructures.java" as an Acceleo launch config now is not possible because it does not even create the launch configuration, instead giving a dialog with this message:

Plug-In org.eclipse.acceleo.ide.ui was unable to load class org.eclipse.acceleo.internal.ide.ui.launching.AcceleoApplicationTabGroup


regarding b): This yields

Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/acceleo/common/internal/utils/compatibility/AcceleoOCLStdLibReflection
	at org.eclipse.acceleo.engine.internal.environment.AcceleoEnvironment.getOCLStandardLibraryReflection(AcceleoEnvironment.java:66)
	at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.<init>(AcceleoEvaluationVisitor.java:145)
	at org.eclipse.acceleo.engine.internal.environment.AcceleoEnvironmentFactory.createEvaluationVisitor(AcceleoEnvironmentFactory.java:150)
	at org.eclipse.ocl.internal.evaluation.QueryImpl.evaluate(QueryImpl.java:146)
	at org.eclipse.ocl.ecore.QueryImpl.evaluate(QueryImpl.java:62)
	at org.eclipse.acceleo.engine.generation.AcceleoEngine.doEvaluate(AcceleoEngine.java:320)
	at org.eclipse.acceleo.engine.generation.AcceleoEngine.evaluate(AcceleoEngine.java:148)
	at org.eclipse.acceleo.engine.service.AcceleoService.doGenerateTemplate(AcceleoService.java:593)
	at org.eclipse.acceleo.engine.service.AcceleoService.doGenerate(AcceleoService.java:438)
	at org.eclipse.gmt.modisco.java.generation.files.Generate_JavaStructures.doGenerate(Generate_JavaStructures.java:301)
	at org.eclipse.gmt.modisco.java.generation.files.Generate_JavaStructures.main(Generate_JavaStructures.java:280)
Caused by: java.lang.ClassNotFoundException: org.eclipse.acceleo.common.internal.utils.compatibility.AcceleoOCLStdLibReflection
	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)
	at java.lang.ClassLoader.loadClassInternal(Unknown Source)
	... 11 more


Is there anything else I am missing? Installation went smoothly with the install manager without any errors.

Philip
Re: [Acceleo/MoDisco] Problem generating Java source code [message #528402 is a reply to message #528393] Tue, 20 April 2010 12:05 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------050307030303080409020303
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Philip,

I fail to see where the issue for a) comes from... I'll have to look a
bit more into it.

For b), this seems to be a problem when you select "Java application" in
the launch configuration ; this is under investigation, but I'd say
we're missing a reexport dependency somewhere ^^. In eclipse, select Run
=> Run configurations... => select your Acceleo launch config and in the
dropdown menu at the bottom of the panel switch from "Java application"
to "Acceleo plug-in application". This should allow you to run the
generation.

Laurent Goubet
Obeo

Philip Mayer wrote:
> Dear Laurent,
>
> thanks again for your answer, I now have a better understanding of the
> relationship between the components.
>
> (I have moved my question also to
> http://www.eclipse.org/forums/index.php?t=msg&goto=52823 9&#msg_528239
> but there is no reply yet).
>
> I have done as you suggested and installed HeliosM6 Classic + Acceleo
> (m2t-acceleo-Update-incubation-0.9.0M5) + MoDisco 0.8.0.
>
> regarding a): Trying to run "Generate_JavaStructures.java" as an Acceleo
> launch config now is not possible because it does not even create the
> launch configuration, instead giving a dialog with this message:
>
>
> Plug-In org.eclipse.acceleo.ide.ui was unable to load class
> org.eclipse.acceleo.internal.ide.ui.launching.AcceleoApplica tionTabGroup
>
>
> regarding b): This yields
>
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/eclipse/acceleo/common/internal/utils/compatibility/Acce leoOCLStdLibReflection
>
> at
> org.eclipse.acceleo.engine.internal.environment.AcceleoEnvir onment.getOCLStandardLibraryReflection(AcceleoEnvironment.ja va:66)
>
> at
> org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvalua tionVisitor. <init>(AcceleoEvaluationVisitor.java:145)
>
> at
> org.eclipse.acceleo.engine.internal.environment.AcceleoEnvir onmentFactory.createEvaluationVisitor(AcceleoEnvironmentFact ory.java:150)
>
> at
> org.eclipse.ocl.internal.evaluation.QueryImpl.evaluate(Query Impl.java:146)
> at org.eclipse.ocl.ecore.QueryImpl.evaluate(QueryImpl.java:62)
> at
> org.eclipse.acceleo.engine.generation.AcceleoEngine.doEvalua te(AcceleoEngine.java:320)
>
> at
> org.eclipse.acceleo.engine.generation.AcceleoEngine.evaluate (AcceleoEngine.java:148)
>
> at
> org.eclipse.acceleo.engine.service.AcceleoService.doGenerate Template(AcceleoService.java:593)
>
> at
> org.eclipse.acceleo.engine.service.AcceleoService.doGenerate (AcceleoService.java:438)
>
> at
> org.eclipse.gmt.modisco.java.generation.files.Generate_JavaS tructures.doGenerate(Generate_JavaStructures.java:301)
>
> at
> org.eclipse.gmt.modisco.java.generation.files.Generate_JavaS tructures.main(Generate_JavaStructures.java:280)
>
> Caused by: java.lang.ClassNotFoundException:
> org.eclipse.acceleo.common.internal.utils.compatibility.Acce leoOCLStdLibReflection
>
> 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)
> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> ... 11 more
>
>
> Is there anything else I am missing? Installation went smoothly with the
> install manager without any errors.
>
> Philip


--------------050307030303080409020303
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="laurent_goubet.vcf"

YmVnaW46dmNhcmQNCmZuOkxhdXJlbnQgR291YmV0DQpuOkdvdWJldDtMYXVy ZW50DQpvcmc6
PGEgaHJlZj0iaHR0cDovL3d3dy5vYmVvLmZyIj5PYmVvPC9hPg0KZW1haWw7 aW50ZXJuZXQ6
bGF1cmVudC5nb3ViZXRAb2Jlby5mcg0KdXJsOmh0dHA6Ly93d3cub2Jlby5m cg0KdmVyc2lv
bjoyLjENCmVuZDp2Y2FyZA0KDQo=
--------------050307030303080409020303--
Re: [Acceleo/MoDisco] Problem generating Java source code [message #528405 is a reply to message #528402] Tue, 20 April 2010 12:10 Go to previous messageGo to next message
Philip Mayer is currently offline Philip MayerFriend
Messages: 30
Registered: July 2009
Member
Dear Laurent,

thanks for your answer. Since I cannot create an Acceleo launch config, I also cannot get to the combo you mentioned. In b), I was actually really just launching a java app.

Anyway, the error message from a) (and now also b)) logs the following entry in the error log, it might help you:

org.osgi.framework.BundleException: Exception in org.eclipse.acceleo.ide.ui.AcceleoUIActivator.start() of bundle org.eclipse.acceleo.ide.ui.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:806)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:279)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:406)
at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:265)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:106)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:453)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:393)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:469)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:338)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:232)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1192)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:904)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupExtension.newTabGroup(LaunchConfigurationTabGroupExtension.java:174)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationPresentationManager.getTabGroup(LaunchConfigurationPresentationManager.java:209)
at org.eclipse.debug.internal.ui.launchConfigurations.CreateLaunchConfigurationAction.performAction(CreateLaunchConfigurationAction.java:69)
at org.eclipse.debug.internal.ui.launchConfigurations.AbstractLaunchConfigurationAction$1.run(AbstractLaunchConfigurationAction.java:103)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.debug.internal.ui.launchConfigurations.AbstractLaunchConfigurationAction.run(AbstractLaunchConfigurationAction.java:106)
at org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:168)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1050)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4037)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3628)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.open(LaunchConfigurationsDialog.java:1123)
at org.eclipse.debug.ui.DebugUITools$1.run(DebugUITools.java:398)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:406)
at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:340)
at org.eclipse.debug.ui.actions.OpenLaunchDialogAction.run(OpenLaunchDialogAction.java:81)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1050)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1074)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1059)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:773)
at org.eclipse.jface.action.ActionContributionItem$9.handleEvent(ActionContributionItem.java:1284)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1050)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4037)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3628)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2416)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2380)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2229)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:504)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:497)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1406)
Caused by: java.lang.AbstractMethodError: org.eclipse.acceleo.internal.compatibility.parser.ast.ocl.environment.AcceleoUMLReflectionHelios.addConstrainedElement(Ljava/lang/Object;Lorg/eclipse/emf/ecore/EObject;)V
at org.eclipse.ocl.parser.AbstractOCLAnalyzer.invCS(AbstractOCLAnalyzer.java:1431)
at org.eclipse.ocl.parser.AbstractOCLAnalyzer.invOrDefCS(AbstractOCLAnalyzer.java:1399)
at org.eclipse.ocl.parser.OCLAnalyzer.parseInvOrDefCS(OCLAnalyzer.java:266)
at org.eclipse.ocl.internal.helper.HelperUtil.parseQuery(HelperUtil.java:164)
at org.eclipse.ocl.internal.helper.OCLHelperImpl.createQuery(OCLHelperImpl.java:175)
at org.eclipse.ocl.ecore.OCLHelperImpl.createQuery(OCLHelperImpl.java:90)
at org.eclipse.acceleo.internal.parser.ast.ocl.OCLParser.createQuery(OCLParser.java:786)
at org.eclipse.acceleo.internal.parser.ast.ocl.OCLParser.parseOCLExpression(OCLParser.java:754)
at org.eclipse.acceleo.internal.parser.ast.ASTFactory.getOrCreateOCLExpression(ASTFactory.java:321)
at org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.transformStepResolve(CST2ASTConverterWithResolver.java:1045)
at org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.transformStepResolveOwnedModuleElement(CST2ASTConverterWithResolver.java:1095)
at org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.transformStepResolve(CST2ASTConverterWithResolver.java:150)
at org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.resolveAST(CST2ASTConverterWithResolver.java:74)
at org.eclipse.acceleo.parser.AcceleoSourceBuffer.resolveAST(AcceleoSourceBuffer.java:295)
at org.eclipse.acceleo.parser.AcceleoParser.parse(AcceleoParser.java:148)
at org.eclipse.acceleo.parser.AcceleoParser.parse(AcceleoParser.java:63)
at org.eclipse.acceleo.ide.ui.resources.AcceleoProject.computeSaveURIs(AcceleoProject.java:846)
at org.eclipse.acceleo.ide.ui.resources.AcceleoProject.getOrCreatePlatformPluginSavedURIs(AcceleoProject.java:781)
at org.eclipse.acceleo.ide.ui.resources.AcceleoProject.getAllPlatformPluginOutputFiles(AcceleoProject.java:738)
at org.eclipse.acceleo.ide.ui.AcceleoUIActivator.start(AcceleoUIActivator.java:62)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)
... 77 more
Root exception:
java.lang.AbstractMethodError: org.eclipse.acceleo.internal.compatibility.parser.ast.ocl.environment.AcceleoUMLReflectionHelios.addConstrainedElement(Ljava/lang/Object;Lorg/eclipse/emf/ecore/EObject;)V
at org.eclipse.ocl.parser.AbstractOCLAnalyzer.invCS(AbstractOCLAnalyzer.java:1431)
at org.eclipse.ocl.parser.AbstractOCLAnalyzer.invOrDefCS(AbstractOCLAnalyzer.java:1399)
at org.eclipse.ocl.parser.OCLAnalyzer.parseInvOrDefCS(OCLAnalyzer.java:266)
at org.eclipse.ocl.internal.helper.HelperUtil.parseQuery(HelperUtil.java:164)
at org.eclipse.ocl.internal.helper.OCLHelperImpl.createQuery(OCLHelperImpl.java:175)
at org.eclipse.ocl.ecore.OCLHelperImpl.createQuery(OCLHelperImpl.java:90)
at org.eclipse.acceleo.internal.parser.ast.ocl.OCLParser.createQuery(OCLParser.java:786)
at org.eclipse.acceleo.internal.parser.ast.ocl.OCLParser.parseOCLExpression(OCLParser.java:754)
at org.eclipse.acceleo.internal.parser.ast.ASTFactory.getOrCreateOCLExpression(ASTFactory.java:321)
at org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.transformStepResolve(CST2ASTConverterWithResolver.java:1045)
at org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.transformStepResolveOwnedModuleElement(CST2ASTConverterWithResolver.java:1095)
at org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.transformStepResolve(CST2ASTConverterWithResolver.java:150)
at org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.resolveAST(CST2ASTConverterWithResolver.java:74)
at org.eclipse.acceleo.parser.AcceleoSourceBuffer.resolveAST(AcceleoSourceBuffer.java:295)
at org.eclipse.acceleo.parser.AcceleoParser.parse(AcceleoParser.java:148)
at org.eclipse.acceleo.parser.AcceleoParser.parse(AcceleoParser.java:63)
at org.eclipse.acceleo.ide.ui.resources.AcceleoProject.computeSaveURIs(AcceleoProject.java:846)
at org.eclipse.acceleo.ide.ui.resources.AcceleoProject.getOrCreatePlatformPluginSavedURIs(AcceleoProject.java:781)
at org.eclipse.acceleo.ide.ui.resources.AcceleoProject.getAllPlatformPluginOutputFiles(AcceleoProject.java:738)
at org.eclipse.acceleo.ide.ui.AcceleoUIActivator.start(AcceleoUIActivator.java:62)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:279)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:406)
at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:265)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:106)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:453)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:393)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:469)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:338)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:232)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1192)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:904)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupExtension.newTabGroup(LaunchConfigurationTabGroupExtension.java:174)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationPresentationManager.getTabGroup(LaunchConfigurationPresentationManager.java:209)
at org.eclipse.debug.internal.ui.launchConfigurations.CreateLaunchConfigurationAction.performAction(CreateLaunchConfigurationAction.java:69)
at org.eclipse.debug.internal.ui.launchConfigurations.AbstractLaunchConfigurationAction$1.run(AbstractLaunchConfigurationAction.java:103)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.debug.internal.ui.launchConfigurations.AbstractLaunchConfigurationAction.run(AbstractLaunchConfigurationAction.java:106)
at org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:168)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1050)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4037)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3628)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.open(LaunchConfigurationsDialog.java:1123)
at org.eclipse.debug.ui.DebugUITools$1.run(DebugUITools.java:398)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:406)
at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:340)
at org.eclipse.debug.ui.actions.OpenLaunchDialogAction.run(OpenLaunchDialogAction.java:81)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1050)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1074)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1059)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:773)
at org.eclipse.jface.action.ActionContributionItem$9.handleEvent(ActionContributionItem.java:1284)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1050)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4037)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3628)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2416)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2380)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2229)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:504)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:497)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1406)


and previously,

Can't find bundle for base name feature, locale de_DE


Thanks,

Philip
Re: [Acceleo/MoDisco] Problem generating Java source code [message #528416 is a reply to message #528405] Tue, 20 April 2010 12:50 Go to previous messageGo to next message
Fabien Giquel is currently offline Fabien GiquelFriend
Messages: 147
Registered: July 2009
Senior Member
Hi Philip, Hi Laurent,

on MoDisco forum, i propose a way for using MoDisco java generation
component with last Acceleo 3.0 milestone.

http://www.eclipse.org/forums/index.php?t=msg&goto=52823 9&#msg_528239

Regards.


----------------------------------------------------
Fabien GIQUEL
R&D Engineer
Mia-Software
rue Nina Simone
44000 NANTES
----------------------------------------------------
Re: [Acceleo/MoDisco] Problem generating Java source code [message #528423 is a reply to message #528416] Tue, 20 April 2010 13:18 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------070700020608070200050407
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Thanks Fabien,

Using the latest Acceleo build should help on this issue as what Philip
encounters with his last attempt really sounds odd to me.

You talk about problems because of the changes we released along with
Acceleo 3.0M6, do not hesitate to raise bugs or discussions on the
bugzilla or here when you encounter strange behavior with Acceleo ...
Knowing about them allows us to fix the issues :).

Philip, Can you confirm whether Fabien's advice does the trick?

Laurent Goubet
Obeo

Fabien wrote:
> Hi Philip, Hi Laurent,
>
> on MoDisco forum, i propose a way for using MoDisco java generation
> component with last Acceleo 3.0 milestone.
>
> http://www.eclipse.org/forums/index.php?t=msg&goto=52823 9&#msg_528239
>
> Regards.


--------------070700020608070200050407
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="laurent_goubet.vcf"

YmVnaW46dmNhcmQNCmZuOkxhdXJlbnQgR291YmV0DQpuOkdvdWJldDtMYXVy ZW50DQpvcmc6
PGEgaHJlZj0iaHR0cDovL3d3dy5vYmVvLmZyIj5PYmVvPC9hPg0KZW1haWw7 aW50ZXJuZXQ6
bGF1cmVudC5nb3ViZXRAb2Jlby5mcg0KdXJsOmh0dHA6Ly93d3cub2Jlby5m cg0KdmVyc2lv
bjoyLjENCmVuZDp2Y2FyZA0KDQo=
--------------070700020608070200050407--
Re: [Acceleo/MoDisco] Problem generating Java source code [message #528479 is a reply to message #528423] Tue, 20 April 2010 16:25 Go to previous message
Philip Mayer is currently offline Philip MayerFriend
Messages: 30
Registered: July 2009
Member
Dear Laurent,

yes, indeed the solution did work out great for me.

So, many thanks also to you for your support and answering my questions (which is, as I said in the other thread, not common) ! Smile


Philip
Previous Topic:Couldn´t find definition for
Next Topic:how to get names from some metaclasses
Goto Forum:
  


Current Time: Thu Apr 25 08:26:13 GMT 2024

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

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

Back to the top