Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMT (Generative Modeling Technologies) » [GEMS] JPLException?
[GEMS] JPLException? [message #376302] Sun, 04 March 2007 22:16 Go to next message
Eclipse UserFriend
Originally posted by: ljordan.gmx.net

Hi,

I am playing around with GEMS currently. Unfortunately I seem to make
a mistake that I am unable to figure out.

I followed the instructions for installing GEMS that I found on the
sourceforge website and in the users guide. Then, for testing: I
created a small metamodel, just an entity named Foo which is the root
and contains another entity named Bar.

I generate a DSML tool from the model and see - almost - what I would
expect: on the right two types, Foo and Bar. And I can place the Bar
in a new Model (which is a Foo). The interesting thing is that when I
select the Bar type in my editor and place it into the model I can see
in the eclipse instance from which I am running my generated modelling
tool a number of JPLExceptions stating

jpl.JPLException: jpl_do_pvm_init(): called while jpl_status !=
JPL_INIT_PVM_MAYBE.

I think this is also the reason which leads to another problem, when
putting a third entity Baz in the metamodel that is contained by Bar.
I can't place it anywhere in the generated tool which is likely due to
the failed prolog query. The javadoc documentation of the JPLException
says that it denotes an error in the (Java-Prolog?-)interface code, so
I suspect this is not a gems problem.

The tools I am using are Eclipse 3.2.2, EMF 2.2.2, GEF 3.2.2, the GEMS
support plugins from Jules' website (kent OCL), GEMS 2.0.5_01 and
SWI-Prolog 5.6.29

Any hints or recommendations what I could try to figure out what the
problem is are very welcome.


Thanks in advance

Lars
Re: [GEMS] JPLException? [message #376306 is a reply to message #376302] Sat, 17 March 2007 23:19 Go to previous message
Jules White is currently offline Jules WhiteFriend
Messages: 10
Registered: July 2009
Junior Member
Hi Lars,

This exception is caused by a version mismatch between the SWI Prolog
version and the jpl.jar version in GEMS. To fix this error:

1. Close Eclipse
2. copy the jpl.jar from the SWI Prolog installation's lib directory to
<eclipse_installation_dir>/plugins/org.gems.designer.dsml.kb.jplprolog_1.0.0/lib.
This will guarantee that the versions match.
3. Start Eclipse

Thanks,

Jules

"Lars Jordan" <ljordan@gmx.net> wrote in message
news:esfgf3$vlj$1@utils.eclipse.org...
> Hi,
>
> I am playing around with GEMS currently. Unfortunately I seem to make a
> mistake that I am unable to figure out.
>
> I followed the instructions for installing GEMS that I found on the
> sourceforge website and in the users guide. Then, for testing: I created a
> small metamodel, just an entity named Foo which is the root and contains
> another entity named Bar.
>
> I generate a DSML tool from the model and see - almost - what I would
> expect: on the right two types, Foo and Bar. And I can place the Bar in a
> new Model (which is a Foo). The interesting thing is that when I select
> the Bar type in my editor and place it into the model I can see in the
> eclipse instance from which I am running my generated modelling tool a
> number of JPLExceptions stating
>
> jpl.JPLException: jpl_do_pvm_init(): called while jpl_status !=
> JPL_INIT_PVM_MAYBE.
>
> I think this is also the reason which leads to another problem, when
> putting a third entity Baz in the metamodel that is contained by Bar. I
> can't place it anywhere in the generated tool which is likely due to the
> failed prolog query. The javadoc documentation of the JPLException says
> that it denotes an error in the (Java-Prolog?-)interface code, so I
> suspect this is not a gems problem.
>
> The tools I am using are Eclipse 3.2.2, EMF 2.2.2, GEF 3.2.2, the GEMS
> support plugins from Jules' website (kent OCL), GEMS 2.0.5_01 and
> SWI-Prolog 5.6.29
>
> Any hints or recommendations what I could try to figure out what the
> problem is are very welcome.
>
>
> Thanks in advance
>
> Lars
Re: [GEMS] JPLException? [message #578050 is a reply to message #376302] Sat, 17 March 2007 23:19 Go to previous message
Jules White is currently offline Jules WhiteFriend
Messages: 10
Registered: July 2009
Junior Member
Hi Lars,

This exception is caused by a version mismatch between the SWI Prolog
version and the jpl.jar version in GEMS. To fix this error:

1. Close Eclipse
2. copy the jpl.jar from the SWI Prolog installation's lib directory to
<eclipse_installation_dir>/plugins/org.gems.designer.dsml.kb.jplprolog_1.0.0/lib.
This will guarantee that the versions match.
3. Start Eclipse

Thanks,

Jules

"Lars Jordan" <ljordan@gmx.net> wrote in message
news:esfgf3$vlj$1@utils.eclipse.org...
> Hi,
>
> I am playing around with GEMS currently. Unfortunately I seem to make a
> mistake that I am unable to figure out.
>
> I followed the instructions for installing GEMS that I found on the
> sourceforge website and in the users guide. Then, for testing: I created a
> small metamodel, just an entity named Foo which is the root and contains
> another entity named Bar.
>
> I generate a DSML tool from the model and see - almost - what I would
> expect: on the right two types, Foo and Bar. And I can place the Bar in a
> new Model (which is a Foo). The interesting thing is that when I select
> the Bar type in my editor and place it into the model I can see in the
> eclipse instance from which I am running my generated modelling tool a
> number of JPLExceptions stating
>
> jpl.JPLException: jpl_do_pvm_init(): called while jpl_status !=
> JPL_INIT_PVM_MAYBE.
>
> I think this is also the reason which leads to another problem, when
> putting a third entity Baz in the metamodel that is contained by Bar. I
> can't place it anywhere in the generated tool which is likely due to the
> failed prolog query. The javadoc documentation of the JPLException says
> that it denotes an error in the (Java-Prolog?-)interface code, so I
> suspect this is not a gems problem.
>
> The tools I am using are Eclipse 3.2.2, EMF 2.2.2, GEF 3.2.2, the GEMS
> support plugins from Jules' website (kent OCL), GEMS 2.0.5_01 and
> SWI-Prolog 5.6.29
>
> Any hints or recommendations what I could try to figure out what the
> problem is are very welcome.
>
>
> Thanks in advance
>
> Lars
Previous Topic:xText: any text rule
Next Topic:oAW: Not able to access the screencasts on the oAW site
Goto Forum:
  


Current Time: Fri Dec 19 01:40:22 GMT 2014

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

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