Re: JET Null Pointer Exception & XPath Axes [message #6385] |
Wed, 21 March 2007 10:56  |
Eclipse User |
|
|
|
Toby:
In the future, please post messages to eclipse.modeling.m2t - I've cross
posted this response.
Please submit a bugzilla for the NPE:
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=M2T& version=unspecified&component=Jet&rep_platform=PC&am p;op_sys=Windows%20XP&priority=P3&bug_severity=norma l&bug_status=NEW&bug_file_loc=http%3A%2F%2F&shor t_desc=&comment=&commentprivacy=0&keywords=& dependson=&blocked=&maketemplate=Remember%20values%2 0as%20bookmarkable%20template&form_name=enter_bug&as signed_to=m2t.jet-inbox%40eclipse.org&qa_contact=
As for the supported axes, here is the current list:
attribute:: and the @ abbreviation
child:: and its abbreviated form
descendantOrSelf:: and the // abbreviation
parent:: and its .. abbreviation
self:: and its . abbreviation
If you need more, please submit an bugzilla enhancement.
Thanks for you interest,
Paul
"Toby Myers" <Toby.Myers@student.gu.edu.au> wrote in message
news:etn981$pa2$1@utils.eclipse.org...
> Hello All,
>
> I have just started using JET and I am having a problem with the default
> files from the EMFT JET Transformation Project. When I run the files I
> receive the error:
>
> templates/dump.jet(2,1): <c:dump entities="true" format="true"
> select="/*">
> Error: Error executing tag handler: java.lang.NullPointerException
>
> Does anyone know why this is happening?
>
> Also I read an old post about JET and XPath expressions that said not all
> the XPath axes are supported. Have any more XPath expressions been added
> since then, especially //. If not, can anyone suggest a good workaround?
>
> Cheers,
> Toby
>
|
|
|
Re: JET Null Pointer Exception & XPath Axes [message #6460 is a reply to message #6385] |
Wed, 21 March 2007 20:32   |
Eclipse User |
|
|
|
Hi Paul,
I submitted the bug. In regards to the descendantOrSelf (//) I tried it
out with the "Create more -- better -- code in Eclipse with JET"
tutorial
( http://www-128.ibm.com/developerworks/opensource/library/os- ecl-jet/).
When I run the email.jet example (Example:Write code that does stuff)
everything works okay and I get the Chris.txt and Nick.txt. But if I
change the main.jet from:
<c:iterate select="/app/email" var="currEmail" >
<ws:file template="templates/email.jet"
path=" {$org.eclipse.jet.resource.project.name}/{$currEmail/@to}.tx t " />
</c:iterate>
to:
<c:iterate select="//email" var="currEmail" >
<ws:file template="templates/email.jet"
path=" {$org.eclipse.jet.resource.project.name}/{$currEmail/@to}.tx t " />
</c:iterate>
once again I get the NullPointerException:
templates/main.jet(1,1): <c:iterate var="currEmail" select="//email">
Error: Error executing tag handler: java.lang.NullPointerException
Errors occurred during execution
Any ideas? Have I done something wrong because I assume it would have
been discovered earlier or is it in fact a bug?
Cheers,
Toby
Paul Elder wrote:
> Toby:
>
> In the future, please post messages to eclipse.modeling.m2t - I've cross
> posted this response.
>
> Please submit a bugzilla for the NPE:
>
> https://bugs.eclipse.org/bugs/enter_bug.cgi?product=M2T& version=unspecified&component=Jet&rep_platform=PC&am p;op_sys=Windows%20XP&priority=P3&bug_severity=norma l&bug_status=NEW&bug_file_loc=http%3A%2F%2F&shor t_desc=&comment=&commentprivacy=0&keywords=& dependson=&blocked=&maketemplate=Remember%20values%2 0as%20bookmarkable%20template&form_name=enter_bug&as signed_to=m2t.jet-inbox%40eclipse.org&qa_contact=
>
> As for the supported axes, here is the current list:
>
> attribute:: and the @ abbreviation
> child:: and its abbreviated form
> descendantOrSelf:: and the // abbreviation
> parent:: and its .. abbreviation
> self:: and its . abbreviation
>
> If you need more, please submit an bugzilla enhancement.
>
> Thanks for you interest,
>
> Paul
>
> "Toby Myers" <Toby.Myers@student.gu.edu.au> wrote in message
> news:etn981$pa2$1@utils.eclipse.org...
>> Hello All,
>>
>> I have just started using JET and I am having a problem with the default
>> files from the EMFT JET Transformation Project. When I run the files I
>> receive the error:
>>
>> templates/dump.jet(2,1): <c:dump entities="true" format="true"
>> select="/*">
>> Error: Error executing tag handler: java.lang.NullPointerException
>>
>> Does anyone know why this is happening?
>>
>> Also I read an old post about JET and XPath expressions that said not all
>> the XPath axes are supported. Have any more XPath expressions been added
>> since then, especially //. If not, can anyone suggest a good workaround?
>>
>> Cheers,
>> Toby
>>
>
>
|
|
|
|
Re: JET Null Pointer Exception & XPath Axes [message #9770 is a reply to message #6498] |
Sun, 01 April 2007 20:45  |
Eclipse User |
|
|
|
Paul:
The setup causing problems was Eclipse 3.2.1/EMF 2.2.2/JET 0.7.1 running
on Ubuntu Linux.
I have since changed versions to Eclipse 3.2.2/EMF 2.2.2/JET 0.7.2 and
everything is working as it should.
Thanks for your help.
Toby
Paul Elder wrote:
> Toby:
>
> Of course, it works on my machine :-( I have tested in in Eclipse 3.2.2/EMF
> 2.2.2/JET 0.7.2, and with somewhat stale versions of Eclipse 3.3 and EMF
> 2.3.
>
> Also, take a look in the Error log - you should find a stack trace.
>
> I'll continue to investigate.
>
> Paul
>
> Two question
> "Toby Myers" <Toby.Myers@student.gu.edu.au> wrote in message
> news:etsis0$noi$1@utils.eclipse.org...
>> Hi Paul,
>>
>> ... if I change the main.jet from:
>>
>> <c:iterate select="/app/email" var="currEmail" >
>> <ws:file template="templates/email.jet"
>> path=" {$org.eclipse.jet.resource.project.name}/{$currEmail/@to}.tx t " />
>> </c:iterate>
>>
>> to:
>>
>> <c:iterate select="//email" var="currEmail" >
>> <ws:file template="templates/email.jet"
>> path=" {$org.eclipse.jet.resource.project.name}/{$currEmail/@to}.tx t " />
>> </c:iterate>
>>
>> once again I get the NullPointerException:
>>
>> templates/main.jet(1,1): <c:iterate var="currEmail" select="//email">
>> Error: Error executing tag handler: java.lang.NullPointerException
>> Errors occurred during execution
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03325 seconds