Announcement

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

    Problem wit SGWT and GWT-2.6.0

    Hi,
    I use GWT-2.6.0 and SmartClient Version: v10.1p_2016-01-07/PowerEdition Deployment (built 2016-01-07)
    Some of the functionality got broken, for example:
    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(2614), JavaScript object(183), JavaScript object(2781)]): pq.push is not a function
    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:576)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284)
    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:347)
    at sun.reflect.GeneratedMethodAccessor136.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: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(Unknown Source)

    As you can see here com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;) throws exception.

    here's the call from the SGWT:
    com.google.gwt.event.shared.UmbrellaException: Exception caught: (TypeError) @com.smartgwt.client.util.Offline::setValue(Ljava/lang/String;Ljava/lang/String;Z)([string: 'wizardCurrStep', string: 'STEP_DEVICE_MONITORING', bool: true]): pq.push is not a function
    at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:129)
    at com.smartgwt.client.core.DataClass.fireEvent(DataClass.java:578)
    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:71)
    at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
    at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284)
    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:347)
    at sun.reflect.GeneratedMethodAccessor150.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: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(Unknown Source)

    As you can see all I do is call :

    Code:
    import com.smartgwt.client.util.Offline;
    
    Offline.put( "wizardCurrStep", "STEP_DEVICE_MONITORING" );
    The Browser is Firefox 24.8.1 and I got these errors in Debug and run-time mode.
    The error is always "push is not a function"...

    #2
    This looks as though you have some data stored in offline storage that somehow got corrupted.

    1. Are you upgrading from a previous version? If so, which one?

    2. Can you reproduce this error on any other browser?

    3. Can you reproduce this error on Firefox on another person's machine?

    4. Does clearing offline data for the domain where you are testing fix the issue?

    Comment


      #3
      1. Are you upgrading from a previous version? If so, which one?
      Yes, upgraded the GWT from 2.0 to 2.6.0
      2. Can you reproduce this error on any other browser?
      ​No, all the rest of the browsers work just fine, no exception thrown, but unfortunately the Firefox 24.8.X is the only one which supports the Debug mode right now.
      I even uninstalled the browser and installed it back , but the error persisted.
      3. Can you reproduce this error on Firefox on another person's machine?
      No I can not.
      4. Does clearing offline data for the domain where you are testing fix the issue?
      I always clean Options->Network-> "Cached Web Content" and "Offline Web Content and User Data", but it seems does not help in this case.
      May be you can suggest which folders should I delete to recreate the corrupted offline storage ?

      Comment


        #4
        1. Are you also updating from a previous version of SmartGWT at the same time?

        2. Can you isolate which update has actually causes this issue (GWT or SmartGWT)?

        As far as steps:

        1. clear the GWT unitcache

        2. as far as ensuring you have cleared offline data, it sounds like what you did was correct, but we would recommend Googling and trying out multiple approaches.

        3. since this isn't reproducible for others, check if you have any Firefox extensions - some of these will persist after an uninstall and reinstall

        4. we'd also recommend verifying that a fresh install of the latest version of Firefox on your machine has no issues.

        Comment

        Working...
        X