Topic
  • 3 replies
  • Latest Post - ‏2013-04-23T08:45:44Z by devEclipseInder
Onno
Onno
7 Posts

Pinned topic RMC BIRT reports from the command line

‏2011-11-19T08:57:29Z |
Is it possible to run RMC BIRT reports from the command line? BIRT support this using the runtime but is it possible when also using RMC?

When I try to run a RMC report I get a nullpointer exception from LibraryConnection. I'm trying to pass the library location hoping that it would suffice. So in my param file I have

libraryPath=D:\wc\trunk\library

When I run genReport.bat I see java.lang.NullPointerException at com.ibm.rmc.reporting.oda.LibraryConnection.<clinit>(LibraryConnectio
n.java:33)

Complete command and stacktrace is as follows

D:\birt-runtime-3_7_1\ReportEngine>genReport.bat -f PDF -o output.pdf -F report.param D:\vdsnet\ca\rmc\new_reports\MyReport.rptdesign

D:\birt-runtime-3_7_1\ReportEngine>ECHO off
19-nov-2011 8:29:17 org.eclipse.birt.report.engine.api.impl.RunAndRenderTask doR
un
SEVERE: Error happened while running the report.
java.lang.ExceptionInInitializerError
at com.ibm.rmc.reporting.oda.LibraryDriver.newConnection(LibraryDriver.j
ava:24)
at org.eclipse.datatools.connectivity.oda.impl.SimpleDriver.getConnectio
n(SimpleDriver.java:34)
at org.eclipse.datatools.connectivity.oda.consumer.helper.OdaDriver.getC
onnection(OdaDriver.java:556)
at org.eclipse.birt.data.engine.odaconsumer.ConnectionManager.openConnec
tion(ConnectionManager.java:164)
at org.eclipse.birt.data.engine.executor.DataSource.newConnection(DataSo
urce.java:224)
at org.eclipse.birt.data.engine.executor.DataSource.open(DataSource.java
:212)
at org.eclipse.birt.data.engine.impl.DataSourceRuntime.openOdiDataSource
(DataSourceRuntime.java:217)
at org.eclipse.birt.data.engine.impl.QueryExecutor.openDataSource(QueryE
xecutor.java:407)
at org.eclipse.birt.data.engine.impl.QueryExecutor.prepareExecution(Quer
yExecutor.java:317)
at org.eclipse.birt.data.engine.impl.PreparedQuery.doPrepare(PreparedQue
ry.java:455)
at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.produceQuer
yResults(PreparedDataSourceQuery.java:190)
at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.execute(Pre
paredDataSourceQuery.java:178)
at org.eclipse.birt.data.engine.impl.PreparedOdaDSQuery.execute(Prepared
OdaDSQuery.java:145)
at org.eclipse.birt.report.data.adapter.impl.DataRequestSessionImpl.exec
ute(DataRequestSessionImpl.java:620)
at org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExecuteQuery(
DteDataEngine.java:152)
at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.execute(Ab
stractDataEngine.java:267)
at org.eclipse.birt.report.engine.executor.ExecutionContext.executeQuery
(ExecutionContext.java:1905)
at org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuer
y(QueryItemExecutor.java:80)
at org.eclipse.birt.report.engine.executor.TableItemExecutor.execute(Tab
leItemExecutor.java:62)
at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplicat
eItemExecutor.execute(SuppressDuplicateItemExecutor.java:43)
at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportIt
emExecutor.execute(WrappedReportItemExecutor.java:46)
at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReport
ItemExecutor.execute(LocalizedReportItemExecutor.java:34)
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layout
Nodes(HTMLBlockStackingLM.java:65)
at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPage
LM.java:92)
at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.lay
out(HTMLReportLayoutEngine.java:100)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAnd
RenderTask.java:180)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRe
nderTask.java:77)
at org.eclipse.birt.report.engine.api.ReportRunner.runAndRenderReport(Re
portRunner.java:223)
at org.eclipse.birt.report.engine.api.ReportRunner.execute(ReportRunner.
java:163)
at org.eclipse.birt.report.engine.api.ReportRunner.main(ReportRunner.jav
a:122)
Caused by: java.lang.NullPointerException
at com.ibm.rmc.reporting.oda.LibraryConnection.<clinit>(LibraryConnectio
n.java:33)
... 30 more
19-nov-2011 8:29:17 org.eclipse.birt.report.engine.api.ReportRunner runAndRender
Report
SEVERE: Error happened while running the report.
org.eclipse.birt.report.engine.api.EngineException: Error happened while running
the report.
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAnd
RenderTask.java:209)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRe
nderTask.java:77)
at org.eclipse.birt.report.engine.api.ReportRunner.runAndRenderReport(Re
portRunner.java:223)
at org.eclipse.birt.report.engine.api.ReportRunner.execute(ReportRunner.
java:163)
at org.eclipse.birt.report.engine.api.ReportRunner.main(ReportRunner.jav
a:122)
Caused by: java.lang.ExceptionInInitializerError
at com.ibm.rmc.reporting.oda.LibraryDriver.newConnection(LibraryDriver.j
ava:24)
at org.eclipse.datatools.connectivity.oda.impl.SimpleDriver.getConnectio
n(SimpleDriver.java:34)
at org.eclipse.datatools.connectivity.oda.consumer.helper.OdaDriver.getC
onnection(OdaDriver.java:556)
at org.eclipse.birt.data.engine.odaconsumer.ConnectionManager.openConnec
tion(ConnectionManager.java:164)
at org.eclipse.birt.data.engine.executor.DataSource.newConnection(DataSo
urce.java:224)
at org.eclipse.birt.data.engine.executor.DataSource.open(DataSource.java
:212)
at org.eclipse.birt.data.engine.impl.DataSourceRuntime.openOdiDataSource
(DataSourceRuntime.java:217)
at org.eclipse.birt.data.engine.impl.QueryExecutor.openDataSource(QueryE
xecutor.java:407)
at org.eclipse.birt.data.engine.impl.QueryExecutor.prepareExecution(Quer
yExecutor.java:317)
at org.eclipse.birt.data.engine.impl.PreparedQuery.doPrepare(PreparedQue
ry.java:455)
at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.produceQuer
yResults(PreparedDataSourceQuery.java:190)
at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.execute(Pre
paredDataSourceQuery.java:178)
at org.eclipse.birt.data.engine.impl.PreparedOdaDSQuery.execute(Prepared
OdaDSQuery.java:145)
at org.eclipse.birt.report.data.adapter.impl.DataRequestSessionImpl.exec
ute(DataRequestSessionImpl.java:620)
at org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExecuteQuery(
DteDataEngine.java:152)
at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.execute(Ab
stractDataEngine.java:267)
at org.eclipse.birt.report.engine.executor.ExecutionContext.executeQuery
(ExecutionContext.java:1905)
at org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuer
y(QueryItemExecutor.java:80)
at org.eclipse.birt.report.engine.executor.TableItemExecutor.execute(Tab
leItemExecutor.java:62)
at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplicat
eItemExecutor.execute(SuppressDuplicateItemExecutor.java:43)
at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportIt
emExecutor.execute(WrappedReportItemExecutor.java:46)
at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReport
ItemExecutor.execute(LocalizedReportItemExecutor.java:34)
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layout
Nodes(HTMLBlockStackingLM.java:65)
at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPage
LM.java:92)
at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.lay
out(HTMLReportLayoutEngine.java:100)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAnd
RenderTask.java:180)
... 4 more
Caused by: java.lang.NullPointerException
at com.ibm.rmc.reporting.oda.LibraryConnection.<clinit>(LibraryConnectio
n.java:33)
... 30 more
D:\birt-runtime-3_7_1\ReportEngine>
  • devEclipseInder
    devEclipseInder
    5 Posts

    Re: RMC BIRT reports from the command line

    ‏2013-04-22T11:11:28Z  

    Hi Onno,

    Did you get the answer for the above your questions... ?

    Because now i am also working on BIRT reports generation DOC or PDF in eclipse RMC using command line.

     

    Thanks,

    Indradeo

  • Onno
    Onno
    7 Posts

    Re: RMC BIRT reports from the command line

    ‏2013-04-22T14:30:41Z  

    Hi Onno,

    Did you get the answer for the above your questions... ?

    Because now i am also working on BIRT reports generation DOC or PDF in eclipse RMC using command line.

     

    Thanks,

    Indradeo

    Hi Indradeo,

    Never got an answer I'm afraid. I still would like an answer so if you find out more...

    Cheers,

    Onno 

  • devEclipseInder
    devEclipseInder
    5 Posts

    Re: RMC BIRT reports from the command line

    ‏2013-04-23T08:45:44Z  
    • Onno
    • ‏2013-04-22T14:30:41Z

    Hi Indradeo,

    Never got an answer I'm afraid. I still would like an answer so if you find out more...

    Cheers,

    Onno 

    Hi Onno,

    I am looking into that and definately i will share once get any idea about that.

    I have one queries regarding publishing HTML through command line using Eclipse RMC not Eclipse EPF.

    Have you worked on this kind of work ? If yes please share me the solution.

    Below is given the solution over the IBM site but this is not working.

    http://publib.boulder.ibm.com/infocenter/rmchelp/v7r5m1/index.jsp?topic=%2Fcom.ibm.rmc.help.doc%2Ftopics%2Ft_publishing_html_command_line.html

    I hope you have done this kind of scenario.

     

    Thanks,

    Indradeo