Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » JET Null Pointer Exception & XPath Axes
JET Null Pointer Exception & XPath Axes [message #76002] Tue, 20 March 2007 00:18 Go to next message
No real name is currently offline No real nameFriend
Messages: 4
Registered: July 2009
Junior Member
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 #76033 is a reply to message #76002] Tue, 20 March 2007 12:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Toby,

Please use the M2T newsgroup for JET2 questions. I've added it to the
to list, so you can keep using this thread.


Toby Myers wrote:
> 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 #76161 is a reply to message #76002] Wed, 21 March 2007 14:56 Go to previous message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
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 #603734 is a reply to message #76002] Tue, 20 March 2007 12:34 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
Toby,

Please use the M2T newsgroup for JET2 questions. I've added it to the
to list, so you can keep using this thread.


Toby Myers wrote:
> 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


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: JET Null Pointer Exception & XPath Axes [message #603763 is a reply to message #76002] Wed, 21 March 2007 14:56 Go to previous message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
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
>
Previous Topic:New to JET can't access xsi:type value
Next Topic:Teneo 0.8.0/0.7.5 Release Notes/Information
Goto Forum:
  


Current Time: Fri Apr 19 05:12:48 GMT 2024

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

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

Back to the top