Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Missing extenion id in data source definition
Missing extenion id in data source definition [message #176312] Mon, 10 July 2006 21:19 Go to next message
Eclipse UserFriend
Originally posted by: kevin_ou.yahoo.com

Hi,

I am currently using BIRT 2.1 to generate a PDF from a java application
(not from a web).
However, I got the error says "Missing extenion id in data source
definition".
Could some one help me with that? Thanks

Kevin
Re: Missing extenion id in data source definition [message #176331 is a reply to message #176312] Tue, 11 July 2006 00:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kevin_ou.yahoo.com

Here is the trace stack.
------------------------------------------------------------
Missing extenion id in data source definition, jdbcDatasource
org.eclipse.birt.report.engine.api.EngineException: Missing extenion id in
data source definition, jdbcDatasource
at
org.eclipse.birt.report.engine.adapter.ModelDteApiAdapter.ne wOdaDataSource(ModelDteApiAdapter.java:298)
at
org.eclipse.birt.report.engine.adapter.ModelDteApiAdapter.cr eateDataSourceDesign(ModelDteApiAdapter.java:179)
at
org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.p repare(AbstractDataEngine.java:152)
at
org.eclipse.birt.report.engine.executor.ReportExecutor.execu te(ReportExecutor.java:101)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:38)
at
org.eclipse.birt.report.engine.layout.pdf.PDFReportLayoutEng ine.layout(PDFReportLayoutEngine.java:63)
at
org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndRenderTask.java:187)
at
com.applimation.codebase.reportbase.CBReportRender.runAndRen derReport(CBReportRender.java:74)
at
com.applimation.codebase.reportbase.CBReportRender.main(CBRe portRender.java:98)
Re: Missing extenion id in data source definition [message #176337 is a reply to message #176331] Tue, 11 July 2006 02:35 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

What database driver are you using?
Make sure it is copied to
birt-runtime-2_1_0\ReportEngine\plugins\org.eclipse.birt.rep ort.data.oda.jdbc\drivers

Jason
"kevin ou" <kevin_ou@yahoo.com> wrote in message
news:1e3f13105a6e37726a74887938bf5cc3$1@www.eclipse.org...
> Here is the trace
> stack. ------------------------------------------------------------
> Missing extenion id in data source definition, jdbcDatasource
> org.eclipse.birt.report.engine.api.EngineException: Missing extenion id in
> data source definition, jdbcDatasource
> at
> org.eclipse.birt.report.engine.adapter.ModelDteApiAdapter.ne wOdaDataSource(ModelDteApiAdapter.java:298)
> at
> org.eclipse.birt.report.engine.adapter.ModelDteApiAdapter.cr eateDataSourceDesign(ModelDteApiAdapter.java:179)
> at
> org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.p repare(AbstractDataEngine.java:152)
> at
> org.eclipse.birt.report.engine.executor.ReportExecutor.execu te(ReportExecutor.java:101)
> at
> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:38)
> at
> org.eclipse.birt.report.engine.layout.pdf.PDFReportLayoutEng ine.layout(PDFReportLayoutEngine.java:63)
> at
> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndRenderTask.java:187)
> at
> com.applimation.codebase.reportbase.CBReportRender.runAndRen derReport(CBReportRender.java:74)
> at
> com.applimation.codebase.reportbase.CBReportRender.main(CBRe portRender.java:98)
>
Re: Missing extenion id in data source definition [message #176365 is a reply to message #176337] Tue, 11 July 2006 04:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kevin_ou.yahoo.com

Thanks for the reply.

I copied the classes12.jar into
birt-runtime-2_1_0\ReportEngine\plugins\org.eclipse.birt.rep ort.data.oda.jdbc_2.1.0.N20060628-1351\drivers.
However, it is still getting the same error.
Also, I have tried to use XML as datasource, however, I got the same
error, therefore, I don't think copying jar file to drivers will solve
this error.

Kevin
Re: Missing extenion id in data source definition [message #176476 is a reply to message #176365] Tue, 11 July 2006 13:13 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Can you post your code and try using the sampledb?

Jason

"kevin ou" <kevin_ou@yahoo.com> wrote in message
news:eb511c3427963394398f7032a4b9a240$1@www.eclipse.org...
> Thanks for the reply.
>
> I copied the classes12.jar into
> birt-runtime-2_1_0\ReportEngine\plugins\org.eclipse.birt.rep ort.data.oda.jdbc_2.1.0.N20060628-1351\drivers.
> However, it is still getting the same error.
> Also, I have tried to use XML as datasource, however, I got the same
> error, therefore, I don't think copying jar file to drivers will solve
> this error.
>
> Kevin
>
Re: Missing extenion id in data source definition [message #176494 is a reply to message #176476] Tue, 11 July 2006 14:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kevin_ou.yahoo.com

Hi Jason
Thanks for the reply, hope you can help me out for this issue.
below is my code
------------------------------------------------------------ ----------------------------------
public class CBReportConfig
{
private EngineConfig gobjEngineConfig;
private String gstrEngineHome;
private String gstrDesignFileDir =
"C:/kou_am_development_snap/Applimation/Codebase/4.2/";
private String gstrOutputDir =
"C:/oracle/oradev10g/forms90/j2ee/forms90app/forms90web/";
public static String gstrReportPropertyPath =
"c:/codebase/conf/ReportProperty.properties";
private String gstrFormat;
private String gstrDesignFile = "";

public CBReportConfig(String istrFormat)
{
gstrFormat = istrFormat;
Properties p = new Properties();
try
{
InputStream iobjStream = new
FileInputStream(gstrReportPropertyPath);
p.load(iobjStream);
}
catch (Exception ex)
{
ex.printStackTrace();
}
setEngineHome(p.getProperty("BIRT_HOME"));
setDesignFileDir(p.getProperty("DESIGN_FILE"));
setOutputDir(p.getProperty("RPT_OUTPUT"));
}

public String getDesignFile()
{
return gstrDesignFile;
}

public void setDesignFile(String designFile)
{
gstrDesignFile = designFile;
}

public void setReportFormat(String lstrFormat)
{
gstrFormat = lstrFormat;
}

public String getReportFormat()
{
return gstrFormat;
}

public void setReportPropertyPath(String istrPropertieFilePath)
{
gstrReportPropertyPath = istrPropertieFilePath;
}

public EngineConfig getEngineConfig()
{
return gobjEngineConfig;
}

public String getDesignFileDir()
{
return gstrDesignFileDir;
}

public String getOutputDir()
{
return gstrOutputDir;
}

public void setOutputDir(String istrOutputDir)
{
gstrOutputDir = istrOutputDir;
}

public void setEngineHome(String istrEngineHome)
{
gobjEngineConfig = new EngineConfig();
// IPlatformContext context = new PlatformFileContext();
// gobjEngineConfig.setEngineContext(context);
//
config.setEngineHome("C:/myInstall/birt/birt-runtime-2_0_1/Report Engine");
gobjEngineConfig.setEngineHome(istrEngineHome);
gstrEngineHome = istrEngineHome;
}

public void setDesignFileDir(String istrDesignFileDir)
{
gstrDesignFileDir = istrDesignFileDir;
}

/**
* <p>This method returns the current class name</p>
* @return String - Class name
*/
private String getClassName()
{
return (this.getClass().getName());
} //End Of getClassName

/**
* <p>This method returns the version of the class</p>
* @return String - Version of the class
*/
public static String getVersion() throws Exception
{
return /*#CC_JAVA_VERSION_NUM#*/ "2";
} //End Of getVersion
}



public CBReportRender(CBReportConfig iobjCBReportConfig)
{
engine = new ReportEngine(iobjCBReportConfig.getEngineConfig());
engine.changeLogLevel(Level.FINEST );
gobjReportConfig = iobjCBReportConfig;
}

public void runAndRenderReport(String istrOutputFile, CBDBHelper
iobjDBHelper) throws Exception
{
try
{
String lstrDesignFile = gobjReportConfig.getDesignFileDir() +
gobjReportConfig.getDesignFile();
//AMConnection lobjAMConn = iobjDBHelper.getConnection();
//Open a report design - use design to modify design, retrieve
embedded images etc.
IReportRunnable design =
engine.openReportDesign(lstrDesignFile);
//Create task to run the report - use the task to execute and
run the report,
IRunAndRenderTask task = engine.createRunAndRenderTask(design);
//Set Render context to handle url and image locataions
HTMLRenderContext renderContext = new HTMLRenderContext();
renderContext.setImageDirectory("image");
HashMap contextMap = new HashMap();
contextMap.put("org.eclipse.birt.report.data.oda.jdbc",null);
task.setAppContext(contextMap);
//Set rendering options - such as file or stream output,
//output format, whether it is embeddable, etc
HTMLRenderOption options = new HTMLRenderOption();
options.setOutputFileName(istrOutputFile);
options.setOutputFormat(this.gobjReportConfig.getReportForma t());
task.setRenderOption(options);
//run the report and destroy the engine
task.run();
}
catch (Exception e)
{
throw new CBException(e, "Report render failed!");
}
}
------------------------------------------------------------ -----------------

"Jason Weathersby" <jweathersby@actuate.com> wrote in message
news:e9085v$94g$1@utils.eclipse.org...
> Can you post your code and try using the sampledb?
>
> Jason
>
> "kevin ou" <kevin_ou@yahoo.com> wrote in message
> news:eb511c3427963394398f7032a4b9a240$1@www.eclipse.org...
>> Thanks for the reply.
>>
>> I copied the classes12.jar into
>> birt-runtime-2_1_0\ReportEngine\plugins\org.eclipse.birt.rep ort.data.oda.jdbc_2.1.0.N20060628-1351\drivers.
>> However, it is still getting the same error.
>> Also, I have tried to use XML as datasource, however, I got the same
>> error, therefore, I don't think copying jar file to drivers will solve
>> this error.
>>
>> Kevin
>>
>
>
Re: Missing extenion id in data source definition [message #176524 is a reply to message #176494] Tue, 11 July 2006 21:48 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Kevin,

What version of BIRT are you using?
In your code you have this as your home.
C:/myInstall/birt/birt-runtime-2_0_1/Report Engine

Jason

"kevin" <kevin_ou@yahoo.com> wrote in message
news:e90dmr$jj8$1@utils.eclipse.org...
> Hi Jason
> Thanks for the reply, hope you can help me out for this issue.
> below is my code
> ------------------------------------------------------------ ----------------------------------
> public class CBReportConfig
> {
> private EngineConfig gobjEngineConfig;
> private String gstrEngineHome;
> private String gstrDesignFileDir =
> "C:/kou_am_development_snap/Applimation/Codebase/4.2/";
> private String gstrOutputDir =
> "C:/oracle/oradev10g/forms90/j2ee/forms90app/forms90web/";
> public static String gstrReportPropertyPath =
> "c:/codebase/conf/ReportProperty.properties";
> private String gstrFormat;
> private String gstrDesignFile = "";
>
> public CBReportConfig(String istrFormat)
> {
> gstrFormat = istrFormat;
> Properties p = new Properties();
> try
> {
> InputStream iobjStream = new
> FileInputStream(gstrReportPropertyPath);
> p.load(iobjStream);
> }
> catch (Exception ex)
> {
> ex.printStackTrace();
> }
> setEngineHome(p.getProperty("BIRT_HOME"));
> setDesignFileDir(p.getProperty("DESIGN_FILE"));
> setOutputDir(p.getProperty("RPT_OUTPUT"));
> }
>
> public String getDesignFile()
> {
> return gstrDesignFile;
> }
>
> public void setDesignFile(String designFile)
> {
> gstrDesignFile = designFile;
> }
>
> public void setReportFormat(String lstrFormat)
> {
> gstrFormat = lstrFormat;
> }
>
> public String getReportFormat()
> {
> return gstrFormat;
> }
>
> public void setReportPropertyPath(String istrPropertieFilePath)
> {
> gstrReportPropertyPath = istrPropertieFilePath;
> }
>
> public EngineConfig getEngineConfig()
> {
> return gobjEngineConfig;
> }
>
> public String getDesignFileDir()
> {
> return gstrDesignFileDir;
> }
>
> public String getOutputDir()
> {
> return gstrOutputDir;
> }
>
> public void setOutputDir(String istrOutputDir)
> {
> gstrOutputDir = istrOutputDir;
> }
>
> public void setEngineHome(String istrEngineHome)
> {
> gobjEngineConfig = new EngineConfig();
> // IPlatformContext context = new PlatformFileContext();
> // gobjEngineConfig.setEngineContext(context);
> //
> config.setEngineHome("C:/myInstall/birt/birt-runtime-2_0_1/Report
> Engine");
> gobjEngineConfig.setEngineHome(istrEngineHome);
> gstrEngineHome = istrEngineHome;
> }
>
> public void setDesignFileDir(String istrDesignFileDir)
> {
> gstrDesignFileDir = istrDesignFileDir;
> }
>
> /**
> * <p>This method returns the current class name</p>
> * @return String - Class name
> */
> private String getClassName()
> {
> return (this.getClass().getName());
> } //End Of getClassName
>
> /**
> * <p>This method returns the version of the class</p>
> * @return String - Version of the class
> */
> public static String getVersion() throws Exception
> {
> return /*#CC_JAVA_VERSION_NUM#*/ "2";
> } //End Of getVersion
> }
>
>
>
> public CBReportRender(CBReportConfig iobjCBReportConfig)
> {
> engine = new ReportEngine(iobjCBReportConfig.getEngineConfig());
> engine.changeLogLevel(Level.FINEST );
> gobjReportConfig = iobjCBReportConfig;
> }
>
> public void runAndRenderReport(String istrOutputFile, CBDBHelper
> iobjDBHelper) throws Exception
> {
> try
> {
> String lstrDesignFile = gobjReportConfig.getDesignFileDir() +
> gobjReportConfig.getDesignFile();
> //AMConnection lobjAMConn = iobjDBHelper.getConnection();
> //Open a report design - use design to modify design, retrieve
> embedded images etc.
> IReportRunnable design =
> engine.openReportDesign(lstrDesignFile);
> //Create task to run the report - use the task to execute and
> run the report,
> IRunAndRenderTask task = engine.createRunAndRenderTask(design);
> //Set Render context to handle url and image locataions
> HTMLRenderContext renderContext = new HTMLRenderContext();
> renderContext.setImageDirectory("image");
> HashMap contextMap = new HashMap();
> contextMap.put("org.eclipse.birt.report.data.oda.jdbc",null);
> task.setAppContext(contextMap);
> //Set rendering options - such as file or stream output,
> //output format, whether it is embeddable, etc
> HTMLRenderOption options = new HTMLRenderOption();
> options.setOutputFileName(istrOutputFile);
>
> options.setOutputFormat(this.gobjReportConfig.getReportForma t());
> task.setRenderOption(options);
> //run the report and destroy the engine
> task.run();
> }
> catch (Exception e)
> {
> throw new CBException(e, "Report render failed!");
> }
> }
> ------------------------------------------------------------ -----------------
>
> "Jason Weathersby" <jweathersby@actuate.com> wrote in message
> news:e9085v$94g$1@utils.eclipse.org...
>> Can you post your code and try using the sampledb?
>>
>> Jason
>>
>> "kevin ou" <kevin_ou@yahoo.com> wrote in message
>> news:eb511c3427963394398f7032a4b9a240$1@www.eclipse.org...
>>> Thanks for the reply.
>>>
>>> I copied the classes12.jar into
>>> birt-runtime-2_1_0\ReportEngine\plugins\org.eclipse.birt.rep ort.data.oda.jdbc_2.1.0.N20060628-1351\drivers.
>>> However, it is still getting the same error.
>>> Also, I have tried to use XML as datasource, however, I got the same
>>> error, therefore, I don't think copying jar file to drivers will solve
>>> this error.
>>>
>>> Kevin
>>>
>>
>>
>
>
Re: Missing extenion id in data source definition [message #176539 is a reply to message #176331] Wed, 12 July 2006 02:46 Go to previous messageGo to next message
Linda ChanFriend
Messages: 845
Registered: July 2009
Senior Member
Check the content of the report design file that you are using. The error message indicates that a value is missing in
"oda-data-source extensionID". A good definition looks something like this:

<data-sources>
<oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc" name="Sample Data Source" id="26">
<property name="odaDriverClass">org.eclipse.birt.report.data.oda.sampledb.Driver </property>
<property name="odaURL">jdbc:classicmodels:sampledb</property>
<property name="odaUser">ClassicModels</property>
</oda-data-source>
</data-sources>


kevin ou wrote:

> Here is the trace stack.
> ------------------------------------------------------------
> Missing extenion id in data source definition, jdbcDatasource
> org.eclipse.birt.report.engine.api.EngineException: Missing extenion id in
> data source definition, jdbcDatasource
> at
> org.eclipse.birt.report.engine.adapter.ModelDteApiAdapter.ne wOdaDataSource(ModelDteApiAdapter.java:298)
> at
> org.eclipse.birt.report.engine.adapter.ModelDteApiAdapter.cr eateDataSourceDesign(ModelDteApiAdapter.java:179)
> at
> org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.p repare(AbstractDataEngine.java:152)
> at
> org.eclipse.birt.report.engine.executor.ReportExecutor.execu te(ReportExecutor.java:101)
> at
> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:38)
> at
> org.eclipse.birt.report.engine.layout.pdf.PDFReportLayoutEng ine.layout(PDFReportLayoutEngine.java:63)
> at
> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndRenderTask.java:187)
> at
> com.applimation.codebase.reportbase.CBReportRender.runAndRen derReport(CBReportRender.java:74)
> at
> com.applimation.codebase.reportbase.CBReportRender.main(CBRe portRender.java:98)
Re: Missing extenion id in data source definition [message #176741 is a reply to message #176524] Wed, 12 July 2006 13:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kevin_ou.yahoo.com

Jason,
I am using Version 2.1 and I am retrieve my Birt Home using Property file
which is point to "C:/myInstall/birt/birt-runtime-2_1_0/ReportEngine". The
one you saw has been comment.

Kevin


Jason Weathersby wrote:

> Kevin,

> What version of BIRT are you using?
> In your code you have this as your home.
> C:/myInstall/birt/birt-runtime-2_0_1/Report Engine

> Jason

> "kevin" <kevin_ou@yahoo.com> wrote in message
> news:e90dmr$jj8$1@utils.eclipse.org...
>> Hi Jason
>> Thanks for the reply, hope you can help me out for this issue.
>> below is my code
>>
------------------------------------------------------------ ----------------------------------
>> public class CBReportConfig
>> {
>> private EngineConfig gobjEngineConfig;
>> private String gstrEngineHome;
>> private String gstrDesignFileDir =
>> "C:/kou_am_development_snap/Applimation/Codebase/4.2/";
>> private String gstrOutputDir =
>> "C:/oracle/oradev10g/forms90/j2ee/forms90app/forms90web/";
>> public static String gstrReportPropertyPath =
>> "c:/codebase/conf/ReportProperty.properties";
>> private String gstrFormat;
>> private String gstrDesignFile = "";
>>
>> public CBReportConfig(String istrFormat)
>> {
>> gstrFormat = istrFormat;
>> Properties p = new Properties();
>> try
>> {
>> InputStream iobjStream = new
>> FileInputStream(gstrReportPropertyPath);
>> p.load(iobjStream);
>> }
>> catch (Exception ex)
>> {
>> ex.printStackTrace();
>> }
>> setEngineHome(p.getProperty("BIRT_HOME"));
>> setDesignFileDir(p.getProperty("DESIGN_FILE"));
>> setOutputDir(p.getProperty("RPT_OUTPUT"));
>> }
>>
>> public String getDesignFile()
>> {
>> return gstrDesignFile;
>> }
>>
>> public void setDesignFile(String designFile)
>> {
>> gstrDesignFile = designFile;
>> }
>>
>> public void setReportFormat(String lstrFormat)
>> {
>> gstrFormat = lstrFormat;
>> }
>>
>> public String getReportFormat()
>> {
>> return gstrFormat;
>> }
>>
>> public void setReportPropertyPath(String istrPropertieFilePath)
>> {
>> gstrReportPropertyPath = istrPropertieFilePath;
>> }
>>
>> public EngineConfig getEngineConfig()
>> {
>> return gobjEngineConfig;
>> }
>>
>> public String getDesignFileDir()
>> {
>> return gstrDesignFileDir;
>> }
>>
>> public String getOutputDir()
>> {
>> return gstrOutputDir;
>> }
>>
>> public void setOutputDir(String istrOutputDir)
>> {
>> gstrOutputDir = istrOutputDir;
>> }
>>
>> public void setEngineHome(String istrEngineHome)
>> {
>> gobjEngineConfig = new EngineConfig();
>> // IPlatformContext context = new PlatformFileContext();
>> // gobjEngineConfig.setEngineContext(context);
>> //
>> config.setEngineHome("C:/myInstall/birt/birt-runtime-2_0_1/Report
>> Engine");
>> gobjEngineConfig.setEngineHome(istrEngineHome);
>> gstrEngineHome = istrEngineHome;
>> }
>>
>> public void setDesignFileDir(String istrDesignFileDir)
>> {
>> gstrDesignFileDir = istrDesignFileDir;
>> }
>>
>> /**
>> * <p>This method returns the current class name</p>
>> * @return String - Class name
>> */
>> private String getClassName()
>> {
>> return (this.getClass().getName());
>> } //End Of getClassName
>>
>> /**
>> * <p>This method returns the version of the class</p>
>> * @return String - Version of the class
>> */
>> public static String getVersion() throws Exception
>> {
>> return /*#CC_JAVA_VERSION_NUM#*/ "2";
>> } //End Of getVersion
>> }
>>
>>
>>
>> public CBReportRender(CBReportConfig iobjCBReportConfig)
>> {
>> engine = new ReportEngine(iobjCBReportConfig.getEngineConfig());
>> engine.changeLogLevel(Level.FINEST );
>> gobjReportConfig = iobjCBReportConfig;
>> }
>>
>> public void runAndRenderReport(String istrOutputFile, CBDBHelper
>> iobjDBHelper) throws Exception
>> {
>> try
>> {
>> String lstrDesignFile = gobjReportConfig.getDesignFileDir() +
>> gobjReportConfig.getDesignFile();
>> //AMConnection lobjAMConn = iobjDBHelper.getConnection();
>> //Open a report design - use design to modify design, retrieve
>> embedded images etc.
>> IReportRunnable design =
>> engine.openReportDesign(lstrDesignFile);
>> //Create task to run the report - use the task to execute and
>> run the report,
>> IRunAndRenderTask task = engine.createRunAndRenderTask(design);
>> //Set Render context to handle url and image locataions
>> HTMLRenderContext renderContext = new HTMLRenderContext();
>> renderContext.setImageDirectory("image");
>> HashMap contextMap = new HashMap();
>> contextMap.put("org.eclipse.birt.report.data.oda.jdbc",null);
>> task.setAppContext(contextMap);
>> //Set rendering options - such as file or stream output,
>> //output format, whether it is embeddable, etc
>> HTMLRenderOption options = new HTMLRenderOption();
>> options.setOutputFileName(istrOutputFile);
>>
>> options.setOutputFormat(this.gobjReportConfig.getReportForma t());
>> task.setRenderOption(options);
>> //run the report and destroy the engine
>> task.run();
>> }
>> catch (Exception e)
>> {
>> throw new CBException(e, "Report render failed!");
>> }
>> }
>>
------------------------------------------------------------ -----------------
>>
>> "Jason Weathersby" <jweathersby@actuate.com> wrote in message
>> news:e9085v$94g$1@utils.eclipse.org...
>>> Can you post your code and try using the sampledb?
>>>
>>> Jason
>>>
>>> "kevin ou" <kevin_ou@yahoo.com> wrote in message
>>> news:eb511c3427963394398f7032a4b9a240$1@www.eclipse.org...
>>>> Thanks for the reply.
>>>>
>>>> I copied the classes12.jar into
>>>>
birt-runtime-2_1_0ReportEnginepluginsorg.eclipse.birt.report .data.oda.jdbc_2.1.0.N20060628-1351drivers.
>>>> However, it is still getting the same error.
>>>> Also, I have tried to use XML as datasource, however, I got the same
>>>> error, therefore, I don't think copying jar file to drivers will solve
>>>> this error.
>>>>
>>>> Kevin
>>>>
>>>
>>>
>>
>>
Re: Missing extenion id in data source definition [message #176749 is a reply to message #176539] Wed, 12 July 2006 13:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kevin_ou.yahoo.com

Hi Linda,

below is my datasource and dataset definition in my report xml. I saw the
extensionID is presented. Please help me to figure out.

------------------------------------------------------------ --------------

<data-sources>
<oda-data-source
extensionID="org.eclipse.birt.report.data.oda.jdbc" name="Data Source"
id="22">
<text-property name="displayName">Data Source</text-property>
<property
name="odaDriverClass">oracle.jdbc.OracleDriver</property>
<property
name="odaURL">jdbc:oracle:thin:@subsc01:1531:ora10g</property >
<property name="odaUser">cb_admin</property>
<encrypted-property
name="odaPassword">Y2I=</encrypted-property>
</oda-data-source>
</data-sources>
<data-sets>
<oda-data-set
extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet "
name="Data Set" id="23">
<text-property name="displayName">Data Set</text-property>
<list-property name="resultSet">
<structure>
<property name="position">1</property>
<property name="name">JOB_ID</property>
<property name="dataType">decimal</property>
<property name="nativeDataType">2</property>
</structure>
</list-property>
<structure name="cachedMetaData">
<list-property name="resultSet">
<structure>
<property name="position">1</property>
<property name="name">JOB_ID</property>
<property name="dataType">decimal</property>
</structure>
</list-property>
</structure>
<property name="dataSource">Data Source</property>
<property name="queryText">select CB_ADMIN.AM_JOBS.JOB_ID
from CB_ADMIN.AM_JOBS</property>
</oda-data-set>
</data-sets>
Re: Missing extenion id in data source definition [message #176848 is a reply to message #176741] Wed, 12 July 2006 15:04 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Can you try to hard code it to see if it works.
The error you are getting appears to be because it can not find the plugins
directory.

Jason

"kevin ou" <kevin_ou@yahoo.com> wrote in message
news:c935fb953dddc9adf969a65abf9ddec4$1@www.eclipse.org...
> Jason,
> I am using Version 2.1 and I am retrieve my Birt Home using Property file
> which is point to "C:/myInstall/birt/birt-runtime-2_1_0/ReportEngine". The
> one you saw has been comment.
>
> Kevin
>
>
> Jason Weathersby wrote:
>
>> Kevin,
>
>> What version of BIRT are you using?
>> In your code you have this as your home.
>> C:/myInstall/birt/birt-runtime-2_0_1/Report Engine
>
>> Jason
>
>> "kevin" <kevin_ou@yahoo.com> wrote in message
>> news:e90dmr$jj8$1@utils.eclipse.org...
>>> Hi Jason
>>> Thanks for the reply, hope you can help me out for this issue.
>>> below is my code
>>>
> ------------------------------------------------------------ ----------------------------------
>>> public class CBReportConfig
>>> {
>>> private EngineConfig gobjEngineConfig;
>>> private String gstrEngineHome;
>>> private String gstrDesignFileDir =
>>> "C:/kou_am_development_snap/Applimation/Codebase/4.2/";
>>> private String gstrOutputDir =
>>> "C:/oracle/oradev10g/forms90/j2ee/forms90app/forms90web/";
>>> public static String gstrReportPropertyPath =
>>> "c:/codebase/conf/ReportProperty.properties";
>>> private String gstrFormat;
>>> private String gstrDesignFile = "";
>>>
>>> public CBReportConfig(String istrFormat)
>>> {
>>> gstrFormat = istrFormat;
>>> Properties p = new Properties();
>>> try
>>> {
>>> InputStream iobjStream = new
>>> FileInputStream(gstrReportPropertyPath);
>>> p.load(iobjStream);
>>> }
>>> catch (Exception ex)
>>> {
>>> ex.printStackTrace();
>>> }
>>> setEngineHome(p.getProperty("BIRT_HOME"));
>>> setDesignFileDir(p.getProperty("DESIGN_FILE"));
>>> setOutputDir(p.getProperty("RPT_OUTPUT"));
>>> }
>>>
>>> public String getDesignFile()
>>> {
>>> return gstrDesignFile;
>>> }
>>>
>>> public void setDesignFile(String designFile)
>>> {
>>> gstrDesignFile = designFile;
>>> }
>>>
>>> public void setReportFormat(String lstrFormat)
>>> {
>>> gstrFormat = lstrFormat;
>>> }
>>>
>>> public String getReportFormat()
>>> {
>>> return gstrFormat;
>>> }
>>>
>>> public void setReportPropertyPath(String istrPropertieFilePath)
>>> {
>>> gstrReportPropertyPath = istrPropertieFilePath;
>>> }
>>>
>>> public EngineConfig getEngineConfig()
>>> {
>>> return gobjEngineConfig;
>>> }
>>>
>>> public String getDesignFileDir()
>>> {
>>> return gstrDesignFileDir;
>>> }
>>>
>>> public String getOutputDir()
>>> {
>>> return gstrOutputDir;
>>> }
>>>
>>> public void setOutputDir(String istrOutputDir)
>>> {
>>> gstrOutputDir = istrOutputDir;
>>> }
>>>
>>> public void setEngineHome(String istrEngineHome)
>>> {
>>> gobjEngineConfig = new EngineConfig();
>>> // IPlatformContext context = new PlatformFileContext();
>>> // gobjEngineConfig.setEngineContext(context);
>>> //
>>> config.setEngineHome("C:/myInstall/birt/birt-runtime-2_0_1/Report
>>> Engine");
>>> gobjEngineConfig.setEngineHome(istrEngineHome);
>>> gstrEngineHome = istrEngineHome;
>>> }
>>>
>>> public void setDesignFileDir(String istrDesignFileDir)
>>> {
>>> gstrDesignFileDir = istrDesignFileDir;
>>> }
>>>
>>> /**
>>> * <p>This method returns the current class name</p>
>>> * @return String - Class name
>>> */
>>> private String getClassName()
>>> {
>>> return (this.getClass().getName());
>>> } //End Of getClassName
>>>
>>> /**
>>> * <p>This method returns the version of the class</p>
>>> * @return String - Version of the class
>>> */
>>> public static String getVersion() throws Exception
>>> {
>>> return /*#CC_JAVA_VERSION_NUM#*/ "2";
>>> } //End Of getVersion
>>> }
>>>
>>>
>>>
>>> public CBReportRender(CBReportConfig iobjCBReportConfig)
>>> {
>>> engine = new ReportEngine(iobjCBReportConfig.getEngineConfig());
>>> engine.changeLogLevel(Level.FINEST );
>>> gobjReportConfig = iobjCBReportConfig;
>>> }
>>>
>>> public void runAndRenderReport(String istrOutputFile, CBDBHelper
>>> iobjDBHelper) throws Exception
>>> {
>>> try
>>> {
>>> String lstrDesignFile = gobjReportConfig.getDesignFileDir() +
>>> gobjReportConfig.getDesignFile();
>>> //AMConnection lobjAMConn = iobjDBHelper.getConnection();
>>> //Open a report design - use design to modify design,
>>> retrieve embedded images etc.
>>> IReportRunnable design =
>>> engine.openReportDesign(lstrDesignFile);
>>> //Create task to run the report - use the task to execute and
>>> run the report,
>>> IRunAndRenderTask task =
>>> engine.createRunAndRenderTask(design);
>>> //Set Render context to handle url and image locataions
>>> HTMLRenderContext renderContext = new HTMLRenderContext();
>>> renderContext.setImageDirectory("image");
>>> HashMap contextMap = new HashMap();
>>> contextMap.put("org.eclipse.birt.report.data.oda.jdbc",null);
>>> task.setAppContext(contextMap);
>>> //Set rendering options - such as file or stream output,
>>> //output format, whether it is embeddable, etc
>>> HTMLRenderOption options = new HTMLRenderOption();
>>> options.setOutputFileName(istrOutputFile);
>>>
>>> options.setOutputFormat(this.gobjReportConfig.getReportForma t());
>>> task.setRenderOption(options);
>>> //run the report and destroy the engine
>>> task.run();
>>> }
>>> catch (Exception e)
>>> {
>>> throw new CBException(e, "Report render failed!");
>>> }
>>> }
>>>
> ------------------------------------------------------------ -----------------
>>>
>>> "Jason Weathersby" <jweathersby@actuate.com> wrote in message
>>> news:e9085v$94g$1@utils.eclipse.org...
>>>> Can you post your code and try using the sampledb?
>>>>
>>>> Jason
>>>>
>>>> "kevin ou" <kevin_ou@yahoo.com> wrote in message
>>>> news:eb511c3427963394398f7032a4b9a240$1@www.eclipse.org...
>>>>> Thanks for the reply.
>>>>>
>>>>> I copied the classes12.jar into
> birt-runtime-2_1_0ReportEnginepluginsorg.eclipse.birt.report .data.oda.jdbc_2.1.0.N20060628-1351drivers.
>>>>> However, it is still getting the same error.
>>>>> Also, I have tried to use XML as datasource, however, I got the same
>>>>> error, therefore, I don't think copying jar file to drivers will solve
>>>>> this error.
>>>>>
>>>>> Kevin
>>>>>
>>>>
>>>>
>>>
>>>
>
>
Re: Missing extenion id in data source definition [message #177050 is a reply to message #176848] Wed, 12 July 2006 19:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kevin_ou.yahoo.com

Jason,

I hard code that path to C:/myInstall/birt/birt-runtime-2_1_0/ReportEngine
but it is still not working. Also, please look at my report xml file in
other reply thread. I got the extensionID there. Currently, I am using
scripted Datasource and it works for me. However, I would like to figure
out why I miss the extensionID.

Thanks!
Kevin
Re: Missing extenion id in data source definition [message #177065 is a reply to message #176749] Wed, 12 July 2006 19:48 Go to previous messageGo to next message
Linda ChanFriend
Messages: 845
Registered: July 2009
Senior Member
Ummm, the data source definition you'd posted looks correct:
<oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc"
name="Data Source" id="22">

However, this does not seem to be the same one that your error message is
referring to:
Missing extenion id in data source definition, jdbcDatasource

They have different names. The error message refers to one named
"jdbcDatasource", and your posted data source definition is one named
"Data Source".
Re: Missing extenion id in data source definition [message #177074 is a reply to message #177065] Wed, 12 July 2006 21:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kevin_ou.yahoo.com

Sorry for the confusion.

This is the second report I created for testing.

Here is the stack trace:
------------------------------------------------------------ ----------------
2006-7-12 17:35:39 org.eclipse.birt.data.engine.impl.DataEngineImpl <init>
&#20449;&#24687;: Data Engine starts up
2006-7-12 17:35:39
org.eclipse.birt.report.engine.data.dte.AbstractDataEngine prepare
&#20005;&#37325;: Missing extenion id in data source definition, Data
Source
org.eclipse.birt.report.engine.api.EngineException: Missing extenion id in
data source definition, Data Source
at
org.eclipse.birt.report.engine.adapter.ModelDteApiAdapter.ne wOdaDataSource(ModelDteApiAdapter.java:298)
at
org.eclipse.birt.report.engine.adapter.ModelDteApiAdapter.cr eateDataSourceDesign(ModelDteApiAdapter.java:179)
at
org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.p repare(AbstractDataEngine.java:152)
at
org.eclipse.birt.report.engine.executor.ReportExecutor.execu te(ReportExecutor.java:101)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:38)
at
org.eclipse.birt.report.engine.layout.pdf.PDFReportLayoutEng ine.layout(PDFReportLayoutEngine.java:63)
at
org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndRenderTask.java:187)
at
com.applimation.codebase.reportbase.CBReportRender.runAndRen derReport(CBReportRender.java:61)
at
com.applimation.codebase.CF.reports.CBCFReportConfig.main(CB CFReportConfig.java:55)
2006-7-12 17:35:39 org.eclipse.birt.data.engine.impl.DataEngineImpl
defineDataSet
&#35686;&#21578;: Data source {Data Source} is not defined
org.eclipse.birt.data.engine.core.DataException: Data source is not
defined: Data Source
at
org.eclipse.birt.data.engine.impl.DataEngineImpl.defineDataS et(DataEngineImpl.java:250)
at
org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.p repare(AbstractDataEngine.java:169)
at
org.eclipse.birt.report.engine.executor.ReportExecutor.execu te(ReportExecutor.java:101)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:38)
at
org.eclipse.birt.report.engine.layout.pdf.PDFReportLayoutEng ine.layout(PDFReportLayoutEngine.java:63)
at
org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndRenderTask.java:187)
at
com.applimation.codebase.reportbase.CBReportRender.runAndRen derReport(CBReportRender.java:61)
at
com.applimation.codebase.CF.reports.CBCFReportConfig.main(CB CFReportConfig.java:55)
2006-7-12 17:35:39
org.eclipse.birt.report.engine.data.dte.AbstractDataEngine prepare
&#20005;&#37325;: Data source is not defined: Data Source
org.eclipse.birt.data.engine.core.DataException: Data source is not
defined: Data Source
at
org.eclipse.birt.data.engine.impl.DataEngineImpl.defineDataS et(DataEngineImpl.java:250)
at
org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.p repare(AbstractDataEngine.java:169)
at
org.eclipse.birt.report.engine.executor.ReportExecutor.execu te(ReportExecutor.java:101)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:38)
at
org.eclipse.birt.report.engine.layout.pdf.PDFReportLayoutEng ine.layout(PDFReportLayoutEngine.java:63)
at
org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndRenderTask.java:187)
at
com.applimation.codebase.reportbase.CBReportRender.runAndRen derReport(CBReportRender.java:61)
at
com.applimation.codebase.CF.reports.CBCFReportConfig.main(CB CFReportConfig.java:55)
2006-7-12 17:35:42
org.eclipse.birt.report.engine.executor.ExecutionContext evaluate
&#20005;&#37325;: org.eclipse.birt.core.exception.CoreException: Error
evaluating Javascript expression. Script engine error: ReferenceError:
"dataSetRow" is not defined.
Script source: source, line: 0, text:
dataSetRow["JOB_ID"]
org.mozilla.javascript.EvaluatorException:
org.eclipse.birt.core.exception.CoreException: Error evaluating Javascript
expression. Script engine error: ReferenceError: "dataSetRow" is not
defined.
Script source: source, line: 0, text:
dataSetRow["JOB_ID"]
at
org.eclipse.birt.report.engine.data.dte.NativeRowObject.get( NativeRowObject.java:94)
at
org.mozilla.javascript.ScriptableObject.getProperty(Scriptab leObject.java:1263)
at
org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRun time.java:1301)
at
org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRun time.java:1283)
at org.mozilla.javascript.gen.c5._c0(<inline>:1)
at org.mozilla.javascript.gen.c5.call(<inline>)
at
org.mozilla.javascript.ContextFactory.doTopCall(ContextFacto ry.java:304)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime .java:2769)
at org.mozilla.javascript.gen.c5.call(<inline>)
at org.mozilla.javascript.gen.c5.exec(<inline>)
at org.eclipse.birt.core.script.ScriptContext.eval(ScriptContex t.java:224)
at
org.eclipse.birt.report.engine.executor.ExecutionContext.eva luate(ExecutionContext.java:565)
at
org.eclipse.birt.report.engine.executor.ExecutionContext.eva luate(ExecutionContext.java:534)
at
org.eclipse.birt.report.engine.executor.DataItemExecutor.exe cute(DataItemExecutor.java:90)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportItemExecutor.execute(LocalizedReportItemExecutor.ja va:35)
at
org.eclipse.birt.report.engine.layout.content.BlockStackingE xecutor.getNextChild(BlockStackingExecutor.java:47)
at
org.eclipse.birt.report.engine.layout.pdf.PDFBlockStackingLM .traverseChildren(PDFBlockStackingLM.java:72)
at
org.eclipse.birt.report.engine.layout.pdf.PDFStackingLM.layo utChildren(PDFStackingLM.java:130)
at
org.eclipse.birt.report.engine.layout.pdf.PDFAbstractLM.layo ut(PDFAbstractLM.java:134)
at
org.eclipse.birt.report.engine.layout.pdf.PDFRowLM.traverseC hildren(PDFRowLM.java:88)
at
org.eclipse.birt.report.engine.layout.pdf.PDFStackingLM.layo utChildren(PDFStackingLM.java:130)
at
org.eclipse.birt.report.engine.layout.pdf.PDFAbstractLM.layo ut(PDFAbstractLM.java:134)
at
org.eclipse.birt.report.engine.layout.pdf.PDFBlockStackingLM .layoutChildNode(PDFBlockStackingLM.java:95)
at
org.eclipse.birt.report.engine.layout.pdf.PDFBlockStackingLM .traverseChildren(PDFBlockStackingLM.java:75)
at
org.eclipse.birt.report.engine.layout.pdf.PDFTableBandLM.tra verseChildren(PDFTableBandLM.java:88)
at
org.eclipse.birt.report.engine.layout.pdf.PDFStackingLM.layo utChildren(PDFStackingLM.java:130)
at
org.eclipse.birt.report.engine.layout.pdf.PDFAbstractLM.layo ut(PDFAbstractLM.java:134)
at
org.eclipse.birt.report.engine.layout.pdf.PDFBlockStackingLM .layoutChildNode(PDFBlockStackingLM.java:95)
at
org.eclipse.birt.report.engine.layout.pdf.PDFBlockStackingLM .traverseChildren(PDFBlockStackingLM.java:75)
at
org.eclipse.birt.report.engine.layout.pdf.PDFTableLM.travers eChildren(PDFTableLM.java:135)
at
org.eclipse.birt.report.engine.layout.pdf.PDFStackingLM.layo utChildren(PDFStackingLM.java:130)
at
org.eclipse.birt.report.engine.layout.pdf.PDFAbstractLM.layo ut(PDFAbstractLM.java:134)
at
org.eclipse.birt.report.engine.layout.pdf.PDFBlockStackingLM .layoutChildNode(PDFBlockStackingLM.java:95)
at
org.eclipse.birt.report.engine.layout.pdf.PDFBlockStackingLM .traverseChildren(PDFBlockStackingLM.java:75)
at
org.eclipse.birt.report.engine.layout.pdf.PDFStackingLM.layo utChildren(PDFStackingLM.java:130)
at
org.eclipse.birt.report.engine.layout.pdf.PDFPageLM.layout(P DFPageLM.java:198)
at
org.eclipse.birt.report.engine.layout.pdf.PDFReportLayoutEng ine.layoutReport(PDFReportLayoutEngine.java:55)
at
org.eclipse.birt.report.engine.layout.pdf.PDFReportLayoutEng ine.layout(PDFReportLayoutEngine.java:68)
at
org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndRenderTask.java:187)
at
com.applimation.codebase.reportbase.CBReportRender.runAndRen derReport(CBReportRender.java:61)
at
com.applimation.codebase.CF.reports.CBCFReportConfig.main(CB CFReportConfig.java:55)
Re: Missing extenion id in data source definition [message #177089 is a reply to message #177074] Wed, 12 July 2006 22:50 Go to previous messageGo to next message
Linda ChanFriend
Messages: 845
Registered: July 2009
Senior Member
Well, the error message comes from this code in
org.eclipse.birt.report.engine.adapter.ModelDteAdapter (in
org.eclipse.birt.report.engine plugin):

// validate that a required attribute is specified
String driverName = source.getExtensionID( );
if ( driverName == null || driverName.length( ) == 0 )
{
throw new EngineException( "Missing extenion id in data source
definition, " + source.getName( ) );
}

It is not able to read the extensionId value from the data source
definition.
You may need to run this thru the debugger and see what's going on; and
also verify that the intended design file did get passed in.
Re: Missing extenion id in data source definition [message #177282 is a reply to message #177089] Thu, 13 July 2006 13:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kevin_ou.yahoo.com

Linda,

Here is the trace info:
------------------------------------------------------------ -------------
OdaDataSourceState.parseODADataSourceExtensionID(Attributes, boolean)
line: 101
I got extensionID= "org.eclipse.birt.report.data.oda.jdbc"
------------------------------------------------------------ -------------
ODAProviderFactory.createODAProvider(DesignElement, String) line: 59
public ODAProvider createODAProvider( DesignElement element,
String extensionID )
{
if ( baseFactory != null )
return baseFactory.createODAProvider( element, extensionID );

return null;
}
the baseFactory is type of IODAProviderFactory. I got null there,
therefore the baseFactory.createODAProvider method will not be called.
------------------------------------------------------------ ------------
Seems like the baseFactory didn't get create it!
Re: Missing extenion id in data source definition [message #177701 is a reply to message #177282] Fri, 14 July 2006 16:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kevin_ouo.yahoo.com

Any suggestion for why that happens regarding my last post?
Re: Missing extenion id in data source definition [message #177813 is a reply to message #177701] Sat, 15 July 2006 02:49 Go to previous messageGo to next message
Linda ChanFriend
Messages: 845
Registered: July 2009
Senior Member
Did this ODAProviderFactory.createODAProvider method get triggered
during your call to ReportEngine.openReportDesign ?
It looks like the baseFactory is normally initialized when the
org.eclipse.birt.report.model plugin is activated.
Perhaps you can try use the debugger to check whether its activator
org.eclipse.birt.report.model.plugin.ModelPlugin start method gets
called.
I'm not familiar with the birt.report.model area; perhaps others can
help shed some light.
Re: Missing extenion id in data source definition [message #177855 is a reply to message #177813] Sat, 15 July 2006 12:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kevin_ou.yahoo.com

Linda,

I did the debugging, it looks like the createODAProvider is not called and
the ModelPlugin start method is not called either.

Kevin

Linda Chan wrote:

> Did this ODAProviderFactory.createODAProvider method get triggered
> during your call to ReportEngine.openReportDesign ?
> It looks like the baseFactory is normally initialized when the
> org.eclipse.birt.report.model plugin is activated.
> Perhaps you can try use the debugger to check whether its activator
> org.eclipse.birt.report.model.plugin.ModelPlugin start method gets
> called.
> I'm not familiar with the birt.report.model area; perhaps others can
> help shed some light.
Re: Missing extenion id in data source definition [message #178219 is a reply to message #177855] Mon, 17 July 2006 22:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kevin_ou.yahoo.com

I believe it could be some setting of my machine that cause this happens

My Machine has both birt 2.0 and birt 2.1 install. But in the script, I am
using birt 2.1 engine home. Also I am using the eclipse buddled with birt
2.1 that I downloaded from birt's website to run the example. Also, my
non-Unicode programs setting is Chinese(PRC). I hope that would be enough
hints for my configuration.
Re: Missing extenion id in data source definition [message #178567 is a reply to message #178219] Tue, 18 July 2006 20:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ghilton.espsg.com

I am currently encountering the same problem described in this thread
when attempting to use an XML data source with the BIRT report engine
linked into my standalone application. I have the 2.1.0 English version
installed only. Perhaps I can help debug.

Can someone tell me which code should be calling ModelPlugin.start?

Greg

Kevin Ou wrote:
> I believe it could be some setting of my machine that cause this happens
>
> My Machine has both birt 2.0 and birt 2.1 install. But in the script, I
> am using birt 2.1 engine home. Also I am using the eclipse buddled with
> birt 2.1 that I downloaded from birt's website to run the example. Also,
> my non-Unicode programs setting is Chinese(PRC). I hope that would be
> enough hints for my configuration.
>
Re: Missing extenion id in data source definition [message #178922 is a reply to message #178567] Wed, 19 July 2006 18:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.nospam.com

If anyone is interested, I solved this problem by copying the
WebViewerExample/WEB-INF/platform directory to my application WEB-INF
directory.

Greg

"Greg Hilton" <ghilton@espsg.com> wrote in message
news:e9jgu2$2p8$1@utils.eclipse.org...
>I am currently encountering the same problem described in this thread when
>attempting to use an XML data source with the BIRT report engine linked
>into my standalone application. I have the 2.1.0 English version installed
>only. Perhaps I can help debug.
>
> Can someone tell me which code should be calling ModelPlugin.start?
>
> Greg
>
> Kevin Ou wrote:
>> I believe it could be some setting of my machine that cause this happens
>>
>> My Machine has both birt 2.0 and birt 2.1 install. But in the script, I
>> am using birt 2.1 engine home. Also I am using the eclipse buddled with
>> birt 2.1 that I downloaded from birt's website to run the example. Also,
>> my non-Unicode programs setting is Chinese(PRC). I hope that would be
>> enough hints for my configuration.
>>
Re: Missing extenion id in data source definition [message #178987 is a reply to message #178922] Thu, 20 July 2006 06:46 Go to previous messageGo to next message
Thibaud Raison is currently offline Thibaud RaisonFriend
Messages: 33
Registered: July 2009
Member
I sometimes have the same problem.
My opinion about a "Missing extension id" is that it means that the plugin is unreachable.
The plugin is unreachable because, it's not present or because the loader failed to resolved the plugin dependencies.
So if you take a look into the MANIFEST of the plugin, you'll see which plugin needs to be present.

Greg Hilton wrote:
> If anyone is interested, I solved this problem by copying the
> WebViewerExample/WEB-INF/platform directory to my application WEB-INF
> directory.
>
> Greg
>
> "Greg Hilton" <ghilton@espsg.com> wrote in message
> news:e9jgu2$2p8$1@utils.eclipse.org...
>> I am currently encountering the same problem described in this thread when
>> attempting to use an XML data source with the BIRT report engine linked
>> into my standalone application. I have the 2.1.0 English version installed
>> only. Perhaps I can help debug.
>>
>> Can someone tell me which code should be calling ModelPlugin.start?
>>
>> Greg
>>
>> Kevin Ou wrote:
>>> I believe it could be some setting of my machine that cause this happens
>>>
>>> My Machine has both birt 2.0 and birt 2.1 install. But in the script, I
>>> am using birt 2.1 engine home. Also I am using the eclipse buddled with
>>> birt 2.1 that I downloaded from birt's website to run the example. Also,
>>> my non-Unicode programs setting is Chinese(PRC). I hope that would be
>>> enough hints for my configuration.
>>>
>
>
Re: Missing extenion id in data source definition [message #179121 is a reply to message #178987] Thu, 20 July 2006 15:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kevin_ou.yahoo.com

Thanks for the reply. I don't run the report engine from web. So I don't
need to copy the WebViewerExample/WEB-INF/platform. But I will take a look
at the plugin.xml see where it is looking.

Kevin
Thibaud wrote:

> I sometimes have the same problem.
> My opinion about a "Missing extension id" is that it means that the plugin
is unreachable.
> The plugin is unreachable because, it's not present or because the loader
failed to resolved the plugin dependencies.
> So if you take a look into the MANIFEST of the plugin, you'll see which
plugin needs to be present.

> Greg Hilton wrote:
>> If anyone is interested, I solved this problem by copying the
>> WebViewerExample/WEB-INF/platform directory to my application WEB-INF
>> directory.
>>
>> Greg
>>
>> "Greg Hilton" <ghilton@espsg.com> wrote in message
>> news:e9jgu2$2p8$1@utils.eclipse.org...
>>> I am currently encountering the same problem described in this thread when
>>> attempting to use an XML data source with the BIRT report engine linked
>>> into my standalone application. I have the 2.1.0 English version
installed
>>> only. Perhaps I can help debug.
>>>
>>> Can someone tell me which code should be calling ModelPlugin.start?
>>>
>>> Greg
>>>
>>> Kevin Ou wrote:
>>>> I believe it could be some setting of my machine that cause this happens
>>>>
>>>> My Machine has both birt 2.0 and birt 2.1 install. But in the script, I
>>>> am using birt 2.1 engine home. Also I am using the eclipse buddled with
>>>> birt 2.1 that I downloaded from birt's website to run the example. Also,
>>>> my non-Unicode programs setting is Chinese(PRC). I hope that would be
>>>> enough hints for my configuration.
>>>>
>>
>>
Re: Missing extenion id in data source definition [message #180831 is a reply to message #179121] Fri, 28 July 2006 07:10 Go to previous message
Eclipse UserFriend
Originally posted by: markrgli.gmail.com

Hello Kevin,

Were you able to figure it out now? I'm also having the same problem.

Thanks. :)

Mark

kevin wrote:
> Thanks for the reply. I don't run the report engine from web. So I don't
> need to copy the WebViewerExample/WEB-INF/platform. But I will take a
> look at the plugin.xml see where it is looking.
>
> Kevin
> Thibaud wrote:
>
>> I sometimes have the same problem.
>> My opinion about a "Missing extension id" is that it means that the
>> plugin
> is unreachable.
>> The plugin is unreachable because, it's not present or because the loader
> failed to resolved the plugin dependencies.
>> So if you take a look into the MANIFEST of the plugin, you'll see which
> plugin needs to be present.
>
>> Greg Hilton wrote:
>>> If anyone is interested, I solved this problem by copying the
>>> WebViewerExample/WEB-INF/platform directory to my application WEB-INF
>>> directory.
>>>
>>> Greg
>>>
>>> "Greg Hilton" <ghilton@espsg.com> wrote in message
>>> news:e9jgu2$2p8$1@utils.eclipse.org...
>>>> I am currently encountering the same problem described in this
>>>> thread when attempting to use an XML data source with the BIRT
>>>> report engine linked into my standalone application. I have the
>>>> 2.1.0 English version
> installed
>>>> only. Perhaps I can help debug.
>>>>
>>>> Can someone tell me which code should be calling ModelPlugin.start?
>>>>
>>>> Greg
>>>>
>>>> Kevin Ou wrote:
>>>>> I believe it could be some setting of my machine that cause this
>>>>> happens
>>>>>
>>>>> My Machine has both birt 2.0 and birt 2.1 install. But in the
>>>>> script, I am using birt 2.1 engine home. Also I am using the
>>>>> eclipse buddled with birt 2.1 that I downloaded from birt's website
>>>>> to run the example. Also, my non-Unicode programs setting is
>>>>> Chinese(PRC). I hope that would be enough hints for my configuration.
>>>>>
>>>
>>>
>
>
Previous Topic:BIRT Unwanted Automatic Date Formatting
Next Topic:i18n
Goto Forum:
  


Current Time: Thu Sep 26 06:04:36 GMT 2024

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

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

Back to the top