Skip to main content



      Home
Home » Archived » BIRT » Latest in CVS
Latest in CVS [message #27232] Sun, 17 April 2005 15:49 Go to next message
Eclipse UserFriend
Originally posted by: mbatchelor.no_s_p_a_m.pentaho.com

Hey all,

The latest code in CVS has a problem with the viewer. When you try to view a
report, you get the following errors:

Error Message
Semantic errors in
d:\japps\runtime-workbench-workspace\TestProject\freshNewBui ld.rptdesign.
The extension name of element "OdaDataSource" must be defined.
The extension name of element "OdaDataSet" must be defined.



The exceptions are being thrown by
org.eclipse.birt.report.model.parser.ReportElementState in the
parseExtensionName method. It seems that the parser is expecting the
extension name to be in the XML for OdaDataSource and OdaDataSet.

if ( StringUtil.isBlank( extensionName ) )
{
RecoverableError.dealMissingInvalidExtension( handler,
new SemanticError( element,
SemanticError.DESIGN_EXCEPTION_MISSING_EXTENSION ) );
}

Any hint where I should fix things so that this is being done properly?

Thanks,

Marc
Re: Latest in CVS [message #27269 is a reply to message #27232] Sun, 17 April 2005 16:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mbatchelor.no_s_p_a_m.pentaho.com

I was able to work around the problem by commenting out a line in
OdaDataSetState and OdaDataSourceState:

public void parseAttrs( Attributes attrs ) throws XMLParserException
{
// parseExtensionName( attrs ); // This is the line I commented out
initElement( attrs, true );
}

Seems to me that the chart registers itself as an Extension, but
OdaDataSource and OdaDataSet do not. So, when I added
extensionName="OdaDataSource" to the attributes of my OdaDataSource, it was
able to find the attribute OK, but it isn't in the MetaDataDictionary.

Which way is this supposed to go? An alternate fix for this problem could be
to register them in the Extension map in the MetaDataDictionary. But, I
suspect that it really doesn't belong there.

Take care,

Marc


"Marc Batchelor" <mbatchelor@no_s_p_a_m.pentaho.com> wrote in message
news:d3uf1i$7rt$1@news.eclipse.org...
> Hey all,
>
> The latest code in CVS has a problem with the viewer. When you try to view
a
> report, you get the following errors:
>
> Error Message
> Semantic errors in
> d:\japps\runtime-workbench-workspace\TestProject\freshNewBui ld.rptdesign.
> The extension name of element "OdaDataSource" must be defined.
> The extension name of element "OdaDataSet" must be defined.
>
>
>
> The exceptions are being thrown by
> org.eclipse.birt.report.model.parser.ReportElementState in the
> parseExtensionName method. It seems that the parser is expecting the
> extension name to be in the XML for OdaDataSource and OdaDataSet.
>
> if ( StringUtil.isBlank( extensionName ) )
> {
> RecoverableError.dealMissingInvalidExtension( handler,
> new SemanticError( element,
> SemanticError.DESIGN_EXCEPTION_MISSING_EXTENSION ) );
> }
>
> Any hint where I should fix things so that this is being done properly?
>
> Thanks,
>
> Marc
>
>
Re: Latest in CVS [message #29183 is a reply to message #27232] Wed, 20 April 2005 22:01 Go to previous message
Eclipse UserFriend
Marc,

As you might have already observed, this problem has been fixed in the latest
source.

Linda

Marc Batchelor wrote:

> Hey all,
>
> The latest code in CVS has a problem with the viewer. When you try to view a
> report, you get the following errors:
>
> Error Message
> Semantic errors in
> d:\japps\runtime-workbench-workspace\TestProject\freshNewBui ld.rptdesign.
> The extension name of element "OdaDataSource" must be defined.
> The extension name of element "OdaDataSet" must be defined.
>
> The exceptions are being thrown by
> org.eclipse.birt.report.model.parser.ReportElementState in the
> parseExtensionName method. It seems that the parser is expecting the
> extension name to be in the XML for OdaDataSource and OdaDataSet.
>
> if ( StringUtil.isBlank( extensionName ) )
> {
> RecoverableError.dealMissingInvalidExtension( handler,
> new SemanticError( element,
> SemanticError.DESIGN_EXCEPTION_MISSING_EXTENSION ) );
> }
>
> Any hint where I should fix things so that this is being done properly?
>
> Thanks,
>
> Marc
Previous Topic:ExternalEditor documentation
Next Topic:DataSet Types
Goto Forum:
  


Current Time: Sun Jun 08 22:30:04 EDT 2025

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

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

Back to the top