on 07-10-2017 10:03 AM
I have a multi threaded Java Spring boot application, in which Crystal Report for Eclipse is used to generate PDF from IXMLDataset.
Application configurations:
Crystal Reports Runtime Implementation-Version: 12.2.210.1215
Java JDK. 1.8 (also tested with JDK 1.6)
O/S: Windows 7
Symptoms:
The application works fine under single threaded environment. but exceptions are always thrown under multi threaded environment, especially during the first PDF is being generated (error logs are shown at the bottom).
From http://userguide.icu-project.org/collation/architecture I found that ICU Collator isn't thread-safe.
Questions:
Is there any solution or sample code to fix this multi-threaded exception? Thanks.
Best Regards,
Jeff
Error logs ([t4] means Thread-4, [t1] means Thread-1):
23-Jun-2017 17:43:55,069 [t4] ERROR com.businessobjects.reports.sdk.JRCCommunicationAdapter - detected an exception: -1 at com.ibm.icu.text.RuleBasedCollator.append(RuleBasedCollator.java:3492) at com.ibm.icu.text.RuleBasedCollator.doPrimaryCompare(RuleBasedCollator.java:3270) at com.ibm.icu.text.RuleBasedCollator.compareRegular(RuleBasedCollator.java:2299) at com.ibm.icu.text.RuleBasedCollator.compare(RuleBasedCollator.java:1287)
23-Jun-2017 17:43:55,069 [t1] ERROR com.businessobjects.reports.sdk.JRCCommunicationAdapter - detected an exception: -2 at com.ibm.icu.text.RuleBasedCollator.endPrimaryCompare(RuleBasedCollator.java:3356) at com.ibm.icu.text.RuleBasedCollator.doPrimaryCompare(RuleBasedCollator.java:3314) at com.ibm.icu.text.RuleBasedCollator.compareRegular(RuleBasedCollator.java:2299) at com.ibm.icu.text.RuleBasedCollator.compare(RuleBasedCollator.java:1287)
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.