| ODA Plugin not working with standalone Report Engine [message #194428] | 
Fri, 06 October 2006 10:04   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: screek.gmx.de 
 
Hello, 
 
I am currently implementing a ODA plugin to access a Tamino XML database. My  
plugin 
is based on the ODA XML plugin included in BIRT. I am using BIRT 2.1.1. 
 
I created two small test reports with the Report Designer, one using the ODA  
XML plugin, the other one 
using my own plugin. Both reports work in the preview. 
 
Then I wrote a simple application to run them with the standalone Report  
Engine. 
The XML report works fine, but my Tamino report fails with the following  
exception: 
 
06.10.2006 15:19:56 org.eclipse.birt.data.engine.impl.DataEngineImpl <init> 
INFO: Data Engine starts up 
06.10.2006 15:19:56 org.eclipse.birt.data.engine.odaconsumer.Driver  
doGetDriverManifest 
SCHWERWIEGEND: Cannot process data source extension configuration. 
java.lang.IllegalArgumentException: myTaminoPlugin 
 at  
 org.eclipse.birt.data.engine.odaconsumer.Driver.doGetDriverM anifest(Driver.java:237) 
 at  
 org.eclipse.birt.data.engine.odaconsumer.Driver.findDataSour ceExtensionConfig(Driver.java:189) 
 at  
 org.eclipse.birt.data.engine.odaconsumer.Driver.getDriverExt ensionConfig(Driver.java:92) 
 at  
 org.eclipse.birt.data.engine.odaconsumer.Driver.newTraceOpti ons(Driver.java:330) 
 at  
 org.eclipse.birt.data.engine.odaconsumer.Driver.newLogSettin gs(Driver.java:307) 
 at  
 org.eclipse.birt.data.engine.odaconsumer.Driver.setLogConfig uration(Driver.java:135) 
 at  
 org.eclipse.birt.data.engine.odaconsumer.DriverManager.setDr iverLogConfiguration(DriverManager.java:125) 
 at  
 org.eclipse.birt.data.engine.odaconsumer.ConnectionManager.o penConnection(ConnectionManager.java:126) 
 at  
 org.eclipse.birt.data.engine.executor.DataSource.newConnecti on(DataSource.java:129) 
 at  
 org.eclipse.birt.data.engine.executor.DataSource.open(DataSo urce.java:117) 
 at  
 org.eclipse.birt.data.engine.impl.DataSourceRuntime.openOdiD ataSource(DataSourceRuntime.java:206) 
 at  
 org.eclipse.birt.data.engine.impl.QueryExecutor.openDataSour ce(QueryExecutor.java:247) 
 at  
 org.eclipse.birt.data.engine.impl.QueryExecutor.prepareExecu tion(QueryExecutor.java:201) 
 at  
 org.eclipse.birt.data.engine.impl.PreparedQuery.doPrepare(Pr eparedQuery.java:397) 
 at  
 org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.ex ecute(PreparedDataSourceQuery.java:147) 
 at  
 org.eclipse.birt.data.engine.impl.PreparedOdaDSQuery.execute (PreparedOdaDSQuery.java:135) 
 at  
 org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.ex ecute(PreparedDataSourceQuery.java:127) 
 at  
 org.eclipse.birt.report.engine.data.dte.DataGenerationEngine .doExecuteQuery(DataGenerationEngine.java:123) 
 at  
 org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.e xecute(AbstractDataEngine.java:208) 
 at  
 org.eclipse.birt.report.engine.executor.ExecutionContext.exe cuteQuery(ExecutionContext.java:1640) 
 at  
 org.eclipse.birt.report.engine.executor.QueryItemExecutor.ex ecuteQuery(QueryItemExecutor.java:62) 
 at  
 org.eclipse.birt.report.engine.executor.TableItemExecutor.ex ecute(TableItemExecutor.java:74) 
 at  
 org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout Children(HTMLPageLM.java:123) 
 at  
 org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout (HTMLPageLM.java:81) 
 at  
 org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutE ngine.layout(HTMLReportLayoutEngine.java:80) 
 at  
 org.eclipse.birt.report.engine.presentation.ReportDocumentBu ilder.build(ReportDocumentBuilder.java:143) 
 at  org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTas k.java:224) 
 at  org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask. java:126) 
 at  org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask. java:111) 
 at Main.runRptDocument(Main.java:106) 
 at Main.main(Main.java:49) 
.... 
 
I did some experiments and found out, that the same exception occurs if I  
remove the XML ODA plugin 
" org.eclipse.birt.report.data.oda.xml_2.1.1.v20060926-0959.ja r " from the  
Report Engine's plugins directory and try to run the XML report. 
Therefore I think my plugin is not found by the Report Engine. 
 
Is there some additional action required (besides copying the plugin to the  
plugins directory) to make the Report Engine recognize my plugin? 
 
 
Thanks in advance! 
 
Christian
 |  
 |  
  | 
| Re: ODA Plugin not working with standalone Report Engine [message #194489 is a reply to message #194428] | 
Tue, 10 October 2006 10:48    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: screek.gmx.de 
 
Wow, I found the solution! 
 
For the case that someone else is stuck with this problem, the manifest file  
was the cause. If the manifest file is not 100% correct, then the plugin is  
simply ignored. 
 
The bad thing was, that there was a different behaviour of the  
ReportDesigner in Eclipse and the standalone ReportEngine. With the  
ReportDesigner in Eclipse also my first manifest was accepted. 
 
Sorry, I can't tell you exactly where the error in the manifest was, I  
simply rewrote the file. 
 
 
Regards, 
 
Christian 
 
 
"Christian Eckert" <screek@gmx.de> wrote in message  
news:egg3la$g3j$1@utils.eclipse.org... 
>I found out that the problem is probably related to the ExtensionRegistry  
>and how the plugins for a given extension point are found. 
> I use birt-runtime-2_1_1.zip, copying my own plugin to the  
> ReportEngine/plugins folder where the other ODA plugins are located. 
> 
> The following code prints out all plugins that are found for the extension  
> point org.eclipse.datatools.connectivity.oda.dataSource: 
> 
> ... starting report engine ... 
> 
> String extensionPoint =  
> "org.eclipse.datatools.connectivity.oda.dataSource"; 
> 
> IExtensionPoint extPoint =  
>  Platform.getExtensionRegistry().getExtensionPoint(extensionP oint); 
> IExtension[] extensions = extPoint.getExtensions(); 
> 
> if(extensions != null) 
> { 
>    System.out.println("Following plugins were found for the extension  
> point " + extensionPoint + ":"); 
>    for(int i=0; i<extensions.length; i++) 
>    { 
>        System.out.println(extensions[i].getNamespace()); 
>    } 
> } 
> 
> Here is the output: 
> Following plugins were found for the extension point  
> org.eclipse.datatools.connectivity.oda.dataSource: 
> org.eclipse.birt.report.data.oda.jdbc 
> org.eclipse.birt.report.data.oda.sampledb 
> org.eclipse.birt.report.data.oda.xml 
> org.eclipse.datatools.connectivity.oda.flatfile 
> 
> I don't think that there is a mistake in my plugin.xml file, I checked it  
> several times. But what else could be responsible that my plugin is not  
> found? 
> 
> My plugin.xml file looks like: 
> <?xml version="1.0" encoding="UTF-8"?> 
> <?eclipse version="3.0"?> 
> <plugin> 
>     <extension 
>         point="org.eclipse.datatools.connectivity.oda.dataSource"> 
>     <dataSet 
>     ... 
>     </dataSet> 
>     <dataSource 
>         odaVersion="3.0.0" 
>         driverClass="com.softwareag.tamino.qett.plugin.oda.impl.Driver " 
>         defaultDisplayName="%datasource.name" 
>         id="com.softwareag.tamino.qett.plugin.oda" 
>         setThreadContextClassLoader="false"> 
>     ... 
> 
> Any advice could help, thanks in advance! 
> 
> 
> Regards, 
> 
> Christian 
> 
> "Christian Eckert" <screek@gmx.de> wrote in message  
> news:eg5npl$phv$1@utils.eclipse.org... 
>> Hello, 
>> 
>> I am currently implementing a ODA plugin to access a Tamino XML database.  
>> My plugin 
>> is based on the ODA XML plugin included in BIRT. I am using BIRT 2.1.1. 
>> 
>> I created two small test reports with the Report Designer, one using the  
>> ODA XML plugin, the other one 
>> using my own plugin. Both reports work in the preview. 
>> 
>> Then I wrote a simple application to run them with the standalone Report  
>> Engine. 
>> The XML report works fine, but my Tamino report fails with the following  
>> exception: 
>> 
>> 06.10.2006 15:19:56 org.eclipse.birt.data.engine.impl.DataEngineImpl  
>> <init> 
>> INFO: Data Engine starts up 
>> 06.10.2006 15:19:56 org.eclipse.birt.data.engine.odaconsumer.Driver  
>> doGetDriverManifest 
>> SCHWERWIEGEND: Cannot process data source extension configuration. 
>> java.lang.IllegalArgumentException: myTaminoPlugin 
>> at  
>>  org.eclipse.birt.data.engine.odaconsumer.Driver.doGetDriverM anifest(Driver.java:237) 
>> at  
>>  org.eclipse.birt.data.engine.odaconsumer.Driver.findDataSour ceExtensionConfig(Driver.java:189) 
>> at  
>>  org.eclipse.birt.data.engine.odaconsumer.Driver.getDriverExt ensionConfig(Driver.java:92) 
>> at  
>>  org.eclipse.birt.data.engine.odaconsumer.Driver.newTraceOpti ons(Driver.java:330) 
>> at  
>>  org.eclipse.birt.data.engine.odaconsumer.Driver.newLogSettin gs(Driver.java:307) 
>> at  
>>  org.eclipse.birt.data.engine.odaconsumer.Driver.setLogConfig uration(Driver.java:135) 
>> at  
>>  org.eclipse.birt.data.engine.odaconsumer.DriverManager.setDr iverLogConfiguration(DriverManager.java:125) 
>> at  
>>  org.eclipse.birt.data.engine.odaconsumer.ConnectionManager.o penConnection(ConnectionManager.java:126) 
>> at  
>>  org.eclipse.birt.data.engine.executor.DataSource.newConnecti on(DataSource.java:129) 
>> at  
>>  org.eclipse.birt.data.engine.executor.DataSource.open(DataSo urce.java:117) 
>> at  
>>  org.eclipse.birt.data.engine.impl.DataSourceRuntime.openOdiD ataSource(DataSourceRuntime.java:206) 
>> at  
>>  org.eclipse.birt.data.engine.impl.QueryExecutor.openDataSour ce(QueryExecutor.java:247) 
>> at  
>>  org.eclipse.birt.data.engine.impl.QueryExecutor.prepareExecu tion(QueryExecutor.java:201) 
>> at  
>>  org.eclipse.birt.data.engine.impl.PreparedQuery.doPrepare(Pr eparedQuery.java:397) 
>> at  
>>  org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.ex ecute(PreparedDataSourceQuery.java:147) 
>> at  
>>  org.eclipse.birt.data.engine.impl.PreparedOdaDSQuery.execute (PreparedOdaDSQuery.java:135) 
>> at  
>>  org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.ex ecute(PreparedDataSourceQuery.java:127) 
>> at  
>>  org.eclipse.birt.report.engine.data.dte.DataGenerationEngine .doExecuteQuery(DataGenerationEngine.java:123) 
>> at  
>>  org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.e xecute(AbstractDataEngine.java:208) 
>> at  
>>  org.eclipse.birt.report.engine.executor.ExecutionContext.exe cuteQuery(ExecutionContext.java:1640) 
>> at  
>>  org.eclipse.birt.report.engine.executor.QueryItemExecutor.ex ecuteQuery(QueryItemExecutor.java:62) 
>> at  
>>  org.eclipse.birt.report.engine.executor.TableItemExecutor.ex ecute(TableItemExecutor.java:74) 
>> at  
>>  org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout Children(HTMLPageLM.java:123) 
>> at  
>>  org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout (HTMLPageLM.java:81) 
>> at  
>>  org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutE ngine.layout(HTMLReportLayoutEngine.java:80) 
>> at  
>>  org.eclipse.birt.report.engine.presentation.ReportDocumentBu ilder.build(ReportDocumentBuilder.java:143) 
>> at  
>>  org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTas k.java:224) 
>> at  org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask. java:126) 
>> at  org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask. java:111) 
>> at Main.runRptDocument(Main.java:106) 
>> at Main.main(Main.java:49) 
>> ... 
>> 
>> I did some experiments and found out, that the same exception occurs if I  
>> remove the XML ODA plugin 
>> " org.eclipse.birt.report.data.oda.xml_2.1.1.v20060926-0959.ja r " from the  
>> Report Engine's plugins directory and try to run the XML report. 
>> Therefore I think my plugin is not found by the Report Engine. 
>> 
>> Is there some additional action required (besides copying the plugin to  
>> the plugins directory) to make the Report Engine recognize my plugin? 
>> 
>> 
>> Thanks in advance! 
>> 
>> Christian 
>> 
> 
>
 |  
 |  
  | 
| Re: ODA Plugin not working with standalone Report Engine [message #198267 is a reply to message #194489] | 
Mon, 30 October 2006 01:25   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
The problem looks like your ODA extension has not be recognized.If it is 
able to pass the test in eclipse environment but failed in standalone Report 
Engine, that may cause by adding dependency of some eclipse plugins that are 
not available in Report Engine runtime environment.A usual way to find the 
problem is to check the plugin dependency to see if all the depended plug in 
are in /web-info/platform/plugins directory. 
 
Thanks. 
Lin 
 
"Christian Eckert" <screek@gmx.de> wrote in message 
news:eggbs4$548$1@utils.eclipse.org... 
> Wow, I found the solution! 
> 
> For the case that someone else is stuck with this problem, the manifest 
file 
> was the cause. If the manifest file is not 100% correct, then the plugin 
is 
> simply ignored. 
> 
> The bad thing was, that there was a different behaviour of the 
> ReportDesigner in Eclipse and the standalone ReportEngine. With the 
> ReportDesigner in Eclipse also my first manifest was accepted. 
> 
> Sorry, I can't tell you exactly where the error in the manifest was, I 
> simply rewrote the file. 
> 
> 
> Regards, 
> 
> Christian 
> 
> 
> "Christian Eckert" <screek@gmx.de> wrote in message 
> news:egg3la$g3j$1@utils.eclipse.org... 
> >I found out that the problem is probably related to the ExtensionRegistry 
> >and how the plugins for a given extension point are found. 
> > I use birt-runtime-2_1_1.zip, copying my own plugin to the 
> > ReportEngine/plugins folder where the other ODA plugins are located. 
> > 
> > The following code prints out all plugins that are found for the 
extension 
> > point org.eclipse.datatools.connectivity.oda.dataSource: 
> > 
> > ... starting report engine ... 
> > 
> > String extensionPoint = 
> > "org.eclipse.datatools.connectivity.oda.dataSource"; 
> > 
> > IExtensionPoint extPoint = 
> >  Platform.getExtensionRegistry().getExtensionPoint(extensionP oint); 
> > IExtension[] extensions = extPoint.getExtensions(); 
> > 
> > if(extensions != null) 
> > { 
> >    System.out.println("Following plugins were found for the extension 
> > point " + extensionPoint + ":"); 
> >    for(int i=0; i<extensions.length; i++) 
> >    { 
> >        System.out.println(extensions[i].getNamespace()); 
> >    } 
> > } 
> > 
> > Here is the output: 
> > Following plugins were found for the extension point 
> > org.eclipse.datatools.connectivity.oda.dataSource: 
> > org.eclipse.birt.report.data.oda.jdbc 
> > org.eclipse.birt.report.data.oda.sampledb 
> > org.eclipse.birt.report.data.oda.xml 
> > org.eclipse.datatools.connectivity.oda.flatfile 
> > 
> > I don't think that there is a mistake in my plugin.xml file, I checked 
it 
> > several times. But what else could be responsible that my plugin is not 
> > found? 
> > 
> > My plugin.xml file looks like: 
> > <?xml version="1.0" encoding="UTF-8"?> 
> > <?eclipse version="3.0"?> 
> > <plugin> 
> >     <extension 
> >         point="org.eclipse.datatools.connectivity.oda.dataSource"> 
> >     <dataSet 
> >     ... 
> >     </dataSet> 
> >     <dataSource 
> >         odaVersion="3.0.0" 
> >         driverClass="com.softwareag.tamino.qett.plugin.oda.impl.Driver " 
> >         defaultDisplayName="%datasource.name" 
> >         id="com.softwareag.tamino.qett.plugin.oda" 
> >         setThreadContextClassLoader="false"> 
> >     ... 
> > 
> > Any advice could help, thanks in advance! 
> > 
> > 
> > Regards, 
> > 
> > Christian 
> > 
> > "Christian Eckert" <screek@gmx.de> wrote in message 
> > news:eg5npl$phv$1@utils.eclipse.org... 
> >> Hello, 
> >> 
> >> I am currently implementing a ODA plugin to access a Tamino XML 
database. 
> >> My plugin 
> >> is based on the ODA XML plugin included in BIRT. I am using BIRT 2.1.1. 
> >> 
> >> I created two small test reports with the Report Designer, one using 
the 
> >> ODA XML plugin, the other one 
> >> using my own plugin. Both reports work in the preview. 
> >> 
> >> Then I wrote a simple application to run them with the standalone 
Report 
> >> Engine. 
> >> The XML report works fine, but my Tamino report fails with the 
following 
> >> exception: 
> >> 
> >> 06.10.2006 15:19:56 org.eclipse.birt.data.engine.impl.DataEngineImpl 
> >> <init> 
> >> INFO: Data Engine starts up 
> >> 06.10.2006 15:19:56 org.eclipse.birt.data.engine.odaconsumer.Driver 
> >> doGetDriverManifest 
> >> SCHWERWIEGEND: Cannot process data source extension configuration. 
> >> java.lang.IllegalArgumentException: myTaminoPlugin 
> >> at 
> >> 
 org.eclipse.birt.data.engine.odaconsumer.Driver.doGetDriverM anifest(Driver.j 
ava:237) 
> >> at 
> >> 
 org.eclipse.birt.data.engine.odaconsumer.Driver.findDataSour ceExtensionConfi 
g(Driver.java:189) 
> >> at 
> >> 
 org.eclipse.birt.data.engine.odaconsumer.Driver.getDriverExt ensionConfig(Dri 
ver.java:92) 
> >> at 
> >> 
 org.eclipse.birt.data.engine.odaconsumer.Driver.newTraceOpti ons(Driver.java: 
330) 
> >> at 
> >> 
 org.eclipse.birt.data.engine.odaconsumer.Driver.newLogSettin gs(Driver.java:3 
07) 
> >> at 
> >> 
 org.eclipse.birt.data.engine.odaconsumer.Driver.setLogConfig uration(Driver.j 
ava:135) 
> >> at 
> >> 
 org.eclipse.birt.data.engine.odaconsumer.DriverManager.setDr iverLogConfigura 
tion(DriverManager.java:125) 
> >> at 
> >> 
 org.eclipse.birt.data.engine.odaconsumer.ConnectionManager.o penConnection(Co 
nnectionManager.java:126) 
> >> at 
> >> 
 org.eclipse.birt.data.engine.executor.DataSource.newConnecti on(DataSource.ja 
va:129) 
> >> at 
> >> 
 org.eclipse.birt.data.engine.executor.DataSource.open(DataSo urce.java:117) 
> >> at 
> >> 
 org.eclipse.birt.data.engine.impl.DataSourceRuntime.openOdiD ataSource(DataSo 
urceRuntime.java:206) 
> >> at 
> >> 
 org.eclipse.birt.data.engine.impl.QueryExecutor.openDataSour ce(QueryExecutor 
..java:247) 
> >> at 
> >> 
 org.eclipse.birt.data.engine.impl.QueryExecutor.prepareExecu tion(QueryExecut 
or.java:201) 
> >> at 
> >> 
 org.eclipse.birt.data.engine.impl.PreparedQuery.doPrepare(Pr eparedQuery.java 
:397) 
> >> at 
> >> 
 org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.ex ecute(PreparedDa 
taSourceQuery.java:147) 
> >> at 
> >> 
 org.eclipse.birt.data.engine.impl.PreparedOdaDSQuery.execute (PreparedOdaDSQu 
ery.java:135) 
> >> at 
> >> 
 org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.ex ecute(PreparedDa 
taSourceQuery.java:127) 
> >> at 
> >> 
 org.eclipse.birt.report.engine.data.dte.DataGenerationEngine .doExecuteQuery( 
DataGenerationEngine.java:123) 
> >> at 
> >> 
 org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.e xecute(AbstractD 
ataEngine.java:208) 
> >> at 
> >> 
 org.eclipse.birt.report.engine.executor.ExecutionContext.exe cuteQuery(Execut 
ionContext.java:1640) 
> >> at 
> >> 
 org.eclipse.birt.report.engine.executor.QueryItemExecutor.ex ecuteQuery(Query 
ItemExecutor.java:62) 
> >> at 
> >> 
 org.eclipse.birt.report.engine.executor.TableItemExecutor.ex ecute(TableItemE 
xecutor.java:74) 
> >> at 
> >> 
 org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout Children(HTMLPag 
eLM.java:123) 
> >> at 
> >> 
 org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout (HTMLPageLM.java 
:81) 
> >> at 
> >> 
 org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutE ngine.layout(HTM 
LReportLayoutEngine.java:80) 
> >> at 
> >> 
 org.eclipse.birt.report.engine.presentation.ReportDocumentBu ilder.build(Repo 
rtDocumentBuilder.java:143) 
> >> at 
> >>  org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTas k.java:224) 
> >> at 
 org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask. java:126) 
> >> at 
 org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask. java:111) 
> >> at Main.runRptDocument(Main.java:106) 
> >> at Main.main(Main.java:49) 
> >> ... 
> >> 
> >> I did some experiments and found out, that the same exception occurs if 
I 
> >> remove the XML ODA plugin 
> >> " org.eclipse.birt.report.data.oda.xml_2.1.1.v20060926-0959.ja r " from 
the 
> >> Report Engine's plugins directory and try to run the XML report. 
> >> Therefore I think my plugin is not found by the Report Engine. 
> >> 
> >> Is there some additional action required (besides copying the plugin to 
> >> the plugins directory) to make the Report Engine recognize my plugin? 
> >> 
> >> 
> >> Thanks in advance! 
> >> 
> >> Christian 
> >> 
> > 
> > 
> 
>
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.51999 seconds