[Engine-devel] Does these ERROR will effect WebAdmin build?

Vojtech Szocs vszocs at redhat.com
Tue Jan 7 10:28:11 UTC 2014


Hi,

(CC'ing Juan, please feel free to correct/add to my comments.)

I think that ERRORs such as:

  [ERROR] [AppClassLoader at ...] ...
  [ERROR] [GinBridgeClassLoader at ...] ...

come from AspectJ load-time weaver [1] logging its output to stderr.

  [1] GWT compilation includes JVM args:
      -javaagent:/path/to/aspectjweaver-${aspectj.version}.jar

We use AspectJ [2] to prevent GWT compiler from optimizing-out code
in backend business entities, i.e. some code in business entities is
not used on client and GWT compiler thinks its dead code, but when
it's optimized-out we would face serialization errors on server.

  [2] frontend/webadmin/modules/gwt-extension/
      src/main/java/org/ovirt/engine/ui/gwtextension/DontPrune.java

So these kinds of ERRORs are harmless.

The other ERRORs such as:

  [ERROR] ... java.util.prefs.FileSystemPreferences$1 run
  [ERROR] INFO: Created user preferences directory.

come from Java's "Preferences" subsystem, as we override default
preference file locations [3] in order to avoid conflicts when
running multiple JVMs at once, i.e. parallel Engine build.

  [3] GWT compilation includes JVM args:
      -Djava.io.tmpdir="${project.build.directory}/tmp"
      -Djava.util.prefs.systemRoot="${project.build.directory}/tmp/.java"
      -Djava.util.prefs.userRoot="${project.build.directory}/tmp/.java"

Also these kinds of ERRORs are harmless.

So for now, you can safely ignore these ERRORs.

To me, it seems that when gwt-maven-plugin:compile goal executes,
it spawns new JVM (invoking GWT compiler) and *redirects* stdout
of this JVM to plugin logger's stderr.

Juan, what are your thoughts? (maybe I'm missing something)

Regards,
Vojtech


----- Original Message -----
> From: "Chuan Liao (Jason, MCXS-CQ)" <chuan.liao at hp.com>
> To: engine-devel at ovirt.org
> Sent: Tuesday, January 7, 2014 3:47:57 AM
> Subject: [Engine-devel] Does these ERROR will effect WebAdmin build?
> 
> 
> 
> Hi All,
> 
> 
> 
> When I build the WebAdmin from development mode on oVirt engine, I meet these
> ERROR message:
> 
> 
> 
> [INFO]
> 
> [INFO] --- gwt-maven-plugin:2.5.1:compile (gwtcompile) @ webadmin ---
> 
> [WARNING] Don't declare gwt-dev as a project dependency. This may introduce
> complex dependency conflicts
> 
> [ERROR] [AppClassLoader at 11a40fff] info AspectJ Weaver Version 1.6.11 built on
> Tuesday Mar 15, 2011 at 15:31:04 GMT
> 
> [ERROR] [AppClassLoader at 11a40fff] info register classloader
> sun.misc.Launcher$AppClassLoader at 11a40fff
> 
> [ERROR] [AppClassLoader at 11a40fff] info using configuration
> file:/home/jason/workspace/ovirt-engine/frontend/webadmin/modules/gwt-extension/target/gwt-extension-3.4.0-SNAPSHOT.jar!/META-INF/aop.xml
> 
> [ERROR] [AppClassLoader at 11a40fff] info using configuration
> file:/home/jason/workspace/ovirt-engine/frontend/webadmin/modules/gwt-extension/target/gwt-extension-3.4.0-SNAPSHOT-sources.jar!/META-INF/aop.xml
> 
> [ERROR] [AppClassLoader at 11a40fff] info register aspect
> org.ovirt.engine.ui.gwtextension.DontPrune
> 
> [ERROR] [AppClassLoader at 11a40fff] info register aspect
> org.ovirt.engine.ui.gwtextension.DontPrune
> 
> [ERROR] Jan 06, 2014 6:38:29 PM java.util.prefs.FileSystemPreferences$1 run
> 
> [ERROR] INFO: Created user preferences directory.
> 
> [INFO] Compiling module org.ovirt.engine.ui.webadmin.WebAdmin
> 
> [ERROR] [AppClassLoader at 11a40fff] warning javax.* types are not being woven
> because the weaver option '-Xset:weaveJavaxPackages=true' has not been
> specified
> 
> [ERROR] [GinBridgeClassLoader at 8c2ac32] info AspectJ Weaver Version 1.6.11
> built on Tuesday Mar 15, 2011 at 15:31:04 GMT
> 
> [ERROR] [GinBridgeClassLoader at 8c2ac32] info register classloader
> com.google.gwt.inject.rebind.GinBridgeClassLoader at 8c2ac32
> 
> [ERROR] [GinBridgeClassLoader at 8c2ac32] info using configuration
> file:/home/jason/workspace/ovirt-engine/frontend/webadmin/modules/gwt-extension/target/gwt-extension-3.4.0-SNAPSHOT.jar!/META-INF/aop.xml
> 
> [ERROR] [GinBridgeClassLoader at 8c2ac32] info using configuration
> file:/home/jason/workspace/ovirt-engine/frontend/webadmin/modules/gwt-extension/target/gwt-extension-3.4.0-SNAPSHOT-sources.jar!/META-INF/aop.xml
> 
> [ERROR] [GinBridgeClassLoader at 8c2ac32] info register aspect
> org.ovirt.engine.ui.gwtextension.DontPrune
> 
> [ERROR] [GinBridgeClassLoader at 8c2ac32] info register aspect
> org.ovirt.engine.ui.gwtextension.DontPrune
> 
> [INFO] Computing all possible rebind results for
> 'org.ovirt.engine.ui.webadmin.ApplicationTemplates'
> 
> 
> 
> Build seems that the oVirt engine could work well after the build,
> 
> does anybody know these errors maybe effect something, and how to prevent
> them from maven build log?
> 
> 
> 
> Best Regards,
> Jason Liao
> 
> 
> 
> _______________________________________________
> Engine-devel mailing list
> Engine-devel at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/engine-devel
> 



More information about the Devel mailing list