Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331345 - Error: <unused> is not recognized!
Summary: Error: <unused> is not recognized!
Status: RESOLVED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.7.0   Edit
Assignee: Birt-ReportDesigner CLA
QA Contact: Xiaoying Gu CLA
URL:
Whiteboard: Obsolete
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-29 09:40 EST by Peng Li CLA
Modified: 2011-05-26 13:32 EDT (History)
2 users (show)

See Also:


Attachments
Design file causes Bug 331345 (137.52 KB, application/octet-stream)
2010-11-30 04:37 EST, Peng Li CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peng Li CLA 2010-11-29 09:40:59 EST
Build Identifier: 20100917-0705

by using birt 2.6.1 to generate pdf report i got following message in my console:

line 1 column 1 - Error: <unused> is not recognized!
This document has errors that must be fixed before
using HTML Tidy to generate a tidied up version.

because i use scripted data set handler to generate the report at run time, so the birt preview does not help so much due to missing sources like images at run time. Also there is no error message in eclipse to the report design file. The pdf was correctly generated, but with the same rptdesign file the error message like above was shown every time.    

Reproducible: Always
Comment 1 Xiaoying Gu CLA 2010-11-29 22:19:27 EST
>because i use scripted data set handler to generate the report at run time, so
>the birt preview does not help so much due to missing sources like images at
>run time. 

Do you mean the report can be rendered as pdf correctly but there is still an error message logged in the console? And you are expecting the viewer can pop up more detailed error message which can indicate the wrong element?
Comment 2 Peng Li CLA 2010-11-30 03:56:20 EST
(In reply to comment #1)
> >because i use scripted data set handler to generate the report at run time, so
> >the birt preview does not help so much due to missing sources like images at
> >run time. 
> 
> Do you mean the report can be rendered as pdf correctly but there is still an
> error message logged in the console? And you are expecting the viewer can pop
> up more detailed error message which can indicate the wrong element?

To the first question: Yes, the error message was still shown regardless the correctly generated pdf report.

To the second question: I mean if there were a <unused> tag in the design file, the viewer would show more information about the wrong element, but it was not the case. there was no any such element in the design xml file. Also i could not find in the source files where these error message were used.
Comment 3 Xiaoying Gu CLA 2010-11-30 03:57:55 EST
(In reply to comment #2)
> (In reply to comment #1)
> > >because i use scripted data set handler to generate the report at run time, so
> > >the birt preview does not help so much due to missing sources like images at
> > >run time. 
> > 
> > Do you mean the report can be rendered as pdf correctly but there is still an
> > error message logged in the console? And you are expecting the viewer can pop
> > up more detailed error message which can indicate the wrong element?
> 
> To the first question: Yes, the error message was still shown regardless the
> correctly generated pdf report.
> 
> To the second question: I mean if there were a <unused> tag in the design file,
> the viewer would show more information about the wrong element, but it was not
> the case. there was no any such element in the design xml file. Also i could
> not find in the source files where these error message were used.

Would you please attach the report design for us to investigate?
Comment 4 Peng Li CLA 2010-11-30 04:37:49 EST
Created attachment 184100 [details]
Design file causes Bug 331345

by using the design file an error message related to "<unused> tag" is shown regardless the correctly generated pdf report.
Comment 5 Xiaoying Gu CLA 2010-11-30 04:58:29 EST
There should be an invalid tag in the dynamic text.
Comment 6 Peng Li CLA 2010-11-30 05:43:36 EST
(In reply to comment #5)
> There should be an invalid tag in the dynamic text.

Could you please tell me the location of the invalid tag?
Comment 7 Xiaoying Gu CLA 2010-11-30 21:19:05 EST
(In reply to comment #6)
> (In reply to comment #5)
> > There should be an invalid tag in the dynamic text.
> 
> Could you please tell me the location of the invalid tag?

Since I don't can not access the data source and library that used in this report, could you please help to narrow down the root cause at your side, for example: try to remove some elements on the report to identify which one goes wrong?
Comment 8 Jun Ouyang CLA 2010-12-06 00:13:45 EST
Peng,

Please locate the the text element which causes the error and try to print out the raw text of the element.
Comment 9 Jun Ouyang CLA 2010-12-06 00:17:49 EST
There is a <unused> tag in some html text item. Please notice this is an invalid html tag which is not supported by HTML TEXT.
Comment 10 Jun Ouyang CLA 2010-12-06 00:18:20 EST
Not a bug.
Comment 11 Peng Li CLA 2010-12-09 04:19:03 EST
(In reply to comment #10)
> Not a bug.

can finally find out the cause. It was my mistake.
Thanks for your support.

Regards