You are viewing a plain text version of this content. The canonical link for it is here.
Posted to droids-dev@incubator.apache.org by "Eugen Paraschiv (JIRA)" <ji...@apache.org> on 2011/02/15 23:01:57 UTC

[jira] Created: (DROIDS-124) Configure the logging so that expected exception are not logged to the console during the Maven build

Configure the logging so that expected exception are not logged to the console during the Maven build
-----------------------------------------------------------------------------------------------------

                 Key: DROIDS-124
                 URL: https://issues.apache.org/jira/browse/DROIDS-124
             Project: Droids
          Issue Type: Improvement
    Affects Versions: 0.0.1, 0.0.2
            Reporter: Eugen Paraschiv
            Priority: Minor
             Fix For: 0.0.2


There currently is an expected exception that comes up during the maven build. This is misleading and should not appear in the build output: 

2011-02-16 00:58:35,336 WARN [main] - <Oppsie!!!>
java.lang.RuntimeException: Oppsie!!!
	at org.apache.droids.examples.handler.ExceptionReportHandler.handle(ExceptionReportHandler.java:34)
	at org.apache.droids.helper.factories.HandlerFactory.handle(HandlerFactory.java:49)
	at org.apache.droids.robot.crawler.CrawlingWorker.handle(CrawlingWorker.java:107)
	at org.apache.droids.robot.crawler.CrawlingWorker.execute(CrawlingWorker.java:89)
	at org.apache.droids.robot.crawler.CrawlingWorker.execute(CrawlingWorker.java:37)
	at org.apache.droids.impl.SequentialTaskMaster.processAllTasks(SequentialTaskMaster.java:82)
	at org.apache.droids.robot.crawler.CrawlingDroid.start(CrawlingDroid.java:68)
	at org.apache.droids.impl.TestSimpleDroid.testTerminateCrawlingOnException(TestSimpleDroid.java:103)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:613)
	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:73)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
	at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
	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:220)
	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:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:613)
	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
2011-02-16 00:58:35,339 INFO [main] - <FINISHED!!!>



-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (DROIDS-124) Configure the logging so that expected exception are not logged to the console during the Maven build

Posted by "Richard Frovarp (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DROIDS-124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Frovarp resolved DROIDS-124.
------------------------------------

    Resolution: Fixed

I can't reproduce, so I'm guessing it was fixed at some point.
                
> Configure the logging so that expected exception are not logged to the console during the Maven build
> -----------------------------------------------------------------------------------------------------
>
>                 Key: DROIDS-124
>                 URL: https://issues.apache.org/jira/browse/DROIDS-124
>             Project: Droids
>          Issue Type: Improvement
>    Affects Versions: 0.0.1, 0.0.2
>            Reporter: Eugen Paraschiv
>            Priority: Minor
>             Fix For: 0.0.2
>
>
> There currently is an expected exception that comes up during the maven build. This is misleading and should not appear in the build output: 
> 2011-02-16 00:58:35,336 WARN [main] - <Oppsie!!!>
> java.lang.RuntimeException: Oppsie!!!
> 	at org.apache.droids.examples.handler.ExceptionReportHandler.handle(ExceptionReportHandler.java:34)
> 	at org.apache.droids.helper.factories.HandlerFactory.handle(HandlerFactory.java:49)
> 	at org.apache.droids.robot.crawler.CrawlingWorker.handle(CrawlingWorker.java:107)
> 	at org.apache.droids.robot.crawler.CrawlingWorker.execute(CrawlingWorker.java:89)
> 	at org.apache.droids.robot.crawler.CrawlingWorker.execute(CrawlingWorker.java:37)
> 	at org.apache.droids.impl.SequentialTaskMaster.processAllTasks(SequentialTaskMaster.java:82)
> 	at org.apache.droids.robot.crawler.CrawlingDroid.start(CrawlingDroid.java:68)
> 	at org.apache.droids.impl.TestSimpleDroid.testTerminateCrawlingOnException(TestSimpleDroid.java:103)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:613)
> 	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:73)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
> 	at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
> 	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:220)
> 	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:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:613)
> 	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
> 	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
> 2011-02-16 00:58:35,339 INFO [main] - <FINISHED!!!>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira