Home » Modeling » TMF (Xtext) » [XText] An internal error occurred during: "XtextReconcilerJob".
[XText] An internal error occurred during: "XtextReconcilerJob". [message #46613] |
Sat, 30 May 2009 07:24  |
Eclipse User |
|
|
|
Hi,
I am developing a small DSL using XText. I finish composing its grammar file, where the metamodel is imported rather than generated. Then the
code is generated using the built-in 'generatexxx.mwe'. However, when I launch the UI plugin as an Eclipse application from 'plugin.xml' and try to
edit a program in the DSL using the yielded editor, the following error occurs:
------------------------------------------------------------ ------------------------------------------------------------ --------------------------
An internal error occurred during: "XtextReconcilerJob".
java.lang.IllegalStateException: Unresolved proxy http://www.macs.hw.ac.uk/my25/m2/alx/type#//statement/expres sion/AIdentifier. Make sure the EPackage
has been registered.
------------------------------------------------------------ ------------------------------------------------------------ ---------------------------
Any hints for coping with this problem?
Regards.
Michael
|
|
|
Re: [XText] An internal error occurred during: "XtextReconcilerJob". [message #46636 is a reply to message #46613] |
Sat, 30 May 2009 07:36   |
Eclipse User |
|
|
|
Michael wrote:
> Hi,
> I am developing a small DSL using XText. I finish composing its
> grammar file, where the metamodel is imported rather than generated.
> Then the code is generated using the built-in 'generatexxx.mwe'.
> However, when I launch the UI plugin as an Eclipse application from
> 'plugin.xml' and try to edit a program in the DSL using the yielded
> editor, the following error occurs:
> ------------------------------------------------------------ ------------------------------------------------------------ --------------------------
>
> An internal error occurred during: "XtextReconcilerJob".
> java.lang.IllegalStateException: Unresolved proxy
> http://www.macs.hw.ac.uk/my25/m2/alx/type#//statement/expres sion/AIdentifier.
> Make sure the EPackage has been registered.
> ------------------------------------------------------------ ------------------------------------------------------------ ---------------------------
>
> Any hints for coping with this problem?
>
> Regards.
>
> Michael
For more information, I attach my grammar file here. I am not sure about some points in the grammar:
1) I define an AProgram is made up of a number of AExpression, which are seprated by ','. I am not so sure whether the following rule is right or not.
AProgram: (exp += AExpression (',' exp += AExpression)+)?;
2) Some rules look like terminal, but I do not define them as terminal. Is this ok? for example,
ABooleanType: 'boolean' ;
IntegerType: 'int' ;
3) I have tried to define an terminal as the follows:
terminal BOOL returns ecore::EBoolean : 'true' | 'false';
But an static-checking error was reported, saying ecore::EBoolean cannot be resolved. What's wrong with this?
Thanks
Regards
Michael.
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ||||||||||||||||||||||||||||||||||||||||||||||||\\
grammar hw.Alx with org.eclipse.xtext.common.Terminals
import "platform:/resource/ALxDSL/src/hw/alxmm.ecore"
import "platform:/resource/ALxDSL/src/hw/alxmm.ecore#//declaration"
import "platform:/resource/ALxDSL/src/hw/alxmm.ecore#//statement"
import " platform:/resource/ALxDSL/src/hw/alxmm.ecore#//statement/exp ression "
import " platform:/resource/ALxDSL/src/hw/alxmm.ecore#//statement/typ e "
// ------------------------------- Program -----------------------------------
AProgram: (exp += AExpression (',' exp += AExpression)+)?;
// -------------------------------Type -------------------------------------
AType: AVoidType | APrimitiveType | AGenericType | AUndefined | AReferenceType ;
AVoidType: 'void' ;
APrimitiveType: ABooleanType | AIntegerType;
ABooleanType: 'boolean' ;
AIntegerType: 'int' ;
AGenericType: (ASetType | ABagType| ASequenceType) ('[' referenceType = AReferenceType ']')? ;
ASetType: 'set';
ABagType: 'bag';
ASequenceType: 'sequence';
AUndefined: 'undefined';
AReferenceType: type = ID ;
//-------------------------------Expression -------------------------------------
AExpression : AIdentifier | ASelf | ANull | ASelected | AEnclosedExpression | APrefixedExp ;
AIdentifier: symbol = ID ;
ASelected: 'selected';
ASelf: 'sef';
ANull: 'null';
AEnclosedExpression: '(' exp = AExpression ')';
APrefixedExp: operator = APrefixOperator exp = AExpression;
enum APrefixOperator: plus = '+' | minus = '-' | notqq = '!' ;
|
|
|
Re: [XText] An internal error occurred during: "XtextReconcilerJob". [message #46656 is a reply to message #46636] |
Sat, 30 May 2009 08:17   |
Eclipse User |
|
|
|
Hi Michael,
the error pretty much says what may be wrong:
>> An internal error occurred during: "XtextReconcilerJob".
>> java.lang.IllegalStateException: Unresolved proxy
>>
http://www.macs.hw.ac.uk/my25/m2/alx/type#//statement/expres sion/AIdentifier.
>> Make sure the EPackage has been registered.
Did you register your Ecore Metamodel in the plugin.xml, can u ensure,
that it can be found in the EMF Registry in your runtime application?
Regards,
Sebastian
Am 30.05.2009 13:36 Uhr, schrieb Michael:
> Michael wrote:
>> Hi,
>> I am developing a small DSL using XText. I finish composing its
>> grammar file, where the metamodel is imported rather than generated.
>> Then the code is generated using the built-in 'generatexxx.mwe'.
>> However, when I launch the UI plugin as an Eclipse application from
>> 'plugin.xml' and try to edit a program in the DSL using the yielded
>> editor, the following error occurs:
>> ------------------------------------------------------------ ------------------------------------------------------------ --------------------------
>>
>> An internal error occurred during: "XtextReconcilerJob".
>> java.lang.IllegalStateException: Unresolved proxy
>> http://www.macs.hw.ac.uk/my25/m2/alx/type#//statement/expres sion/AIdentifier.
>> Make sure the EPackage has been registered.
>> ------------------------------------------------------------ ------------------------------------------------------------ ---------------------------
>>
>> Any hints for coping with this problem?
>>
>> Regards.
>>
>> Michael
>
>
> For more information, I attach my grammar file here. I am not sure about
> some points in the grammar:
>
> 1) I define an AProgram is made up of a number of AExpression, which are
> seprated by ','. I am not so sure whether the following rule is right or
> not.
> AProgram: (exp += AExpression (',' exp += AExpression)+)?;
>
> 2) Some rules look like terminal, but I do not define them as terminal.
> Is this ok? for example,
> ABooleanType: 'boolean' ;
> IntegerType: 'int' ;
> 3) I have tried to define an terminal as the follows:
> terminal BOOL returns ecore::EBoolean : 'true' | 'false';
> But an static-checking error was reported, saying ecore::EBoolean cannot
> be resolved. What's wrong with this?
>
>
>
> Thanks
>
> Regards
>
>
> Michael.
>
>
>
>
> |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ||||||||||||||||||||||||||||||||||||||||||||||||\\
>
>
> grammar hw.Alx with org.eclipse.xtext.common.Terminals
>
> import "platform:/resource/ALxDSL/src/hw/alxmm.ecore"
>
> import "platform:/resource/ALxDSL/src/hw/alxmm.ecore#//declaration"
> import "platform:/resource/ALxDSL/src/hw/alxmm.ecore#//statement"
> import
> " platform:/resource/ALxDSL/src/hw/alxmm.ecore#//statement/exp ression "
> import " platform:/resource/ALxDSL/src/hw/alxmm.ecore#//statement/typ e "
>
> // ------------------------------- Program
> -----------------------------------
> AProgram: (exp += AExpression (',' exp += AExpression)+)?;
>
> // -------------------------------Type
> -------------------------------------
>
> AType: AVoidType | APrimitiveType | AGenericType | AUndefined |
> AReferenceType ;
> AVoidType: 'void' ;
>
> APrimitiveType: ABooleanType | AIntegerType;
>
> ABooleanType: 'boolean' ;
> AIntegerType: 'int' ;
>
> AGenericType: (ASetType | ABagType| ASequenceType) ('[' referenceType =
> AReferenceType ']')? ;
>
> ASetType: 'set';
> ABagType: 'bag';
> ASequenceType: 'sequence';
>
> AUndefined: 'undefined';
>
> AReferenceType: type = ID ;
>
> //-------------------------------Expression
> -------------------------------------
>
> AExpression : AIdentifier | ASelf | ANull | ASelected |
> AEnclosedExpression | APrefixedExp ;
>
> AIdentifier: symbol = ID ;
> ASelected: 'selected';
> ASelf: 'sef';
> ANull: 'null';
> AEnclosedExpression: '(' exp = AExpression ')';
> APrefixedExp: operator = APrefixOperator exp = AExpression;
> enum APrefixOperator: plus = '+' | minus = '-' | notqq = '!' ;
|
|
|
Re: [XText] An internal error occurred during: "XtextReconcilerJob". [message #46674 is a reply to message #46656] |
Sat, 30 May 2009 14:02   |
Eclipse User |
|
|
|
Hi Sebastian:
I did nothing on the plugin.xml, because it is automatically generated. If I need to manually register the metamodel in the plugin.xml, how can
do it?
Thanks
Michael
Sebastian Zarnekow wrote:
> Hi Michael,
>
> the error pretty much says what may be wrong:
>
> >> An internal error occurred during: "XtextReconcilerJob".
> >> java.lang.IllegalStateException: Unresolved proxy
> >>
> http://www.macs.hw.ac.uk/my25/m2/alx/type#//statement/expres sion/AIdentifier.
>
> >> Make sure the EPackage has been registered.
>
> Did you register your Ecore Metamodel in the plugin.xml, can u ensure,
> that it can be found in the EMF Registry in your runtime application?
>
> Regards,
> Sebastian
>
> Am 30.05.2009 13:36 Uhr, schrieb Michael:
>> Michael wrote:
>>> Hi,
>>> I am developing a small DSL using XText. I finish composing its
>>> grammar file, where the metamodel is imported rather than generated.
>>> Then the code is generated using the built-in 'generatexxx.mwe'.
>>> However, when I launch the UI plugin as an Eclipse application from
>>> 'plugin.xml' and try to edit a program in the DSL using the yielded
>>> editor, the following error occurs:
>>> ------------------------------------------------------------ ------------------------------------------------------------ --------------------------
>>>
>>>
>>> An internal error occurred during: "XtextReconcilerJob".
>>> java.lang.IllegalStateException: Unresolved proxy
>>> http://www.macs.hw.ac.uk/my25/m2/alx/type#//statement/expres sion/AIdentifier.
>>>
>>> Make sure the EPackage has been registered.
>>> ------------------------------------------------------------ ------------------------------------------------------------ ---------------------------
>>>
>>>
>>> Any hints for coping with this problem?
>>>
>>> Regards.
>>>
>>> Michael
>>
>>
>> For more information, I attach my grammar file here. I am not sure about
>> some points in the grammar:
>>
>> 1) I define an AProgram is made up of a number of AExpression, which are
>> seprated by ','. I am not so sure whether the following rule is right or
>> not.
>> AProgram: (exp += AExpression (',' exp += AExpression)+)?;
>>
>> 2) Some rules look like terminal, but I do not define them as terminal.
>> Is this ok? for example,
>> ABooleanType: 'boolean' ;
>> IntegerType: 'int' ;
>> 3) I have tried to define an terminal as the follows:
>> terminal BOOL returns ecore::EBoolean : 'true' | 'false';
>> But an static-checking error was reported, saying ecore::EBoolean cannot
>> be resolved. What's wrong with this?
>>
>>
>>
>> Thanks
>>
>> Regards
>>
>>
>> Michael.
>>
>>
>>
>>
>> |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ||||||||||||||||||||||||||||||||||||||||||||||||\\
>>
>>
>>
>> grammar hw.Alx with org.eclipse.xtext.common.Terminals
>>
>> import "platform:/resource/ALxDSL/src/hw/alxmm.ecore"
>>
>> import "platform:/resource/ALxDSL/src/hw/alxmm.ecore#//declaration"
>> import "platform:/resource/ALxDSL/src/hw/alxmm.ecore#//statement"
>> import
>> " platform:/resource/ALxDSL/src/hw/alxmm.ecore#//statement/exp ression "
>> import " platform:/resource/ALxDSL/src/hw/alxmm.ecore#//statement/typ e "
>>
>> // ------------------------------- Program
>> -----------------------------------
>> AProgram: (exp += AExpression (',' exp += AExpression)+)?;
>>
>> // -------------------------------Type
>> -------------------------------------
>>
>> AType: AVoidType | APrimitiveType | AGenericType | AUndefined |
>> AReferenceType ;
>> AVoidType: 'void' ;
>>
>> APrimitiveType: ABooleanType | AIntegerType;
>>
>> ABooleanType: 'boolean' ;
>> AIntegerType: 'int' ;
>>
>> AGenericType: (ASetType | ABagType| ASequenceType) ('[' referenceType =
>> AReferenceType ']')? ;
>>
>> ASetType: 'set';
>> ABagType: 'bag';
>> ASequenceType: 'sequence';
>>
>> AUndefined: 'undefined';
>>
>> AReferenceType: type = ID ;
>>
>> //-------------------------------Expression
>> -------------------------------------
>>
>> AExpression : AIdentifier | ASelf | ANull | ASelected |
>> AEnclosedExpression | APrefixedExp ;
>>
>> AIdentifier: symbol = ID ;
>> ASelected: 'selected';
>> ASelf: 'sef';
>> ANull: 'null';
>> AEnclosedExpression: '(' exp = AExpression ')';
>> APrefixedExp: operator = APrefixOperator exp = AExpression;
>> enum APrefixOperator: plus = '+' | minus = '-' | notqq = '!' ;
>
|
|
|
Re: [XText] An internal error occurred during: "XtextReconcilerJob". [message #46686 is a reply to message #46674] |
Sat, 30 May 2009 15:40   |
Eclipse User |
|
|
|
Hi Michael,
where did you get your metamodel from? Did you create it yourself?
You have to create an extension to register your metamodel in your
plugin.xml.
<extension
point="org.eclipse.emf.ecore.generated_package">
<package
uri = "http://www.eclipse.org/xsd/2002/XSD"
class = "org.eclipse.xsd.XSDPackage" />
</extension>
(sample taken from: http://wiki.eclipse.org/index.php/EMF-FAQ)
The plugin.xml is only generated once. It is save to modify it by hand.
Subsequent executions of the generator will write to plugin.xml_gen. You
can diff this file to check for modifications, that should be merged
into you plugin.xml by hand.
Regards,
Sebastian
Am 30.05.2009 20:02 Uhr, schrieb Michael:
> Hi Sebastian:
> I did nothing on the plugin.xml, because it is automatically generated.
> If I need to manually register the metamodel in the plugin.xml, how can
> do it?
> Thanks
> Michael
>
> Sebastian Zarnekow wrote:
>> Hi Michael,
>>
>> the error pretty much says what may be wrong:
>>
>> >> An internal error occurred during: "XtextReconcilerJob".
>> >> java.lang.IllegalStateException: Unresolved proxy
>> >>
>> http://www.macs.hw.ac.uk/my25/m2/alx/type#//statement/expres sion/AIdentifier.
>>
>> >> Make sure the EPackage has been registered.
>>
>> Did you register your Ecore Metamodel in the plugin.xml, can u ensure,
>> that it can be found in the EMF Registry in your runtime application?
>>
>> Regards,
>> Sebastian
>>
>> Am 30.05.2009 13:36 Uhr, schrieb Michael:
>>> Michael wrote:
>>>> Hi,
>>>> I am developing a small DSL using XText. I finish composing its
>>>> grammar file, where the metamodel is imported rather than generated.
>>>> Then the code is generated using the built-in 'generatexxx.mwe'.
>>>> However, when I launch the UI plugin as an Eclipse application from
>>>> 'plugin.xml' and try to edit a program in the DSL using the yielded
>>>> editor, the following error occurs:
>>>> ------------------------------------------------------------ ------------------------------------------------------------ --------------------------
>>>>
>>>>
>>>> An internal error occurred during: "XtextReconcilerJob".
>>>> java.lang.IllegalStateException: Unresolved proxy
>>>> http://www.macs.hw.ac.uk/my25/m2/alx/type#//statement/expres sion/AIdentifier.
>>>>
>>>> Make sure the EPackage has been registered.
>>>> ------------------------------------------------------------ ------------------------------------------------------------ ---------------------------
>>>>
>>>>
>>>> Any hints for coping with this problem?
>>>>
>>>> Regards.
>>>>
>>>> Michael
>>>
>>>
>>> For more information, I attach my grammar file here. I am not sure about
>>> some points in the grammar:
>>>
>>> 1) I define an AProgram is made up of a number of AExpression, which are
>>> seprated by ','. I am not so sure whether the following rule is right or
>>> not.
>>> AProgram: (exp += AExpression (',' exp += AExpression)+)?;
>>>
>>> 2) Some rules look like terminal, but I do not define them as terminal.
>>> Is this ok? for example,
>>> ABooleanType: 'boolean' ;
>>> IntegerType: 'int' ;
>>> 3) I have tried to define an terminal as the follows:
>>> terminal BOOL returns ecore::EBoolean : 'true' | 'false';
>>> But an static-checking error was reported, saying ecore::EBoolean cannot
>>> be resolved. What's wrong with this?
>>>
>>>
>>>
>>> Thanks
>>>
>>> Regards
>>>
>>>
>>> Michael.
>>>
>>>
>>>
>>>
>>> |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ||||||||||||||||||||||||||||||||||||||||||||||||\\
>>>
>>>
>>>
>>> grammar hw.Alx with org.eclipse.xtext.common.Terminals
>>>
>>> import "platform:/resource/ALxDSL/src/hw/alxmm.ecore"
>>>
>>> import "platform:/resource/ALxDSL/src/hw/alxmm.ecore#//declaration"
>>> import "platform:/resource/ALxDSL/src/hw/alxmm.ecore#//statement"
>>> import
>>> " platform:/resource/ALxDSL/src/hw/alxmm.ecore#//statement/exp ression "
>>> import " platform:/resource/ALxDSL/src/hw/alxmm.ecore#//statement/typ e "
>>>
>>> // ------------------------------- Program
>>> -----------------------------------
>>> AProgram: (exp += AExpression (',' exp += AExpression)+)?;
>>>
>>> // -------------------------------Type
>>> -------------------------------------
>>>
>>> AType: AVoidType | APrimitiveType | AGenericType | AUndefined |
>>> AReferenceType ;
>>> AVoidType: 'void' ;
>>>
>>> APrimitiveType: ABooleanType | AIntegerType;
>>>
>>> ABooleanType: 'boolean' ;
>>> AIntegerType: 'int' ;
>>>
>>> AGenericType: (ASetType | ABagType| ASequenceType) ('[' referenceType =
>>> AReferenceType ']')? ;
>>>
>>> ASetType: 'set';
>>> ABagType: 'bag';
>>> ASequenceType: 'sequence';
>>>
>>> AUndefined: 'undefined';
>>>
>>> AReferenceType: type = ID ;
>>>
>>> //-------------------------------Expression
>>> -------------------------------------
>>>
>>> AExpression : AIdentifier | ASelf | ANull | ASelected |
>>> AEnclosedExpression | APrefixedExp ;
>>>
>>> AIdentifier: symbol = ID ;
>>> ASelected: 'selected';
>>> ASelf: 'sef';
>>> ANull: 'null';
>>> AEnclosedExpression: '(' exp = AExpression ')';
>>> APrefixedExp: operator = APrefixOperator exp = AExpression;
>>> enum APrefixOperator: plus = '+' | minus = '-' | notqq = '!' ;
>>
|
|
| | |
Re: [XText] An internal error occurred during: "XtextReconcilerJob". [message #50683 is a reply to message #50321] |
Fri, 12 June 2009 10:04  |
Eclipse User |
|
|
|
Hello Sven
Sure, I wud like to share my prob. that has somehow already been resolved.
Some of your colleagues in TMF team have suggested the following
workarounds:
And they work fine to avert the bug, till it's hopefully fixed in the next
release of TMF XText.
Thanks a lot for the support of XText team.
It's worth appreciation.
And currently, I'm having some other prob too. , to which I'm trying to
get a workaround. But I shall share it with TMF team shortly.
Thanks.
Durga
------------------------------------------------------------ ---------
Hi guys,
There's a third workaround that I have done until the bugfix is out:
create subclasses of the desired external classes directly in your Ecore
that do nothing but subclassing the external ones. Then you can
instantiate these as if they were the original classes without the bug.
Hope this helps.
Bye,
Oliver.
------------------------------------------------------------ ---------
Sebastian Zarnekow schrieb:
> Hi Durga,
>
> you may want to extract your subpackages into toplevel-packages as a
> workaround.
> Another possibility is to install your packages into Eclipse and refer
> to them via ns-URI instead of platform:/resource. This should work fine.
>
> Regards,
> Sebastian
>
> ------------------------------------------------------------ ----
> On 10.06.2009, at 10:16, durga@dsrg.mff.cuni.cz wrote:
>
>> Hello liver
>>
>> I am currently working on defining a DSL using TMF XText.
>>
>> But Since my DSL specification has requirements that exactly lead into
>> conditions for the Bug#: 279093, therefore I cannot use my editor, Since
>> it keeps on popping up error messages, pertaining to the bug.
>>
>> The bug has already been assigned as the info is available on:
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=279093
>>
>> But can you possibly suggest me some other temporary solution regarding
>> how to avert the bug, till the bug is debugged in the next release. So
>> that I can possibly use my DSL editor, till the bug is fixed in next
>> release.
>>
>> Thanks.
>>
>> Durga
>
|
|
|
Goto Forum:
Current Time: Mon Jul 07 13:20:24 EDT 2025
Powered by FUDForum. Page generated in 0.04877 seconds
|