Results 1 to 3 of 3

Thread: Viewport error GXT 4.0.1 GWT 2.7.0

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Apr 2016
    Posts
    2

    Default Viewport error GXT 4.0.1 GWT 2.7.0

    When adding a Viewport to the Rootpanel the following error is thrown.

    java.lang.ClassCastException: com.google.gwt.core.client.JavaScriptObject$ cannot be cast to java.lang.String
    at com.sencha.gxt.widget.core.client.container.Viewport.getOrientation(Viewport.java)
    at com.sencha.gxt.widget.core.client.container.Viewport.onAttach(Viewport.java:156)
    at com.google.gwt.user.client.ui.Widget.setParent(Widget.java:484)
    at com.google.gwt.user.client.ui.Panel.adopt(Panel.java:124)
    at com.google.gwt.user.client.ui.ComplexPanel.add(ComplexPanel.java:105)
    at

    This doesn't effect the view when running in dev mode. This occurs with the sample code too.

    CssFloatLayoutContainer container = new CssFloatLayoutContainer();
    container.add(new TextField(), new CssFloatLayoutContainer.CssFloatData(1));


    Viewport viewPort = new Viewport();
    viewPort.setWidget(container);
    RootPanel.get().add( viewPort );

  2. #2
    Ext GWT Premium Member
    Join Date
    Aug 2010
    Location
    Germany, Solingen
    Posts
    281

    Default

    Can#t reproduce the error. Using GWT 2.7.0 & SDM works finde-

  3. #3
    Sencha User
    Join Date
    Apr 2016
    Posts
    2

    Default Stack Trace

    The full stack trace is
    ERROR: (Viewport.java:-1) 2016-04-15 13:47:43,766 [FATAL] Uncaught Exception:


    java.lang.ClassCastException: com.google.gwt.core.client.JavaScriptObject$ cannot be cast to java.lang.String
    at com.sencha.gxt.widget.core.client.container.Viewport.getOrientation(Viewport.java)
    at com.sencha.gxt.widget.core.client.container.Viewport.onWindowResize(Viewport.java:170)
    at com.sencha.gxt.widget.core.client.Component$3.onExecute(Component.java:1462)
    at com.sencha.gxt.core.client.util.DelayedTask$1.run(DelayedTask.java:55)
    at com.google.gwt.user.client.Timer.fire(Timer.java:135)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    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.GeneratedMethodAccessor233.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    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(Thread.java:745)

    It appears to throw a javascript typecast error in a browser debugger, and on the deployment through an appengine server. Locally I am running the gwt plugin. It doesn't seem to effect the outcome of the page, just throws it on every load.

Similar Threads

  1. [FIXED] Error creating Viewport - 5.1.0.70
    By Lukappa in forum Ext 5: Bugs
    Replies: 5
    Last Post: 2 Jan 2015, 3:11 PM
  2. [FIXED] Changing viewport userClassName to "Viewport" - error message not helpful
    By jptrainor in forum Sencha Architect 2.x: Bugs
    Replies: 3
    Last Post: 17 Sep 2012, 2:57 AM
  3. Replies: 4
    Last Post: 6 Sep 2012, 1:51 PM
  4. Viewport having error in IE 8
    By shaangola in forum Ext: Discussion
    Replies: 1
    Last Post: 26 Jul 2011, 7:24 AM
  5. MVC Viewport error
    By oldby in forum Ext: Discussion
    Replies: 1
    Last Post: 12 Jun 2011, 7:39 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •