Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#5 ContiPerf NullPointerException with warmUp and CSVInvocation

open
Reporting (4)
5
2012-06-19
2012-06-05
ra77
No

Hi,

In 2.2.0, this test fail with a NullPointerException

@Rule
public ContiPerfRule rule = new ContiPerfRule(
new HtmlReportModule(),
new CSVSummaryReportModule(),
new CSVInvocationReportModule(),
new CSVLatencyReportModule());

@Test
@PerfTest(threads = 10, duration = 6000, rampUp = 100, warmUp = 900)
public void simpleTest() throws Exception {
Thread.sleep(100);
}

In org.databene.contiperf.report.CSVInvocationReportModule.invoked()

@Override
public synchronized void invoked\(String serviceId, int latency, long startTime\) \{
    out.print\(latency\);
    out.print\(','\);
    out.println\(startTime\);
\}

The out is null and raise a NullPointerException

It's null because starting ifunction seems not executed

@Override
public void starting\(String serviceId\) \{
    createFile\(serviceId\);
\}

Discussion

  • ra77
    ra77
    2012-06-19

    • assigned_to: nobody --> vbergmann