Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
ReportEngine crashes when dropping element
dzish
Hi,<br />
<br />
I can not find sollution of my problem. I have EventAdapter for report. It works in birt viewer but not with naked ReportEngine(unit test).<br />
It is under BIRT 2.5.1<br />
In my event adapter I drop element of report <br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
public void drop(String name) {
ModuleHandle moduleHandle = commonBirtUtility.getModuleHandle();
DesignElementHandle element = moduleHandle.findElement(name);
if (element != null) {
try {
//calling this method makes error
element.drop();
} catch (SemanticException e) {
throw new RuntimeException("Exception in dropping element, name= " + name, e);
}
}
}
</pre>
<br />
and it makes this error.<br />
<br />
java.lang.AssertionError at org.eclipse.birt.report.model.command.MemberRecord.<init>(MemberRecord.java:100) at org.eclipse.birt.report.model.command.PropertyCommand.setMember(PropertyCommand.java:1031) at org.eclipse.birt.report.model.command.GroupElementCommand.handleColumnBinding(GroupElementCommand.java:233) at org.eclipse.birt.report.model.command.GroupElementCommand.doDelectAction(GroupElementCommand.java:384) at org.eclipse.birt.report.model.command.AbstractContentCommand.doRemove(AbstractContentCommand.java:348) at org.eclipse.birt.report.model.command.AbstractContentCommand.remove(AbstractContentCommand.java:305) at org.eclipse.birt.report.model.command.AbstractContentCommand.remove(AbstractContentCommand.java:299) at org.eclipse.birt.report.model.command.AbstractContentCommand.doDelectAction(AbstractContentCommand.java:397) at org.eclipse.birt.report.model.command.ContentCommand.doDelectAction(ContentCommand.java:907) at org.eclipse.birt.report.model.command.AbstractContentCommand.doRemove(AbstractContentCommand.java:348) at org.eclipse.birt.report.model.command.AbstractContentCommand.remove(AbstractContentCommand.java:305) at org.eclipse.birt.report.model.command.AbstractContentCommand.doDelectAction(AbstractContentCommand.java:397) at org.eclipse.birt.report.model.command.ContentCommand.doDelectAction(ContentCommand.java:907) at org.eclipse.birt.report.model.command.AbstractContentCommand.doRemove(AbstractContentCommand.java:348) at org.eclipse.birt.report.model.command.AbstractContentCommand.remove(AbstractContentCommand.java:305) at org.eclipse.birt.report.model.command.AbstractContentCommand.doDelectAction(AbstractContentCommand.java:397) at org.eclipse.birt.report.model.command.ContentCommand.doDelectAction(ContentCommand.java:907) at org.eclipse.birt.report.model.command.AbstractContentCommand.doRemove(AbstractContentCommand.java:348) at org.eclipse.birt.report.model.command.AbstractContentCommand.remove(AbstractContentCommand.java:305) at org.eclipse.birt.report.model.command.AbstractContentCommand.doDelectAction(AbstractContentCommand.java:397) at org.eclipse.birt.report.model.command.ContentCommand.doDelectAction(ContentCommand.java:907) at org.eclipse.birt.report.model.command.AbstractContentCommand.doRemove(AbstractContentCommand.java:348) at org.eclipse.birt.report.model.command.AbstractContentCommand.remove(AbstractContentCommand.java:305) at org.eclipse.birt.report.model.api.DesignElementHandle.drop(DesignElementHandle.java:1354) at com.mycompany.util.ReportElementUtility.drop(ReportElementUtility.java:37) at com.mycompany.reportingportal.eventhandler.ReportEventAdapter.showAuthorizedContent(ReportEventAdapter.java:61) at
Find more posts tagged with
Comments
mwilliams
Is that the entire error stack?