Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » [AGR] Obscure NullPointerException when playing back a test
[AGR] Obscure NullPointerException when playing back a test [message #106054] Fri, 20 July 2007 19:13 Go to next message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-SchwartzFriend
Messages: 448
Registered: July 2009
Senior Member
Hi.

I have a test script that makes use of an object mine. When attempting
to play the script back in standard mode, the test script fails and the
..execution file shows the following NullPointerException:

There was an error while running the macro associated with the test
case: TC001. java.lang.NullPointerException
at
org.eclipse.tptp.test.auto.gui.internal.macro.MacroObjectLoc ator.lookupReferenceId(MacroObjectLocator.java:839)
at
org.eclipse.tptp.test.auto.gui.internal.commands.MacroComman dShell.load(MacroCommandShell.java:222)
at
org.eclipse.tptp.test.auto.gui.internal.macro.Macro.addShell (Macro.java:75)
at
org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager.p lay(MacroManager.java:474)
at
org.eclipse.tptp.test.auto.gui.internal.runner.AutoGUIRunner $1$MacroPlayWrapper.run(AutoGUIRunner.java:619)
at java.lang.Thread.run(Unknown Source)

Everything appears all right at visual inspection. I have tried removing
both test script and object mine and re-recording, but I get the same
error message. From watching the script when it plays back, I can figure
out more or less where it is failing, but I cannot see anything wrong
with either the script or the mine. Nothing is shown in the Eclipse logs.

Any hints on how I could go about debugging this one? I am using
TPTP/AGR 4.4 with Eclipse Europa.

TIA,
B.
Re: [AGR] Obscure NullPointerException when playing back a test [message #106070 is a reply to message #106054] Fri, 20 July 2007 20:07 Go to previous messageGo to next message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-SchwartzFriend
Messages: 448
Registered: July 2009
Senior Member
Hi.

I forgot to add that the same test script runs absolutely fine in quick
mode.

I have also inserted logging statements in between marco commands (by
using extra verification points that invoke methods that do nothing but
print out a log message) and have found out that the process appears to
fail right at the very beginning of the macro.

Hope this helps in identifying the problem.

Thanks,
B.

Barbara Rosi-Schwartz wrote:
> Hi.
>
> I have a test script that makes use of an object mine. When attempting
> to play the script back in standard mode, the test script fails and the
> .execution file shows the following NullPointerException:
>
> There was an error while running the macro associated with the test
> case: TC001. java.lang.NullPointerException
> at
> org.eclipse.tptp.test.auto.gui.internal.macro.MacroObjectLoc ator.lookupReferenceId(MacroObjectLocator.java:839)
>
> at
> org.eclipse.tptp.test.auto.gui.internal.commands.MacroComman dShell.load(MacroCommandShell.java:222)
>
> at
> org.eclipse.tptp.test.auto.gui.internal.macro.Macro.addShell (Macro.java:75)
> at
> org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager.p lay(MacroManager.java:474)
>
> at
> org.eclipse.tptp.test.auto.gui.internal.runner.AutoGUIRunner $1$MacroPlayWrapper.run(AutoGUIRunner.java:619)
>
> at java.lang.Thread.run(Unknown Source)
>
> Everything appears all right at visual inspection. I have tried removing
> both test script and object mine and re-recording, but I get the same
> error message. From watching the script when it plays back, I can figure
> out more or less where it is failing, but I cannot see anything wrong
> with either the script or the mine. Nothing is shown in the Eclipse logs.
>
> Any hints on how I could go about debugging this one? I am using
> TPTP/AGR 4.4 with Eclipse Europa.
>
> TIA,
> B.
Re: [AGR] Obscure NullPointerException when playing back a test [message #106093 is a reply to message #106054] Mon, 23 July 2007 11:38 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 970
Registered: July 2009
Senior Member
Hi Barbara,
After looking at the code, it appears that the object mine is not being
loaded from the test suite. Can you attach the test suite in question so we
can debug further?

Paul
"Barbara Rosi-Schwartz" <Barbara.Rosi-Schwartz@Etish.org> wrote in message
news:f7r1ha$tho$1@build.eclipse.org...
> Hi.
>
> I have a test script that makes use of an object mine. When attempting to
> play the script back in standard mode, the test script fails and the
> .execution file shows the following NullPointerException:
>
> There was an error while running the macro associated with the test case:
> TC001. java.lang.NullPointerException
> at
> org.eclipse.tptp.test.auto.gui.internal.macro.MacroObjectLoc ator.lookupReferenceId(MacroObjectLocator.java:839)
> at
> org.eclipse.tptp.test.auto.gui.internal.commands.MacroComman dShell.load(MacroCommandShell.java:222)
> at
> org.eclipse.tptp.test.auto.gui.internal.macro.Macro.addShell (Macro.java:75)
> at
> org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager.p lay(MacroManager.java:474)
> at
> org.eclipse.tptp.test.auto.gui.internal.runner.AutoGUIRunner $1$MacroPlayWrapper.run(AutoGUIRunner.java:619)
> at java.lang.Thread.run(Unknown Source)
>
> Everything appears all right at visual inspection. I have tried removing
> both test script and object mine and re-recording, but I get the same
> error message. From watching the script when it plays back, I can figure
> out more or less where it is failing, but I cannot see anything wrong with
> either the script or the mine. Nothing is shown in the Eclipse logs.
>
> Any hints on how I could go about debugging this one? I am using TPTP/AGR
> 4.4 with Eclipse Europa.
>
> TIA,
> B.
Re: [AGR] Obscure NullPointerException when playing back a test [message #106122 is a reply to message #106093] Mon, 23 July 2007 13:31 Go to previous messageGo to next message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-SchwartzFriend
Messages: 448
Registered: July 2009
Senior Member
Hi Paul.

Thanks for your reply. In actual fact some time during the weekend,
after re-recording the same test script a couple of times, it started
playing back properly again and unfortunately I do not have the merest
clue as to what might have been the problem when it was going wrong.

I was hoping for a hint on what to do in the future, other than doggedly
keeping on re-recording the same test, should this happen again, but I
guess you have no recommendation to give me. Please do correct me if
this is not the case.

Thank you very much and regards,
B.

Paul Slauenwhite wrote:
> Hi Barbara,
> After looking at the code, it appears that the object mine is not being
> loaded from the test suite. Can you attach the test suite in question so we
> can debug further?
>
> Paul
> "Barbara Rosi-Schwartz" <Barbara.Rosi-Schwartz@Etish.org> wrote in message
> news:f7r1ha$tho$1@build.eclipse.org...
>> Hi.
>>
>> I have a test script that makes use of an object mine. When attempting to
>> play the script back in standard mode, the test script fails and the
>> .execution file shows the following NullPointerException:
>>
>> There was an error while running the macro associated with the test case:
>> TC001. java.lang.NullPointerException
>> at
>> org.eclipse.tptp.test.auto.gui.internal.macro.MacroObjectLoc ator.lookupReferenceId(MacroObjectLocator.java:839)
>> at
>> org.eclipse.tptp.test.auto.gui.internal.commands.MacroComman dShell.load(MacroCommandShell.java:222)
>> at
>> org.eclipse.tptp.test.auto.gui.internal.macro.Macro.addShell (Macro.java:75)
>> at
>> org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager.p lay(MacroManager.java:474)
>> at
>> org.eclipse.tptp.test.auto.gui.internal.runner.AutoGUIRunner $1$MacroPlayWrapper.run(AutoGUIRunner.java:619)
>> at java.lang.Thread.run(Unknown Source)
>>
>> Everything appears all right at visual inspection. I have tried removing
>> both test script and object mine and re-recording, but I get the same
>> error message. From watching the script when it plays back, I can figure
>> out more or less where it is failing, but I cannot see anything wrong with
>> either the script or the mine. Nothing is shown in the Eclipse logs.
>>
>> Any hints on how I could go about debugging this one? I am using TPTP/AGR
>> 4.4 with Eclipse Europa.
>>
>> TIA,
>> B.
>
>
Re: [AGR] Obscure NullPointerException when playing back a test [message #106243 is a reply to message #106122] Tue, 24 July 2007 09:55 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 970
Registered: July 2009
Senior Member
Hi Barbara,
Unfortunately, we have to triage these issue on a case-by-case basis,
since this is not a known or expected behavior. If you come across the
problem in the future, open a defect and attach the test suite.

Paul
"Barbara Rosi-Schwartz" <Barbara.Rosi-Schwartz@Etish.org> wrote in message
news:f82aj3$9ho$1@build.eclipse.org...
> Hi Paul.
>
> Thanks for your reply. In actual fact some time during the weekend, after
> re-recording the same test script a couple of times, it started playing
> back properly again and unfortunately I do not have the merest clue as to
> what might have been the problem when it was going wrong.
>
> I was hoping for a hint on what to do in the future, other than doggedly
> keeping on re-recording the same test, should this happen again, but I
> guess you have no recommendation to give me. Please do correct me if this
> is not the case.
>
> Thank you very much and regards,
> B.
>
> Paul Slauenwhite wrote:
>> Hi Barbara,
>> After looking at the code, it appears that the object mine is not
>> being loaded from the test suite. Can you attach the test suite in
>> question so we can debug further?
>>
>> Paul
>> "Barbara Rosi-Schwartz" <Barbara.Rosi-Schwartz@Etish.org> wrote in
>> message news:f7r1ha$tho$1@build.eclipse.org...
>>> Hi.
>>>
>>> I have a test script that makes use of an object mine. When attempting
>>> to play the script back in standard mode, the test script fails and the
>>> .execution file shows the following NullPointerException:
>>>
>>> There was an error while running the macro associated with the test
>>> case: TC001. java.lang.NullPointerException
>>> at
>>> org.eclipse.tptp.test.auto.gui.internal.macro.MacroObjectLoc ator.lookupReferenceId(MacroObjectLocator.java:839)
>>> at
>>> org.eclipse.tptp.test.auto.gui.internal.commands.MacroComman dShell.load(MacroCommandShell.java:222)
>>> at
>>> org.eclipse.tptp.test.auto.gui.internal.macro.Macro.addShell (Macro.java:75)
>>> at
>>> org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager.p lay(MacroManager.java:474)
>>> at
>>> org.eclipse.tptp.test.auto.gui.internal.runner.AutoGUIRunner $1$MacroPlayWrapper.run(AutoGUIRunner.java:619)
>>> at java.lang.Thread.run(Unknown Source)
>>>
>>> Everything appears all right at visual inspection. I have tried removing
>>> both test script and object mine and re-recording, but I get the same
>>> error message. From watching the script when it plays back, I can figure
>>> out more or less where it is failing, but I cannot see anything wrong
>>> with either the script or the mine. Nothing is shown in the Eclipse
>>> logs.
>>>
>>> Any hints on how I could go about debugging this one? I am using
>>> TPTP/AGR 4.4 with Eclipse Europa.
>>>
>>> TIA,
>>> B.
>>
Re: [AGR] Obscure NullPointerException when playing back a test [message #106322 is a reply to message #106243] Tue, 24 July 2007 15:56 Go to previous messageGo to next message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-SchwartzFriend
Messages: 448
Registered: July 2009
Senior Member
Paul, will do.

Thanks and kind regards,
B.

Paul Slauenwhite wrote:
> Hi Barbara,
> Unfortunately, we have to triage these issue on a case-by-case basis,
> since this is not a known or expected behavior. If you come across the
> problem in the future, open a defect and attach the test suite.
>
> Paul
Re: [AGR] Obscure NullPointerException when playing back a test [message #113227 is a reply to message #106243] Tue, 25 September 2007 08:23 Go to previous messageGo to next message
Matthias Wiskow is currently offline Matthias WiskowFriend
Messages: 25
Registered: July 2009
Junior Member
Hi,

perhaps this does not fit to the originally reported situation, but I
encountered the same problem after renaming the testsuite file.
Reverting to the original name helped.
This seems to be a bug. Didn't find any in BugZilla.

Matthias

Paul Slauenwhite wrote:
> Hi Barbara,
> Unfortunately, we have to triage these issue on a case-by-case basis,
> since this is not a known or expected behavior. If you come across the
> problem in the future, open a defect and attach the test suite.
>
> Paul
> "Barbara Rosi-Schwartz" <Barbara.Rosi-Schwartz@Etish.org> wrote in message
> news:f82aj3$9ho$1@build.eclipse.org...
>> Hi Paul.
>>
>> Thanks for your reply. In actual fact some time during the weekend, after
>> re-recording the same test script a couple of times, it started playing
>> back properly again and unfortunately I do not have the merest clue as to
>> what might have been the problem when it was going wrong.
>>
>> I was hoping for a hint on what to do in the future, other than doggedly
>> keeping on re-recording the same test, should this happen again, but I
>> guess you have no recommendation to give me. Please do correct me if this
>> is not the case.
>>
>> Thank you very much and regards,
>> B.
>>
>> Paul Slauenwhite wrote:
>>> Hi Barbara,
>>> After looking at the code, it appears that the object mine is not
>>> being loaded from the test suite. Can you attach the test suite in
>>> question so we can debug further?
>>>
>>> Paul
>>> "Barbara Rosi-Schwartz" <Barbara.Rosi-Schwartz@Etish.org> wrote in
>>> message news:f7r1ha$tho$1@build.eclipse.org...
>>>> Hi.
>>>>
>>>> I have a test script that makes use of an object mine. When attempting
>>>> to play the script back in standard mode, the test script fails and the
>>>> .execution file shows the following NullPointerException:
>>>>
>>>> There was an error while running the macro associated with the test
>>>> case: TC001. java.lang.NullPointerException
>>>> at
>>>> org.eclipse.tptp.test.auto.gui.internal.macro.MacroObjectLoc ator.lookupReferenceId(MacroObjectLocator.java:839)
>>>> at
>>>> org.eclipse.tptp.test.auto.gui.internal.commands.MacroComman dShell.load(MacroCommandShell.java:222)
>>>> at
>>>> org.eclipse.tptp.test.auto.gui.internal.macro.Macro.addShell (Macro.java:75)
>>>> at
>>>> org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager.p lay(MacroManager.java:474)
>>>> at
>>>> org.eclipse.tptp.test.auto.gui.internal.runner.AutoGUIRunner $1$MacroPlayWrapper.run(AutoGUIRunner.java:619)
>>>> at java.lang.Thread.run(Unknown Source)
>>>>
>>>> Everything appears all right at visual inspection. I have tried removing
>>>> both test script and object mine and re-recording, but I get the same
>>>> error message. From watching the script when it plays back, I can figure
>>>> out more or less where it is failing, but I cannot see anything wrong
>>>> with either the script or the mine. Nothing is shown in the Eclipse
>>>> logs.
>>>>
>>>> Any hints on how I could go about debugging this one? I am using
>>>> TPTP/AGR 4.4 with Eclipse Europa.
>>>>
>>>> TIA,
>>>> B.
>
Re: [AGR] Obscure NullPointerException when playing back a test [message #113581 is a reply to message #113227] Mon, 01 October 2007 10:48 Go to previous message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 970
Registered: July 2009
Senior Member
Hi Matthias,
Yes, there is an issue with renaming (as well as copying and moving)
test assets. This will be address under enhancement:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=166025

Paul
"Matthias Wiskow" <matthias.wiskow@windriver.com> wrote in message
news:fdagjj$t4e$1@build.eclipse.org...
> Hi,
>
> perhaps this does not fit to the originally reported situation, but I
> encountered the same problem after renaming the testsuite file.
> Reverting to the original name helped.
> This seems to be a bug. Didn't find any in BugZilla.
>
> Matthias
>
> Paul Slauenwhite wrote:
>> Hi Barbara,
>> Unfortunately, we have to triage these issue on a case-by-case basis,
>> since this is not a known or expected behavior. If you come across the
>> problem in the future, open a defect and attach the test suite.
>>
>> Paul
>> "Barbara Rosi-Schwartz" <Barbara.Rosi-Schwartz@Etish.org> wrote in
>> message news:f82aj3$9ho$1@build.eclipse.org...
>>> Hi Paul.
>>>
>>> Thanks for your reply. In actual fact some time during the weekend,
>>> after re-recording the same test script a couple of times, it started
>>> playing back properly again and unfortunately I do not have the merest
>>> clue as to what might have been the problem when it was going wrong.
>>>
>>> I was hoping for a hint on what to do in the future, other than doggedly
>>> keeping on re-recording the same test, should this happen again, but I
>>> guess you have no recommendation to give me. Please do correct me if
>>> this is not the case.
>>>
>>> Thank you very much and regards,
>>> B.
>>>
>>> Paul Slauenwhite wrote:
>>>> Hi Barbara,
>>>> After looking at the code, it appears that the object mine is not
>>>> being loaded from the test suite. Can you attach the test suite in
>>>> question so we can debug further?
>>>>
>>>> Paul
>>>> "Barbara Rosi-Schwartz" <Barbara.Rosi-Schwartz@Etish.org> wrote in
>>>> message news:f7r1ha$tho$1@build.eclipse.org...
>>>>> Hi.
>>>>>
>>>>> I have a test script that makes use of an object mine. When attempting
>>>>> to play the script back in standard mode, the test script fails and
>>>>> the .execution file shows the following NullPointerException:
>>>>>
>>>>> There was an error while running the macro associated with the test
>>>>> case: TC001. java.lang.NullPointerException
>>>>> at
>>>>> org.eclipse.tptp.test.auto.gui.internal.macro.MacroObjectLoc ator.lookupReferenceId(MacroObjectLocator.java:839)
>>>>> at
>>>>> org.eclipse.tptp.test.auto.gui.internal.commands.MacroComman dShell.load(MacroCommandShell.java:222)
>>>>> at
>>>>> org.eclipse.tptp.test.auto.gui.internal.macro.Macro.addShell (Macro.java:75)
>>>>> at
>>>>> org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager.p lay(MacroManager.java:474)
>>>>> at
>>>>> org.eclipse.tptp.test.auto.gui.internal.runner.AutoGUIRunner $1$MacroPlayWrapper.run(AutoGUIRunner.java:619)
>>>>> at java.lang.Thread.run(Unknown Source)
>>>>>
>>>>> Everything appears all right at visual inspection. I have tried
>>>>> removing both test script and object mine and re-recording, but I get
>>>>> the same error message. From watching the script when it plays back, I
>>>>> can figure out more or less where it is failing, but I cannot see
>>>>> anything wrong with either the script or the mine. Nothing is shown in
>>>>> the Eclipse logs.
>>>>>
>>>>> Any hints on how I could go about debugging this one? I am using
>>>>> TPTP/AGR 4.4 with Eclipse Europa.
>>>>>
>>>>> TIA,
>>>>> B.
>>
Previous Topic:TPTP Unusable on Linux x86_64
Next Topic:AGR Playback Problem
Goto Forum:
  


Current Time: Fri Nov 21 20:48:56 GMT 2014

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

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