cancel
Showing results for 
Search instead for 
Did you mean: 

Incorrect HTML parsing with crjava-runtime_12.2.211

Former Member
0 Kudos

I have an issue with HTML parsing in a CR report being called from Java through JRC (crjava-runtime_12.2.207 and crjava-runtime_12.2.211). The issue is found whenever the report has to fetch HTML text that is to be parsed and this text contains the parameter color with a non-hexadecimal value (for example &lt span style="color: black">). The report is exported to PDF and the text is truncated at the first presence of the color parameter with a non-hexadecimal value.

The stack trace points to some of the same classes that this Java bug: [http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5087905]

The issue is reproducible. When generating the reports from the Crystal Report (10) client installation, the report runs without errors and the text is not truncated

This is the stack trace:

java.lang.IllegalArgumentException: Colour: null at com.crystaldecisions.reports.reportdefinition.FontColourProperties.setColour(SourceFile:362) at com.crystaldecisions.reports.reportdefinition.f.a(SourceFile:987) at com.crystaldecisions.reports.reportdefinition.f.a(SourceFile:1015) at com.crystaldecisions.reports.reportdefinition.f.if(SourceFile:57) at com.crystaldecisions.reports.reportdefinition.f$b.a(SourceFile:1192) at com.crystaldecisions.reports.reportdefinition.f$b.handleStartTag(SourceFile:1272) at javax.swing.text.html.parser.DocumentParser.handleStartTag(DocumentParser.java:143) at javax.swing.text.html.parser.Parser.startTag(Parser.java:418) at javax.swing.text.html.parser.Parser.parseTag(Parser.java:1926) at javax.swing.text.html.parser.Parser.parseContent(Parser.java:2044) at javax.swing.text.html.parser.Parser.parse(Parser.java:2211) at javax.swing.text.html.parser.DocumentParser.parse(DocumentParser.java:105) at com.crystaldecisions.reports.common.CrystalHTMLParserDelegator.parse(SourceFile:332) at com.crystaldecisions.reports.reportdefinition.f.new(SourceFile:165) at com.crystaldecisions.reports.reportdefinition.TextDefinition.a(SourceFile:101) at com.crystaldecisions.reports.formatter.formatter.objectformatter.FormattedStringFieldObject.do(SourceFile:138) at com.crystaldecisions.reports.formatter.formatter.objectformatter.AbstractFormattedTextualObject.a(SourceFile:282) at com.crystaldecisions.reports.formatter.formatter.objectformatter.w.for(SourceFile:126) at com.crystaldecisions.reports.formatter.formatter.objectformatter.aa.a(SourceFile:64) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.a(SourceFile:428) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.a(SourceFile:250) at com.crystaldecisions.reports.formatter.formatter.objectformatter.u.a(SourceFile:922) at com.crystaldecisions.reports.formatter.formatter.objectformatter.u.e(SourceFile:784) at com.crystaldecisions.reports.formatter.formatter.objectformatter.f.e(SourceFile:383) at com.crystaldecisions.reports.formatter.formatter.objectformatter.u.for(SourceFile:242) at com.crystaldecisions.reports.formatter.formatter.objectformatter.aa.a(SourceFile:64) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.a(SourceFile:243) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.a(SourceFile:210) at com.crystaldecisions.reports.formatter.formatter.objectformatter.v.a(SourceFile:185) at com.crystaldecisions.reports.formatter.formatter.objectformatter.v.a(SourceFile:230) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ai.for(SourceFile:359) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ai.for(SourceFile:133) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ColumnFormatter.for(SourceFile:120) at com.crystaldecisions.reports.formatter.formatter.objectformatter.aa.a(SourceFile:64) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ai.a(SourceFile:511) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ai.a(SourceFile:452) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ai.a(SourceFile:369) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ah.a(SourceFile:72) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ReportColumnFormatter.a(SourceFile:86) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ai.for(SourceFile:359) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ai.for(SourceFile:133) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ColumnFormatter.for(SourceFile:120) at com.crystaldecisions.reports.formatter.formatter.objectformatter.aa.a(SourceFile:64) at com.crystaldecisions.reports.formatter.formatter.objectformatter.d.for(SourceFile:355) at com.crystaldecisions.reports.formatter.formatter.objectformatter.aa.a(SourceFile:64) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.a(SourceFile:338) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.a(SourceFile:250) at com.crystaldecisions.reports.formatter.formatter.objectformatter.u.a(SourceFile:922) at com.crystaldecisions.reports.formatter.formatter.objectformatter.u.e(SourceFile:784) at com.crystaldecisions.reports.formatter.formatter.objectformatter.f.e(SourceFile:383) at com.crystaldecisions.reports.formatter.formatter.objectformatter.u.for(SourceFile:242) at com.crystaldecisions.reports.formatter.formatter.objectformatter.aa.a(SourceFile:64) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.a(SourceFile:243) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.a(SourceFile:210) at com.crystaldecisions.reports.formatter.formatter.objectformatter.v.a(SourceFile:185) at com.crystaldecisions.reports.formatter.formatter.objectformatter.v.a(SourceFile:230) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ai.for(SourceFile:359) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ai.for(SourceFile:133) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ColumnFormatter.for(SourceFile:120) at com.crystaldecisions.reports.formatter.formatter.objectformatter.aa.a(SourceFile:64) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ai.a(SourceFile:511) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ai.a(SourceFile:452) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ai.a(SourceFile:369) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ah.a(SourceFile:72) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ReportColumnFormatter.a(SourceFile:86) at com.crystaldecisions.reports.formatter.formatter.paginator.SinglePageFormatter.a(SourceFile:332) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ai.for(SourceFile:359) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ai.for(SourceFile:133) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ColumnFormatter.for(SourceFile:120) at com.crystaldecisions.reports.formatter.formatter.paginator.SinglePageFormatter.for(SourceFile:177) at com.crystaldecisions.reports.formatter.formatter.objectformatter.aa.a(SourceFile:64) at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.do(SourceFile:737) at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.X(SourceFile:399) at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.moveToPageN(SourceFile:339) at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.do(SourceFile:677) at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.formatPage(SourceFile:236) at com.crystaldecisions.reports.formatter.export2.a.a(SourceFile:96) at com.crystaldecisions.reports.formatter.export2.a.a(SourceFile:247) at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.if(SourceFile:642) at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.a(SourceFile:586) at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(SourceFile:636) at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.int(SourceFile:672) at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1944) at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661) at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167) at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529) at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527) at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102) at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:525) at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:424) at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:352) at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54) at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67) at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716) at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125) at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537) at com.crystaldecisions.sdk.occa.report.application.ds.a(SourceFile:186) at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:1558) at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:337) at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.if(SourceFile:223) at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(SourceFile:147) at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(SourceFile:128) at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(SourceFile:111)

.

Sincerely,

Jose Orellana

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

The issue was escalated as a bug and has been fixed in version 12.2.213 of the JRC, which is available to download here: http://www.businessobjects.com/campaigns/forms/downloads/crystal/eclipse/datasave.asp

Kind regards,

Alex

Adam_Stone
Active Contributor
0 Kudos

I think your best option may be to create a [phone incident|http://store.businessobjects.com/store/bobjamer/en_US/pd/productID.98078100?resid=S6I@hgoHAkEAAGsiyVkAAAAR&rests=1282226845369] for this to be looked into. If it turns out to be a Crystal Reports issue, you will be refunded.

Former Member
0 Kudos

Thank you Adam

Could you please provide me a link that I can use from Europe The web page you refer to is only for North America. I cannot choose my country of origin (not in the list), and this is a mandatory field

Adam_Stone
Active Contributor
0 Kudos

Try this [link|http://store.businessobjects.com/DRHM/store?Action=DisplayProductDetailsPage&SiteID=bobjemea&Locale=en_IE&Env=BASE&productID=98078100]

If your country isn't included in there, click on global stores at the top, choose your country. Click on Support Services, or Training and Support (appears to differ per region). From there you should see a list of things you can purchase, look for the "Crystal Single Case"