Announcement

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

  • Blama
    replied
    Hi Isomorphic,

    yes, please see the Development Mode Error message:
    Code:
    12:32:14.672 [ERROR] [lms] Uncaught exception escaped
    
    com.google.gwt.event.shared.UmbrellaException: Exception caught: (TypeError) @com.smartgwt.client.widgets.grid.ListGrid::fetchData(Lcom/smartgwt/client/data/Criteria;)([Java object: com.smartgwt.client.data.AdvancedCriteria@788949635]): _4 is undefined
        at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:129)
        at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:129)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
        at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:72)
        at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
        at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:341)
        at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:222)
        at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:137)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:589)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:293)
        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:299)
        at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
        at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:72)
        at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
        at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:296)
        at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:551)
        at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:368)
        at java.lang.Thread.run(Unknown Source)
    Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError) @com.smartgwt.client.widgets.grid.ListGrid::fetchData(Lcom/smartgwt/client/data/Criteria;)([Java object: com.smartgwt.client.data.AdvancedCriteria@788949635]): _4 is undefined
        at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:252)
        at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:137)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:589)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:315)
        at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
        at com.smartgwt.client.widgets.grid.ListGrid.fetchData(ListGrid.java)
        at com.lmscompany.lms.client.ui.reporting.ReportingHLayout.fetchData(ReportingHLayout.java:66)
        at com.lmscompany.lms.client.ui.reporting.FilterSectionStack$6.onClick(FilterSectionStack.java:202)
        at com.smartgwt.client.widgets.events.ClickEvent.dispatch(ClickEvent.java:112)
        at com.smartgwt.client.widgets.events.ClickEvent.dispatch(ClickEvent.java:1)
        at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1)
        at com.google.web.bindery.event.shared.EventBus.dispatchEvent(EventBus.java:40)
        at com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:193)
        at com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:88)
        at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:127)
        at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:129)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
        at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:72)
        at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
        at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:341)
        at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:222)
        at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:137)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:589)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:293)
        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:299)
        at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
        at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:72)
        at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
        at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:296)
        at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:551)
        at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:368)
        at java.lang.Thread.run(Unknown Source)
    combinedAC.asString() in the debugger:
    Code:
    {
        "operator":"and", 
        "_constructor":"AdvancedCriteria", 
        "$H":10
    }
    I have no idea what "$H" is. This computes the criteria:
    Code:
    private AdvancedCriteria computeCriteria() {
    
    	AdvancedCriteria masterdataAC = leadMasterdataForm.getValuesAsAdvancedCriteria();
    	AdvancedCriteria creatorAC = leadCreatordataForm.getValuesAsAdvancedCriteria();
    	AdvancedCriteria resellerAC = null;
    	AdvancedCriteria resellerUserAC = null;
    	if (User.isResellerUser())
    		resellerUserAC = resellerUserForm.getValuesAsAdvancedCriteria();
    	else
    		resellerAC = resellerForm.getValuesAsAdvancedCriteria();
    
    	AdvancedCriteria combinedAC = new AdvancedCriteria(OperatorId.AND);
    	if (masterdataAC != null)
    		combinedAC.addCriteria(masterdataAC);
    	if (creatorAC != null)
    		combinedAC.addCriteria(creatorAC);
    	// either
    	if (resellerAC != null)
    		combinedAC.addCriteria(resellerAC);
    	if (resellerUserAC != null)
    		combinedAC.addCriteria(resellerUserAC);
    	return combinedAC;
    }
    Before the return, the values of combinedAC.asString() in the debugger is:
    Code:
    {
        "operator":"and", 
        "_constructor":"AdvancedCriteria"
    }
    It changes after my 1st fetch in the Queue (that uses only SmartGWT APIs, see code above). See the attached screenshots.

    Best regards
    Blama
    Attached Files

    Leave a comment:


  • Isomorphic
    replied
    This looks like a crash inside GWT Java application code being called from a click event. Is there any reason you think this crash is inside framework code?

    Perhaps using less obfuscation you'd be able to see where in the code this is occurring.

    Leave a comment:


  • Blama
    replied
    Also tested with SNAPSHOT_v10.1d_2015-07-23/PowerEdition Deployment (built 2015-07-23), same error.

    Leave a comment:


  • Blama
    replied
    One other thing: It worked with previous versions of 5.1d, but I don't know when it stopped working.

    Leave a comment:


  • Blama
    replied
    For completeness:

    IE 11 Developer Console entry:
    Code:
    12:12:28.487:pointerup5:WARN:Log:com.google.gwt.core.client.JavaScriptException: (TypeError) : Die Eigenschaft "length" eines undefinierten oder Nullverweises kann nicht abgerufen werden.
        at tF(Unknown script code)
        at dd(Unknown script code)
        at Yc(Unknown script code)
        at xH(Unknown script code)
        at DH(Unknown script code)
        at anonymous(Unknown script code)
        at Pb(Unknown script code)
        at Sb(Unknown script code)
        at anonymous(Unknown script code)
        at click(Unknown script code)
        at isc_StatefulCanvas_handleActivate(https://myserver.com/project/sc/modules/ISC_Foundation.js?isc_version=v10.1d_2015-07-21-SNAPSHOT.js)
        at isc_StatefulCanvas_handleClick(https://myserver.com/project/sc/modules/ISC_Foundation.js?isc_version=v10.1d_2015-07-21-SNAPSHOT.js)
        at isc_c_EventHandler_bubbleEvent(https://myserver.com/project/sc/modules/ISC_Core.js?isc_version=v10.1d_2015-07-21-SNAPSHOT.js)
        at isc_c_EventHandler_handleClick(https://myserver.com/project/sc/modules/ISC_Core.js?isc_version=v10.1d_2015-07-21-SNAPSHOT.js)
        at isc_c_EventHandler__handleMouseUp(https://myserver.com/project/sc/modules/ISC_Core.js?isc_version=v10.1d_2015-07-21-SNAPSHOT.js)
        at isc_c_EventHandler__handlePointerUp(https://myserver.com/project/sc/modules/ISC_Core.js?isc_version=v10.1d_2015-07-21-SNAPSHOT.js)
        at isc_c_EventHandler_dispatch(https://myserver.com/project/sc/modules/ISC_Core.js?isc_version=v10.1d_2015-07-21-SNAPSHOT.js)
        at Function code(Function code)
    The RPC tab here looks like the one in the FF26-screenshot.

    Best regards
    Blama

    Leave a comment:


  • Blama
    started a topic JavaScript exception on Button Click in current 5.1d

    JavaScript exception on Button Click in current 5.1d

    Hi Isomorphic,

    I'm getting this Developer Console exception in 5.1d (SNAPSHOT_v10.1d_2015-07-21) I'm not getting in 5.0p (v10.0p_2015-07-15).
    It happens on button click but is most likely related to your request/RPC code.

    Developer Console GC43 (removed server name in logs):
    Code:
    11:55:58.991:MUP2:WARN:Log:com.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot read property 'length' of undefined
        at RF(lms-0.js)
        at cd(lms-0.js)
        at Xc(lms-0.js)
        at SH(lms-0.js)
        at YH(lms-0.js)
        at eval(lms-0.js)
        at Pb(lms-0.js)
        at Sb(lms-0.js)
        at eval(lms-0.js)
        at MM.d.click(lms-0.js)
        at isc_StatefulCanvas_handleActivate(https://myserver.com/project/sc/modules/ISC_Foundation.js?isc_version=v10.1d_2015-07-21-SNAPSHOT.js)
        at isc_StatefulCanvas_handleClick(https://myserver.com/project/sc/modules/ISC_Foundation.js?isc_version=v10.1d_2015-07-21-SNAPSHOT.js)
        at isc_c_EventHandler_bubbleEvent(https://myserver.com/project/sc/modules/ISC_Core.js?isc_version=v10.1d_2015-07-21-SNAPSHOT.js)
        at isc_c_EventHandler_handleClick(https://myserver.com/project/sc/modules/ISC_Core.js?isc_version=v10.1d_2015-07-21-SNAPSHOT.js)
        at isc_c_EventHandler__handleMouseUp(https://myserver.com/project/sc/modules/ISC_Core.js?isc_version=v10.1d_2015-07-21-SNAPSHOT.js)
        at isc_c_EventHandler_handleMouseUp(https://myserver.com/project/sc/modules/ISC_Core.js?isc_version=v10.1d_2015-07-21-SNAPSHOT.js)
        at isc_c_EventHandler_dispatch(https://myserver.com/project/sc/modules/ISC_Core.js?isc_version=v10.1d_2015-07-21-SNAPSHOT.js)
        at eval(eval at isc__makeFunction (https://myserver.com/project/sc/modules/ISC_Core.js?isc_version=v10.1d_2015-07-21-SNAPSHOT.js)
    Developer Console FF26 (different, less details, no change to logs, especially nothing removed behind "https"):
    Code:
    11:59:35.670:MUP6:WARN:Log:com.google.gwt.core.client.JavaScriptException: (TypeError) : _4 is undefined
        at tF(https)
        at dd(https)
        at Yc(https)
        at xH(https)
        at DH(https)
        at qM/g<(https)
        at Pb(https)
        at Sb(https)
        at Rb/<(https)
        at click(https)
        at isc_StatefulCanvas_handleActivate(https)
        at isc_StatefulCanvas_handleClick(https)
        at isc_c_EventHandler_bubbleEvent(https)
        at isc_c_EventHandler_handleClick(https)
        at isc_c_EventHandler__handleMouseUp(https)
        at isc_c_EventHandler_handleMouseUp(https)
        at isc_c_EventHandler_dispatch(https)
        at anonymous(https)
        at anonymous()
    My code:
    Code:
    reloadButton.addClickHandler(new ClickHandler() {
    	@Override
    	public void onClick(ClickEvent event) {
    
    		// resultGrid.fetchData(combinedAC);
    
    		FilterSectionStack.this.parent.fetchData(computeCriteria());
    	}
    });
    
    //...
    //This is the fetchData called above:
    
    public void fetchData(AdvancedCriteria combinedAC) {
    	RPCManager.startQueue();
    	funnelDS.fetchData(combinedAC, new DSCallback() {
    		@Override
    		public void execute(DSResponse dsResponse, Object data, DSRequest dsRequest) {
    			if (dsResponse.getStatus() == DSResponse.STATUS_SUCCESS)
    				funnelSectionStack.getFunnel().setData(dsResponse);
    		}
    	}, new DSRequest() {
    		{
    			setOperationId("countLeads");
    		}
    	});
    	leadListReporting.fetchData(combinedAC);
    	RPCManager.sendQueue();
    }
    Please also note the difference in the sent RPC requests in the attached screenshot. Therefore I think this might be related to the RPC code, not the button click.

    This is pretty important for me, so if you need more details, let me know.

    Best regards
    Blama
    Attached Files
    Last edited by Blama; 23rd Jul 2015, 02:10.
Working...
X