Announcement

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

    Can't get samples to work

    I've been struggling in two days to start using SmartGWT LPGL. Setup: smartgwt-12.1p, GWT 2.9.0 ANT 1.10.9 Java JDK 1.8.241
    It is impossible to get the HelloWorld or the Showcase samples through the GWT compiler. I get hundreds of errors. The only thing I've changed in the build.xml is the Java version to 8 and increased JVM heap limit. Output:

    libs:

    javac:
    [javac] /Users/stefan/workspace/smartgwt-12.1p 2/samples/showcase/build.xml:47: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 470 source files to /Users/stefan/workspace/smartgwt-12.1p 2/samples/showcase/war/WEB-INF/classes
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [copy] Copying 3 files to /Users/stefan/workspace/smartgwt-12.1p 2/samples/showcase/war/WEB-INF/classes
    [copy] Copied 2 empty directories to 2 empty directories under /Users/stefan/workspace/smartgwt-12.1p 2/samples/showcase/war/WEB-INF/classes

    gwtc:
    [java] Compiling module com.smartgwt.sample.showcase.Showcase
    [java] Ignored 171 units with compilation errors in first pass.
    [java] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
    [java] Finding entry point classes
    [java] Tracing compile failure path for type 'com.smartgwt.sample.showcase.client.Showcase'
    [java] [ERROR] Errors in 'file:/Users/stefan/workspace/smartgwt-12.1p%202/samples/showcase/src/com/smartgwt/sample/showcase/client/Showcase.java'
    [java] [ERROR] Line 1467: The method selectRecord(int) in the type ListGrid is not applicable for the arguments (ExplorerTreeNode)
    [java] [ERROR] Line 423: The method setAttribute(String, String) is undefined for the type MenuItem
    and so on.


    I have also tried using IntelliJ IDEA 2020.2 without any luck. Using IntelliJ I have added the two smartgwt jars to our existing GWT application and changed the *.gwt.xml. Added a SmartGWT widget. The compilation now runs OK. But the application now crashes in Runtime at startup:

    *14:35:12.126:INFO:Log:initialized
    ISC_Core.js?isc_version=12.1p_2021-02-23.js:1263 *14:35:12.257:INFO:Log:isc.Page is loaded
    ISC_Core.js?isc_version=12.1p_2021-02-23.js:1263 *15:09:58.068:WARN:Log:Error: 'Script error.' in at line 0
    isc.B.push.isc.A.addToMasterLog @ ISC_Core.js?isc_version=12.1p_2021-02-23.js:1263
    isc_c_Log_addLogMessage @ ISC_Core.js?isc_version=12.1p_2021-02-23.js:1261
    isc_c_Log_log @ ISC_Core.js?isc_version=12.1p_2021-02-23.js:1254
    logMessage @ ISC_Core.js?isc_version=12.1p_2021-02-23.js:1243
    logWarn @ ISC_Core.js?isc_version=12.1p_2021-02-23.js:1243
    window.onerror @ ISC_Core.js?isc_version=12.1p_2021-02-23.js:1307
    error (async)
    VDt_g$ @ LogUtil.java:25
    G$p_g$ @ SmartGwtEntryPoint.java:99
    H$p_g$ @ SmartGwtEntryPoint.java:512
    Y$p_g$ @ SmartGwtSuperDevModeEntryPoint.java:24
    OUc_g$ @ se_00046arifiq_00046aero_00046Aero__EntryMethodHolder.java:3
    initializeModules_0_g$ @ ModuleUtils.java:44
    NP_g$ @ Impl.java:309
    QP_g$ @ Impl.java:368
    (anonymous) @ Impl.java:78
    gUc_g$ @ ModuleUtils.java:55
    (anonymous) @ ZohoVendor_FieldSerializer.java:32
    SmartGwtEntryPoint.java:37 Uncaught TypeError: Cannot read property '__fireReplyCallback' of undefined
    at G$p_g$ (SmartGwtEntryPoint.java:37)
    at X$p_g$.H$p_g$ [as onModuleLoad_0_g$] (SmartGwtEntryPoint.java:512)
    at X$p_g$.Y$p_g$ [as onModuleLoad_0_g$] (SmartGwtSuperDevModeEntryPoint.java:24)
    at Array.OUc_g$ (se_00046arifiq_00046aero_00046Aero__EntryMethodHolder.java:3)
    at initializeModules_0_g$ (ModuleUtils.java:44)
    at NP_g$ (Impl.java:309)
    at QP_g$ (Impl.java:368)
    at Impl.java:78
    at gUc_g$ (ModuleUtils.java:55)
    at ZohoVendor_FieldSerializer.java:32

    #2
    We agree that these projects need more memory configured, but other than that, we're not seeing the problems you report building SGWT LGPL with ant. Using the SGWT LGPL build dated 2021-02-23, we made the following adjustments to the build.xml for the HelloWorld-2.0 and Showcase projects:
    Code:
      source="1.8" target="1.8" nowarn="true"
    and
    Code:
      <jvmarg value="-Xmx1G"/>
    (for both "gwtc" and "hosted" targets).

    Then running "ant war" built things with no issue.

    We ran this on OpenSUSE 15.2 Linux with:
    • GWT 2.9.0
    • Ant 1.10.7
    • JDK8 261
    and on MacOS Catalina (10.15.7/19HS24) with:
    • GWT 2.9.0
    • Ant 1.10.5
    • JDK8 191
    You're using a Mac, right? The only thing that stands out is your ant version. You might try using an earlier version of ant. Also make sure that you have plenty of OS memory and disk space left during the build.

    As far as a GUI, we recommend Eclipse. For details, take a look at the help topics Debugging and Troubleshooting.

    Comment

    Working...
    X