Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Running Stand alone
Running Stand alone [message #45290] Mon, 13 June 2005 20:38 Go to next message
Joe Rybacki is currently offline Joe RybackiFriend
Messages: 36
Registered: July 2009
Member
I'm trying to invoke the birt report engine in stand alone mode and I'm
getting an invalid report file error (see below)

It's complaining about the data source extension point.. the problem is i'm
not sure what this is supposed to be. Any help would be greatly
appreciated...The report runs fine within the plugin. Here's the snippet of
xml it's complaining about:

<data-sources>

<oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc"
name="Data Source">

<property name="odaDriverClass">org.postgresql.Driver</property>

<property name="odaURL">jdbc:postgresql:wintox</property>

<property name="odaUser">wintox</property>

<encrypted-property
name="odaPassword">d2ludG94</encrypted-property>

</oda-data-source>

</data-sources>


org.eclipse.birt.report.engine.api.EngineException: The design file
reports/finalReport.rptdesign has error and can not be run.

at
org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:92)

at
org.eclipse.birt.report.engine.api.ReportEngine.openReportDe sign(ReportEngine.java:212)

at RunReport.run(RunReport.java:110)

at RunReport.main(RunReport.java:75)

Caused by: Error.DesignFileException.INVALID_XML - 1 errors found!

1.) ( line = 17) org.xml.sax.SAXParseException (message :
org.eclipse.birt.report.data.oda.jdbc)

at
org.eclipse.birt.report.model.parser.DesignReader.read(Desig nReader.java:99)

at
org.eclipse.birt.report.model.parser.DesignReader.read(Desig nReader.java:146)

at
org.eclipse.birt.report.model.core.DesignSession.openDesign( DesignSession.java:174)

at
org.eclipse.birt.report.model.api.SessionHandle.openDesign(S essionHandle.java:94)

at
org.eclipse.birt.report.engine.parser.ReportParser.parse(Rep ortParser.java:83)

at
org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:87)
Re: Running Stand alone [message #45376 is a reply to message #45290] Mon, 13 June 2005 21:42 Go to previous messageGo to next message
Joe Rybacki is currently offline Joe RybackiFriend
Messages: 36
Registered: July 2009
Member
For some reason the oda.jdbc plugin isn't registering with the
ServerPlatform for stand alone running
the flatfile and sampledb are though...I'm going to keep digging any ideas?

"Joe Rybacki" <Joe.Rybacki@dynetics.com> wrote in message
news:d8kqrf$mv3$1@news.eclipse.org...
> I'm trying to invoke the birt report engine in stand alone mode and I'm
> getting an invalid report file error (see below)
>
> It's complaining about the data source extension point.. the problem is
> i'm not sure what this is supposed to be. Any help would be greatly
> appreciated...The report runs fine within the plugin. Here's the snippet
> of xml it's complaining about:
>
> <data-sources>
>
> <oda-data-source
> extensionID="org.eclipse.birt.report.data.oda.jdbc" name="Data Source">
>
> <property
> name="odaDriverClass">org.postgresql.Driver</property>
>
> <property name="odaURL">jdbc:postgresql:wintox</property>
>
> <property name="odaUser">wintox</property>
>
> <encrypted-property
> name="odaPassword">d2ludG94</encrypted-property>
>
> </oda-data-source>
>
> </data-sources>
>
>
> org.eclipse.birt.report.engine.api.EngineException: The design file
> reports/finalReport.rptdesign has error and can not be run.
>
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:92)
>
> at
> org.eclipse.birt.report.engine.api.ReportEngine.openReportDe sign(ReportEngine.java:212)
>
> at RunReport.run(RunReport.java:110)
>
> at RunReport.main(RunReport.java:75)
>
> Caused by: Error.DesignFileException.INVALID_XML - 1 errors found!
>
> 1.) ( line = 17) org.xml.sax.SAXParseException (message :
> org.eclipse.birt.report.data.oda.jdbc)
>
> at
> org.eclipse.birt.report.model.parser.DesignReader.read(Desig nReader.java:99)
>
> at
> org.eclipse.birt.report.model.parser.DesignReader.read(Desig nReader.java:146)
>
> at
> org.eclipse.birt.report.model.core.DesignSession.openDesign( DesignSession.java:174)
>
> at
> org.eclipse.birt.report.model.api.SessionHandle.openDesign(S essionHandle.java:94)
>
> at
> org.eclipse.birt.report.engine.parser.ReportParser.parse(Rep ortParser.java:83)
>
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:87)
>
>
Re: Running Stand alone [message #45407 is a reply to message #45376] Mon, 13 June 2005 21:58 Go to previous messageGo to next message
Joe Rybacki is currently offline Joe RybackiFriend
Messages: 36
Registered: July 2009
Member
Figured out what the problem was... When i was putting the postgres driver
into the jdbc plugin.xml I used < and > instead of &lt; and %gt; That
killed the sax parser on the plugin and made no extension point available to
the report. Quite a lot of digging to find that one...On to the next one :)


"Joe Rybacki" <Joe.Rybacki@dynetics.com> wrote in message
news:d8kujg$ra1$1@news.eclipse.org...
> For some reason the oda.jdbc plugin isn't registering with the
> ServerPlatform for stand alone running
> the flatfile and sampledb are though...I'm going to keep digging any
> ideas?
>
> "Joe Rybacki" <Joe.Rybacki@dynetics.com> wrote in message
> news:d8kqrf$mv3$1@news.eclipse.org...
>> I'm trying to invoke the birt report engine in stand alone mode and I'm
>> getting an invalid report file error (see below)
>>
>> It's complaining about the data source extension point.. the problem is
>> i'm not sure what this is supposed to be. Any help would be greatly
>> appreciated...The report runs fine within the plugin. Here's the snippet
>> of xml it's complaining about:
>>
>> <data-sources>
>>
>> <oda-data-source
>> extensionID="org.eclipse.birt.report.data.oda.jdbc" name="Data Source">
>>
>> <property
>> name="odaDriverClass">org.postgresql.Driver</property>
>>
>> <property name="odaURL">jdbc:postgresql:wintox</property>
>>
>> <property name="odaUser">wintox</property>
>>
>> <encrypted-property
>> name="odaPassword">d2ludG94</encrypted-property>
>>
>> </oda-data-source>
>>
>> </data-sources>
>>
>>
>> org.eclipse.birt.report.engine.api.EngineException: The design file
>> reports/finalReport.rptdesign has error and can not be run.
>>
>> at
>> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:92)
>>
>> at
>> org.eclipse.birt.report.engine.api.ReportEngine.openReportDe sign(ReportEngine.java:212)
>>
>> at RunReport.run(RunReport.java:110)
>>
>> at RunReport.main(RunReport.java:75)
>>
>> Caused by: Error.DesignFileException.INVALID_XML - 1 errors found!
>>
>> 1.) ( line = 17) org.xml.sax.SAXParseException (message :
>> org.eclipse.birt.report.data.oda.jdbc)
>>
>> at
>> org.eclipse.birt.report.model.parser.DesignReader.read(Desig nReader.java:99)
>>
>> at
>> org.eclipse.birt.report.model.parser.DesignReader.read(Desig nReader.java:146)
>>
>> at
>> org.eclipse.birt.report.model.core.DesignSession.openDesign( DesignSession.java:174)
>>
>> at
>> org.eclipse.birt.report.model.api.SessionHandle.openDesign(S essionHandle.java:94)
>>
>> at
>> org.eclipse.birt.report.engine.parser.ReportParser.parse(Rep ortParser.java:83)
>>
>> at
>> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:87)
>>
>>
>
>
Re: Running Stand alone [message #45437 is a reply to message #45407] Mon, 13 June 2005 22:20 Go to previous message
Joe Rybacki is currently offline Joe RybackiFriend
Messages: 36
Registered: July 2009
Member
In figuring this out I should point out that to get it to run regardless of
the problem in the xml the following has to be invoked

Platform.getExtensionRegistry();

along with the two system properties being set:
-DRUN_UNDER_ECLIPSE=false
-DBIRT_HOME=birthome

"Joe Rybacki" <Joe.Rybacki@dynetics.com> wrote in message
news:d8kvha$s7n$1@news.eclipse.org...
> Figured out what the problem was... When i was putting the postgres driver
> into the jdbc plugin.xml I used < and > instead of &lt; and %gt; That
> killed the sax parser on the plugin and made no extension point available
> to the report. Quite a lot of digging to find that one...On to the next
> one :)
>
>
> "Joe Rybacki" <Joe.Rybacki@dynetics.com> wrote in message
> news:d8kujg$ra1$1@news.eclipse.org...
>> For some reason the oda.jdbc plugin isn't registering with the
>> ServerPlatform for stand alone running
>> the flatfile and sampledb are though...I'm going to keep digging any
>> ideas?
>>
>> "Joe Rybacki" <Joe.Rybacki@dynetics.com> wrote in message
>> news:d8kqrf$mv3$1@news.eclipse.org...
>>> I'm trying to invoke the birt report engine in stand alone mode and I'm
>>> getting an invalid report file error (see below)
>>>
>>> It's complaining about the data source extension point.. the problem is
>>> i'm not sure what this is supposed to be. Any help would be greatly
>>> appreciated...The report runs fine within the plugin. Here's the snippet
>>> of xml it's complaining about:
>>>
>>> <data-sources>
>>>
>>> <oda-data-source
>>> extensionID="org.eclipse.birt.report.data.oda.jdbc" name="Data Source">
>>>
>>> <property
>>> name="odaDriverClass">org.postgresql.Driver</property>
>>>
>>> <property name="odaURL">jdbc:postgresql:wintox</property>
>>>
>>> <property name="odaUser">wintox</property>
>>>
>>> <encrypted-property
>>> name="odaPassword">d2ludG94</encrypted-property>
>>>
>>> </oda-data-source>
>>>
>>> </data-sources>
>>>
>>>
>>> org.eclipse.birt.report.engine.api.EngineException: The design file
>>> reports/finalReport.rptdesign has error and can not be run.
>>>
>>> at
>>> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:92)
>>>
>>> at
>>> org.eclipse.birt.report.engine.api.ReportEngine.openReportDe sign(ReportEngine.java:212)
>>>
>>> at RunReport.run(RunReport.java:110)
>>>
>>> at RunReport.main(RunReport.java:75)
>>>
>>> Caused by: Error.DesignFileException.INVALID_XML - 1 errors found!
>>>
>>> 1.) ( line = 17) org.xml.sax.SAXParseException (message :
>>> org.eclipse.birt.report.data.oda.jdbc)
>>>
>>> at
>>> org.eclipse.birt.report.model.parser.DesignReader.read(Desig nReader.java:99)
>>>
>>> at
>>> org.eclipse.birt.report.model.parser.DesignReader.read(Desig nReader.java:146)
>>>
>>> at
>>> org.eclipse.birt.report.model.core.DesignSession.openDesign( DesignSession.java:174)
>>>
>>> at
>>> org.eclipse.birt.report.model.api.SessionHandle.openDesign(S essionHandle.java:94)
>>>
>>> at
>>> org.eclipse.birt.report.engine.parser.ReportParser.parse(Rep ortParser.java:83)
>>>
>>> at
>>> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:87)
>>>
>>>
>>
>>
>
>
Previous Topic:report generation, and serialization
Next Topic:JAR Hell with BIRT
Goto Forum:
  


Current Time: Sat Dec 21 16:54:05 GMT 2024

Powered by FUDForum. Page generated in 0.02798 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top