Uploaded image for project: 'Droids'
  1. Droids
  2. DROIDS-124

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.1.0, 0.2.0
    • 0.2.0
    • None
    • None

    Description

      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!!!>

      Attachments

        Activity

          People

            Unassigned Unassigned
            eugenparaschiv Eugen Paraschiv
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: