I updated from svn this AM and picked up two changes (DefaultConfiguration
and a pom.xml) and rebuilt, now all is well. Either that fixed it or it is
a random failure.

Gary

On Fri, Oct 5, 2012 at 6:48 AM, Ralph Goers <[email protected]> wrote:

> Does it fail every time you run it?
>
> Sent from my iPad
>
> On Oct 4, 2012, at 9:25 PM, Gary Gregory <[email protected]> wrote:
>
> Doh! Brain lock on my part.
>
> Here are the contents:
>
>
> -------------------------------------------------------------------------------
> Test set: org.apache.logging.log4j.flume.appender.FlumeEmbeddedAgentTest
>
> -------------------------------------------------------------------------------
> Tests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 7.983 sec
> <<< FAILURE!
> testMultiple(org.apache.logging.log4j.flume.appender.FlumeEmbeddedAgentTest)
> Time elapsed: 0.979 sec  <<< FAILURE!
> java.lang.AssertionError: Channel contained event, but not expected
> message. Received: <128>1 2012-10-04T19:23:48.659-04:00 us-l-gg03 MyApp -
> Test [Test@18060][mdc@18060] Test Multiple 0
>     at org.junit.Assert.fail(Assert.java:91)
>     at org.junit.Assert.assertTrue(Assert.java:43)
>     at
> org.apache.logging.log4j.flume.appender.FlumeEmbeddedAgentTest.testMultiple(FlumeEmbeddedAgentTest.java:201)
>     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.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>     at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>     at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>     at
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
>     at
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
>     at
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
>     at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
>     at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
>     at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
>     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
>     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
>     at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
>     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
>     at
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
>     at
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
>     at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
>     at
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35)
>     at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:115)
>     at
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97)
>     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.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)
>     at $Proxy0.invoke(Unknown Source)
>     at
> org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150)
>     at
> org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:74)
>     at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)
>
> testFailover(org.apache.logging.log4j.flume.appender.FlumeEmbeddedAgentTest)
> Time elapsed: 0.923 sec  <<< FAILURE!
> java.lang.AssertionError: Channel contained event, but not expected
> message. Received: <128>1 2012-10-04T19:23:49.642-04:00 us-l-gg03 MyApp -
> Test [Test@18060][mdc@18060] Test Primary 0
>     at org.junit.Assert.fail(Assert.java:91)
>     at org.junit.Assert.assertTrue(Assert.java:43)
>     at
> org.apache.logging.log4j.flume.appender.FlumeEmbeddedAgentTest.testFailover(FlumeEmbeddedAgentTest.java:227)
>     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.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>     at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>     at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>     at
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
>     at
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
>     at
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
>     at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
>     at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
>     at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
>     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
>     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
>     at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
>     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
>     at
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
>     at
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
>     at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
>     at
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35)
>     at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:115)
>     at
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97)
>     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.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)
>     at $Proxy0.invoke(Unknown Source)
>     at
> org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150)
>     at
> org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:74)
>     at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)
>
> Gary
>
> On Thu, Oct 4, 2012 at 10:48 PM, Ralph Goers <[email protected]> wrote:
>
>> This is standards maven.  flume-ng/target/surefire-reports/
>> org.apache.logging.log4j.flume.appender.FlumeEmbeddedAgentTest.txt
>>
>> Sent from my iPad
>>
>> On Oct 4, 2012, at 5:19 PM, Gary Gregory <[email protected]> wrote:
>>
>> Sure, but what output? Where do I get it?
>>
>> G
>>
>> On Thu, Oct 4, 2012 at 8:17 PM, Ralph Goers 
>> <[email protected]>wrote:
>>
>>> Can you post the output from the test?  I occasionally have gotten
>>> failures in the two Flume embedded appenders (interestingly, one always
>>> seems to work when the other fails) from Gump but it is impossible to debug
>>> those.  The SocketAppender sometimes fails in Gump as well - again, I have
>>> no idea why.
>>>
>>> Ralph
>>>
>>> On Oct 4, 2012, at 4:39 PM, Gary Gregory wrote:
>>>
>>> R:
>>>
>>> OK, I cleaned a that fixed the two failures, now I get a new one!
>>>
>>> -------------------------------------------------------
>>>  T E S T S
>>> -------------------------------------------------------
>>> Running org.apache.logging.log4j.flume.appender.FlumeAppenderTest
>>> Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.269 sec
>>> Running org.apache.logging.log4j.flume.appender.FlumeEmbeddedAgentTest
>>> 2012-10-04 19:23:47,945 WARN No Loggers were configured, using default
>>> 2012-10-04 19:23:48,872 WARN No Loggers were configured, using default
>>> 2012-10-04 19:23:49,832 WARN No Loggers were configured, using default
>>> Tests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 7.983
>>> sec <<< FAILURE!
>>> Running org.apache.logging.log4j.flume.appender.FlumeEmbeddedAppenderTest
>>> 2012-10-04 19:23:57,621 [WARN]
>>> org.apache.flume.sink.FailoverSinkProcessor Sink agent1 failed and has been
>>> sent to failover list
>>> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.518 sec
>>>
>>> G
>>>
>>> On Thu, Oct 4, 2012 at 6:24 PM, Ralph Goers 
>>> <[email protected]>wrote:
>>>
>>>> I'm not.  I haven't tried on Windows though.  But
>>>> ExtendedThrowablePatternConverter and RootThrowablePatternConverter only
>>>> have one newInstance method so I have no idea why you would see that.  Have
>>>> you run mvn clean?  The method signature did change in one of my recent
>>>> commits.
>>>>
>>>> FWIW - that error is coming from PatternParser line 435 if you want to
>>>> debug it.
>>>>
>>>> Ralph
>>>>
>>>>
>>>>
>>>> On Oct 4, 2012, at 3:14 PM, Gary Gregory wrote:
>>>>
>>>> I am currently seeing:
>>>>
>>>> Running org.apache.logging.log4j.core.pattern.ExtendedThrowableTest
>>>> 2012-10-04 17:51:25,991 ERROR Class class
>>>> org.apache.logging.log4j.core.pattern.ExtendedThrowablePatternConverter
>>>> cannot contain multiple newInstance methods
>>>> 2012-10-04 17:51:25,992 ERROR Unrecognized conversion specifier [xEx]
>>>> starting at position 78 in conversion pattern.
>>>> 2012-10-04 17:51:25,995 WARN Unable to instantiate
>>>> WindowsAnsiOutputStream
>>>> 2012-10-04 17:51:25,996 ERROR Class class
>>>> org.apache.logging.log4j.core.pattern.ExtendedThrowablePatternConverter
>>>> cannot contain multiple newInstance methods
>>>> 2012-10-04 17:51:25,996 ERROR Unrecognized conversion specifier [xEx]
>>>> starting at position 73 in conversion pattern.
>>>> 2012-10-04 17:51:26,060 WARN Unable to instantiate
>>>> WindowsAnsiOutputStream
>>>> 2012-10-04 17:51:26,063 WARN No Loggers were configured, using default
>>>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.422
>>>> sec <<< FAILURE!
>>>>
>>>> ...
>>>>
>>>> Running org.apache.logging.log4j.core.pattern.RootThrowableTest
>>>> 2012-10-04 17:51:29,743 ERROR Class class
>>>> org.apache.logging.log4j.core.pattern.RootThrowablePatternConverter cannot
>>>> contain multiple newInstance methods
>>>> 2012-10-04 17:51:29,744 ERROR Unrecognized conversion specifier [rEx]
>>>> starting at position 78 in conversion pattern.
>>>> 2012-10-04 17:51:29,747 WARN Unable to instantiate
>>>> WindowsAnsiOutputStream
>>>> 2012-10-04 17:51:29,748 ERROR Class class
>>>> org.apache.logging.log4j.core.pattern.RootThrowablePatternConverter cannot
>>>> contain multiple newInstance methods
>>>> 2012-10-04 17:51:29,748 ERROR Unrecognized conversion specifier [rEx]
>>>> starting at position 73 in conversion pattern.
>>>> 2012-10-04 17:51:29,808 WARN Unable to instantiate
>>>> WindowsAnsiOutputStream
>>>> 2012-10-04 17:51:29,811 WARN No Loggers were configured, using default
>>>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.45
>>>> sec <<< FAILURE!
>>>>
>>>> Anyone else?
>>>>
>>>> Gary
>>>> --
>>>> E-Mail: [email protected] | [email protected]
>>>> JUnit in Action, 2nd Ed: <http://goog_1249600977/>http://bit.ly/ECvg0
>>>> Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
>>>> Blog: http://garygregory.wordpress.com
>>>> Home: http://garygregory.com/
>>>> Tweet! http://twitter.com/GaryGregory
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> E-Mail: [email protected] | [email protected]
>>> JUnit in Action, 2nd Ed: <http://goog_1249600977/>http://bit.ly/ECvg0
>>> Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
>>> Blog: http://garygregory.wordpress.com
>>> Home: http://garygregory.com/
>>> Tweet! http://twitter.com/GaryGregory
>>>
>>>
>>>
>>
>>
>> --
>> E-Mail: [email protected] | [email protected]
>> JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
>> Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
>> Blog: http://garygregory.wordpress.com
>> Home: http://garygregory.com/
>> Tweet! http://twitter.com/GaryGregory
>>
>>
>
>
> --
> E-Mail: [email protected] | [email protected]
> JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
> Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>
>


-- 
E-Mail: [email protected] | [email protected]
JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Reply via email to