dev@glassfish.java.net

RE: glassfish build error

From: Simon Meng <simon.meng_at_oracle.com>
Date: Fri, 31 Aug 2012 02:06:46 -0700 (PDT)

Following is the JDK version info in my environment.

bash-3.00$ java -version

java version "1.6.0_24"

Java(TM) SE Runtime Environment (build 1.6.0_24-b07)

Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)

 

The JDK version is older than 6u34.

 

Thanks,

Simon

 

From: Snjezana Sevo-Zenzerovic
Sent: Friday, August 31, 2012 4:47 PM
To: dev_at_glassfish.java.net
Subject: Re: glassfish build error

 

Which JDK version do you use for the build? I think this is the same as the compiler issue we investigated couple of weeks ago and it may be due to using an older JDK 6 update version to compile. If that's the case, please update your JDK to 6u34 and problem should go away.

Thanks,

Snjezana

----- Original Message -----
From: HYPERLINK "mailto:simon.meng_at_oracle.com"simon.meng_at_oracle.com
To: HYPERLINK "mailto:dev_at_glassfish.java.net"dev_at_glassfish.java.net
Sent: Friday, August 31, 2012 10:39:29 AM GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna
Subject: glassfish build error




I tried to build new glassfish server. Run the following commands and got build error. Does anyone have idea for it?

bash-3.00$ pwd

/scratch/bg/all/main

bash-3.00$ svn update

At revision 55761.

bash-3.00$ mvn clean install

 



[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.4:compile (default-compile) on project config-api: Compilation failure

[ERROR] /scratch/bg/all/main/nucleus/admin/config-api/src/main/java/org/glassfish/config/support/TypeResolver.java:[73,36] type parameters of <T>T cannot be determined; no unique maximal instance exists for type variable T with upper bounds T,java.lang.Object

[ERROR] -> [Help 1]

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.4:compile (default-compile) on project config-api: Compilation failure

/scratch/bg/all/main/nucleus/admin/config-api/src/main/java/org/glassfish/config/support/TypeResolver.java:[73,36] type parameters of <T>T cannot be determined; no unique maximal instance exists for type variable T with upper bounds T,java.lang.Object

 

        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)

        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)

        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)

        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)

        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)

        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)

        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)

        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)

        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)

        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)

        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)

        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)

        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)

        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)

        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure

/scratch/bg/all/main/nucleus/admin/config-api/src/main/java/org/glassfish/config/support/TypeResolver.java:[73,36] type parameters of <T>T cannot be determined; no unique maximal instance exists for type variable T with upper bounds T,java.lang.Object

 

        at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:678)

        at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)

        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)

        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)

        ... 19 more

[ERROR]

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

[ERROR]

[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :config-api

 

 

Thanks,

Simon