Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » NullPointerException from TestSuitesTabularPublicationService class
NullPointerException from TestSuitesTabularPublicationService class [message #108317] Fri, 10 August 2007 11:20 Go to next message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-Schwartz
Messages: 448
Registered: July 2009
Senior Member
Hello everybody.

I am trying to get ant to automatically publish my test results via
<tptp:publication> and I am getting a NullPointerException from the
TestSuitesTabularPublicationService class as follows:

[tptp:publication] at
org.eclipse.tptp.test.report.birt.services.TestSuitesTabular PublicationService.resolvePaths(TestSuitesTabularPublication Service.java:100)
[tptp:publication] at
org.eclipse.hyades.test.core.services.AbstractTestResultsPub licationService.execute(AbstractTestResultsPublicationServic e.java:100)
[tptp:publication] at
org.eclipse.hyades.automation.server.AbstractService.execute (AbstractService.java:43)
[tptp:publication] at
org.eclipse.hyades.automation.server.ServiceProxy$1.run(Serv iceProxy.java:141)
[tptp:publication] at
org.eclipse.hyades.automation.core.utils.ReusableThread.run( ReusableThread.java:131)
[tptp:publication] at java.lang.Thread.run(Unknown Source)

Funnily enough, I get a successful report if I only have the results
from one test suite, but as soon as I add a second test suite, the above
exception shows up.

I tried running the report manually, as suggested by Joe in the thread
"Running tptp:publication getting java.lang.Exception" on this mailing
list and all works fine.

I am using version 4.4.0v200705300100 for the
org.eclipse.tptp.test.report.birt plugin.

Any hint of what might be going wrong?

TIA,
B.
Re: NullPointerException from TestSuitesTabularPublicationService class [message #108364 is a reply to message #108317] Fri, 10 August 2007 15:22 Go to previous messageGo to next message
Joe Toomey is currently offline Joe Toomey
Messages: 79
Registered: July 2009
Member
Hi Barbara,

Although the the defect is not exactly the same as what you describe, I
suspect that this problem is also fixed by the fix for
https://bugs.eclipse.org/bugs/show_bug.cgi?id=193540 (which is in the
current 4.4.1 builds.) This bug fix does a better job of interpreting
the paths to the input test suites for reporting (if the paths passed
from ant are relative, then they are interpreted as relative to the
workspace, while if they are absolute they are treated as normal
filesystem paths.) I suspect your issue is resolved because the code
throwing the NPE in 4.4 no longer exists in 4.4.1.

As an aside, there are about half a dozen other ASF related fixes in
4.4.1, with hopefully a couple of more to come. I hope you find it much
better than in prior releases.

Thanks,
--Joe

Barbara Rosi-Schwartz wrote:
> Hello everybody.
>
> I am trying to get ant to automatically publish my test results via
> <tptp:publication> and I am getting a NullPointerException from the
> TestSuitesTabularPublicationService class as follows:
>
> [tptp:publication] at
> org.eclipse.tptp.test.report.birt.services.TestSuitesTabular PublicationService.resolvePaths(TestSuitesTabularPublication Service.java:100)
>
> [tptp:publication] at
> org.eclipse.hyades.test.core.services.AbstractTestResultsPub licationService.execute(AbstractTestResultsPublicationServic e.java:100)
>
> [tptp:publication] at
> org.eclipse.hyades.automation.server.AbstractService.execute (AbstractService.java:43)
>
> [tptp:publication] at
> org.eclipse.hyades.automation.server.ServiceProxy$1.run(Serv iceProxy.java:141)
>
> [tptp:publication] at
> org.eclipse.hyades.automation.core.utils.ReusableThread.run( ReusableThread.java:131)
>
> [tptp:publication] at java.lang.Thread.run(Unknown Source)
>
> Funnily enough, I get a successful report if I only have the results
> from one test suite, but as soon as I add a second test suite, the above
> exception shows up.
>
> I tried running the report manually, as suggested by Joe in the thread
> "Running tptp:publication getting java.lang.Exception" on this mailing
> list and all works fine.
>
> I am using version 4.4.0v200705300100 for the
> org.eclipse.tptp.test.report.birt plugin.
>
> Any hint of what might be going wrong?
>
> TIA,
> B.
Re: NullPointerException from TestSuitesTabularPublicationService class [message #108404 is a reply to message #108364] Fri, 10 August 2007 15:50 Go to previous messageGo to next message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-Schwartz
Messages: 448
Registered: July 2009
Senior Member
Thanks Joe,

I'll give it a spin and update this thread.

B.

Joe Toomey wrote:
> Hi Barbara,
>
> Although the the defect is not exactly the same as what you describe, I
> suspect that this problem is also fixed by the fix for
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=193540 (which is in the
> current 4.4.1 builds.) This bug fix does a better job of interpreting
> the paths to the input test suites for reporting (if the paths passed
> from ant are relative, then they are interpreted as relative to the
> workspace, while if they are absolute they are treated as normal
> filesystem paths.) I suspect your issue is resolved because the code
> throwing the NPE in 4.4 no longer exists in 4.4.1.
>
> As an aside, there are about half a dozen other ASF related fixes in
> 4.4.1, with hopefully a couple of more to come. I hope you find it much
> better than in prior releases.
>
> Thanks,
> --Joe
>
> Barbara Rosi-Schwartz wrote:
>> Hello everybody.
>>
>> I am trying to get ant to automatically publish my test results via
>> <tptp:publication> and I am getting a NullPointerException from the
>> TestSuitesTabularPublicationService class as follows:
>>
>> [tptp:publication] at
>> org.eclipse.tptp.test.report.birt.services.TestSuitesTabular PublicationService.resolvePaths(TestSuitesTabularPublication Service.java:100)
>>
>> [tptp:publication] at
>> org.eclipse.hyades.test.core.services.AbstractTestResultsPub licationService.execute(AbstractTestResultsPublicationServic e.java:100)
>>
>> [tptp:publication] at
>> org.eclipse.hyades.automation.server.AbstractService.execute (AbstractService.java:43)
>>
>> [tptp:publication] at
>> org.eclipse.hyades.automation.server.ServiceProxy$1.run(Serv iceProxy.java:141)
>>
>> [tptp:publication] at
>> org.eclipse.hyades.automation.core.utils.ReusableThread.run( ReusableThread.java:131)
>>
>> [tptp:publication] at java.lang.Thread.run(Unknown Source)
>>
>> Funnily enough, I get a successful report if I only have the results
>> from one test suite, but as soon as I add a second test suite, the
>> above exception shows up.
>>
>> I tried running the report manually, as suggested by Joe in the thread
>> "Running tptp:publication getting java.lang.Exception" on this mailing
>> list and all works fine.
>>
>> I am using version 4.4.0v200705300100 for the
>> org.eclipse.tptp.test.report.birt plugin.
>>
>> Any hint of what might be going wrong?
>>
>> TIA,
>> B.
Re: NullPointerException from TestSuitesTabularPublicationService class [message #108419 is a reply to message #108364] Fri, 10 August 2007 16:46 Go to previous messageGo to next message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-Schwartz
Messages: 448
Registered: July 2009
Senior Member
Joe,

Actually from past experience we would prefer to download stable
releases, so I am wondering if you can give me a rough idea of when
4.4.1 is going to be available.

I would also like to know what the dependencies will be. We use AGR and
work on top of Europa. Will we need any AGR or other updated plugin?

Thanks a lot,
B.

Joe Toomey wrote:
> Hi Barbara,
>
> Although the the defect is not exactly the same as what you describe, I
> suspect that this problem is also fixed by the fix for
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=193540 (which is in the
> current 4.4.1 builds.) This bug fix does a better job of interpreting
> the paths to the input test suites for reporting (if the paths passed
> from ant are relative, then they are interpreted as relative to the
> workspace, while if they are absolute they are treated as normal
> filesystem paths.) I suspect your issue is resolved because the code
> throwing the NPE in 4.4 no longer exists in 4.4.1.
>
> As an aside, there are about half a dozen other ASF related fixes in
> 4.4.1, with hopefully a couple of more to come. I hope you find it much
> better than in prior releases.
>
> Thanks,
> --Joe
>
> Barbara Rosi-Schwartz wrote:
>> Hello everybody.
>>
>> I am trying to get ant to automatically publish my test results via
>> <tptp:publication> and I am getting a NullPointerException from the
>> TestSuitesTabularPublicationService class as follows:
>>
>> [tptp:publication] at
>> org.eclipse.tptp.test.report.birt.services.TestSuitesTabular PublicationService.resolvePaths(TestSuitesTabularPublication Service.java:100)
>>
>> [tptp:publication] at
>> org.eclipse.hyades.test.core.services.AbstractTestResultsPub licationService.execute(AbstractTestResultsPublicationServic e.java:100)
>>
>> [tptp:publication] at
>> org.eclipse.hyades.automation.server.AbstractService.execute (AbstractService.java:43)
>>
>> [tptp:publication] at
>> org.eclipse.hyades.automation.server.ServiceProxy$1.run(Serv iceProxy.java:141)
>>
>> [tptp:publication] at
>> org.eclipse.hyades.automation.core.utils.ReusableThread.run( ReusableThread.java:131)
>>
>> [tptp:publication] at java.lang.Thread.run(Unknown Source)
>>
>> Funnily enough, I get a successful report if I only have the results
>> from one test suite, but as soon as I add a second test suite, the
>> above exception shows up.
>>
>> I tried running the report manually, as suggested by Joe in the thread
>> "Running tptp:publication getting java.lang.Exception" on this mailing
>> list and all works fine.
>>
>> I am using version 4.4.0v200705300100 for the
>> org.eclipse.tptp.test.report.birt plugin.
>>
>> Any hint of what might be going wrong?
>>
>> TIA,
>> B.
Re: NullPointerException from TestSuitesTabularPublicationService class [message #108434 is a reply to message #108419] Fri, 10 August 2007 17:39 Go to previous messageGo to next message
Joe Toomey is currently offline Joe Toomey
Messages: 79
Registered: July 2009
Member
Barbara,

I don't blame you for not adopting for production use until an official
release. But it may be in your best interest to at least validate
that the problem is fixed in an interim 4.4.1 build -- if it's not, then
you could file a defect and maybe still get it fixed in 4.4.1.

The current plan for the 4.4.1 release is late September, as part of the
Europa fall maintenance release. Despite its "tech preview" status, the
AGR is still part of TPTP, so you should always run use the version of
the AGR that goes with the TPTP release you're using.

Hope this helps,
--Joe

Barbara Rosi-Schwartz wrote:
> Joe,
>
> Actually from past experience we would prefer to download stable
> releases, so I am wondering if you can give me a rough idea of when
> 4.4.1 is going to be available.
>
> I would also like to know what the dependencies will be. We use AGR and
> work on top of Europa. Will we need any AGR or other updated plugin?
>
> Thanks a lot,
> B.
>
> Joe Toomey wrote:
>> Hi Barbara,
>>
>> Although the the defect is not exactly the same as what you describe,
>> I suspect that this problem is also fixed by the fix for
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=193540 (which is in the
>> current 4.4.1 builds.) This bug fix does a better job of interpreting
>> the paths to the input test suites for reporting (if the paths passed
>> from ant are relative, then they are interpreted as relative to the
>> workspace, while if they are absolute they are treated as normal
>> filesystem paths.) I suspect your issue is resolved because the code
>> throwing the NPE in 4.4 no longer exists in 4.4.1.
>>
>> As an aside, there are about half a dozen other ASF related fixes in
>> 4.4.1, with hopefully a couple of more to come. I hope you find it
>> much better than in prior releases.
>>
>> Thanks,
>> --Joe
>>
>> Barbara Rosi-Schwartz wrote:
>>> Hello everybody.
>>>
>>> I am trying to get ant to automatically publish my test results via
>>> <tptp:publication> and I am getting a NullPointerException from the
>>> TestSuitesTabularPublicationService class as follows:
>>>
>>> [tptp:publication] at
>>> org.eclipse.tptp.test.report.birt.services.TestSuitesTabular PublicationService.resolvePaths(TestSuitesTabularPublication Service.java:100)
>>>
>>> [tptp:publication] at
>>> org.eclipse.hyades.test.core.services.AbstractTestResultsPub licationService.execute(AbstractTestResultsPublicationServic e.java:100)
>>>
>>> [tptp:publication] at
>>> org.eclipse.hyades.automation.server.AbstractService.execute (AbstractService.java:43)
>>>
>>> [tptp:publication] at
>>> org.eclipse.hyades.automation.server.ServiceProxy$1.run(Serv iceProxy.java:141)
>>>
>>> [tptp:publication] at
>>> org.eclipse.hyades.automation.core.utils.ReusableThread.run( ReusableThread.java:131)
>>>
>>> [tptp:publication] at java.lang.Thread.run(Unknown Source)
>>>
>>> Funnily enough, I get a successful report if I only have the results
>>> from one test suite, but as soon as I add a second test suite, the
>>> above exception shows up.
>>>
>>> I tried running the report manually, as suggested by Joe in the
>>> thread "Running tptp:publication getting java.lang.Exception" on this
>>> mailing list and all works fine.
>>>
>>> I am using version 4.4.0v200705300100 for the
>>> org.eclipse.tptp.test.report.birt plugin.
>>>
>>> Any hint of what might be going wrong?
>>>
>>> TIA,
>>> B.
Re: NullPointerException from TestSuitesTabularPublicationService class [message #108489 is a reply to message #108434] Fri, 10 August 2007 20:08 Go to previous messageGo to next message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-Schwartz
Messages: 448
Registered: July 2009
Senior Member
Joe,

Thanks for your words of wisdom. I think your suggestion is sound and we
will try it out.

So long,
B.

Joe Toomey wrote:
> Barbara,
>
> I don't blame you for not adopting for production use until an official
> release. But it may be in your best interest to at least validate that
> the problem is fixed in an interim 4.4.1 build -- if it's not, then you
> could file a defect and maybe still get it fixed in 4.4.1.
>
> The current plan for the 4.4.1 release is late September, as part of the
> Europa fall maintenance release. Despite its "tech preview" status, the
> AGR is still part of TPTP, so you should always run use the version of
> the AGR that goes with the TPTP release you're using.
>
> Hope this helps,
> --Joe
>
> Barbara Rosi-Schwartz wrote:
>> Joe,
>>
>> Actually from past experience we would prefer to download stable
>> releases, so I am wondering if you can give me a rough idea of when
>> 4.4.1 is going to be available.
>>
>> I would also like to know what the dependencies will be. We use AGR
>> and work on top of Europa. Will we need any AGR or other updated plugin?
>>
>> Thanks a lot,
>> B.
>>
>> Joe Toomey wrote:
>>> Hi Barbara,
>>>
>>> Although the the defect is not exactly the same as what you describe,
>>> I suspect that this problem is also fixed by the fix for
>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=193540 (which is in the
>>> current 4.4.1 builds.) This bug fix does a better job of
>>> interpreting the paths to the input test suites for reporting (if the
>>> paths passed from ant are relative, then they are interpreted as
>>> relative to the workspace, while if they are absolute they are
>>> treated as normal filesystem paths.) I suspect your issue is
>>> resolved because the code throwing the NPE in 4.4 no longer exists in
>>> 4.4.1.
>>>
>>> As an aside, there are about half a dozen other ASF related fixes in
>>> 4.4.1, with hopefully a couple of more to come. I hope you find it
>>> much better than in prior releases.
>>>
>>> Thanks,
>>> --Joe
>>>
>>> Barbara Rosi-Schwartz wrote:
>>>> Hello everybody.
>>>>
>>>> I am trying to get ant to automatically publish my test results via
>>>> <tptp:publication> and I am getting a NullPointerException from the
>>>> TestSuitesTabularPublicationService class as follows:
>>>>
>>>> [tptp:publication] at
>>>> org.eclipse.tptp.test.report.birt.services.TestSuitesTabular PublicationService.resolvePaths(TestSuitesTabularPublication Service.java:100)
>>>>
>>>> [tptp:publication] at
>>>> org.eclipse.hyades.test.core.services.AbstractTestResultsPub licationService.execute(AbstractTestResultsPublicationServic e.java:100)
>>>>
>>>> [tptp:publication] at
>>>> org.eclipse.hyades.automation.server.AbstractService.execute (AbstractService.java:43)
>>>>
>>>> [tptp:publication] at
>>>> org.eclipse.hyades.automation.server.ServiceProxy$1.run(Serv iceProxy.java:141)
>>>>
>>>> [tptp:publication] at
>>>> org.eclipse.hyades.automation.core.utils.ReusableThread.run( ReusableThread.java:131)
>>>>
>>>> [tptp:publication] at java.lang.Thread.run(Unknown Source)
>>>>
>>>> Funnily enough, I get a successful report if I only have the results
>>>> from one test suite, but as soon as I add a second test suite, the
>>>> above exception shows up.
>>>>
>>>> I tried running the report manually, as suggested by Joe in the
>>>> thread "Running tptp:publication getting java.lang.Exception" on
>>>> this mailing list and all works fine.
>>>>
>>>> I am using version 4.4.0v200705300100 for the
>>>> org.eclipse.tptp.test.report.birt plugin.
>>>>
>>>> Any hint of what might be going wrong?
>>>>
>>>> TIA,
>>>> B.
Re: NullPointerException from TestSuitesTabularPublicationService class [message #108650 is a reply to message #108434] Sun, 12 August 2007 15:55 Go to previous messageGo to next message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-Schwartz
Messages: 448
Registered: July 2009
Senior Member
Hi Joe.

I had a go with build 4.4.1, but unfortunately I cannot get even past
execution of the <tptp:execution> task, no less reporting. All my Ant
scripts fall over with a NullPointerException at the same line of the
scripts. The target is as follows:

<target name="test-execution">
<echo message="Executing test suites..." />
<tptp:execution resultsrefid="tptp.test.results">
<fileset dir="${project.dir}">
<include name="suites\projectHandling\SubscribeToProject.testsuite"/ >
</fileset>
</tptp:execution>
</target>

and the NullPointerException occurs on the third line of the target:

<tptp:execution resultsrefid="tptp.test.results">

No further information is provided, at least not in the usual logs.

Have you actually successfully ran Ant scripts over there under 4.4.1?

Any other suggestion?

Thanks,
B.

Joe Toomey wrote:
> Barbara,
>
> I don't blame you for not adopting for production use until an official
> release. But it may be in your best interest to at least validate that
> the problem is fixed in an interim 4.4.1 build -- if it's not, then you
> could file a defect and maybe still get it fixed in 4.4.1.
>
> The current plan for the 4.4.1 release is late September, as part of the
> Europa fall maintenance release. Despite its "tech preview" status, the
> AGR is still part of TPTP, so you should always run use the version of
> the AGR that goes with the TPTP release you're using.
>
> Hope this helps,
> --Joe
>
> Barbara Rosi-Schwartz wrote:
>> Joe,
>>
>> Actually from past experience we would prefer to download stable
>> releases, so I am wondering if you can give me a rough idea of when
>> 4.4.1 is going to be available.
>>
>> I would also like to know what the dependencies will be. We use AGR
>> and work on top of Europa. Will we need any AGR or other updated plugin?
>>
>> Thanks a lot,
>> B.
>>
>> Joe Toomey wrote:
>>> Hi Barbara,
>>>
>>> Although the the defect is not exactly the same as what you describe,
>>> I suspect that this problem is also fixed by the fix for
>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=193540 (which is in the
>>> current 4.4.1 builds.) This bug fix does a better job of
>>> interpreting the paths to the input test suites for reporting (if the
>>> paths passed from ant are relative, then they are interpreted as
>>> relative to the workspace, while if they are absolute they are
>>> treated as normal filesystem paths.) I suspect your issue is
>>> resolved because the code throwing the NPE in 4.4 no longer exists in
>>> 4.4.1.
>>>
>>> As an aside, there are about half a dozen other ASF related fixes in
>>> 4.4.1, with hopefully a couple of more to come. I hope you find it
>>> much better than in prior releases.
>>>
>>> Thanks,
>>> --Joe
>>>
>>> Barbara Rosi-Schwartz wrote:
>>>> Hello everybody.
>>>>
>>>> I am trying to get ant to automatically publish my test results via
>>>> <tptp:publication> and I am getting a NullPointerException from the
>>>> TestSuitesTabularPublicationService class as follows:
>>>>
>>>> [tptp:publication] at
>>>> org.eclipse.tptp.test.report.birt.services.TestSuitesTabular PublicationService.resolvePaths(TestSuitesTabularPublication Service.java:100)
>>>>
>>>> [tptp:publication] at
>>>> org.eclipse.hyades.test.core.services.AbstractTestResultsPub licationService.execute(AbstractTestResultsPublicationServic e.java:100)
>>>>
>>>> [tptp:publication] at
>>>> org.eclipse.hyades.automation.server.AbstractService.execute (AbstractService.java:43)
>>>>
>>>> [tptp:publication] at
>>>> org.eclipse.hyades.automation.server.ServiceProxy$1.run(Serv iceProxy.java:141)
>>>>
>>>> [tptp:publication] at
>>>> org.eclipse.hyades.automation.core.utils.ReusableThread.run( ReusableThread.java:131)
>>>>
>>>> [tptp:publication] at java.lang.Thread.run(Unknown Source)
>>>>
>>>> Funnily enough, I get a successful report if I only have the results
>>>> from one test suite, but as soon as I add a second test suite, the
>>>> above exception shows up.
>>>>
>>>> I tried running the report manually, as suggested by Joe in the
>>>> thread "Running tptp:publication getting java.lang.Exception" on
>>>> this mailing list and all works fine.
>>>>
>>>> I am using version 4.4.0v200705300100 for the
>>>> org.eclipse.tptp.test.report.birt plugin.
>>>>
>>>> Any hint of what might be going wrong?
>>>>
>>>> TIA,
>>>> B.
Re: NullPointerException from TestSuitesTabularPublicationService class [message #108706 is a reply to message #108317] Mon, 13 August 2007 11:20 Go to previous messageGo to next message
Eclipse User
Originally posted by: ffr.softwareag.com

Hi Barbara,

it's just an idea: Please add the following property definition to your Ant
script (or expand the existing one) and try to run your script again:

<property name="tptp.automation.vmargs" value="-Djava.compiler=NONE" />

Background:
I have various problems with the client automation adapter. Crashing JVMs,
NullPointerExceptions and others. The preliminary result of my investigation
is that one or more entries of my PATH environment variable (i.e. some
DLL(s) in the path) cause the problem. When switching of the JIT compiler,
everything works fine. The automation eclipse is running a little bit slower
than but I think for the sake of stability this can be accepted. The system
under test is not affected by this setting.

Good luck

Frank

"Barbara Rosi-Schwartz" <Barbara.Rosi-Schwartz@Etish.org> wrote in message
news:f9hhls$sta$1@build.eclipse.org...
> Hello everybody.
>
> I am trying to get ant to automatically publish my test results via
> <tptp:publication> and I am getting a NullPointerException from the
> TestSuitesTabularPublicationService class as follows:
>
> [tptp:publication] at
> org.eclipse.tptp.test.report.birt.services.TestSuitesTabular PublicationService.resolvePaths(TestSuitesTabularPublication Service.java:100)
> [tptp:publication] at
> org.eclipse.hyades.test.core.services.AbstractTestResultsPub licationService.execute(AbstractTestResultsPublicationServic e.java:100)
> [tptp:publication] at
> org.eclipse.hyades.automation.server.AbstractService.execute (AbstractService.java:43)
> [tptp:publication] at
> org.eclipse.hyades.automation.server.ServiceProxy$1.run(Serv iceProxy.java:141)
> [tptp:publication] at
> org.eclipse.hyades.automation.core.utils.ReusableThread.run( ReusableThread.java:131)
> [tptp:publication] at java.lang.Thread.run(Unknown Source)
>
> Funnily enough, I get a successful report if I only have the results from
> one test suite, but as soon as I add a second test suite, the above
> exception shows up.
>
> I tried running the report manually, as suggested by Joe in the thread
> "Running tptp:publication getting java.lang.Exception" on this mailing
> list and all works fine.
>
> I am using version 4.4.0v200705300100 for the
> org.eclipse.tptp.test.report.birt plugin.
>
> Any hint of what might be going wrong?
>
> TIA,
> B.
Re: NullPointerException from TestSuitesTabularPublicationService class [message #108902 is a reply to message #108706] Mon, 13 August 2007 17:56 Go to previous messageGo to next message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-Schwartz
Messages: 448
Registered: July 2009
Senior Member
Hi Frank,

Thanks very much for your pointer. Unfortunately on this occasion your
magic is not working for me.

I also encounter several problems with automatic test execution from Ant
-- of which the one in this particular thread is the least important
one!... :-(. I have entered three issues into Bugzilla that document my
problems and summarised them in a new thread named "[AGR] Ant execution
blues", just in case you are interested.

Thanks you once again.

Tschuess,
B.

Frank Froehlich wrote:
> Hi Barbara,
>
> it's just an idea: Please add the following property definition to your Ant
> script (or expand the existing one) and try to run your script again:
>
> <property name="tptp.automation.vmargs" value="-Djava.compiler=NONE" />
>
> Background:
> I have various problems with the client automation adapter. Crashing JVMs,
> NullPointerExceptions and others. The preliminary result of my investigation
> is that one or more entries of my PATH environment variable (i.e. some
> DLL(s) in the path) cause the problem. When switching of the JIT compiler,
> everything works fine. The automation eclipse is running a little bit slower
> than but I think for the sake of stability this can be accepted. The system
> under test is not affected by this setting.
>
> Good luck
>
> Frank
Re: NullPointerException from TestSuitesTabularPublicationService class [message #108914 is a reply to message #108650] Mon, 13 August 2007 20:36 Go to previous messageGo to next message
Joe Toomey is currently offline Joe Toomey
Messages: 79
Registered: July 2009
Member
Hmm...

I am running lots of tests from ant via ASF in 4.4.1. Can you confirm
that you copied the (4.4.1) ant-tptp.jar file into your ant/lib
directory? If so, please reply and paste the rest of the relevent parts
of your ant script (where you specify the workspace, project, etc.).
Below is a complete ant script that I modeled after your target snippet
and used to run a test in 4.4.1.

Thanks,
--Joe

<project name="ASF Tests" default="test-execution" basedir="."
xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">

<!-- read the properties for this test run -->
<property file="testpass.properties"/>

<!-- set additional properties -->
<property name="testprojects.dir"
value="${eclipse.targetdir}/testprojects" />
<property name="tptp.test.workspace"
value="${eclipse.targetdir}/eclipse/workspace" />
<property name="tptp.test.connection"
value="tptp:rac://localhost:10002/default" />
<property name="tptp.automation.eclipse"
value="${eclipse.targetdir}/eclipse" />

<target name="test-execution">
<echo message="Executing test suites..." />
<tptp:execution project="org.eclipse.tptp.test.testservices.tests"
resultsrefid="tptp.test.results">
<fileset
dir=" ${testprojects.dir}/test-results/test/org.eclipse.tptp.test. testservices.tests ">
<include name="junit/Test.Sun142_TestServices.testsuite"/>
</fileset>
</tptp:execution>
</target>

</project>

Barbara Rosi-Schwartz wrote:
> Hi Joe.
>
> I had a go with build 4.4.1, but unfortunately I cannot get even past
> execution of the <tptp:execution> task, no less reporting. All my Ant
> scripts fall over with a NullPointerException at the same line of the
> scripts. The target is as follows:
>
> <target name="test-execution">
> <echo message="Executing test suites..." />
> <tptp:execution resultsrefid="tptp.test.results">
> <fileset dir="${project.dir}">
> <include name="suites\projectHandling\SubscribeToProject.testsuite"/ >
> </fileset>
> </tptp:execution>
> </target>
>
> and the NullPointerException occurs on the third line of the target:
>
> <tptp:execution resultsrefid="tptp.test.results">
>
> No further information is provided, at least not in the usual logs.
>
> Have you actually successfully ran Ant scripts over there under 4.4.1?
>
> Any other suggestion?
>
> Thanks,
> B.
>
Re: NullPointerException from TestSuitesTabularPublicationService class [message #108983 is a reply to message #108914] Tue, 14 August 2007 13:42 Go to previous messageGo to next message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-Schwartz
Messages: 448
Registered: July 2009
Senior Member
Hi Joe.

In actual fact I had not copied the ant-tptp jar file in my plugin's lib
directory, but I have now, with the same results exactly. Below is my
ant script, as you requested.

<?xml version="1.0" encoding="UTF-8"?>
<project name="TPTP Prova Ant Driver"
default="main"
xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">

<tstamp >
<format property="TODAY" pattern="dd-MM-yyyy" />
</tstamp>

<!-- Define common properties for all automatable services -->
<property name="tptp.publication.service"
value=" org.eclipse.tptp.test.report.birt.publish-tabular-testsuites " />

<!-- Define script-local properties, that vary by installation -->
<property name="tptp.test.workspace"
value="C:\projects\Etish-33_prova_for_agr"/>
<property name="tptp.test.project"
value="com.etish.useme.client.editor.test" />
<property name="project.dir"
value="${tptp.test.workspace}\${tptp.test.project}"/>
<property name="report.publication.location"
location="${tptp.test.workspace}\..\agr-reports\CloseDocument " />

<target name="main" depends="test-execution, test-results-interrogation"/>

<!-- Execute test suites using default results name -->
<target name="test-execution">
<echo message="Executing test suites..." />
<tptp:execution resultsrefid="tptp.test.results">
<fileset dir="${project.dir}">
<include name="suites\documentHandling\CloseDocument.testsuite"/>
</fileset>
</tptp:execution>
</target>

<!-- Interrogate test suite results for verdict -->
<target name="test-results-interrogation">
<echo message="Interrogating test suite results..." />
<condition property="tptp.test.success">
<tptp:interrogation verdictproperty="tptp.test.verdict">
<filelist refid="tptp.test.results"/>
</tptp:interrogation>
</condition>
<echo message="The overall test result verdict is:
'${tptp.test.verdict}'" />
</target>
</project>

Hope this helps. Thanks again,
B.

Joe Toomey wrote:
> Hmm...
>
> I am running lots of tests from ant via ASF in 4.4.1. Can you confirm
> that you copied the (4.4.1) ant-tptp.jar file into your ant/lib
> directory? If so, please reply and paste the rest of the relevent parts
> of your ant script (where you specify the workspace, project, etc.).
> Below is a complete ant script that I modeled after your target snippet
> and used to run a test in 4.4.1.
>
> Thanks,
> --Joe
Re: NullPointerException from TestSuitesTabularPublicationService class [message #108995 is a reply to message #108983] Tue, 14 August 2007 17:41 Go to previous messageGo to next message
Joe Toomey is currently offline Joe Toomey
Messages: 79
Registered: July 2009
Member
Hi Barbara,

I took your ant script and made a couple of small modifications. The
most significant is that I added the following property:

<property name="tptp.automation.eclipse"
value="C:\TPTP_TestPass\4.4.1 test1\eclipse" />

Without this property, the call will obviously fail, since our adapter
won't know where to find the eclipse installation to use for the service
implementation. I wish I believed this was the problem, but when I ran
without this property, I got a CreateProcessException (which is what I'd
expect), and not a NullPointerException as you have been experiencing.

Beyond that, I changed the project name to one that I had in CVS with
AGR tests in it, and changed the path to the test suite to one that
existed in that project. Then I created that workspace, imported the
project, and ran the ant script. The test execution and interrogation
ran to completion successfully.

I'd really like to understand what the problem is, so can you please
provide me with the following additional information:

1) Which JRE are you using?
2) Which AC (IAC or standalone)?
3) What version of ant?
4) Is this is dirty workspace? (i.e. has it been used with many
different eclipse / TPTP versions?)

I'll also paste my modified version of your ant script below. If you
have the time, you could try running this (after checking out the
project org.eclipse.hyades.test.java.tests from TPTP's CVS repository
(host: dev.eclipse.org, repo path: /cvsroot/tptp, user: anonymous, path
to project: HEAD/test-results/test). Note that you'll have to check out
both this project and org.eclipse.hyades.test.core.tests for the project
to compile.

<?xml version="1.0" encoding="UTF-8"?>
<project name="TPTP Prova Ant Driver"
default="main"
xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">

<tstamp >
<format property="TODAY" pattern="dd-MM-yyyy" />
</tstamp>

<!-- Define common properties for all automatable services -->
<property name="tptp.publication.service"
value=" org.eclipse.tptp.test.report.birt.publish-tabular-testsuites " />

<!-- Define script-local properties, that vary by installation -->
<property name="tptp.test.workspace"
value="C:\projects\Etish-33_prova_for_agr"/>
<property name="tptp.test.project"
value="org.eclipse.hyades.test.java.tests" />
<property name="project.dir"
value="${tptp.test.workspace}\${tptp.test.project}"/>
<property name="report.publication.location"
location="${tptp.test.workspace}\..\agr-reports\CloseDocument " />
<property name="tptp.automation.eclipse"
value="C:\TPTP_TestPass\4.4.1 test2\eclipse" />

<target name="main" depends="test-execution,
test-results-interrogation"/>

<!-- Execute test suites using default results name -->
<target name="test-execution">
<echo message="Executing test suites..." />
<tptp:execution resultsrefid="tptp.test.results">
<fileset dir="${project.dir}">
<include
name="autoui\Test.Execution.JUnitRunner.testsuite"/>
</fileset>
</tptp:execution>
</target>

<!-- Interrogate test suite results for verdict -->
<target name="test-results-interrogation">
<echo message="Interrogating test suite results..." />
<condition property="tptp.test.success">
<tptp:interrogation verdictproperty="tptp.test.verdict">
<filelist refid="tptp.test.results"/>
</tptp:interrogation>
</condition>
<echo message="The overall test result verdict is:
'${tptp.test.verdict}'" />
</target>
</project>
Re: NullPointerException from TestSuitesTabularPublicationService class [message #111006 is a reply to message #108995] Fri, 31 August 2007 15:30 Go to previous message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-Schwartz
Messages: 448
Registered: July 2009
Senior Member
Hi Joe.

Apologies for the extreme delay, I was snowed under (almost literally,
given the terrible weather we have been having here in the UK!... :-)

I have placed my replies to all your questions into the issue you have
kindly create in Bugzilla for me. Let's continue the discussion on the
issue itself, https://bugs.eclipse.org/bugs/show_bug.cgi?id=199783.

Thanks once again.

Cheerio,
B.

--
Barbara Rosi-Schwartz
Etish Limited [http://www.etish.org]

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

^...^
/ o,o \ The proud parents of Useme
|) ::: (| The Open Requirements Management Tool
====w=w==== [https://useme.dev.java.net]

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Joe Toomey wrote:
> Hi Barbara,
>
> I took your ant script and made a couple of small modifications. The
> most significant is that I added the following property:
>
> <property name="tptp.automation.eclipse"
> value="C:\TPTP_TestPass\4.4.1 test1\eclipse" />
>
> Without this property, the call will obviously fail, since our adapter
> won't know where to find the eclipse installation to use for the service
> implementation. I wish I believed this was the problem, but when I ran
> without this property, I got a CreateProcessException (which is what I'd
> expect), and not a NullPointerException as you have been experiencing.
>
> Beyond that, I changed the project name to one that I had in CVS with
> AGR tests in it, and changed the path to the test suite to one that
> existed in that project. Then I created that workspace, imported the
> project, and ran the ant script. The test execution and interrogation
> ran to completion successfully.
>
> I'd really like to understand what the problem is, so can you please
> provide me with the following additional information:
>
> 1) Which JRE are you using?
> 2) Which AC (IAC or standalone)?
> 3) What version of ant?
> 4) Is this is dirty workspace? (i.e. has it been used with many
> different eclipse / TPTP versions?)
>
> I'll also paste my modified version of your ant script below. If you
> have the time, you could try running this (after checking out the
> project org.eclipse.hyades.test.java.tests from TPTP's CVS repository
> (host: dev.eclipse.org, repo path: /cvsroot/tptp, user: anonymous, path
> to project: HEAD/test-results/test). Note that you'll have to check out
> both this project and org.eclipse.hyades.test.core.tests for the project
> to compile.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <project name="TPTP Prova Ant Driver"
> default="main"
> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>
> <tstamp >
> <format property="TODAY" pattern="dd-MM-yyyy" />
> </tstamp>
>
> <!-- Define common properties for all automatable services -->
> <property name="tptp.publication.service"
> value=" org.eclipse.tptp.test.report.birt.publish-tabular-testsuites " />
>
> <!-- Define script-local properties, that vary by installation -->
> <property name="tptp.test.workspace"
> value="C:\projects\Etish-33_prova_for_agr"/>
> <property name="tptp.test.project"
> value="org.eclipse.hyades.test.java.tests" />
> <property name="project.dir"
> value="${tptp.test.workspace}\${tptp.test.project}"/>
> <property name="report.publication.location"
> location="${tptp.test.workspace}\..\agr-reports\CloseDocument " />
> <property name="tptp.automation.eclipse"
> value="C:\TPTP_TestPass\4.4.1 test2\eclipse" />
>
> <target name="main" depends="test-execution,
> test-results-interrogation"/>
>
> <!-- Execute test suites using default results name -->
> <target name="test-execution">
> <echo message="Executing test suites..." />
> <tptp:execution resultsrefid="tptp.test.results">
> <fileset dir="${project.dir}">
> <include
> name="autoui\Test.Execution.JUnitRunner.testsuite"/>
> </fileset>
> </tptp:execution>
> </target>
>
> <!-- Interrogate test suite results for verdict -->
> <target name="test-results-interrogation">
> <echo message="Interrogating test suite results..." />
> <condition property="tptp.test.success">
> <tptp:interrogation verdictproperty="tptp.test.verdict">
> <filelist refid="tptp.test.results"/>
> </tptp:interrogation>
> </condition>
> <echo message="The overall test result verdict is:
> '${tptp.test.verdict}'" />
> </target>
> </project>
Previous Topic:[AGR] Problem with multiple 'similar' Widgets
Next Topic:Some (stupid?) questions about TPTP and Agent Controller
Goto Forum:
  


Current Time: Wed Oct 01 08:11:57 GMT 2014

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

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