| Summary: | java.lang.NullPointerException: Failed to create Times-Roman which is not allow | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | delonge182 <elga_delonge182> | ||||
| Component: | BIRT | Assignee: | Birt-ReportEngine-inbox <Birt-ReportEngine-inbox> | ||||
| Status: | RESOLVED INVALID | QA Contact: | Xiaoying Gu <bluesoldier> | ||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | bluesoldier, jouyang | ||||
| Version: | unspecified | ||||||
| Target Milestone: | 3.7.0 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | Obsolete | ||||||
| Attachments: |
|
||||||
|
Description
delonge182
Would you please attache the report design for me to reproduce this issue? Created attachment 177392 [details]
report design
report design
Xiaoying Gu, the problem is when I right click and run report from eclipse directly, there is no error. the error occur when I call the report from birt integrated web application. (In reply to comment #1) > Would you please attache the report design for me to reproduce this issue? (In reply to comment #3) > Xiaoying Gu, > the problem is when I right click and run report from eclipse directly, there > is no error. > the error occur when I call the report from birt integrated web application. > (In reply to comment #1) > > Would you please attache the report design for me to reproduce this issue? Do you mean you deployed birt on weblogic and this issue happen when you run the report from birt-runtime? Does your weblogic deployed on win7? (In reply to comment #4) > (In reply to comment #3) > > Xiaoying Gu, > > the problem is when I right click and run report from eclipse directly, there > > is no error. > > the error occur when I call the report from birt integrated web application. > > (In reply to comment #1) > > > Would you please attache the report design for me to reproduce this issue? > > Do you mean you deployed birt on weblogic and this issue happen when you run > the report from birt-runtime? > > Does your weblogic deployed on win7? yes i deployed birt on weblogic , and my weblogic deployed on Win7 and i use weblogic 10gR3. thanks I can't reproduce this problem with a report including the fonts Sans Serif and Courier New which are the fonts used in your report. I can't run your report because the data source is not available. Could you generate a report document and attach it? I debugged the code running a sample report, actually, Times-Roman font is created correctly on my machine. I guess i couldn't reproduce you problem even with your report document. (In reply to comment #7) > I debugged the code running a sample report, actually, Times-Roman font is > created correctly on my machine. > I guess i couldn't reproduce you problem even with your report document. but it's give error in my machine. do u have another idea about what can i do to check what is my real problem is? anyway thanks so much, regards elga Hi, Please open the file fontsConfig.xml in plugin org.eclipse.birt.report.engine.fonts. The encoding setting for font "Times-Roman" is like follows: <font-encodings> ..... <encoding font-family="Times-Roman" encoding="Cp1252" /> ...... </font-encodings> It seems somehow the encoding value of yours is "Identity-H", please modify it to "Cp1252". Please also make sure the whole <font-encodings> entry is like follows: <font-encodings> <encoding font-family="Times-Roman" encoding="Cp1252" /> <encoding font-family="Helvetica" encoding="Cp1252" /> <encoding font-family="Courier" encoding="Cp1252" /> <encoding font-family="Zapfdingbats" encoding="Cp1252" /> <encoding font-family="Symbol" encoding="Cp1252" /> <encoding font-family="STSong-Light" encoding="UniGB-UCS2-H" /> <encoding font-family="STSongStd-Light" encoding="UniGB-UCS2-H" /> <encoding font-family="MHei-Medium" encoding="UniCNS-UCS2-H" /> <encoding font-family="MSung-Light" encoding="UniCNS-UCS2-H" /> <encoding font-family="MSungStd-Light" encoding="UniCNS-UCS2-H" /> <encoding font-family="HeiseiMin-W3" encoding="UniJIS-UCS2-H" /> <encoding font-family="HeiseiKakuGo-W5" encoding="UniJIS-UCS2-H" /> <encoding font-family="KozMinPro-Regular" encoding="UniJIS-UCS2-H" /> <encoding font-family="HYGoThic-Medium" encoding="UniKS-UCS2-H" /> <encoding font-family="HYSMyeongJo-Medium" encoding="UniKS-UCS2-H" /> <encoding font-family="HYSMyeongJoStd" encoding="UniKS-UCS2-H" /> </font-encodings> Somehow user changed the encoding to "Identity-H" which should be "Cp1252". |