dev@glassfish.java.net

Re: Build Errors

From: Byron Nevins <Byron.Nevins_at_Sun.COM>
Date: Tue, 12 Aug 2008 10:23:57 -0700

I just did a "mvn clean build" from common/common-util and all the
tests ran fine. Why don't you try that first?

[INFO] [hk2:hk2-compile]
[INFO] Compiling 130 source files to
C:\gf\v3\common\common-util\target\classes
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[INFO] [bundle:manifest {execution: bundle-manifest}]
[INFO] [resources:testResources]
[INFO] Copying 10 resources
[INFO] [hk2:hk2-test-compile]
[INFO] Compiling 9 source files to
C:\gf\v3\common\common-util\target\test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory:
C:\gf\v3\common\common-util\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.sun.enterprise.universal.glassfish.ASenvPropertyReaderTest
INSTALL-DIR: C:\gf\v3\common\common-util\target\test-classes
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.14 sec
Running com.sun.enterprise.universal.collections.ManifestUtilsTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running com.sun.enterprise.universal.io.SmartFileTest
c:/ --> C:/
c: --> C:/gf/v3/common/common-util
 --> C:/gf/v3/common/common-util
\foo --> C:/foo
/ --> C:/
/xxx/yyy/././././../yyy --> C:/xxx/yyy
/x/y/z/../../../temp --> C:/temp
\\ --> //
\\foo\goo\hoo --> \\foo\goo\hoo
x/y/../../../.. --> C:/gf/v3
/x/y/../../../.. --> C:/
/./../.././../ --> C:/
/::::/x/yy --> C:/::::/x/yy
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.278 sec
Running com.sun.enterprise.universal.xml.MiniXmlParserTest
Aug 12, 2008 10:20:27 AM com.sun.enterprise.universal.xml.MiniXmlParser read
WARNING: XML file was parsed twice because the configs element appears
before the servers element. To prevent this waste of time, m
ove the servers element before the configs element.
This exception is expected. Here it is:
com.sun.enterprise.universal.xml.MiniXmlParserException: "Could not find
the config (server
-config) for server
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.343 sec
Running com.sun.enterprise.universal.BASE64DecoderTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.sun.enterprise.universal.DurationTest
********* START Duration Output Strings ***************
3 Weeks, 6 days, 23 hours, 59 minutes, 59 seconds
7 Weeks, 6 days, 23 hours, 59 minutes, 59 seconds
2,014 Weeks, 5 days, 17 hours, 20 minutes, 27 seconds
27,188 milliseconds
2 milliseconds
********* END Duration Output Strings ***************
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.sun.enterprise.universal.glassfish.GFSystemTest
Parent Thread xxx--> foo = xxx
Parent Thread zzz--> foo = zzz
Parent Thread yyy--> foo = yyy
Child Thread of zzz --> foo = zzz
GrandChild Thread of zzz --> foo = zzz
Child Thread of xxx --> foo = xxx
Child Thread of yyy --> foo = yyy
GrandChild Thread of yyy --> foo = yyy
GrandChild Thread of xxx --> foo = xxx
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.032 sec
Running com.sun.enterprise.universal.StringUtilsTest
removeEnclosingQuotes
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec

Results :

Tests run: 26, Failures: 0, Errors: 0, Skipped: 0

[INFO] [hk2:package]
[INFO] Building jar:
C:\gf\v3\common\common-util\target\common-util-10.0-SNAPSHOT.jar
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive
invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: attach-sources}]
[INFO] Building jar:
C:\gf\v3\common\common-util\target\common-util-10.0-SNAPSHOT-sources.jar
[INFO] [install:install]
[INFO] Installing
C:\gf\v3\common\common-util\target\common-util-10.0-SNAPSHOT.jar to
C:\Documents and Settings\bnevins\.m2\reposito
ry\org\glassfish\common\common-util\10.0-SNAPSHOT\common-util-10.0-SNAPSHOT.jar
[INFO] Installing
C:\gf\v3\common\common-util\target\common-util-10.0-SNAPSHOT-sources.jar
to C:\Documents and Settings\bnevins\.m2\
repository\org\glassfish\common\common-util\10.0-SNAPSHOT\common-util-10.0-SNAPSHOT-sources.jar
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 54 seconds
[INFO] Finished at: Tue Aug 12 10:20:29 PDT 2008
[INFO] Final Memory: 15M/28M
[INFO]
------------------------------------------------------------------------

Rajeshwar V Patil wrote:
> Hello,
>
> I am getting these errors while building V3 trunk. Does anybody know what I am doing wrong ?
>
> ====================================================================================
> [INFO] Compiling 9 source files to C:\src\v3-Aug12\v3\common\common-util\target\test-classes
> [INFO] [surefire:test]
> [INFO] Surefire report directory: C:\src\v3-Aug12\v3\common\common-util\target\surefire-reports
>
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Running com.sun.enterprise.universal.glassfish.ASenvPropertyReaderTest
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.016 sec <<< FAILURE!
> Running com.sun.enterprise.universal.collections.ManifestUtilsTest
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILURE!
> Running com.sun.enterprise.universal.io.SmartFileTest
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILURE!
> Running com.sun.enterprise.universal.xml.MiniXmlParserTest
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.015 sec <<< FAILURE!
> Running com.sun.enterprise.universal.BASE64DecoderTest
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.016 sec <<< FAILURE!
> Running com.sun.enterprise.universal.DurationTest
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.016 sec <<< FAILURE!
> Running com.sun.enterprise.universal.glassfish.GFSystemTest
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILURE!
> Running com.sun.enterprise.universal.StringUtilsTest
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILURE!
>
> Results :
>
> Tests in error:
> com.sun.enterprise.universal.glassfish.ASenvPropertyReaderTest
> com.sun.enterprise.universal.collections.ManifestUtilsTest
> com.sun.enterprise.universal.io.SmartFileTest
> com.sun.enterprise.universal.xml.MiniXmlParserTest
> com.sun.enterprise.universal.BASE64DecoderTest
> com.sun.enterprise.universal.DurationTest
> com.sun.enterprise.universal.glassfish.GFSystemTest
> com.sun.enterprise.universal.StringUtilsTest
>
> Tests run: 8, Failures: 0, Errors: 8, Skipped: 0
>
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] There are test failures.
>
> Please refer to C:\src\v3-Aug12\v3\common\common-util\target\surefire-reports for the individual test results.
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 11 minutes
> [INFO] Finished at: Tue Aug 12 02:12:35 PDT 2008
> [INFO] Final Memory: 33M/70M
> [INFO] --------------------------------------------------------------------------
> ====================================================================================
>
>
>
> Seeing following exception in TEST-com.sun.enterprise.universal.glassfish.ASenvPropertyReaderTest.xml
>
> ====================================================================================
> <property value="windows" name="sun.desktop"/>
> <property value="pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86" name="sun.cpu.isalist"/>
> </properties>
> <testcase classname="com.sun.enterprise.universal.glassfish.ASenvPropertyReaderTest" time="0.016" name="com.sun.enterprise.universal.glassfish.ASenvPropertyReaderTest">
> <error type="java.lang.Exception" message="No runnable methods">java.lang.Exception: No runnable methods
> at org.junit.internal.runners.TestClassMethodsRunner.testAborted(TestClassMethodsRunner.java:42)
> at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:33)
> at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
> at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
> at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
> at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
> at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
> at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
> 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:585)
> at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
> at org.apache.maven.surefire.booter.SurefireBooter.run(SurefireBooter.java:241)
> at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:537)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
> 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:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> ====================================================================================
>
>
> Thanks
> Rajeshwar
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>
>

-- 
Byron Nevins Work 408-276-4089, Home 650-359-1290, Cell 650-784-4123 - Sun Microsystems, Inc.