Details
Description
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Re-opening because of these two issues:
1)Building icefaces with IF4 trunk rev# 39720 using "ant allclean world", the following errors are seen during the build, however the final build is successful.
I am using Java 1.6.0_24 and ant 1.7.1.
..........
res-js-compress:
[echo] Compressing ace-yui.js
[java] java.lang.UnsupportedClassVersionError: com/google/javascript/jscomp/CommandLineRunner : Unsupported major.
inor version 51.0
[java] at java.lang.ClassLoader.defineClass1(Native Method)
[java] at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
[java] at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
[java] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
[java] at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
[java] at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
[java] Could not find the main class: com.google.javascript.jscomp.CommandLineRunner. Program will exit.
[java] Exception in thread "main"
[java] Java Result: 1
[echo] Compressing ace-jquery.js
[java] java.lang.UnsupportedClassVersionError: com/google/javascript/jscomp/CommandLineRunner : Unsupported major.
inor version 51.0
[java] at java.lang.ClassLoader.defineClass1(Native Method)
[java] at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
[java] at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
[java] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
[java] at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
[java] at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
[java] Could not find the main class: com.google.javascript.jscomp.CommandLineRunner. Program will exit.
[java] Exception in thread "main"
[java] Java Result: 1
[echo] Compressing ace-datatable.js
[java] java.lang.UnsupportedClassVersionError: com/google/javascript/jscomp/CommandLineRunner : Unsupported major.
inor version 51.0
[java] at java.lang.ClassLoader.defineClass1(Native Method)
[java] at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
[java] at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
[java] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
[java] at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
[java] at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
[java] Could not find the main class: com.google.javascript.jscomp.CommandLineRunner. Program will exit.
[java] Exception in thread "main"
[java] Java Result: 1
[echo] Compressing ace-menu.js
[java] java.lang.UnsupportedClassVersionError: com/google/javascript/jscomp/CommandLineRunner : Unsupported major.
inor version 51.0
[java] at java.lang.ClassLoader.defineClass1(Native Method)
[java] at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
[java] at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
[java] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
[java] at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
[java] at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
[java] Could not find the main class: com.google.javascript.jscomp.CommandLineRunner. Program will exit.
[java] Exception in thread "main"
[java] Java Result: 1
[echo] Compressing ace-components.js
[java] java.lang.UnsupportedClassVersionError: com/google/javascript/jscomp/CommandLineRunner : Unsupported major.
inor version 51.0
[java] at java.lang.ClassLoader.defineClass1(Native Method)
[java] at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
[java] at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
[java] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
[java] at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
[java] at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
[java] Could not find the main class: com.google.javascript.jscomp.CommandLineRunner. Program will exit.
[java] Exception in thread "main"
[java] Java Result: 1
[echo] Compressing ace-chart.js
[java] java.lang.UnsupportedClassVersionError: com/google/javascript/jscomp/CommandLineRunner : Unsupported major.
inor version 51.0
[java] at java.lang.ClassLoader.defineClass1(Native Method)
[java] at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
[java] at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
[java] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
[java] at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
[java] at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
[java] Could not find the main class: com.google.javascript.jscomp.CommandLineRunner. Program will exit.
[java] Exception in thread "main"
[java] Java Result: 1
res-js-no-compress:
res-css-combine:
res-copy:
[copy] Copying 1 file to C:\svn\ossrepo\icefaces4\trunk\icefaces\ace\component\build\exploded\META-INF
[copy] Copying 951 files to C:\svn\ossrepo\icefaces4\trunk\icefaces\ace\component\build\exploded\META-INF\resource
..................
2) On Icefaces4 trunk rev# 39959, there are browser console errors when loading showcase (or other QA test apps) in any browser.
Firefox26:
"NetworkError: 404 Not Found - http://localhost:8080/showcase/RES_NOT_FOUND"
RES_NOT_FOUND
TypeError: ice.push is undefined
[Break On This Error]
ice.push.deregister([_114]);
coales...=bnzo5q (line 2908)
Chrome32:
GET http://localhost:8080/showcase/RES_NOT_FOUND 404 (Not Found) showcase.jsf:5
Uncaught TypeError: Cannot call method 'deregister' of undefined coalesced.js.jsf?ln=ice.core&dgst=bnzo5q:2907
Replaced js-compiler.jar with a version that can run on JVM 1.6.
See if it is possible to show the JS minifying errors in the console.
Modified build files to filter out WARNINGs in the console logging while JS minifying.
Re-opening because:
1) GMap component is suspected to have been affected:
Testing showcase > GMap with projectStage=Production found the following errors that cannot be reproduced when using projectStage=Development (Firefox26, Chrome32, IF4 trunk rev# 39735, 39742):
> Google Events/ Map Markers:
ReferenceError: wrapper is not defined
http://localhost:8080/showcase/javax.faces.resource/coalesced.js.jsf?ln=ice.core&dgst=n9wjqd/eval/seq/89
Line 1
> Overlays:
ReferenceError: map is not defined
http://localhost:8080/showcase/javax.faces.resource/coalesced.js.jsf?ln=ice.core&dgst=n9wjqd/eval/seq/70
Line 1
2) Warnings are still visible while building icefaces (Java 1.6/Ant 1.7.1).
.....
:4910: WARNING - Suspicious code. This code lacks side-effects. Is there a bug?
[java] if ( elem.parentNode ) {
[java] ^
[java]
[java] C:\svn\ossrepo\icefaces4\trunk\icefaces\ace\component\resources\icefaces.ace\util\ace-jquery.uncompressed.js
:4911: WARNING - Suspicious code. The result of the 'getprop' operator is not being used.
[java] elem.parentNode.selectedIndex;
[java] ^
[java]
[java] C:\svn\ossrepo\icefaces4\trunk\icefaces\ace\component\resources\icefaces.ace\util\ace-jquery.uncompressed.js
:9957: WARNING - Suspicious code. The result of the 'getprop' operator is not being used.
[java] div.offsetHeight;
[java] ^
[java]
[java] C:\svn\ossrepo\icefaces4\trunk\icefaces\ace\component\resources\icefaces.ace\util\ace-jquery.uncompressed.js
:19797: WARNING - Suspicious code. The result of the 'getprop' operator is not being used.
[java] active.id;
[java] ^
................
1) The GMAp issue is caused by an evaluation of code that references a local variable. Since local variables are renamed by the compressor the evaluation fails.
The fix changes slightly the code to avoid evaluating the local variables, instead evaluate only the passed in options which were meant to be evaluated.
2) I cannot reproduce the warnings shown during the build. I even ran the build with code that was freshly check-out, the results was the same.
Note that ICEfaces 4 should use Ant 1.8.4 as a minimum version.
Confirming that no warnings occur if building Icefaces4 with Ant 1.8.4.
Created issue ICE-9809 to make sure the warnings are fixed, not just ignored.
Replaces ShrinkSafe and YUICompressor minifiers with ClosureCompiler. Also modified build files to use this new tool.