BIRT standalone API & OdaDataSource [message #202892] |
Fri, 24 November 2006 20:12 |
Eclipse User |
|
|
|
Originally posted by: marin.alic.gmx.net
Hello everybody,
I'm having problems with creating a report file out of a standalone BIRT
API. My runtime is configured properly and I can create as well as .html
as .pdf version of the sample file "hello_world.rptdesign" (in
....ReportEngine/samples). However, if I try to create one of the reports
that connect to a database (e.g. MySQL) I get the following exception:
"...
java.lang.NullPointerException
at
org.eclipse.birt.report.model.elements.OdaDataSource.setIntr insicProperty(OdaDataSource.java:201)
at
org.eclipse.birt.report.model.core.DesignElement.setProperty (DesignElement.java:1218)
at
org.eclipse.birt.report.model.core.DesignElement.setProperty (DesignElement.java:1188)
at
org.eclipse.birt.report.model.parser.DesignParseState.setPro perty(DesignParseState.java:99)
at
org.eclipse.birt.report.model.parser.OdaDataSourceState.pars eODADataSourceExtensionID(OdaDataSourceState.java:167)
at
org.eclipse.birt.report.model.parser.OdaDataSourceState.pars eAttrs(OdaDataSourceState.java:82)
at
org.eclipse.birt.report.model.parser.ModuleParserHandler.sta rtElement(ModuleParserHandler.java:145)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .startElement(AbstractSAXParser.java:533)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.j ava:878)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1693)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at
org.eclipse.birt.report.model.parser.ModuleReader.readModule (ModuleReader.java:90)
at
org.eclipse.birt.report.model.parser.DesignReader.read(Desig nReader.java:90)
at
org.eclipse.birt.report.model.core.DesignSession.openDesign( DesignSession.java:278)
at
org.eclipse.birt.report.model.api.SessionHandle.openDesign(S essionHandle.java:291)
at
org.eclipse.birt.report.engine.parser.ReportParser.getDesign Handle(ReportParser.java:161)
at
org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:243)
at
org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:191)
at
org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:125)
at
org.eclipse.birt.report.engine.api.impl.ReportEngine.openRep ortDesign(ReportEngine.java:224)
...."
Oddly enough, I can preview my report files inside Eclipse with the same
dapendencies in Java buld path. What could be the problem? Many thanks
for any hints.
|
|
|
Re: BIRT standalone API & OdaDataSource [message #202930 is a reply to message #202892] |
Sun, 26 November 2006 11:58 |
Eclipse User |
|
|
|
Originally posted by: marin.alic.gmx.net
Hello,
just installed BIRT 2.2.0 M2 release and rerun my project: it seems that
this problem does not appear in the new version!!!
Greetings
Mali wrote:
> Hello everybody,
> I'm having problems with creating a report file out of a standalone BIRT
> API. My runtime is configured properly and I can create as well as .html
> as .pdf version of the sample file "hello_world.rptdesign" (in
> ...ReportEngine/samples). However, if I try to create one of the reports
> that connect to a database (e.g. MySQL) I get the following exception:
> "...
> java.lang.NullPointerException
> at
> org.eclipse.birt.report.model.elements.OdaDataSource.setIntr insicProperty(OdaDataSource.java:201)
> at
> org.eclipse.birt.report.model.core.DesignElement.setProperty (DesignElement.java:1218)
> at
> org.eclipse.birt.report.model.core.DesignElement.setProperty (DesignElement.java:1188)
> at
> org.eclipse.birt.report.model.parser.DesignParseState.setPro perty(DesignParseState.java:99)
> at
> org.eclipse.birt.report.model.parser.OdaDataSourceState.pars eODADataSourceExtensionID(OdaDataSourceState.java:167)
> at
> org.eclipse.birt.report.model.parser.OdaDataSourceState.pars eAttrs(OdaDataSourceState.java:82)
> at
> org.eclipse.birt.report.model.parser.ModuleParserHandler.sta rtElement(ModuleParserHandler.java:145)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .startElement(AbstractSAXParser.java:533)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.j ava:878)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1693)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
> at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
> at
> org.eclipse.birt.report.model.parser.ModuleReader.readModule (ModuleReader.java:90)
> at
> org.eclipse.birt.report.model.parser.DesignReader.read(Desig nReader.java:90)
> at
> org.eclipse.birt.report.model.core.DesignSession.openDesign( DesignSession.java:278)
> at
> org.eclipse.birt.report.model.api.SessionHandle.openDesign(S essionHandle.java:291)
> at
> org.eclipse.birt.report.engine.parser.ReportParser.getDesign Handle(ReportParser.java:161)
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:243)
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:191)
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:125)
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngine.openRep ortDesign(ReportEngine.java:224)
>
> ..."
>
> Oddly enough, I can preview my report files inside Eclipse with the same
> dapendencies in Java buld path. What could be the problem? Many thanks
> for any hints.
|
|
|
Powered by
FUDForum. Page generated in 0.03656 seconds