Announcement

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

    upgrading GWT 2.5.1 to 2.6.0 on SmartGWT 4.1

    v9.1p_2014-03-20/PowerEdition Deployment 2014-03-20
    GWT 2.6.0
    IE-11

    I'm upgrading GWT from 2.5.1 to 2.6.0 (everything was working fine on 2.5.1) and when I went to build, I'm seeing this error upon startup:

    Code:
    Loading module: com.anstca.tz.Main
      Top URL: http://127.0.0.1:8080/tzw/home.htm?gwt.codesvr=127.0.0.1:9997
      User agent: IE
      Remote host: 127.0.0.1:49972
      Tab key: 3140
      Session key: lNlL3ECj%'2wl\O_
    DEBUG: Validating units:
      INFO: Ignored 1 unit with compilation errors in first pass.
    Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
    DEBUG: Rebinding com.google.gwt.useragent.client.UserAgent
    ERROR: Deferred binding failed for 'com.google.gwt.useragent.client.UserAgent'; expect subsequent failures
      DEBUG: Invoking generator com.google.gwt.useragent.rebind.UserAgentGenerator
        ERROR: Unable to find value for 'user.agent'
    com.google.gwt.core.ext.BadPropertyValueException: Property 'user.agent' cannot be set to unexpected value 'ie6'
    	at com.google.gwt.dev.shell.ModuleSpacePropertyOracle.computePropertyValue(ModuleSpacePropertyOracle.java:170)
    	at com.google.gwt.dev.shell.ModuleSpacePropertyOracle.getSelectionProperty(ModuleSpacePropertyOracle.java:89)
    	at com.google.gwt.useragent.rebind.UserAgentGenerator.generate(UserAgentGenerator.java:66)
    	at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)
    	at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:676)
    	at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
    	at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)
    	at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)
    	at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:147)
    	at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:600)
    	at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:470)
    	at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
    	at com.google.gwt.core.shared.GWT.create(GWT.java:72)
    	at com.google.gwt.core.client.GWT.create(GWT.java:86)
    	at com.google.gwt.useragent.client.UserAgentAsserter.onModuleLoad(UserAgentAsserter.java:41)
    	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.ModuleSpace.onLoad(ModuleSpace.java:411)
    	at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
    	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
    	at java.lang.Thread.run(Thread.java:744)
    ERROR: Unable to load module entry point class com.google.gwt.useragent.client.UserAgentAsserter (see associated exception for details)
    java.lang.RuntimeException: Deferred binding failed for 'com.google.gwt.useragent.client.UserAgent' (did you forget to inherit a required module?)
    	at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
    	at com.google.gwt.core.shared.GWT.create(GWT.java:72)
    	at com.google.gwt.core.client.GWT.create(GWT.java:86)
    	at com.google.gwt.useragent.client.UserAgentAsserter.onModuleLoad(UserAgentAsserter.java:41)
    	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.ModuleSpace.onLoad(ModuleSpace.java:411)
    	at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
    	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
    	at java.lang.Thread.run(Thread.java:744)
    Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
    	at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:610)
    	at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:470)
    	at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
    	at com.google.gwt.core.shared.GWT.create(GWT.java:72)
    	at com.google.gwt.core.client.GWT.create(GWT.java:86)
    	at com.google.gwt.useragent.client.UserAgentAsserter.onModuleLoad(UserAgentAsserter.java:41)
    	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.ModuleSpace.onLoad(ModuleSpace.java:411)
    	at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
    	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
    	at java.lang.Thread.run(Thread.java:744)
    ERROR: Failed to load module 'com.anstca.tz.Main' from user agent 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; CMDTDFJS; F9J)' at 127.0.0.1:49972

    My Main.gwt.xml file looks like this:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <module rename-to="com.anstca.tz.Main">
        <inherits name="com.google.gwt.user.User"/>
        <inherits name="com.google.gwt.http.HTTP" />
    
        <inherits name="com.smartgwt.tools.SmartGwtTools"/>
        <inherits name="com.smartgwtee.SmartGwtEENoScript"/>
        <inherits name="com.smartgwtee.tools.Tools"/>
    
        <inherits name='pl.rmalinowski.gwt2swf.GWT2SWF' />
        <entry-point class="com.anstca.tz.client.MainEntryPoint"/>
    </module>
    I seem to be missing something...but I'm not sure. Any obvious?

    #2
    OK, my issue was the doctype on the host page, I used this:

    <!DOCTYPE html>

    to fix the issue. (found in the GWT forums)

    Comment


      #3
      Also present in our FAQ (just FYI).

      Note the underlying problem is that GWT 2.6 has started the process of deprecating support for IE6, and somewhere in one of your inherited .gwt.xml files, possibly in GWT2SWF, you have an explicit reference to generating an ie6 permutation.

      For now, adding this to your .gwt.xml file will cause GWT 2.6 to still allow ie6 as a user.agent value.

      <extend-property name="user.agent" values="ie6"/>

      Comment


        #4
        Thank you for that info.

        Comment


          #5
          A bit off topic, and not a Smart GWT issue per se, but I hope it's helpful to somebody.

          I'm in an organization that is (finally) transitioning from IE8 to IE10. Given the following IDE:
          - JRE 1.7.0-51 64-bit
          - Eclipse 4.3 Kepler 64-bit
          - Smart GWT 4.1 10/10/2014 build
          - IE 8 32-bit & 64-bit

          Using a fresh workspace with an import of the BuiltInDS sample project, this is the behavior I see with IE8:
          - GWT 2.5.1: No problems, app loads as expected.
          - GWT 2.6.0: Fails with what appear to be purely GWT errors.
          Code:
          [DEBUG] [builtinds] - Rebinding com.google.gwt.useragent.client.UserAgent
          [DEBUG] [builtinds] - Invoking generator com.google.gwt.useragent.rebind.UserAgentGenerator
          
          [ERROR] [builtinds] - Error while executing the JavaScript provider for property 'user.agent'
          
          08:03:42.908 [ERROR] [builtinds] Error while executing the JavaScript provider for property 'user.agent'
          
          com.google.gwt.core.client.JavaScriptException: (null) __gwt_getProperty([string: 'user.agent']): null
              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.ModuleSpacePropertyOracle.computePropertyValue(ModuleSpacePropertyOracle.java:152)
              at com.google.gwt.dev.shell.ModuleSpacePropertyOracle.getSelectionProperty(ModuleSpacePropertyOracle.java:89)
              at com.google.gwt.useragent.rebind.UserAgentGenerator.generate(UserAgentGenerator.java:66)
              at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)
              at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:676)
              at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
              at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)
              at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)
              at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:147)
              at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:600)
              at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:470)
              at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
              at com.google.gwt.core.shared.GWT.create(GWT.java:72)
              at com.google.gwt.core.client.GWT.create(GWT.java:86)
              at com.google.gwt.useragent.client.UserAgentAsserter.onModuleLoad(UserAgentAsserter.java:41)
              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.ModuleSpace.onLoad(ModuleSpace.java:411)
              at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
              at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
              at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
              at java.lang.Thread.run(Thread.java:744)
          
          [ERROR] [builtinds] - Unable to find value for 'user.agent'
          08:03:42.972 [ERROR] [builtinds] Unable to find value for 'user.agent'
          
          com.google.gwt.core.ext.BadPropertyValueException: Property 'user.agent' cannot be set to unexpected value '&lt;failed to compute&gt;'
              at com.google.gwt.dev.shell.ModuleSpacePropertyOracle.computePropertyValue(ModuleSpacePropertyOracle.java:160)
              at com.google.gwt.dev.shell.ModuleSpacePropertyOracle.getSelectionProperty(ModuleSpacePropertyOracle.java:89)
              at com.google.gwt.useragent.rebind.UserAgentGenerator.generate(UserAgentGenerator.java:66)
              at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)
              at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:676)
              at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
              at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)
              at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)
              at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:147)
              at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:600)
              at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:470)
              at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
              at com.google.gwt.core.shared.GWT.create(GWT.java:72)
              at com.google.gwt.core.client.GWT.create(GWT.java:86)
              at com.google.gwt.useragent.client.UserAgentAsserter.onModuleLoad(UserAgentAsserter.java:41)
              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.ModuleSpace.onLoad(ModuleSpace.java:411)
              at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
              at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
              at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
              at java.lang.Thread.run(Thread.java:744)
          
          	more, but I'll stop here...
          Note that the BuiltInDS.html file has a DOCTYPE tag of <!DOCTYPE html>.

          IE10 works fine.

          Any way, the fix for IE8 is to replace the bootstrap html's meta tag:
          Code:
          <meta http-equiv="content-type" content="text/html; charset=UTF-8">
          with this one:
          Code:
          <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8">

          Comment


            #6
            For what its worth, here is our bootstrap JSP:
            Code:
            <%@page contentType="text/html" pageEncoding="UTF-8"%>
            <!DOCTYPE html>
            <html>
                <head>
                    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            ...

            Comment


              #7
              DevMo, we appreciate the attempted help, but using that meta tag is definitely wrong. It would cause newer IE to degrade itself to older IE's behavior.

              We're not sure why you're getting the error you're getting, but as JLivermore points out, others are not seeing it. You may have some issue like your IDE using parts of two different versions of GWT, or you might just need to rerun a GWT compile after changing the GWT version in use.

              Comment

              Working...
              X