Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-2648

Chart Plugin fails in XE 1.6M1

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6 M1
    • Fix Version/s: 1.6
    • Labels:
      None
    • keywords:
      bugfixingweek
    • Similar issues:

      Description

      This does not happen on XE 1.5. With the sample http://code.xwiki.org/xwiki/bin/view/Snippets/WikiSpacesPieChartSnippet
      We get this exception

      Unexpected charting exception: java.lang.Stringjava.lang.ClassCastException:
       java.lang.String at com.xpn.xwiki.plugin.charts.params.ChartParams.getBoolean(ChartParams.java:429)
       at com.xpn.xwiki.plugin.charts.ChartCustomizer.customizeChart(ChartCustomizer.java:468)
       at com.xpn.xwiki.plugin.charts.ChartingPlugin.generateChart(ChartingPlugin.java:115)
       at com.xpn.xwiki.plugin.charts.ChartingPluginApi.generateChart(ChartingPluginApi.java:50)
       at com.xpn.xwiki.plugin.charts.ChartingMacro.execute(ChartingMacro.java:78)
       at com.xpn.xwiki.render.filter.MacroFilter.handleMatch(MacroFilter.java:90)
       at org.radeox.filter.regex.RegexTokenFilter$1.handleMatch(RegexTokenFilter.java:91)
       at org.radeox.regex.JdkMatcher.substitute(JdkMatcher.java:48)
       at org.radeox.filter.regex.RegexTokenFilter.filter(RegexTokenFilter.java:89)
       at org.radeox.filter.FilterPipe.filter(FilterPipe.java:169)
       at com.xpn.xwiki.render.XWikiRadeoxRenderEngine.render(XWikiRadeoxRenderEngine.java:96)
       at com.xpn.xwiki.render.XWikiRadeoxRenderer.render(XWikiRadeoxRenderer.java:130)
       at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:271)
       at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:201)
       at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:169)
       at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:158)
       at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:435)
       at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:371)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
       at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
       at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
       at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
       at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
       at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
      

        Attachments

          Activity

            People

            Assignee:
            sdumitriu Sergiu Dumitriu
            Reporter:
            ludovic Ludovic Dubost
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: