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
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
Comment