Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346069 - Error 3004: Node with reference is not a child of a paramNode
Summary: Error 3004: Node with reference is not a child of a paramNode
Status: CLOSED FIXED
Alias: None
Product: Jubula
Classification: Technology
Component: UI (show other bugs)
Version: 0.9.0   Edit
Hardware: PC Linux
: P3 blocker (vote)
Target Milestone: 1.0   Edit
Assignee: Zeb Ford-Reitz CLA
QA Contact: Oliver Goetz CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-17 07:07 EDT by Felix Ziesel CLA
Modified: 2011-05-24 02:55 EDT (History)
2 users (show)

See Also:


Attachments
Project to reproduce bug (193.14 KB, application/zip)
2011-05-23 02:56 EDT, Felix Ziesel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Ziesel CLA 2011-05-17 07:07:51 EDT
Precondition:

Import attached project and open ub_syn_tre_assertNodeAvailability(ABSOLUTE_TEXT_PATH_MATCHES)

Select the event handler. The attached error will occur.
The event handler cannot be removed. 

Creating an identical test case leads to the same error.
1. Therefore you have to save the new test case.
2. close and reopen project
3. The arguments of the event handler have been moved up
(PATH TYPE is now 0, 
PRE_ASCEND is textpath, 
TEXTPATH is matching and 
OPERATOR is empty)
4. Put in the correct values again
5. Save and you get the error again

This error has been found using Jubula in the IDE with the last nightly build (#168)
Comment 1 Felix Ziesel CLA 2011-05-17 07:58:36 EDT
When selecting the properties view of the event handler after the error occured PATH TYPE and PRE_ASCEND are correct, TEXTPATH is empty and OPERATOR is missing.
While trying to enter TEXPATH the error occured again.
Comment 2 Markus Tiede CLA 2011-05-20 05:45:48 EDT
There is currently no attachment to reproduce this issue.
Comment 3 Felix Ziesel CLA 2011-05-23 02:56:25 EDT
Created attachment 196307 [details]
Project to reproduce bug

Sorry I forget to add attachment. So here it is.
To reproduce the bug you need to look for the test case "REMOVE(...)"
Comment 4 Zeb Ford-Reitz CLA 2011-05-23 08:26:51 EDT
I was unable to reproduce the problem directly, as the attached Project did not contain the mentioned Event Handler. I believe this is an additional side-effect of the error (that Event Handlers that cannot be successfully modified also cannot be exported).

However, I was able to provoke a similar error by opening a Test Case using the keyboard shortcut (Ctrl+Shift+T), adding an Event Handler, closing the editor, re-opening the editor using the keyboard shortcut, and finally deleting the Event Handler. This caused a NullPointerException due to inability to correctly calculate the parent node of the Event Handler.

http://git.eclipse.org/c/jubula/org.eclipse.jubula.core.git/commit/?id=ccef22fabcfb5459fdbfcaf0223c99229e43375d should resolve the issue.
Comment 5 Felix Ziesel CLA 2011-05-24 02:55:27 EDT
Verified manually.