Announcement

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

    Out-of-the-box ASM Error w Super Dev

    Windows 7
    Eclipse Luna (RCP)
    GPE 2.6
    GWT 2.7.0 (set as default SDK and also GWT_HOME)
    Smart GWT Eval 5.0 09/25/2015.

    Run As Super Dev throws this error:
    Code:
    Runing CodeServer with parameters: [-noprecompile, -port, 9876, -sourceLevel, 1.7, -bindAddress, 127.0.0.1, -launcherDir, C:\EclipseProjects\workspace_SuperDevV5\builtinds\war, -logLevel, INFO, com.smartgwt.sample.BuiltInDS]
    Super Dev Mode starting up
       workDir: C:\Users\MyLogin\AppData\Local\Temp\gwt-codeserver-5166164173068088607.tmp
    log4j:WARN No appenders could be found for logger (org.eclipse.jetty.util.log).
    log4j:WARN Please initialize the log4j system properly.
       Loading Java files in com.smartgwt.sample.BuiltInDS.
    [WARN] Server class 'com.isomorphic.base.InitListener' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/E:/SDK/Isomorphic/smartgwtee-eval-5.0p_20150925/smartgwtee-5.0p/lib/isomorphic_core_rpc.jar' to the web app classpath for this session
       For additional info see: file:/E:/SDK/GWT/gwt-2.7.0/gwt-2.7.0/doc/helpInfo/webAppClassPath.html
    [WARN] Server class 'org.hsqldb.Server' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/E:/SDK/Isomorphic/smartgwtee-eval-5.0p_20150925/smartgwtee-5.0p/lib/hsqldb-2.2.9.jar' to the web app classpath for this session
       For additional info see: file:/E:/SDK/GWT/gwt-2.7.0/gwt-2.7.0/doc/helpInfo/webAppClassPath.html
    [Server@e8744a0]: [Thread[main,5,main]]: checkRunning(false) entered
    [Server@e8744a0]: [Thread[main,5,main]]: checkRunning(false) exited
    [Server@e8744a0]: Startup sequence initiated from main() method
    [Server@e8744a0]: Could not load properties from file
    [Server@e8744a0]: Using cli/default properties only
    [Server@e8744a0]: Initiating startup sequence...
    [Server@e8744a0]: Server socket opened successfully in 1 ms.
    [WARN] Server class 'org.apache.log4j.Logger' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/E:/SDK/Isomorphic/smartgwtee-eval-5.0p_20150925/smartgwtee-5.0p/lib/log4j-1.2.15.jar' to the web app classpath for this session
       For additional info see: file:/E:/SDK/GWT/gwt-2.7.0/gwt-2.7.0/doc/helpInfo/webAppClassPath.html
    log4j:WARN No appenders could be found for logger (hsqldb.db.HSQLDB50046DAF09.ENGINE).
    log4j:WARN Please initialize the log4j system properly.
    [Server@e8744a0]: Database [index=0, id=0, db=file:C:\EclipseProjects\workspace_SuperDevV5\builtinds\war\WEB-INF\db\hsqldb\isomorphic, alias=isomorphic] opened sucessfully in 746 ms.
    [Server@e8744a0]: Startup sequence completed in 748 ms.
    [Server@e8744a0]: 2015-09-25 10:09:03.171 HSQLDB server 2.2.9 is online on port 9001
    [Server@e8744a0]: To close normally, connect and execute SHUTDOWN SQL
    [Server@e8744a0]: From command line, use [Ctrl]+[C] to abort abruptly
    ISC: Configuring log4j from: file:/C:/EclipseProjects/workspace_SuperDevV5/builtinds/war/WEB-INF/classes/log4j.isc.config.xml
    [WARN] Server class 'org.apache.commons.collections.map.LinkedMap' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/E:/SDK/Isomorphic/smartgwtee-eval-5.0p_20150925/smartgwtee-5.0p/lib/commons-collections-3.2.1.jar' to the web app classpath for this session
       For additional info see: file:/E:/SDK/GWT/gwt-2.7.0/gwt-2.7.0/doc/helpInfo/webAppClassPath.html
    === 2015-09-25 10:09:03,282 [main] INFO  ISCInit - Isomorphic SmartClient/SmartGWT Framework - Initializing
    === 2015-09-25 10:09:03,288 [main] INFO  ConfigLoader - Attempting to load framework.properties from CLASSPATH
    [WARN] Server class 'isc.org.apache.oro.text.perl.Perl5Util' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/E:/SDK/Isomorphic/smartgwtee-eval-5.0p_20150925/smartgwtee-5.0p/lib/isc-jakarta-oro-2.0.6.jar' to the web app classpath for this session
       For additional info see: file:/E:/SDK/GWT/gwt-2.7.0/gwt-2.7.0/doc/helpInfo/webAppClassPath.html
    === 2015-09-25 10:09:03,389 [main] INFO  ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/E:/SDK/Isomorphic/smartgwtee-eval-5.0p_20150925/smartgwtee-5.0p/lib/isomorphic_core_rpc.jar!/framework.properties
    === 2015-09-25 10:09:03,390 [main] INFO  ConfigLoader - Attempting to load project.properties from CLASSPATH
    === 2015-09-25 10:09:03,390 [main] INFO  ConfigLoader - Unable to locate project.properties in CLASSPATH
    === 2015-09-25 10:09:03,393 [main] INFO  ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/E:/SDK/Isomorphic/smartgwtee-eval-5.0p_20150925/smartgwtee-5.0p/lib/isomorphic_core_rpc.jar!/isc_interfaces.properties
    === 2015-09-25 10:09:03,393 [main] INFO  ConfigLoader - Attempting to load server.properties from CLASSPATH
    === 2015-09-25 10:09:03,395 [main] INFO  ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:/C:/EclipseProjects/workspace_SuperDevV5/builtinds/war/WEB-INF/classes/server.properties
    === 2015-09-25 10:09:03,402 [main] INFO  Logger - Logging system started.
    === 2015-09-25 10:09:03,404 [main] DEBUG ConfigParser - Matched var name: gwtModuleName
    === 2015-09-25 10:09:03,405 [main] DEBUG ConfigParser - value after substitution: builtinds/sc
    === 2015-09-25 10:09:03,405 [main] ERROR ISCInit - Can't find marker file for webRoot: C:/EclipseProjects/workspace_SuperDevV5/builtinds/war/builtinds/sc for configured/autodetected webRoot - if you moved the 'isomorphic' directory, please set isomorphicPathRootRelative in server.properties to the new location and restart the servlet engine.
    === 2015-09-25 10:09:03,405 [main] INFO  ISCInit - WebRoot auto-detection failed - using container IO
    === 2015-09-25 10:09:03,406 [main] INFO  ISCInit - Isomorphic SmartClient/SmartGWT Framework (v10.0p_2015-09-25/EVAL Deployment 2015-09-25) - Initialization Complete
    [WARN] Server class 'org.hibernate.proxy.HibernateProxy' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/E:/SDK/Isomorphic/smartgwtee-eval-5.0p_20150925/smartgwtee-5.0p/lib/hibernate3.jar' to the web app classpath for this session
       For additional info see: file:/E:/SDK/GWT/gwt-2.7.0/gwt-2.7.0/doc/helpInfo/webAppClassPath.html
    [WARN] Server class 'net.sf.cglib.transform.impl.InterceptFieldEnabled' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/E:/SDK/Isomorphic/smartgwtee-eval-5.0p_20150925/smartgwtee-5.0p/lib/cglib-2.2.jar' to the web app classpath for this session
       For additional info see: file:/E:/SDK/GWT/gwt-2.7.0/gwt-2.7.0/doc/helpInfo/webAppClassPath.html
    [WARN] Server class 'com.isomorphic.compression.ServletCompression' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/E:/SDK/Isomorphic/smartgwtee-eval-5.0p_20150925/smartgwtee-5.0p/lib/isomorphic_compression.jar' to the web app classpath for this session
       For additional info see: file:/E:/SDK/GWT/gwt-2.7.0/gwt-2.7.0/doc/helpInfo/webAppClassPath.html
    Linking modules
       Bootstrap link for command-line module 'com.smartgwt.sample.BuiltInDS'
          Linking module 'builtinds'
             Invoking Linker Cross-Site-Iframe
                Ignoring the following script tags in the gwt.xml file
    sc/initsc.js
    sc/modules/ISC_Core.js
    sc/modules/ISC_Foundation.js
    sc/modules/ISC_Containers.js
    sc/modules/ISC_Grids.js
    sc/modules/ISC_Forms.js
    sc/modules/ISC_RichTextEditor.js
    sc/modules/ISC_Calendar.js
    sc/modules/ISC_DataBinding.js
    sc/skins/Enterprise/load_skin.js
    
       Invoking Linker SmartGwtScriptInjector
          Creating loadScriptTagFiles.js to manually load the following script tags:
    sc/initsc.js
    sc/modules/ISC_Core.js
    sc/modules/ISC_Foundation.js
    sc/modules/ISC_Containers.js
    sc/modules/ISC_Grids.js
    sc/modules/ISC_Forms.js
    sc/modules/ISC_RichTextEditor.js
    sc/modules/ISC_Calendar.js
    sc/modules/ISC_DataBinding.js
    sc/skins/Enterprise/load_skin.js
    java.lang.IncompatibleClassChangeError: class com.google.gwt.dev.javac.BytecodeSignatureMaker$CompileDependencyVisitor has interface org.objectweb.asm.ClassVisitor as super class
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at com.google.gwt.dev.javac.BytecodeSignatureMaker.visitCompileDependenciesInBytecode(BytecodeSignatureMaker.java:227)
        at com.google.gwt.dev.javac.BytecodeSignatureMaker.getCompileDependencySignature(BytecodeSignatureMaker.java:209)
        at com.google.gwt.dev.javac.CompiledClass.getSignatureHash(CompiledClass.java:166)
        at com.google.gwt.dev.javac.Dependencies$Ref.<init>(Dependencies.java:42)
        at com.google.gwt.dev.javac.Dependencies$Ref.<init>(Dependencies.java:37)
        at com.google.gwt.dev.javac.Dependencies.resolve(Dependencies.java:114)
        at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:366)
        at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:580)
        at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:513)
        at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:499)
        at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:668)
        at com.google.gwt.dev.codeserver.Recompiler.initWithoutPrecompile(Recompiler.java:200)
        at com.google.gwt.dev.codeserver.Outbox.maybePrecompile(Outbox.java:82)
        at com.google.gwt.dev.codeserver.Outbox.<init>(Outbox.java:61)
        at com.google.gwt.dev.codeserver.CodeServer.makeOutboxes(CodeServer.java:156)
        at com.google.gwt.dev.codeserver.CodeServer.start(CodeServer.java:118)
        at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:91)
        at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:50)
        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.SuperDevListener$1.run(SuperDevListener.java:84)
    [Server@e8744a0]: Initiating shutdown sequence...
    [Server@e8744a0]: Shutdown sequence completed in 0 ms.
    [Server@e8744a0]: 2015-09-25 10:10:51.877 SHUTDOWN : System.exit() was not called
    [WARN] Server class 'com.google.gwt.dev.shell.jetty.JDBCUnloader' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/E:/SDK/GWT/gwt-2.7.0/gwt-2.7.0/gwt-dev.jar' to the web app classpath for this session
       For additional info see: file:/E:/SDK/GWT/gwt-2.7.0/gwt-2.7.0/doc/helpInfo/webAppClassPath.html
    Attempted GWT Compile reports this error:
    Code:
    Compiling module com.smartgwt.sample.BuiltInDS
    [ERROR] Unexpected internal compiler error
    java.lang.IncompatibleClassChangeError: class com.google.gwt.dev.javac.asm.CollectMethodData has interface org.objectweb.asm.MethodVisitor as super class
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
        at java.lang.Class.getDeclaredMethod(Unknown Source)
        at java.io.ObjectStreamClass.getPrivateMethod(Unknown Source)
        at java.io.ObjectStreamClass.access$1700(Unknown Source)
        at java.io.ObjectStreamClass$2.run(Unknown Source)
        at java.io.ObjectStreamClass$2.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.io.ObjectStreamClass.<init>(Unknown Source)
        at java.io.ObjectStreamClass.lookup(Unknown Source)
        at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
        at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
        at java.io.ObjectInputStream.readClassDesc(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
        at java.io.ObjectInputStream.defaultReadObject(Unknown Source)
        at com.google.gwt.dev.javac.CachedCompilationUnit.readObject(CachedCompilationUnit.java:204)
        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 java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
        at java.io.ObjectInputStream.readSerialData(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.readArray(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.readObject(Unknown Source)
        at com.google.gwt.dev.javac.CompilationUnitArchive.readObject(CompilationUnitArchive.java:124)
        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 java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
        at java.io.ObjectInputStream.readSerialData(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.readObject(Unknown Source)
        at com.google.gwt.dev.javac.CompilationUnitArchive.createFromStream(CompilationUnitArchive.java:59)
        at com.google.gwt.dev.javac.CompilationUnitArchive.createFromURL(CompilationUnitArchive.java:66)
        at com.google.gwt.dev.ArchivePreloader.preloadArchives(ArchivePreloader.java:62)
        at com.google.gwt.dev.Precompile.precompile(Precompile.java:246)
        at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)
        at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
        at com.google.gwt.dev.Compiler.run(Compiler.java:206)
        at com.google.gwt.dev.Compiler.run(Compiler.java:158)
        at com.google.gwt.dev.Compiler$1.run(Compiler.java:120)
        at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
        at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
        at com.google.gwt.dev.Compiler.main(Compiler.java:127)

    #2
    Hi devmo,

    please see these threads. I'm getting the same error.
    Isomorphic: This is really annoying when preparing testcases and might also be a real problem for new users. GWT itself is not an easy framework to start using (compared to a java-hello-world). Such problems don't make it easier.

    Best regards
    Blama

    Comment


      #3
      As mentioned in the last reply to the thread you reference, we're not able to reproduce any problem when using asm-3.1.jar. However, when testing with asm-5..0.4.jar, we see a bunch of exceptions from several critical Java apps, including GWT. So shipping an upgraded JAR may lead to users encountering severe problems that they don't have right now.

      Comment


        #4
        Update: I had overlapping issues, ASM + Super Dev Mode config differences in v4 vs v5.

        For Smart GWT Eval 5.0 (10/05/2015 build), if I update to asm-5.0.4.jar, the Built-In-DS project runs as expected in Super Dev Mode.

        However, for a licensed Smart GWT Power 4.1 (09/30/2015 build), if I update to asm-5.0.4.jar, I still had a bad launch due to...
        - Though the console reports success (I think):
        Code:
        ...
           Invoking Linker SmartGwtScriptInjector
              Augmenting builtinds.nocache.js to manually load the following script tags:
        sc/initsc.js
        sc/modules/ISC_Core.js
        sc/modules/ISC_Foundation.js
        sc/modules/ISC_Containers.js
        sc/modules/ISC_Grids.js
        sc/modules/ISC_Forms.js
        sc/modules/ISC_RichTextEditor.js
        sc/modules/ISC_Calendar.js
        sc/modules/ISC_DataBinding.js
        sc/skins/Enterprise/load_skin.js
                 Link succeeded
                 Linking succeeded -- 11.743s
        ...
        ...the browser screen is blank, and the Chrome developer console reports
        Code:
        Uncaught ReferenceError: isc is not defined
        Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.
        Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.
        Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.
        Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.
        Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.
        Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.
        Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.
        Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.
        Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.
        Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.
        Core SmartClient JavaScript libraries appear not to be loaded.
        If inheriting the NoScript SmartGWT modules, verify that the HTML file includes <script src=...> tags to load the SmartClient module .js files from the appropriate location within the WAR.
        By default these files are present under [GWT app name]/sc/modules/. 
        com.smartgwt.client.core.JsObject$SGWT_WARN: Core SmartClient JavaScript libraries appear not to be loaded.
        If inheriting the NoScript SmartGWT modules, verify that the HTML file includes <script src=...> tags to load the SmartClient module .js files from the appropriate location within the WAR.
        By default these files are present under [GWT app name]/sc/modules/. 
          at fillInStackTrace_0_g$
          at Throwable_2_g$
          at Exception_2_g$
          at JsObject$SGWT_WARN_1_g$
          at init_6_g$
          at onModuleLoad_3_g$
          at init_2_g$
          at initializeModules_0_g$
          at apply_0_g$
          at entry0_0_g$
          at anonymous
          at gwtOnLoad_0_g$
          at anonymous
        
        Uncaught TypeError: Cannot read property 'Dialog' of undefined
        I'm guessing the path provided, "sc/modules/..." to the SmartGwtScriptInjector is incomplete/invalid? Or maybe not? I'm confused because "linking succeeded," but the scripts don't seem to be available to the bootstrap html.

        If I manually add the scripts to the bootstrap html as recommended per http://www.smartclient.com/smartgwte...eshooting.html, then the v4.1 project launches as expected.
        Code:
        <!DOCTYPE html>
        
        <html>
          <head>
            <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            <!--                                           -->
            <!-- Any title is fine                         -->
            <!--                                           -->
            <title>BuiltInDS</title>
            
            <!-- IMPORTANT : You must set the variable isomorphicDir to [MODULE_NAME]/sc/ so that the SmartGWT resource are 
              correctly resolved -->    
            <script> var isomorphicDir = "builtinds/sc/"; </script>
        
            <!--     Starting with GWT 2.7, scripts cannot be run from inherited modules.  So reference them here. -->
             <script src="builtinds/sc/modules/ISC_Core.js">          </script>
             <script src="builtinds/sc/modules/ISC_Foundation.js">    </script>
             <script src="builtinds/sc/modules/ISC_Containers.js">    </script>
             <script src="builtinds/sc/modules/ISC_Grids.js">         </script>
             <script src="builtinds/sc/modules/ISC_Forms.js">         </script>
             <script src="builtinds/sc/modules/ISC_RichTextEditor.js"></script>
             <script src="builtinds/sc/modules/ISC_Calendar.js">      </script>
             <script src="builtinds/sc/modules/ISC_DataBinding.js">   </script> 
             <script src="builtinds/sc/skins/Enterprise/load_skin.js"></script>
        
            <!--                                           -->
            <!-- This script loads your compiled module.   -->
            <!-- If you add any GWT meta tags, they must   -->
            <!-- be added before this line.                -->
            <!--                                           -->      
            <script type="text/javascript" language="javascript" src="builtinds/builtinds.nocache.js"></script>
          </head>
        
          <!--                                           -->
          <!-- The body can have arbitrary html, or      -->
          <!-- you can leave the body empty if you want  -->
          <!-- to create a completely dynamic UI.        -->
          <!--                                           -->
          <body>
        
            <!--load the datasources-->
            <script src="builtinds/sc/DataSourceLoader?dataSource=supplyItem,animals,employees"></script>
        
            <!-- OPTIONAL: include this if you want history support -->
            <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>
        
          </body>
        </html>
        Could you please update the 4.1 template projects to work the same as v5.0 does, with the "loadScriptTagFiles.js" that handles this automatically for Super Dev Mode? Or at least add the individual script references in commented form to the BuiltInDS.html file?

        And perhaps update the module DTD reference from GWT 2.5.1 to current 2.7?

        If any of the above is misconceived, please set it straight.

        Thanks.

        Comment


          #5
          The GWT 2.7 SuperDevMode fix for the Eclipse Plugin has been ported back to SGWT 4.1p. It should be in today's nightly (marked 2015-10-07).

          Comment


            #6
            Hi DevMo,

            the GWT DTD did not change from 2.5.1 to 2.7.0.

            Best regards
            Blama

            Comment


              #7
              Thanks. Now v4.1 works once I update the ASM JAR.

              However, an intervening step is required to get it to launch properly. I'm good to go, I just report this in case it's useful feedback. I don't see this particular case mentioned in the Super Dev Troubleshooting document.

              Once the Built-In-DS project is imported, and the ASM JAR is updated:
              - right-click Project -> Run As -> Web Application (GWT Super Dev Mode)
              - The Eclipse console reports what appears to be good news re linking & compilation succeeded.
              - The launched browser is blank, and reports "The page at 127.0.0.1:8888 says: Can't load Datasources - SmartClient runtime not loaded / OK"
              - The Chrome console reports:
              Code:
              Failed to load resource: the server responded with a status of 404 (Not Found)
              DataSourceLoader:2 Uncaught ReferenceError: isc is not defined
              SuperDevModeLogger.java:71 Core SmartClient JavaScript libraries appear not to be loaded.
              If inheriting the NoScript SmartGWT modules, verify that the HTML file includes <script src=...> tags to load the SmartClient module .js files from the appropriate location within the WAR.
              By default these files are present under [GWT app name]/sc/modules/. 
              SuperDevModeLogger.java:75 com.smartgwt.client.core.JsObject$SGWT_WARN: Core SmartClient JavaScript libraries appear not to be loaded.
              If inheriting the NoScript SmartGWT modules, verify that the HTML file includes <script src=...> tags to load the SmartClient module .js files from the appropriate location within the WAR.
              By default these files are present under [GWT app name]/sc/modules/. 
                at fillInStackTrace_0_g$
                at Throwable_2_g$
                at Exception_2_g$
                at JsObject$SGWT_WARN_1_g$
                at init_6_g$
                at onModuleLoad_3_g$
                at init_2_g$
                at initializeModules_0_g$
                at apply_0_g$
                at entry0_0_g$
                at anonymous
                at gwtOnLoad_0_g$
                at anonymous
              error_1_g$ @ SuperDevModeLogger.java:75log_4_g$ @ SuperDevModeLogger.java:35log_6_g$ @ GWT.java:160log_1_g$ @ GWT.java:247init_6_g$ @ SmartGwtEntryPoint.java:43onModuleLoad_3_g$ @ SmartGwtEntryPoint.java:365init_2_g$ @ com_00046smartgwt_00046sample_00046BuiltInDS__EntryMethodHolder.java:3initializeModules_0_g$ @ ModuleUtils.java:44apply_0_g$ @ Impl.java:247entry0_0_g$ @ Impl.java:306(anonymous function) @ Impl.java:72gwtOnLoad_0_g$ @ ModuleUtils.java:55(anonymous function) @ ValueEnum.java:19
              I18nUtil.java:123 Uncaught TypeError: Cannot read property 'Dialog' of undefinedinitMessages_0_g$ @ I18nUtil.java:123init_8_g$ @ I18nUtil.java:32onModuleLoad_3_g$ @ SmartGwtEntryPoint.java:366init_2_g$ @ com_00046smartgwt_00046sample_00046BuiltInDS__EntryMethodHolder.java:3initializeModules_0_g$ @ ModuleUtils.java:44apply_0_g$ @ Impl.java:247entry0_0_g$ @ Impl.java:306(anonymous function) @ Impl.java:72gwtOnLoad_0_g$ @ ModuleUtils.java:55(anonymous function) @ ValueEnum.java:19
              Running a compile from the browser via "Dev Mode On" does not improve the situation.

              The fix is to run an explicit "GWT Compile Project" (right click Project -> Google -> GWT Compile).

              After that, launch the project again from Run Configurations, it'll work then.

              Comment


                #8
                Originally posted by Blama View Post
                Hi DevMo,

                the GWT DTD did not change from 2.5.1 to 2.7.0.

                Best regards
                Blama
                We won't be updating the DTD for old branches, since they must continue to work with old GWT versions and by default those branches are still run with GWT 2.5.1 for our internal testing. For SGWT 5.1, we will update it to GWT 2.6.1, as that's the default GWT version that we test with in that branch. Note that GWT 2.7.0 isn't recommended by default for any branch due to the script tag limitation and associated workaround required.

                Comment


                  #9
                  Good to know which GWT versions to use, thanks. I had assumed latest was best.

                  After all that, when I use SGWT v4.1 w/ GWT 2.5.1, there is no ASM error w/ the provided 3.1 JAR.

                  Comment


                    #10
                    Isomorphic,

                    For SGWT 5.1, we will update it to GWT 2.6.1, as that's the default GWT version that we test with in that branch. Note that GWT 2.7.0 isn't recommended by default for any branch due to the script tag limitation and associated workaround required.
                    Is GWT 2.7.0 still not recommended for SGWT 5.1? I would like to confirm this before upgrading.

                    Thanks.

                    Comment


                      #11
                      At this point, SmartGWT has worked around GWT 2.7's lack of <script> tag support, so it doesn't matter which version you use.

                      Comment

                      Working...
                      X