Maximo List Archive

This is an archive of the Maximo Yahoo Community. The content of this pages may be a sometimes obsolete so please check post dates.
Thanks to the community owner Christopher Wanko for providing the content.



Problem with BIRT expression

From: InComm Solutions Inc. (2011-08-02 00:26)

Hi guys: I'm having a problem with the PRPRINT report, i.e. it shows the
CATALOGCODE field just fine in the BIRT viewer, but when you export to PDF,
it cuts off the CATALOGCODE. From a quick search on the Internet, I gather
that there`s nothing I can do to the size of the BIRT field to get the PDF
value to come out right. The suggested solution was to add this piece of
code:

if (row["catalogcode"].length > 25) {
length = row["catalogcode"].length;
row["catalogcode"].substr(0, 25) + "\u200B" +
row["catalogcode"].substring(25, length);
} else {
row["catalogcode"];

So I removed the catalogcode text field from the report and added a new
dynamic text field with this expression. However, now I`m getting an error,
ie.:

+ Binding "catalogcode" has dependency cycle.
data.engine.ColumnBindingCycle ( 1 time(s) )
detail : org.eclipse.birt.report.engine.api.EngineException: Binding
"catalogcode" has dependency cycle.
at
org.eclipse.birt.report.engine.executor.ExecutionContext.addException(Execut
ionContext.java:1121)
at
org.eclipse.birt.report.engine.executor.ExecutionContext.addException(Execut
ionContext.java:1085)
at
org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuery(Query
ItemExecutor.java:88)
at
org.eclipse.birt.report.engine.executor.TableItemExecutor.execute(TableItemE
xecutor.java:62)
at
org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplicateItemEx
ecutor.execute(SuppressDuplicateItemExecutor.java:42)
at
org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecu
tor.execute(WrappedReportItemExecutor.java:45)
at
org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExe
cutor.execute(LocalizedReportItemExecutor.java:33)
at
org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(H
TMLBlockStackingLM.java:63)
at
org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java
:90)
at
org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTM
LReportLayoutEngine.java:101)
at
org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderT
ask.java:151)
at
org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTas
k.java:72)
at
org.eclipse.birt.report.service.ReportEngineService.runAndRenderReport(Repor
tEngineService.java:877)
at
org.eclipse.birt.report.service.BirtViewerReportService.runAndRenderReport(B
irtViewerReportService.java:938)
at
org.eclipse.birt.report.service.actionhandler.BirtGetPageAllActionHandler.__
execute(BirtGetPageAllActionHandler.java:131)
at
org.eclipse.birt.report.service.actionhandler.AbstractBaseActionHandler.exec
ute(AbstractBaseActionHandler.java:90)
at
org.eclipse.birt.report.soapengine.processor.AbstractBaseDocumentProcessor._
_executeAction(AbstractBaseDocumentProcessor.java:47)
at
org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.
executeAction(AbstractBaseComponentProcessor.java:143)
at
org.eclipse.birt.report.soapengine.processor.BirtDocumentProcessor.handleGet
PageAll(BirtDocumentProcessor.java:183)
at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.
process(AbstractBaseComponentProcessor.java:112)
at
org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingImpl.getUpdatedOb
jects(BirtSoapBindingImpl.java:66)
at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397
)
at
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:1
86)
at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
at
org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doPost(Birt
SoapMessageDispatcherServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:616)
at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:
327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at
org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.service(Bir
tSoapMessageDispatcherServlet.java:122)
at
org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.ser
vice(ServletManager.java:180)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(
ServletRegistration.java:90)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxySer
vlet.java:111)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.
java:59)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at
org.eclipse.equinox.http.jetty.internal.HttpServerManager$InternalHttpServic
eServlet.service(HttpServerManager.java:269)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
at
org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHandler.java:677)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
at org.mortbay.http.HttpServer.service(HttpServer.java:909)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:820)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
Caused by: org.eclipse.birt.data.engine.core.DataException: Binding
"catalogcode" has dependency cycle.
at
org.eclipse.birt.data.engine.impl.ExprManagerUtil.checkDependencyCycle(ExprM
anagerUtil.java:151)
at
org.eclipse.birt.data.engine.impl.ExprManagerUtil.validateColumnBinding(Expr
ManagerUtil.java:74)
at
org.eclipse.birt.data.engine.impl.ExprManager.validateColumnBinding(ExprMana
ger.java:193)
at
org.eclipse.birt.data.engine.impl.ServiceForQueryResults.validateQuery(Servi
ceForQueryResults.java:932)
at
org.eclipse.birt.data.engine.impl.QueryResults.getResultIterator(QueryResult
s.java:158)
at
org.eclipse.birt.report.engine.data.dte.QueryResultSet.<init>(QueryResultSet
.java:92)
at
org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExecuteQuery(DteData
Engine.java:129)
at
org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.execute(AbstractD
ataEngine.java:253)
at
org.eclipse.birt.report.engine.executor.ExecutionContext.executeQuery(Execut
ionContext.java:1755)
at
org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuery(Query
ItemExecutor.java:77)
... 56 more


Anyone know how to fix this?



Shannon Rotz
InComm Solutions Inc.
IBM Certified Deployment Professional
IBM Certified Solution Advisor
Maximo Asset Management V7