Help with this exception
José Cornado
jose.cornado at gmail.com
Wed May 4 13:22:26 UTC 2016
I got it to work now. It is hack but it is working. The main problem was
that the results are saved using a shutdown hook. My engine serves
sandboxes for each class. The hook was never called.
Anyways, I just touched the default network props in the package jcov to
avoid the exception, getting the defaults in place, and called save
results after execution. I think I can remove jcov source and invoke save
results directly in the 2.0 jar.
I am using 1.8 (74_b02), jcov 2.0 jars and cloned 3.0 from repository to
inspect and hack
pb.command("java", "-jar", "jcov.jar", "Instr", "-t", "template.xml", "-o",
instrumentedFolder, XXXXX;
pb.command("java", "-jar", "jcov.jar", "grabber", "-t", "template.xml",
"-o", "result.xml", "-save", "receive");
pb.command("java", "-jar", "jcov.jar", "grabbermanager", "-kill");
pb.command("java", "-jar", "jcov.jar", "repgen", "-o", "report",
"result.xml");
The test execution is running in another jvm.
Thanks a lot!
On Wed, May 4, 2016 at 5:48 AM, Alexey Fedorchenko <
alexey.fedorchenko at oracle.com> wrote:
> Hello Jose,
>
> Could you specify: jcov version, jdk version and the command
> you are using to instrument code and run tests on the instrumented code.
>
> Thank you.
>
> --Alexey
>
>
>
> On 03.05.2016 6:41, José Cornado wrote:
>
>> Hello!
>>
>> I am having trouble with this exception. It happens inside SocketSaver . I
>> am using the grabber locally
>>
>> Error while finding jcov_network_default.properties file:
>> java.lang.NullPointerException
>>
>>
>> So before I start making stupid changes to the source or the jars (like
>> including the properties file in the parent directory) I was wondering if
>> there is an easier route. I could not find this props file anywhere.
>>
>> I launch the grabber with the command bellow. Everything else works as
>> expected (slots are hit, etc, etc)
>>
>> pb.command("java", "-jar", "jcov.jar", "grabber", "-t", "template.xml",
>> "-o", "result.xml", "-save", "receive");
>>
>> Thanks a lot!!!
>>
>>
>
--
José Cornado
--
home: http://www.efekctive.com
blog: http://blogging.efekctive.com
----------------------
Everything has been said before, but since nobody listens we have to keep
going back and beginning all over again.
Andre Gide
More information about the jcov-dev
mailing list