Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [birt-dev] Running BIRT performance tests - how to run the tests outside Eclipse workbench?

Thanks for the suggestion Sunitha. I had tried setting the BIRT_HOME
but it didn't work for me. I still got the same NPE.

The platform startup looks successful. I mean I don't get any
exceptions there. But the factory object returned by
"Platform.createFactoryObject(
IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );" is itself
null. And so the createReportEngine method in ExecutionContext returns
null which results in the NPE later.

Any help is appreciated.

Thanks,
Deepa

On 1/30/07, Sunitha Kambhampati <ksunithaghm@xxxxxxxxx> wrote:
Thanks Deepa for looking into this.

Deepa Remesh wrote:

> Hi,
>
> I have been trying to run the performance tests outside Eclipse using
> the jars and plugins from the 2.2M4 runtime package. I am using the
> performance test classes from my 2.2 source build. I have copied the
> configuration and plugins folder from my runtime ReportEngine folder
> to the folder where I am running the tests.
>
> I get a NullPointerException because the engine creation fails (engine
> is null) in org.eclipse.birt.test.performance.ExecutionContext.java.
>
> The exception is
> java.lang.NullPointerException
>        at
> org.eclipse.birt.test.performance.RunThread.run(RunThread.java:80)
>
Just an idea in case you have not already tried:
can we set the BIRT_HOME using the config.setEngineHome in
ExecutionContext.createReportEngine.

    IReportEngine createReportEngine( EngineConfig config )
            throws BirtException
    {
        if ( config == null )
            config = new EngineConfig( );
        config.setEngineHome( System.getProperty("BIRT_HOME"));  // SET
ENGINE HOME.
        Platform.startup( new PlatformConfig( ) );
......

Thanks,
Sunitha.

> Has anyone tried to run the performance test outside Eclipse
> workbench? If yes, I would appreciate if you can share the steps to
> set this up.
>
> Thanks,
> Deepa
>
>
> On 1/24/07, Deepa Remesh <dremesh@xxxxxxxxx> wrote:
>
>> Hi,
>>
>> I can now run the perf tests successfully using the source from head.
>> I think the problem was the xerces plugin in my environment. I had
>> downloaded this plugin project for building BIRT viewer. When I
>> unchecked this plugin (from list of plugins in the Eclipse run
>> application window) and ran the test, all cases passed.
>>
>> I hope this is okay.
>>
>> Thanks,
>> Deepa
>>
>>
>> On 1/22/07, Deepa Remesh <dremesh@xxxxxxxxx> wrote:
>> > Hi,
>> >
>> > I tried to run the performance tests in
>> > org.eclipse.birt.test.performance using the instructions specified in
>> > org.eclipse.birt.test.performance.readme file. I could get the html
>> > cases (case-1threads-html, case-10threads-html) working but I get the
>> > following linkage error for the pdf case:
>> >
>> > Begin, Thread[name="RenderAll", id="0"] report[Corporation.rptdesign]
>> > Exception in thread "RenderAll" java.lang.LinkageError: loader
>> > constraints violated when linking org/w3c/dom/css/CSSValue class
>> >
>> > It looks like I have some mismatch in the jars containing above class
>> > but I have not been able to figure a way out. I built the source and
>> > ran the test from the same Eclipse environment. I am using BIRT 2.2M4
>> > build and source from the head. From what I see, in the BIRT
>> > environment, this class can be present in xml-apis.jar in
>> > org.apache.xerces plugin and also part of jdk. But so far, I have not
>> > been able to sort the jar dependency to get the pdf case working.
>> >
>> > I would appreciate if someone can help me to sort this out.
>> >
>> > Thanks,
>> > Deepa
>> >
>> >
>> -----------------------------------------------------------------------------------------------------------------------------------
>>
>> > Stack trace
>> >
>> -----------------------------------------------------------------------------------------------------------------------------------
>>
>> > Begin, Thread[name="RenderAll", id="0"] report[Corporation.rptdesign]
>> > Exception in thread "RenderAll" java.lang.LinkageError: loader
>> > constraints violated when linking org/w3c/dom/css/CSSValue class
>> >         at
>> org.eclipse.birt.report.engine.emitter.pdf.PDFEmitter$PDFRender.newPage(PDFEmitter.java:635)
>>
>> >         at
>> org.eclipse.birt.report.engine.emitter.pdf.PDFEmitter$PDFRender.startContainer(PDFEmitter.java:569)
>>
>> >         at
>> org.eclipse.birt.report.engine.layout.area.impl.ContainerArea.accept(ContainerArea.java:64)
>>
>> >         at
>> org.eclipse.birt.report.engine.emitter.pdf.PDFEmitter.startPage(PDFEmitter.java:112)
>>
>> >         at
>> org.eclipse.birt.report.engine.emitter.CompositeContentEmitter.startPage(CompositeContentEmitter.java:285)
>>
>> >         at
>> org.eclipse.birt.report.engine.layout.pdf.PDFPageLM.endPage(PDFPageLM.java:281)
>>
>> >         at
>> org.eclipse.birt.report.engine.layout.pdf.PDFPageLM.layout(PDFPageLM.java:204)
>>
>> >         at
>> org.eclipse.birt.report.engine.layout.pdf.PDFReportLayoutEngine.layoutReport(PDFReportLayoutEngine.java:56)
>>
>> >         at
>> org.eclipse.birt.report.engine.layout.pdf.PDFReportLayoutEngine.layout(PDFReportLayoutEngine.java:72)
>>
>> >         at
>> org.eclipse.birt.report.engine.api.impl.RenderTask$InnerRender.render(RenderTask.java:434)
>>
>> >         at
>> org.eclipse.birt.report.engine.api.impl.RenderTask$PageRangeRender.render(RenderTask.java:540)
>>
>> >         at
>> org.eclipse.birt.report.engine.api.impl.RenderTask.render(RenderTask.java:350)
>>
>> >         at
>> org.eclipse.birt.test.performance.RenderThread.run(RenderThread.java:181)
>>
>> >
>>
> _______________________________________________
> birt-dev mailing list
> birt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/birt-dev
>

_______________________________________________
birt-dev mailing list
birt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/birt-dev



Back to the top