dev@glassfish.java.net

Re: build errors

From: Dinesh Patil <Dinesh.Patil_at_Sun.COM>
Date: Fri, 16 Mar 2007 19:33:05 -0700

I didn't see the obvious failure from the huge complete build.errs or
short build.errs.filtered as well.. This seems to be the output of build
and javadoc command, so error may be later on..

Attaching the file which shows the compiler failure, so I believe if you
specify the failure patterns instead of success patterns, finding errors
may be quicker and shorter logs. You can see from my attached
compilefail.txt file, failure patterns are
BUILD FAILED
Compile failed
[ERROR] Java Result: 1

thanks
Dinesh

Bill Shannon wrote:

> My automated nightly build has failed again. Is this a known issue?
>
> This failure inspired me to do what I suggested some time ago.
> I wrote a script to filter the build output to get rid of the
> expected lines, leaving only the lines that report some kind of
> error. The script reduces 7754 lines of build output to 625
> lines of error output. Maybe someone can look at the error
> output and figure out what went wrong?
>
> I've attached the complete build output, the filtered build output,
> and the set of patterns used to filter the output. Use:
>
> egrep -v -f build.pat < build.errs > build.errs.filtered
>
> Most of the remaining errors are obvious compilation errors.
> Some of the other errors are not quite as obvious to me. If
> someone could confirm that they're all expected output, I'll
> add them to the filter list.
>
> Thanks.
>
>------------------------------------------------------------------------
>
>^$
>^Starting the reactor\.\.\.$
>^Our processing order:$
>^[-a-z:]*:$
>^\+---
>^\| [A-Z]
>^ \[move] Moving 1 files to
>^ \[cvs] Using cvs passfile:
>^ \[cvs] cvs server: Updating
>^ \[cvs] \? glassfish/
>^ \[cvs] U
>^ \[unzip] Expanding:
>^ \[jar] Building
>^ \[jar] Updating jar:
>^ \[mkdir] Created dir:
>^ \[unjar] Expanding:
>^ \[move] Moving [0-9]+ files? to
>^ \[copy] Copying [0-9]+ files? to
>^ \[echo]
>^ \[delete] Deleting:
>^ \[delete] Deleting directory
>^ \[java] Buildfile:
>^ \[java] $
>^ \[java] [-a-zA-Z0-9:.]*:$
>^ \[java] BUILD SUCCESSFUL
>^ \[java] Total time:
>^ \[java] \[delete] Deleting
>^ \[java] \[delete] Deleted
>^ \[java] \[for-each] Process
>^ \[java] \[mkdir] Created dir:
>^ \[java] \[copy] Copying [0-9]+ files? to
>^ \[java] \[copy] Copied
>^ \[java] \[move] Moving [0-9]+ files? to
>^ \[java] \[echo]
>^ \[java] \[jar] Updating jar:
>^ \[java] \[jar] Building jar:
>^ \[java] \[javac] Compiling [0-9]+ source files? to
>^ \[java] \[javac] Note: Some input files use unchecked or unsafe
>^ \[java] \[javac] Note: Recompile with -Xlint:unchecked for details\.$
>^ \[java] \[javac] Note: .* uses or overrides a deprecated API\.$
>^ \[java] \[javac] Note: Some input files use or override a deprecated
>^ \[java] \[javac] Note: Recompile with -Xlint:deprecation for details\.$
>^ \[java] *\[for-each] Note: Some input files use unchecked or unsafe
>^ \[java] *\[for-each] Note: Recompile with -Xlint:unchecked for details\.$
>^ \[java] *\[for-each] Note: .* uses or overrides a deprecated API\.$
>^ \[java] *\[for-each] Note: Some input files use or override a deprecated
>^ \[java] *\[for-each] Note: Recompile with -Xlint:deprecation for details\.$
>^ \[java] \[unjar] Expanding:
>^ \[java] \[unzip] Expanding:
>^ \[java] \[java] Generating class
>^ \[java] \[java] ANTLR Parser Generator
>^ \[java] \[java] Created directory
>^ \[java] \[java] Using the mdd information from
>^ \[java] \[exec] \[(loaded|generated|parsed) .* in [0-9]+ ms]
>^ \[java] \[exec] \[checking class
>^ \[java] \[exec] \[found remote interface:
>^ \[java] \[exec] \[found remote method
>^ \[java] \[exec] \[string used for method hash:
>^ \[java] \[exec] \[wrote
>^ \[java] \[exec] \[done in [0-9]+ ms]
>^ \[java] \[exec] BUILD SUCCESSFUL
>^ \[java] \[exec] Total time:
>^ \[java] \[exec] \[apt] Note: Some input files use unchecked or unsafe operations.
>^ \[java] \[exec] \[apt] Note: Recompile with -Xlint:unchecked for details.
>^ \[java] \[exec] \[apt] Note: Some input files use or override a deprecated API.
>^ \[java] \[exec] \[apt] Note: Recompile with -Xlint:deprecation for details.
>^ \[java] \[javadoc] Generating
>^ \[java] \[javadoc] Copying file
>^ \[java] \[javadoc] Javadoc execution
>^ \[java] \[javadoc] Loading source files for package
>^ \[java] \[javadoc] Loading source files for package
>^ \[java] \[javadoc] Constructing Javadoc information...
>^ \[java] \[javadoc] Standard Doclet version
>^ \[java] \[javadoc] Building tree for all the packages and classes...
>^ \[java] \[javadoc] Building index for all the packages and classes...
>^ \[java] \[javadoc] Building index for all classes...
>^ \[java] \[zip] Building zip:
>^ \[java] \[war] Building war:
>^ \[java] \[ear] Building ear:
>^ \[java] \[jar] Building
>^ \[java] \[xslt] Processing
>^ \[java] \[xslt] Loading stylesheet
>^ \[java] \[xmlvalidate] [0-9]+ file\(s\) have been successfully validated.
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>
>




   [java] BUILD FAILED
    [java] [javac] /export/home/tinderbox/SunOS_5.10_depend/workspace/glassfish/appserv-api/src/java/com/sun/appserv/management/util/jmx/OpenMBeanUtil.java:188: warning: [unchecked] unchecked call to ArrayType(int,javax.management.openmbean.OpenType<?>) as a member of the raw type javax.management.openmbean.ArrayType
    [java] [javac] type = new ArrayType( dimensions, simpleType );
    [java] [javac] ^
    [java] /export/home/tinderbox/SunOS_5.10_depend/workspace/glassfish/appserv-api/build.xml:75: Compile failed; see the compiler error output for details.
    [java]
    [java] Total time: 7 seconds
    [java] [javac] /export/home/tinderbox/SunOS_5.10_depend/workspace/glassfish/appserv-api/src/java/com/sun/appserv/management/util/jmx/OpenMBeanUtil.java:202: warning: [unchecked] unchecked call to ArrayType(int,javax.management.openmbean.OpenType<?>) as a member of the raw type javax.management.openmbean.ArrayType
    [java] [javac] type = new ArrayType( dimensions, ((CompositeData)element).getCompositeType() );
    [java] [javac] ^
    [java] [javac] /export/home/tinderbox/SunOS_5.10_depend/workspace/glassfish/appserv-api/src/java/com/sun/appserv/management/util/jmx/OpenMBeanUtil.java:213: warning: [unchecked] unchecked call to ArrayType(int,javax.management.openmbean.OpenType<?>) as a member of the raw type javax.management.openmbean.ArrayType
    [java] [javac] type = new ArrayType( dimensions, ((TabularData)element).getTabularType() );
    [java] [javac] ^
    [java] [javac] /export/home/tinderbox/SunOS_5.10_depend/workspace/glassfish/appserv-api/src/java/com/sun/appserv/management/util/jmx/OpenMBeanUtil.java:259: warning: [unchecked] unchecked cast
    [java] [javac] found : java.io.Serializable
    [java] [javac] required: java.util.Collection<java.io.Serializable>
    [java] [javac] IteratorUtil.toArray( ((Collection<Serializable>)value).iterator() );
    [java] [javac] ^
    [java] [javac] /export/home/tinderbox/SunOS_5.10_depend/workspace/glassfish/appserv-api/src/java/com/sun/appserv/management/util/jmx/OpenMBeanUtil.java:427: warning: [unchecked] unchecked call to ArrayType(int,javax.management.openmbean.OpenType<?>) as a member of the raw type javax.management.openmbean.ArrayType
    [java] [javac] openTypes[ 2 ] = new ArrayType( t.getStackTrace().length,
    [java] [javac] ^
    [java] [javac] /export/home/tinderbox/SunOS_5.10_depend/workspace/glassfish/appserv-api/src/java/com/sun/appserv/management/util/misc/ArrayUtil.java:111: warning: [unchecked] unchecked cast
    [java] [javac] found : java.lang.Object
    [java] [javac] required: T[]
    [java] [javac] return (T[])( Array.newInstance( theClass, numItems ) );
    [java] [javac] ^
    [java] [javac] /export/home/tinderbox/SunOS_5.10_depend/workspace/glassfish/appserv-api/src/java/com/sun/appserv/management/util/misc/ClassUtil.java:811: warning: [unchecked] unchecked call to getMethod(java.lang.String,java.lang.Class<?>...) as a member of the raw type java.lang.Class
    [java] [javac] m = theClass.getMethod( methodName, sig );
    [java] [javac] ^
    [java] [javac] /export/home/tinderbox/SunOS_5.10_depend/workspace/glassfish/appserv-api/src/java/com/sun/appserv/management/util/misc/ClassUtil.java:867: warning: [unchecked] unchecked call to getConstructor(java.lang.Class<?>...) as a member of the raw type java.lang.Class
    [java] [javac] constructor = theClass.getConstructor( signature );
    [java] [javac] ^
    [java] [javac] /export/home/tinderbox/SunOS_5.10_depend/workspace/glassfish/appserv-api/src/java/com/sun/appserv/management/util/misc/ClassUtil.java:932: warning: [unchecked] unchecked call to getConstructor(java.lang.Class<?>...) as a member of the raw type java.lang.Class
    [java] [javac] final Constructor constructor = theClass.getConstructor( signature );
    [java] [javac] ^
    [java] [javac] /export/home/tinderbox/SunOS_5.10_depend/workspace/glassfish/appserv-api/src/java/com/sun/appserv/management/util/misc/PackageStringSources.java:76: warning: [unchecked] unchecked call to getConstructor(java.lang.Class<?>...) as a member of the raw type java.lang.Class
    [java] [javac] final Constructor c = packageStringSourceClass.getConstructor( new Class[] { StringSource.class } );
    [java] [javac] ^
    [java] [javac] Note: Some input files use or override a deprecated API.
    [java] [javac] Note: Recompile with -Xlint:deprecation for details.
    [java] [javac] 5 errors
    [java] [javac] 22 warnings
    [java] [ERROR] Java Result: 1

BUILD FAILED