AnsweredAssumed Answered

ISSUE with PIE graph portlet only

Question asked by daniele.f on Jul 14, 2011
Latest reply on Jul 20, 2011 by daniele.f
Hi,
I've got an issue with the graph PIE portlet.
I created a graph pie portlet and the image chart is not load (look the SCREEN_PIE.PNG image in attached file); in the portlet page I don't get any system error.
I've checked the log file then I've found this error:
4-lug-2011 11.05.41 org.apache.catalina.core.StandardWrapperValve invoke
GRAVE: Servlet.service() for servlet Niku Web Control threw exception
; SystemID: file:///D:/apps/ClarityPPM/webroot/ui/evolution2/xsl/svg/pie_en.xsl; Line#: 235; Column#: -1
net.sf.saxon.trans.DynamicError: Failure converting untyped value "0,1646" to a number

at net.sf.saxon.expr.ArithmeticExpression$NumericArithmetic.doArithmetic(ArithmeticExpression.java:668)

at net.sf.saxon.expr.ArithmeticExpression$NumericArithmetic.evaluateItem(ArithmeticExpression.java:642)

at net.sf.saxon.functions.NumberFn.evaluateItem(NumberFn.java:33)

at net.sf.saxon.expr.ExpressionTool.eagerEvaluate(ExpressionTool.java:296)

at net.sf.saxon.expr.ExpressionTool.lazyEvaluate(ExpressionTool.java:244)

at net.sf.saxon.functions.ExtensionFunctionCall.iterate(ExtensionFunctionCall.java:107)

at net.sf.saxon.expr.ComputedExpression.evaluateItem(ComputedExpression.java:483)

at net.sf.saxon.expr.ExpressionTool.eagerEvaluate(ExpressionTool.java:296)

at net.sf.saxon.expr.ExpressionTool.lazyEvaluate(ExpressionTool.java:244)

at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:163)

at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:319)

at net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:262)

at net.sf.saxon.instruct.Instruction.process(Instruction.java:90)

at net.sf.saxon.instruct.ForEach.processLeavingTail(ForEach.java:222)

at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:328)

at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:324)

at net.sf.saxon.instruct.Template.expand(Template.java:97)

at net.sf.saxon.instruct.CallTemplate$CallTemplatePackage.processLeavingTail(CallTemplate.java:352)

at net.sf.saxon.instruct.CallTemplate.process(CallTemplate.java:191)

at net.sf.saxon.instruct.CallTemplate.processLeavingTail(CallTemplate.java:214)

at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:324)

at net.sf.saxon.instruct.Instruction.process(Instruction.java:90)

at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:162)

at net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:262)

at net.sf.saxon.instruct.Template.expand(Template.java:97)

at net.sf.saxon.instruct.Template.processLeavingTail(Template.java:80)

at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:290)

at net.sf.saxon.instruct.ApplyTemplates.defaultAction(ApplyTemplates.java:325)

at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:283)

at net.sf.saxon.instruct.ApplyTemplates.defaultAction(ApplyTemplates.java:325)

at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:283)

at net.sf.saxon.Controller.transformDocument(Controller.java:1417)

at net.sf.saxon.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:125)

at net.sf.saxon.event.ContentHandlerProxy.close(ContentHandlerProxy.java:167)

at net.sf.saxon.event.ProxyReceiver.close(ProxyReceiver.java:88)

at net.sf.saxon.event.ComplexContentOutputter.close(ComplexContentOutputter.java:455)

at net.sf.saxon.Controller.transformDocument(Controller.java:1448)

at net.sf.saxon.Controller.transform(Controller.java:1242)

at com.niku.union.web.VXSLServer.chainedTransform(VXSLServer.java:248)

at com.niku.union.web.pagebuilder.GraphPageBuilder.transformData(GraphPageBuilder.java:278)

at com.niku.union.web.pagebuilder.GraphPageBuilder.processPortletView(GraphPageBuilder.java:213)

at com.niku.union.web.pagebuilder.GraphPageBuilder.buildPage(GraphPageBuilder.java:122)

at com.niku.union.web.WebControlServlet.service(WebControlServlet.java:413)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.niku.union.web.filter.GZIPResponseFilter.doFilter(GZIPResponseFilter.java:121)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.niku.union.web.filter.CharsetFilter.doFilter(CharsetFilter.java:29)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

at java.lang.Thread.run(Thread.java:619)
The line 235 of the file "pie_en.xsl" reported by the prewious error is the following code:
<xsl:variable name="curValue" select="math:abs( number( view:data[2]/@value * 1.0 ) )"/>
I think that the system can't convert the value "0,1646" in to a number. I tried to replace the value "0,1646" whith "100" (via DB sql query) and the graph is displayed; maybe the problem is the char ",".
I have not got this error changing the graph type into all other else graph (BAR, COLUMN, BUBBLE, ...) setting the impostation portlet (look the SCREEN_BAR.PNG image in attached file). I get this error only with PIE graph type portlet.


Thank you for the support.
Daniele

Attachments

Outcomes