Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
ERROR: HighlightRule cannot be cast
cmrdjr
This error is showing up in my error log. Any ideas about what is causing it? Here are the event details from the event detail window:
Error
Thu Jul 02 14:31:59 EDT 2009
Error Message:org.eclipse.birt.report.model.api.elements.structures.HighlightRule cannot be cast to org.eclipse.birt.report.model.metadata.ElementRefValue
An exception stack trace is not available.
eclipse.buildId=M20090211-1700
java.version=1.6.0_14
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86
Find more posts tagged with
Comments
mwilliams
Hi cmrdjr,
Can you attach your report design? Are you doing any highlight rules?
cmrdjr
my report uses a library that is 1,395 KB large. I don't think that I would be able to attach a file that large. Yes I have highlight rules. One of which is defined under my Themetable-detail (row.__rownum %2) and the others are individual data elements in the various tables.
mwilliams
cmrdjr,
Can you attach just the .rptdesign file for me to look at? Or is it very large as well?
cmrdjr
It's not, but everything is linked to the library. I'm not sure how but I may have fixed the issue, because the error message is not repeating itself.
mwilliams
That's good to hear. If you figure out what you did to fix it or it starts happening again, let me know.
hofi85
hi there,
i get the same error when changing the theme after opening the report using
enging.openReportDesgin(path)
i get the following stacktrace:
java.lang.ClassCastException: org.eclipse.birt.report.model.api.elements.structures.HighlightRule cannot be cast to org.eclipse.birt.report.model.metadata.ElementRefValue
at org.eclipse.birt.report.model.core.ReferenceableElementAdapter.updateClientReferences(ReferenceableElementAdapter.java:234)
at org.eclipse.birt.report.model.core.ReferenceableElement.updateClientReferences(ReferenceableElement.java:182)
at org.eclipse.birt.report.model.command.ThemeRecord.updateStyles(ThemeRecord.java:146)
at org.eclipse.birt.report.model.command.ThemeRecord.perform(ThemeRecord.java:95)
at org.eclipse.birt.report.model.activity.SimpleRecord.execute(SimpleRecord.java:51)
at org.eclipse.birt.report.model.activity.ActivityStack.execute(ActivityStack.java:353)
at org.eclipse.birt.report.model.command.ThemeCommand.doSetThemeRefValue(ThemeCommand.java:173)
at org.eclipse.birt.report.model.command.ThemeCommand.setThemeRefValue(ThemeCommand.java:116)
at org.eclipse.birt.report.model.command.PropertyCommand.setIntrinsicProperty(PropertyCommand.java:911)
at org.eclipse.birt.report.model.command.PropertyCommand.setProperty(PropertyCommand.java:275)
at org.eclipse.birt.report.model.command.PropertyCommand.setProperty(PropertyCommand.java:131)
at org.eclipse.birt.report.model.api.DesignElementHandle.setProperty(DesignElementHandle.java:511)
at org.eclipse.birt.report.model.simpleapi.DesignElement.setProperty(DesignElement.java:164)
at org.eclipse.birt.report.model.simpleapi.ReportDesign.setTheme(ReportDesign.java:228)