Alyssa, thanks for the awesome report and analysis! Anthony
> On Dec 15, 2016, at 9:52 PM, Alyssa Kim <micro9...@gmail.com> wrote: > > Hi, > > Hi, I have been facing UnitTest failures on Windows Environment. > *Summary :* > Compilation with skip test works fine and the application works fine too. > However, whenever I try to compile the code with >gradlew.bat precheckin > some of the test cases fail. > 1. installIntoWebXml : fails due to 1 line difference in which one has new > line and the other doesn't. > 2. The cache is closed. : A few test cases fail due to this exception. > 3. Some timeout failures and etc > 4. The Geode cache XML file C:\path\to\missing\cache.xml could not be > found. warning, but the test fails. > A bunch of other issues. > I haven't tried in linux because Geode compilation on linux on my vm > environment is painfully slow.... > Is there anybody who has experienced the same issue or knows what's going > on? I haven't made any change to the code. > > *Details with exceptions :* > *1.* > Looks like it's new line issue although I'm not sure why only one line is > different. > org.apache.geode.modules.session.installer.InstallerJUnitTest > > installIntoWebXML FAILED > org.junit.ComparisonFailure: expected:<...ndalone="no"?> > <!--[ > Licensed to the Apache Software Foundation (ASF) under one or more > contributor license agreements. See the NOTICE file distributed with > this work for additional information regarding copyright ownership. > The ASF licenses this file to You under the Apache License, Version 2.0 > (the "License"); you may not use this file except in compliance with > the License. You may obtain a copy of the License at > > http://www.apache.org/licenses/LICENSE-2.0 > > Unless required by applicable law or agreed to in writing, software > distributed under the License is distributed on an "AS IS" BASIS, > WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. > See the License for the specific language governing permissions and > limitations under the License. > *]* > --><web-app xmlns="...> but was:<...ndalone="no"?> > <!--[ > Licensed to the Apache Software Foundation (ASF) under one or more > contributor license agreements. See the NOTICE file distributed with > this work for additional information regarding copyright ownership. > The ASF licenses this file to You under the Apache License, Version 2.0 > (the "License"); you may not use this file except in compliance with > the License. You may obtain a copy of the License at > > http://www.apache.org/licenses/LICENSE-2.0 > > Unless required by applicable law or agreed to in writing, software > distributed under the License is distributed on an "AS IS" BASIS, > WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. > See the License for the specific language governing permissions and > limitations under the License.*]* > --><web-app xmlns="...> > at org.junit.Assert.assertEquals(Assert.java:115) > at org.junit.Assert.assertEquals(Assert.java:144) > at > org.apache.geode.modules.session.installer.InstallerJUnitTest.testTransformation(InstallerJUnitTest.java:54) > at > org.apache.geode.modules.session.installer.InstallerJUnitTest.installIntoWebXML(InstallerJUnitTest.java:40) > > 1 test completed, 1 failed > > *2.* > It looks like testcases that require cache creation fail due to > CacheClosedException > org.apache.geode.modules.session.internal.filter.SessionReplicationIntegrationJUnitTest >> testInvalidateSession3 FAILED > org.junit.ComparisonFailure: expected:<[OK]> but was:<[<html> > <head> > <title>Error</title> > </head> > <body> > <h1>The resource did not process correctly</h1> > <pre> > org.apache.geode.cache.CacheClosedException: *The cache is closed*. > at > org.apache.geode.internal.cache.GemFireCacheImpl$Stopper.generateCancelledException(GemFireCacheImpl.java:1576) > at > org.apache.geode.CancelCriterion.checkCancelInProgress(CancelCriterion.java:87) > at > org.apache.geode.internal.cache.LocalRegion.checkRegionDestroyed(LocalRegion.java:7631) > .. > at org.junit.Assert.assertEquals(Assert.java:115) > at org.junit.Assert.assertEquals(Assert.java:144) > at > org.apache.geode.modules.session.internal.filter.SessionReplicationIntegrationJUnitTest.testInvalidateSession3(SessionReplicationIntegrationJUnitTest.java:641) > > *3 : * > org.apache.geode.modules.session.internal.filter.SessionReplicationIntegrationJUnitTest >> testHttpSessionListener1 FAILED > java.lang.AssertionError: Timeout waiting for events > at org.junit.Assert.fail(Assert.java:88) > at org.junit.Assert.assertTrue(Assert.java:41) > at > org.apache.geode.modules.session.internal.filter.SessionReplicationIntegrationJUnitTest.testHttpSessionListener1(SessionReplicationIntegrationJUnitTest.java:1431) > > org.apache.geode.modules.session.internal.filter.SessionReplicationIntegrationJUnitTest >> testHttpSessionListener2 FAILED > java.lang.AssertionError: Timeout waiting for events > at org.junit.Assert.fail(Assert.java:88) > at org.junit.Assert.assertTrue(Assert.java:41) > at > org.apache.geode.modules.session.internal.filter.SessionReplicationIntegrationJUnitTest.testHttpSessionListener2(SessionReplicationIntegrationJUnitTest.java:1472) > > org.apache.geode.modules.session.internal.filter.SessionReplicationIntegrationJUnitTest >> testSessionGenerated FAILED > java.lang.AssertionError: Not a correctly generated session id > at org.junit.Assert.fail(Assert.java:88) > at org.junit.Assert.assertTrue(Assert.java:41) > at > org.apache.geode.modules.session.internal.filter.SessionReplicationIntegrationJUnitTest.testSessionGenerated(SessionReplicationIntegrationJUnitTest.java:158) > > *4 :* > org.apache.geode.management.internal.cli.commands.LauncherLifecycleCommandsDUnitTest >> test003StartServerFailsFastOnMissingCacheXmlFile FAILED > java.lang.AssertionError: > *Warning: The Geode cache XML file C:\path\to\missing\cache.xml could > not be found.* > > at org.junit.Assert.fail(Assert.java:88) > at org.junit.Assert.assertTrue(Assert.java:41) > at > org.apache.geode.management.internal.cli.commands.LauncherLifecycleCommandsDUnitTest.test003StartServerFailsFastOnMissingCacheXmlFile(LauncherLifecycleCommandsDUnitTest.java:450) > > *5:* > org.apache.geode.ForcedDisconnectException: Member isn't responding to > heartbeat requests > > Best Regards