Below is the output:
-------------------------------------------------------------------------------
Test set: com.sun.enterprise.deploy.shared.FileArchiveTest
-------------------------------------------------------------------------------
Tests run: 8, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.607 sec<<< FAILURE!
testInaccessibleDirectoryInFileArchive(com.sun.enterprise.deploy.shared.FileArchiveTest) Time elapsed: 0.033 sec<<< FAILURE!
java.lang.AssertionError: FileArchive logged no message about being unable to list files; expected enterprise.deployment.nullFileList
at org.junit.Assert.fail(Assert.java:71)
at com.sun.enterprise.deploy.shared.FileArchiveTest.testInaccessibleDirectoryInFileArchive(FileArchiveTest.java:491)
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.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)
at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
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:597)
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:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Regards,
Naman
On Friday 03 June 2011 07:09 PM, Tim Quinn wrote:
> Naman,
>
> What is in the surefire test output file for the test? Please look
> and send the output.
>
> This test was added specifically to avoid regressions regarding a bug
> fix. As Jane said, you can get past this point by suppressing the
> tests but that is not a good long-term solution; we need to find out
> why this test is not working as expected on the new systems.
>
> - Tim
>
> On Jun 3, 2011, at 7:08 AM, Jane Young wrote:
>
>> The failure is coming from deployment unit tests.
>> I've seen this error in the past on Windows. Tim may have an idea on
>> why this test is failing.
>> In the meantime, the workaround is by-passing unit tests with the
>> option -DskipTests.
>> e.g. "mvn -DskipTests install"
>>
>> BTW: I have GNU/Linux and I can build successfully with 1.6.0_22 but
>> w/o "fastdebug". Can you try building w/o fastdebug?
>>
>>
>>
>> On 6/2/11 11:27 PM, Naman Mehta wrote:
>>> hi all,
>>>
>>> I am setting up hudson machine for embedded GF build to run CTS. I
>>> tried to build 3.1.1 GF on two of the machines (SunOS and Suse).
>>> These are new lab machines which has never build any GF before.
>>>
>>> But when I tried building 3.1.1 with fresh checkout the build is
>>> failing on both the machine at deployment/common test run. Any work
>>> around for the same?
>>>
>>> I followed the same instructions mention on the site:
>>> http://wikis.sun.com/display/GlassFish/V3FullBuildInstructions
>>>
>>> java -version
>>> java version "1.6.0_22-fastdebug"
>>> Java(TM) SE Runtime Environment (build 1.6.0_22-fastdebug-b04)
>>> Java HotSpot(TM) Server VM (build 17.1-b03-fastdebug, mixed mode)
>>>
>>> mvn -version
>>> Apache Maven 2.2.1 (r801777; 2009-08-07 00:46:01+0530)
>>> Java version: 1.6.0_22-fastdebug
>>> Java home: /root/jdk1.6.0_22_withdebug/fastdebug/jre
>>> Default locale: en_IN, platform encoding: UTF-8
>>> OS name: "linux" version: "2.6.27.19-5-default" arch: "i386" Family:
>>> "unix"
>>>
>>> If I tried to build on my laptop it's going fine without any error.
>>> Looks like this issues is coming only for new machines and fresh setup.
>>>
>>> [INFO] Building in
>>> /root/hudsetup/glassfish3/glassfish/domains/domain1/applications/hudson/jobs/EmbeddedGF/workspace/3.1.1/deployment/common
>>> [INFO]
>>> ------------------------------------------------------------------------
>>>
>>> [INFO] [resources:resources {execution: default-resources}]
>>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>>> [INFO] Copying 3 resources
>>> [INFO] [hk2:hk2-compile {execution: default-hk2-compile}]
>>> [INFO] Compiling 35 source files to
>>> /root/hudsetup/glassfish3/glassfish/domains/domain1/applications/hudson/jobs/EmbeddedGF/workspace/3.1.1/deployment/common/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 {execution: default-testResources}]
>>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>>> [INFO] skip non existing resourceDirectory
>>> /root/hudsetup/glassfish3/glassfish/domains/domain1/applications/hudson/jobs/EmbeddedGF/workspace/3.1.1/deployment/common/src/test/resources
>>> [INFO] [hk2:hk2-test-compile {execution: default-hk2-test-compile}]
>>> [INFO] Compiling 4 source files to
>>> /root/hudsetup/glassfish3/glassfish/domains/domain1/applications/hudson/jobs/EmbeddedGF/workspace/3.1.1/deployment/common/target/test-classes
>>> Note: Some input files use unchecked or unsafe operations.
>>> Note: Recompile with -Xlint:unchecked for details.
>>> [INFO] [surefire:test {execution: default-test}]
>>> [INFO] Surefire report directory:
>>> /root/hudsetup/glassfish3/glassfish/domains/domain1/applications/hudson/jobs/EmbeddedGF/workspace/3.1.1/deployment/common/target/surefire-reports
>>>
>>> -------------------------------------------------------
>>> T E S T S
>>> -------------------------------------------------------
>>> Running com.sun.enterprise.deploy.shared.FileArchiveTest
>>> testSubarchive
>>> testSubArchiveCreateWithStaleEntry
>>> 2 Jun, 2011 5:24:36 PM
>>> com.sun.enterprise.deploy.shared.FileArchive$StaleFileManagerImpl
>>> isEntryValid
>>> WARNING: DPL8031: Ignoring subarch/oldLower/ because the containing
>>> archive /tmp/FileArch8000398062214087637 recorded it as a
>>> pre-existing stale file
>>> 2 Jun, 2011 5:24:36 PM
>>> com.sun.enterprise.deploy.shared.FileArchive$StaleFileManagerImpl
>>> isEntryValid
>>> WARNING: DPL8031: Ignoring subarch/oldLower/ because the containing
>>> archive /tmp/FileArch8000398062214087637 recorded it as a
>>> pre-existing stale file
>>> testNormalCreate
>>> testCreateWithOlderLeftoverEntry
>>> 2 Jun, 2011 5:24:36 PM
>>> com.sun.enterprise.deploy.shared.FileArchive$StaleFileManagerImpl
>>> isEntryValid
>>> WARNING: DPL8031: Ignoring oldLower/oldFile.txt because the
>>> containing archive /tmp/FileArch3867143102731636621 recorded it as a
>>> pre-existing stale file
>>> testCreateWithOlderLeftoverEntryWhichIsCreatedAgain
>>> Skipping (as successful) testCreateWithOlderLeftoverEntryAndThenOpen
>>> because this is not a Windows system
>>> testOpenWithPreexistingDir
>>> testInaccessibleDirectoryInFileArchive
>>> Tests run: 8, Failures: 1, Errors: 0, Skipped: 0, Time elapsed:
>>> 1.804 sec<<< FAILURE!
>>> Running org.glassfish.deployment.versioning.VersioningUtilsTest
>>> Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>> 0.114 sec
>>> Running com.sun.enterprise.deployment.deploy.shared.JarArchiveTest
>>> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>> 0.024 sec
>>> Running com.sun.enterprise.deployment.deploy.shared.InputJarArchiveTest
>>> collection wrapped enumeration - simple iterator test
>>> collection wrapped enumeration - initial size() call
>>> collection wrapped enumeration - middle size() call
>>> collection wrapped enumeration - end size() call
>>> top-level directory entry names in InputJarArchive
>>> non-directory entry names in InputJarArchive
>>> nested top-level directory entry names in InputJarArchive
>>> nested non-directory entry names in InputJarArchive
>>> Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>> 0.257 sec
>>>
>>> Results :
>>>
>>> Failed tests:
>>> testInaccessibleDirectoryInFileArchive(com.sun.enterprise.deploy.shared.FileArchiveTest)
>>>
>>>
>>> Tests run: 29, Failures: 1, Errors: 0, Skipped: 0
>>>
>>>
>>>
>>> Regards,
>>> Naman
>>>
>>>
>>
>