Announcement

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

    Javascript Exception _14 is undefined when using setExtraAxisMetrics

    SmartClient Version: v9.0p_2013-11-14/PowerEdition Deployment (built 2013-11-14)

    I have a FacetChart that works fine showing 4 value series. I'm trying to superimpose two of the value series as lines instead of bars, similar to this example. But when I use setExtraAxisMetrics I get the following error.
    Code:
    com.google.gwt.core.client.JavaScriptException: (TypeError) @com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)([JavaScript object(62253), JavaScript object(62254), JavaScript object(62255)]): _14 is undefined
        at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
        at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
        at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
        at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
        at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:242)
        at sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
        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:293)
        at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
        at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
        at java.lang.Thread.run(Thread.java:695)

    #2
    It's not easy to tell without the JavaScript stack trace (please always post this - see FAQ), but that looks like it might be an already-fixed bug, so please update.

    If that doesn't solve the problem, we'll minimally need the JavaScript stack trace, and of course code that reproduces the problem always leads to an immediate fix.

    Comment


      #3
      I included the only stack trace I see, which is in the Eclipse Development Console. There are others warnings that follow it, but those seem to be caused by the inability of the Chart to be drawn.
      Here is an example of those, one for every data point.
      Code:
      com.smartgwt.client.core.JsObject$SGWT_WARN: 16:51:05.401:TMR3:WARN:FacetChart:isc_FacetChart_0:getChartRect(): chart rect not available yet
          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:293)
          at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
          at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
          at java.lang.Thread.run(Thread.java:695)
      I'll try updating and see if it's fixed.

      Comment


        #4
        See FAQ: you can get JavaScript stack traces in compiled mode (or SuperDevMode).

        Comment


          #5
          I've upgraded to SmartClient Version: v9.1p_2014-06-02/PowerEdition Deployment (built 2014-06-02)

          I'm no longer getting the _14 undefined error but now using setExtraAxisMetrics has no effect on the chart at all. I'll try to create a stand-alone test case, but now I'm getting another, probably unrelated, error on the grid that provides the data for the chart. I'll create a separate post for that.

          Comment

          Working...
          X