Announcement

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

    CubeGrid exception

    We are evaluating the use of smartgwtee in our applications. I tried creating a little demo using a cubegrid to understand the basics. However I am getting an exception.

    We are using smartgwtee 2.4 and gwt 2.2.
    Tried it on Chrome 11.0.696.71 and Firefox 3.6.17.

    Code:
    package xxx;
    
    import com.google.gwt.user.client.ui.Composite;
    import com.smartgwt.client.widgets.Label;
    import com.smartgwt.client.widgets.cube.CubeGrid;
    import com.smartgwt.client.widgets.layout.VLayout;
    
    public class TestView extends VLayout {
    	
    	public TestView() {
    		
    	Label label = new Label("Testing");
    		
    	CubeGrid cubeGrid = new CubeGrid();
            cubeGrid.setWidth100();  
            cubeGrid.setHeight100();
            
            this.addMember(label);
            this.addMember(cubeGrid);
            
            this.draw();
                    
    	}
    }
    It crashes at *this.addMember(cubeGrid);* with the following exception.

    Code:
    	00:17:45.953 [ERROR] 10:23:10.424:WARN:Log:Call to Super for method: function isc_Canvas__refreshOrReplaceFromURL(_1, _2, _3, _4, _5) { 
    		if (this.$rg) { 
    			this.logWarn("Attempt to " + _1 + " while " + this.$rh + " is in progress - ignoring."); 
    			return; 
    		} 
    		this.$rg = true; 
    		this.$rh = _1; 
    		this.$ri = _5; 
    		this.logDebug("Submitting to " + _1 + " URL: " + _2 + ", with data: " + this.echo(_3)); 
    		isc.Comm.sendFieldsToServer({URL: _2, fields: _3, prompt: _4, callback: 
    		this.getID() + ".$rj(frame)", resultVarName: this.refreshVariable}); 
    	} failed on: [CubeGrid ID:isc_CubeGrid_0]: couldn't find a superclass implementation of : CubeGrid.function isc_Canvas__refreshOrReplaceFromURL(_1, _2, _3, _4, _5) { 
    		if (this.$rg) { 
    		this.logWarn("Attempt to " + _1 + " while " + this.$rh + " is in progress - ignoring."); 
    		return; 
    		} 
    		this.$rg = true; 
    		this.$rh = _1; 
    		this.$ri = _5; 
    		this.logDebug("Submitting to " + _1 + " URL: " + _2 + ", with data: " + this.echo(_3)); 
    		isc.Comm.sendFieldsToServer({URL: _2, fields: _3, prompt: _4, callback: this.getID() + ".$rj(frame)", resultVarName: this.refreshVariable}); 
    	}
    	
    	Class.getStackTrace(_1=>undef, _2=>undef, _3=>undef, _4=>undef) Class.invokeSuper(_1=>null, _2=>Canvas.$rf(), _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef) Class.Super(_1=>Canvas.$rf(), _2=>undef, _3=>undef) CubeGrid.initWidget(Obj{ID:isc_CubeGrid_0}, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef) Canvas.init(_1=>Obj{ID:isc_CubeGrid_0}, _2=>undef, _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef) Class.completeCreation(_1=>Obj{ID:isc_CubeGrid_0}, _2=>undef, _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef) [c]Class.create(_1=>Obj{ID:isc_CubeGrid_0}, _2=>undef, _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef) anonymous() connect("http://127.0.0.1:8888/index.html?gwt.cod..."[64], "Gj`0m@JJL0EAXgLq", "127.0.0.1:9997", "AF", "2.1") anonymous(errFn=>undef, modName=>"AF", modBase=>"http://127.0.0.1:8888/AF/", 0) maybeStartModule() anonymous(-5)
    	
    	com.smartgwt.client.core.JsObject$SGWT_WARN: 10:23:10.424:WARN:Log:Call to Super for method: function isc_Canvas__refreshOrReplaceFromURL(_1, _2, _3, _4, _5) {     
    		if (this.$rg) {         
    			this.logWarn("Attempt to " + _1 + " while " + this.$rh + " is in progress - ignoring.");         
    			return;     
    		}     
    		this.$rg = true;     
    		this.$rh = _1;     
    		this.$ri = _5;     
    		this.logDebug("Submitting to " + _1 + " URL: " + _2 + ", with data: " + this.echo(_3));     
    		isc.Comm.sendFieldsToServer({URL: _2, fields: _3, prompt: _4, callback: this.getID() + ".$rj(frame)", resultVarName: this.refreshVariable}); 
    	} failed on: [CubeGrid ID:isc_CubeGrid_0]: couldn't find a superclass implementation of : CubeGrid.function isc_Canvas__refreshOrReplaceFromURL(_1, _2, _3, _4, _5) {     
    		if (this.$rg) {         
    			this.logWarn("Attempt to " + _1 + " while " + this.$rh + " is in progress - ignoring.");         
    			return;     
    		}     
    		this.$rg = true;     
    		this.$rh = _1;     
    		this.$ri = _5;     
    		this.logDebug("Submitting to " + _1 + " URL: " + _2 + ", with data: " + this.echo(_3));     
    		isc.Comm.sendFieldsToServer({URL: _2, fields: _3, prompt: _4, callback: this.getID() + ".$rj(frame)", resultVarName: this.refreshVariable}); 
    	}
    	
    	Class.getStackTrace(_1=>undef,  _2=>undef,  _3=>undef,  _4=>undef)
        Class.invokeSuper(_1=>null,  _2=>Canvas.$rf(),  _3=>undef,  _4=>undef,  _5=>undef,  _6=>undef,  _7=>undef,  _8=>undef,  _9=>undef,  _10=>undef)
        Class.Super(_1=>Canvas.$rf(),  _2=>undef,  _3=>undef)
        CubeGrid.initWidget(Obj{ID:isc_CubeGrid_0}, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef)
        Canvas.init(_1=>Obj{ID:isc_CubeGrid_0},  _2=>undef,  _3=>undef,  _4=>undef,  _5=>undef,  _6=>undef,  _7=>undef,  _8=>undef,  _9=>undef,  _10=>undef,  _11=>undef,  _12=>undef,  _13=>undef)
        Class.completeCreation(_1=>Obj{ID:isc_CubeGrid_0},  _2=>undef,  _3=>undef,  _4=>undef,  _5=>undef,  _6=>undef,  _7=>undef,  _8=>undef,  _9=>undef,  _10=>undef,  _11=>undef,  _12=>undef,  _13=>undef)
        [c]Class.create(_1=>Obj{ID:isc_CubeGrid_0},  _2=>undef,  _3=>undef,  _4=>undef,  _5=>undef,  _6=>undef,  _7=>undef,  _8=>undef,  _9=>undef,  _10=>undef,  _11=>undef,  _12=>undef,  _13=>undef)
        anonymous()
        connect("http://127.0.0.1:8888/index.html?gwt.cod..."[64], "Gj`0m@JJL0EAXgLq", "127.0.0.1:9997", "AF", "2.1")
        anonymous(errFn=>undef,  modName=>"AF",  modBase=>"http://127.0.0.1:8888/AF/", 0)
        maybeStartModule()
        anonymous(-5)
    	
     	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:157) 	
    	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326) 	
    	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207) 	
    	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:129) 	
    	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) 	
    	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) 	
    	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) 	
    	at com.smartgwt.client.widgets.cube.CubeGrid.create(CubeGrid.java) 	
    	at com.smartgwt.client.widgets.BaseWidget.getOrCreateJsObj(BaseWidget.java:356) 	
    	at com.smartgwt.client.widgets.layout.Layout.addMember(Layout.java:1073) 	
    	at com.ivstel.af.client.custom.view.TestView.<init>(TestView.java:21) 	
    	at com.ivstel.af.client.Analytics.onValueChange(Analytics.java:57) 	
    	at com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java:128) 	
    	at com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java:1) 	
    	at com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:204) 	
    	at com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:103) 	
    	at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:101) 	
    	at com.google.gwt.user.client.impl.HistoryImpl.fireEvent(HistoryImpl.java:74) 	
    	at com.google.gwt.event.logical.shared.ValueChangeEvent.fire(ValueChangeEvent.java:43) 	
    	at com.google.gwt.user.client.impl.HistoryImpl.fireHistoryChangedImpl(HistoryImpl.java:81) 	
    	at com.google.gwt.user.client.History.fireCurrentHistoryState(History.java:121) 	
    	at com.ivstel.af.client.Analytics.onModuleLoad(Analytics.java:43) 	
    	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:597) 	
    	at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396) 	
    	at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:183) 	
    	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510) 	
    	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352) 	
    	at java.lang.Thread.run(Thread.java:662)
    Any idea what we might be doing wrong?
    We even tried using cubeGrid.setData(...) but the same error occurs.
    Last edited by twistadias; 2 Jun 2011, 16:40.

    #2
    Without at least data and a list of row and column facets, there's nothing the cube can show. There's a warning earlier than this crash in your Developer Console that tells you you've done something wrong - make sure to always have this open, as mentioned in the QuickStart Guide.

    As far as having any trouble with setData(), you can see the working sample that does exactly this, so look at whether you're passing something meaningful for both data and facets.

    Comment


      #3
      I did previously try following the tutorial (http://www.smartclient.com/smartgwte...e/#cube_basic), but get the same exception.

      Code:
      package xxx;
      
      import com.google.gwt.user.client.ui.Composite;
      import com.smartgwt.client.widgets.Label;
      import com.smartgwt.client.widgets.cube.CubeGrid;
      import com.smartgwt.client.widgets.layout.VLayout;
      
      public class TestView extends VLayout {
      	
      	public TestView() {
      		
      	Label label = new Label("Testing");
              this.addMember(label);
      
              if(SC.hasAnalytics()) {  
                  CubeGrid cubeGrid = new CubeGrid();  
                  //in order to enable charting, the Drawing module must be present  
                  if(SC.hasDrawing()) {  
                      cubeGrid.setEnableCharting(true);  
                  }  
                  cubeGrid.setData(ProductRevenueData.getData());  
                  cubeGrid.setWidth100();  
                  cubeGrid.setHeight100();  
                  cubeGrid.setHideEmptyFacetValues(true);  
                  cubeGrid.setShowCellContextMenus(true);  
                  
                  final NumberFormat numberFormat = NumberFormat.getFormat("0,000");  
                  
                  cubeGrid.setCellFormatter(new CellFormatter() {
      				
                      public String format(Object value, ListGridRecord record, int rowNum, int colNum) {  
                          if (value == null) return null;  
                          try {  
                              return numberFormat.format(((Number) value).longValue());  
                          } catch (Exception e) {  
                              return value.toString();  
                          }  
                      }  
                  }); 
                  cubeGrid.setColumnFacets("quarter", "month", "metric");  
                  cubeGrid.setRowFacets("region", "product");
                  
                  this.addMember(cubeGrid);
              }        
              
              this.draw();
                      
      	}
      }
      Last edited by twistadias; 2 Jun 2011, 17:27.

      Comment


        #4
        What's this meant to be? Looks like a partial copy of the sample (which works obviously).

        Comment


          #5
          My apologies, I had also added the ProductRevenue.java and ProductRevenueData.java from the sample, but forgot to mention it.

          This is the sample code. I don't understand how its returning a CubeGrid or HTMLFlow in onModuleLoad(); a function that does not have a return value!
          Same thing goes for the getIntro() function. It does not return a string.

          Code:
          package com.smartgwt.sample.showcase.client.cube;  
            
          import com.google.gwt.i18n.client.NumberFormat;  
          import com.smartgwt.client.util.SC;  
          import com.smartgwt.client.widgets.Canvas;  
          import com.smartgwt.client.widgets.HTMLFlow;  
          import com.smartgwt.client.widgets.cube.CubeGrid;  
          import com.smartgwt.client.widgets.grid.CellFormatter;  
          import com.smartgwt.client.widgets.grid.ListGridRecord;  
          import com.smartgwt.sample.showcase.client.PanelFactory;  
          import com.smartgwt.sample.showcase.client.ShowcasePanel;  
            
          public class BasicCubeSample implements EntryPoint {  
            
              public void onModuleLoad() {  
                  if(SC.hasAnalytics()) {  
                      CubeGrid cubeGrid = new CubeGrid();  
                      //in order to enable charting, the Drawing module must be present  
                      if(SC.hasDrawing()) {  
                          cubeGrid.setEnableCharting(true);  
                      }  
                      cubeGrid.setData(ProductRevenueData.getData());  
            
                      cubeGrid.setWidth100();  
                      cubeGrid.setHeight100();  
                      cubeGrid.setHideEmptyFacetValues(true);  
                      cubeGrid.setShowCellContextMenus(true);  
            
                      final NumberFormat numberFormat = NumberFormat.getFormat("0,000");  
            
                      cubeGrid.setCellFormatter(new CellFormatter() {  
                          public String format(Object value, ListGridRecord record, int rowNum, int colNum) {  
                              if (value == null) return null;  
                              try {  
                                  return numberFormat.format(((Number) value).longValue());  
                              } catch (Exception e) {  
                                  return value.toString();  
                              }  
                          }  
                      });  
            
                      cubeGrid.setColumnFacets("quarter", "month", "metric");  
                      cubeGrid.setRowFacets("region", "product");  
            
                      return cubeGrid;  
                  } else {  
                      HTMLFlow htmlFlow = new HTMLFlow("<div class='explorerCheckErrorMessage'><p>This example is disabled in this SDK because it requires the optional " +  
                      "<a href=\"http://www.smartclient.com/product/index.jsp\" target=\"_blank\">Analytics module</a>.</p>" +  
                      "<p>Click <a href=\"http://www.smartclient.com/smartgwtee/showcase/#cube-basic\" target=\"\">here</a> to see this example on smartclient.com</p></div>");  
                      htmlFlow.setWidth100();  
                      return htmlFlow;  
                  }  
              }  
            
              public String getIntro() {  
                  DESCRIPTION.draw();  
              }  
            
          }

          Comment


            #6
            You're seeing some housekeeping logic from the example shell showing through when it's supposed to be stripped out. Just take the code from the hasAnalytics() block and ignore the rest (including "return CubeGrid").

            Comment


              #7
              I did try the code from the hasAnalytics() block.

              If I try to put in a ListGrid instead of a CubeGrid, it works without any errors. Its just the CubeGrid that's giving us a hard time.

              Comment


                #8
                See previous post; have you look at your Developer Console for warnings and errors?

                Comment


                  #9
                  This is the log when run in development mode

                  Code:
                  00:00:03.824  [INFO] Loading module AF
                    00:00:03.824  [INFO] Top URL: http://127.0.0.1:8888/AF/hosted.html?AF
                    00:00:03.824  [INFO] User agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.71 Safari/534.24
                  
                  00:00:36.124  [ERROR] 14:02:48.566:WARN:Log:Call to Super for method: function isc_Canvas__refreshOrReplaceFromURL(_1,_2,_3,_4,_5){if(this.$rg){this.logWarn("Attempt to "+_1+" while "+this.$rh+" is in progress - ignoring.");return}
                  this.$rg=true;this.$rh=_1;this.$ri=_5;this.logDebug("Submitting to "+_1+" URL: "+_2+", with data: "+this.echo(_3));isc.Comm.sendFieldsToServer({URL:_2,fields:_3,prompt:_4,callback:this.getID()+".$rj(frame)",resultVarName:this.refreshVariable})} failed on: [CubeGrid ID:isc_CubeGrid_0]: couldn't find a superclass implementation of : CubeGrid.function isc_Canvas__refreshOrReplaceFromURL(_1,_2,_3,_4,_5){if(this.$rg){this.logWarn("Attempt to "+_1+" while "+this.$rh+" is in progress - ignoring.");return}
                  this.$rg=true;this.$rh=_1;this.$ri=_5;this.logDebug("Submitting to "+_1+" URL: "+_2+", with data: "+this.echo(_3));isc.Comm.sendFieldsToServer({URL:_2,fields:_3,prompt:_4,callback:this.getID()+".$rj(frame)",resultVarName:this.refreshVariable})}
                      Class.getStackTrace(_1=>undef, _2=>undef, _3=>undef, _4=>undef)
                      Class.invokeSuper(_1=>null, _2=>Canvas.$rf(), _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef)
                      Class.Super(_1=>Canvas.$rf(), _2=>Array[0], _3=>undef)
                      CubeGrid.initWidget(Obj{ID:isc_CubeGrid_0}, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef)
                      Canvas.init(_1=>Obj{ID:isc_CubeGrid_0}, _2=>undef, _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef)
                      Class.completeCreation(_1=>Obj{ID:isc_CubeGrid_0}, _2=>undef, _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef)
                      [c]Class.create(_1=>Obj{ID:isc_CubeGrid_0}, _2=>undef, _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef)
                      anonymous()
                      __gwt_jsInvoke(thisObj=><<SmartGWT Component>>::class com.smartgwt.client.widgets.cube.CubeGrid, ID:isc_CubeGrid_0,  methodName=>"@com.smartgwt.client.widgets.cube.CubeGr..."[52])
                      anonymous(errFn=>undef,  modName=>"AF",  modBase=>"http://127.0.0.1:8888/AF/", 0)
                      maybeStartModule()
                      anonymous()
                  <pre>com.smartgwt.client.core.JsObject$SGWT_WARN: 14:02:48.566:WARN:Log:Call to Super for method: function isc_Canvas__refreshOrReplaceFromURL(_1,_2,_3,_4,_5){if(this.$rg){this.logWarn("Attempt to "+_1+" while "+this.$rh+" is in progress - ignoring.");return}
                  this.$rg=true;this.$rh=_1;this.$ri=_5;this.logDebug("Submitting to "+_1+" URL: "+_2+", with data: "+this.echo(_3));isc.Comm.sendFieldsToServer({URL:_2,fields:_3,prompt:_4,callback:this.getID()+".$rj(frame)",resultVarName:this.refreshVariable})} failed on: [CubeGrid ID:isc_CubeGrid_0]: couldn't find a superclass implementation of : CubeGrid.function isc_Canvas__refreshOrReplaceFromURL(_1,_2,_3,_4,_5){if(this.$rg){this.logWarn("Attempt to "+_1+" while "+this.$rh+" is in progress - ignoring.");return}
                  this.$rg=true;this.$rh=_1;this.$ri=_5;this.logDebug("Submitting to "+_1+" URL: "+_2+", with data: "+this.echo(_3));isc.Comm.sendFieldsToServer({URL:_2,fields:_3,prompt:_4,callback:this.getID()+".$rj(frame)",resultVarName:this.refreshVariable})}
                      Class.getStackTrace(_1=>undef, _2=>undef, _3=>undef, _4=>undef)
                      Class.invokeSuper(_1=>null, _2=>Canvas.$rf(), _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef)
                      Class.Super(_1=>Canvas.$rf(), _2=>Array[0], _3=>undef)
                      CubeGrid.initWidget(Obj{ID:isc_CubeGrid_0}, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef)
                      Canvas.init(_1=>Obj{ID:isc_CubeGrid_0}, _2=>undef, _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef)
                      Class.completeCreation(_1=>Obj{ID:isc_CubeGrid_0}, _2=>undef, _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef)
                      [c]Class.create(_1=>Obj{ID:isc_CubeGrid_0}, _2=>undef, _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef)
                      anonymous()
                      __gwt_jsInvoke(thisObj=><<SmartGWT Component>>::class com.smartgwt.client.widgets.cube.CubeGrid, ID:isc_CubeGrid_0,  methodName=>"@com.smartgwt.client.widgets.cube.CubeGr..."[52])
                      anonymous(errFn=>undef,  modName=>"AF",  modBase=>"http://127.0.0.1:8888/AF/", 0)
                      maybeStartModule()
                      anonymous()
                  	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:157)
                  	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326)
                  	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207)
                  	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:129)
                  	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
                  	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
                  	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
                  	at com.smartgwt.client.widgets.cube.CubeGrid.create(CubeGrid.java)
                  	at com.smartgwt.client.widgets.BaseWidget.getOrCreateJsObj(BaseWidget.java:356)
                  	at com.smartgwt.client.widgets.layout.Layout.addMember(Layout.java:1073)
                  	at com.ivstel.af.client.custom.view.TestView.<init>(TestView.java:27)
                  	at com.ivstel.af.client.Analytics.onValueChange(Analytics.java:98)
                  	at com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java:128)
                  	at com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java:1)
                  	at com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:204)
                  	at com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:103)
                  	at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:101)
                  	at com.google.gwt.user.client.impl.HistoryImpl.fireEvent(HistoryImpl.java:74)
                  	at com.google.gwt.event.logical.shared.ValueChangeEvent.fire(ValueChangeEvent.java:43)
                  	at com.google.gwt.user.client.impl.HistoryImpl.fireHistoryChangedImpl(HistoryImpl.java:81)
                  	at com.google.gwt.user.client.History.fireCurrentHistoryState(History.java:121)
                  	at com.ivstel.af.client.Analytics.onModuleLoad(Analytics.java:83)
                  	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:597)
                  	at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
                  	at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:183)
                  	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
                  	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
                  	at java.lang.Thread.run(Thread.java:662)</pre>
                  
                  00:00:36.347  [ERROR] Unable to load module entry point class com.ivstel.af.client.Analytics (see associated exception for details)
                  <pre>com.google.gwt.event.shared.UmbrellaException: One or more exceptions caught, see full set in UmbrellaException#getCauses
                  	at com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:214)
                  	at com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:103)
                  	at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:101)
                  	at com.google.gwt.user.client.impl.HistoryImpl.fireEvent(HistoryImpl.java:74)
                  	at com.google.gwt.event.logical.shared.ValueChangeEvent.fire(ValueChangeEvent.java:43)
                  	at com.google.gwt.user.client.impl.HistoryImpl.fireHistoryChangedImpl(HistoryImpl.java:81)
                  	at com.google.gwt.user.client.History.fireCurrentHistoryState(History.java:121)
                  	at com.ivstel.af.client.Analytics.onModuleLoad(Analytics.java:83)
                  	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:597)
                  	at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
                  	at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:183)
                  	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
                  	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
                  	at java.lang.Thread.run(Thread.java:662)
                  Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError): Cannot call method 'find' of undefined
                   stack: TypeError: Cannot call method 'find' of undefined
                      at Object.isc_CubeGrid_setFacets [as setFacets] (http://127.0.0.1:8888/AF/sc/modules/ISC_Analytics.js?isc_version=8.0.js:131:120)
                      at Object.isc_CubeGrid_initWidget [as initWidget] (http://127.0.0.1:8888/AF/sc/modules/ISC_Analytics.js?isc_version=8.0.js:53:6)
                      at Object.isc_Canvas_init [as init] (http://127.0.0.1:8888/AF/sc/modules/ISC_Core.js:1967:6)
                      at Object.isc_Class_completeCreation [as completeCreation] (http://127.0.0.1:8888/AF/sc/modules/ISC_Core.js:362:6)
                      at Object.isc_c_Class_create (http://127.0.0.1:8888/AF/sc/modules/ISC_Core.js:232:736)
                      at [object Object].<anonymous> (unknown source)
                      at __gwt_jsInvoke (http://127.0.0.1:8888/AF/hosted.html?AF:76:35)
                      at http://127.0.0.1:8888/AF/hosted.html?AF:280:16
                      at maybeStartModule (http://127.0.0.1:8888/AF/AF.nocache.js:39:16)
                      at http://127.0.0.1:8888/AF/AF.nocache.js:222:7
                   arguments: find,
                   type: non_object_property_call
                   __gwt_ObjectId: 72
                  	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:237)
                  	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:129)
                  	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
                  	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
                  	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
                  	at com.smartgwt.client.widgets.cube.CubeGrid.create(CubeGrid.java)
                  	at com.smartgwt.client.widgets.BaseWidget.getOrCreateJsObj(BaseWidget.java:356)
                  	at com.smartgwt.client.widgets.layout.Layout.addMember(Layout.java:1073)
                  	at com.ivstel.af.client.custom.view.TestView.<init>(TestView.java:27)
                  	at com.ivstel.af.client.Analytics.onValueChange(Analytics.java:98)
                  	at com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java:128)
                  	at com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java:1)
                  	at com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:204)
                  	at com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:103)
                  	at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:101)
                  	at com.google.gwt.user.client.impl.HistoryImpl.fireEvent(HistoryImpl.java:74)
                  	at com.google.gwt.event.logical.shared.ValueChangeEvent.fire(ValueChangeEvent.java:43)
                  	at com.google.gwt.user.client.impl.HistoryImpl.fireHistoryChangedImpl(HistoryImpl.java:81)
                  	at com.google.gwt.user.client.History.fireCurrentHistoryState(History.java:121)
                  	at com.ivstel.af.client.Analytics.onModuleLoad(Analytics.java:83)
                  	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:597)
                  	at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
                  	at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:183)
                  	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
                  	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
                  	at java.lang.Thread.run(Thread.java:662)</pre>
                  
                  00:00:36.348  [ERROR] Failed to load module 'AF' from user agent 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.71 Safari/534.24' at 127.0.0.1:54046

                  Comment


                    #10
                    This is a nonsense error message which could only come from files from two different releases of SmartGWT being used together, possibly an analytics.jar from one build and the rest of the .jars from another.

                    If you think you've already got matching files, try a GWT compile, clear your browser cache and reload. If that doesn't clear it up, you have mismatched files, check them over carefully.

                    Comment


                      #11
                      Thank you so much.

                      The problem was that we were using a different version of the smartgwtee.jar file.

                      I feel like such a dumbarse now. :)

                      Comment


                        #12
                        We have the same error

                        Originally posted by Isomorphic View Post
                        This is a nonsense error message which could only come from files from two different releases of SmartGWT being used together, possibly an analytics.jar from one build and the rest of the .jars from another.

                        If you think you've already got matching files, try a GWT compile, clear your browser cache and reload. If that doesn't clear it up, you have mismatched files, check them over carefully.
                        We have the same error & I did exactly what you have recommended (making sure the jars are from same release & recompiling the project), it seems the cubeGrid at run time can't be interpreted as JS object ! any function call made on some cube object at run time fails with the past exception.
                        please advise ??

                        here's the stack trace :

                        com.google.gwt.core.client.JavaScriptException: (TypeError): $wnd.isc[scClassName].create is not a function
                        fileName: http://127.0.0.1:8888
                        lineNumber: 71
                        columnNumber: 0
                        at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:195)
                        at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
                        at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
                        at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:264)
                        at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
                        at com.smartgwt.client.widgets.cube.CubeGrid.getFacet(CubeGrid.java)
                        at com.emeint.server.core.admin.client.widgets.cube.advanced.FacetMenu.<init>(FacetMenu.java:69)
                        at com.emeint.server.core.admin.client.widgets.cube.advanced.CubeGridExt.getFacetControls(CubeGridExt.java:219)

                        Comment


                          #13
                          We're not sure what process you used to verify the .jars, but what you actually need to do is use the instructions in the FAQ to make sure the actual browser is loading files from the same version and date. Many possible causes of staleness exist between looking at some files on disk and what actually arrives in the browser.

                          Comment


                            #14
                            Originally posted by Isomorphic View Post
                            We're not sure what process you used to verify the .jars, but what you actually need to do is use the instructions in the FAQ to make sure the actual browser is loading files from the same version and date. Many possible causes of staleness exist between looking at some files on disk and what actually arrives in the browser.
                            For the jar compatibility process: I'm using 4 jars from the evaluation distribution "smartgwtee-3.0p", they are: smartgwt, smartgwt-skins, smartgwtee and analytics jars which all exists in the lib folder for the distribution folder.

                            For the FAQ thing: which part do you mean ? kindly be informed that I have already did the steps to run the cube from inside your showcase , what we are up to now is to run the cube from our own smartgwt application !

                            Any tangible help will be highly appreciated!

                            Comment


                              #15
                              "I installed a new version that is supposed to have a fix or new feature, but it's still not working"

                              http://forums.smartclient.com/showthread.php?t=8159#aUpdate

                              Comment

                              Working...
                              X