Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SmartGWT graph module generates error for "valueproperty"'s value = 0

    Hi I am running my web app in development mode on chrome 13.0.782.107
    I am using smartgwt 2.5.

    Here is the code of my chart

    Code:
    chart = new FacetChart();
    chart.setTitle("Ratio");
    chart.setChartType(ChartType.PIE);
    chart.setValueProperty("Count");
    chart.setFacets(new Facet("State","State"));
    
    Record chartRecHigh = new Record();
    Record chartRecMed = new Record();
    Record chartRecLow = new Record();
    
    chartRecHigh.setAttribute("Count", 0);
    chartRecMed.setAttribute("Count", 0);
    chartRecLow.setAttribute("Count", 0);
    		
    chart.setData(new Record[]{chartRecHigh,chartRecMed,chartRecLow});
    Now when I try to run this code, the following error is generated.

    Code:
    11:32:17.930 [ERROR] [myconsole] 11:32:17.334:TMR2:WARN:DrawRect:isc_DrawRect_82:Error: NOT_SUPPORTED_ERR: DOM Exception 9  [No error.stack available]
    com.smartgwt.client.core.JsObject$SGWT_WARN: 11:32:17.334:TMR2:WARN:DrawRect:isc_DrawRect_82:Error: NOT_SUPPORTED_ERR: DOM Exception 9  [No error.stack available]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
        at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
        at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
        at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292)
        at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
        at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
        at java.lang.Thread.run(Thread.java:662)
    When I change the value from 0 to non zero values the error does not occur
    So this works perfectly fine
    Code:
    chartRecHigh.setAttribute("Count", 1);
    chartRecMed.setAttribute("Count", 1);
    chartRecLow.setAttribute("Count", 1);
    Please let me know why that error occurs only for "0" values. If I missed out on something which you need to know to answer this, please let me know.

    Thanks in advance.

    #2
    This has been fixed for a while - download a nightly of 2.5.x (this contains only fixes relative to the 2.5 release).

    Comment


      #3
      It ain't working in 3.0 as well

      I am using smartgwt 3.0 ee edition and I am seeing these errors in my console.

      Code:
      [ERROR] [test] - 14:07:31.465:TMR6:WARN:DrawRect:isc_DrawRect_0:[Exception... "Operation is not supported"  code: "9" nsresult: "0x80530009 (NotSupportedError)"  location: "http://127.0.0.1:8888/test/sc/modules/ISC_Drawing.js Line: 163"]  [No error.stack available]
      so for chart records having value parameter as "0" it is still throwing the exception.

      Comment


        #4
        The code above doesn't reproduce this. Let us know if you can produce a minimal test case that does.

        Comment

        Working...
        X