Created
March 12, 2015 17:09
-
-
Save luan-cestari/98aaf35779bc2b948ae8 to your computer and use it in GitHub Desktop.
Class demo.HystrixCommandWithErrorTest from https://github.com/luan-cestari/netflix-hystrix-fallback-with-error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13:30:12.017 [Test worker] WARN c.n.c.s.URLConfigurationSource - No URLs will be polled as dynamic configuration sources. | |
13:30:12.020 [Test worker] INFO c.n.c.s.URLConfigurationSource - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath. | |
13:30:12.022 [Test worker] INFO c.n.c.DynamicPropertyFactory - DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@3f831b83 | |
13:30:12.094 [hystrix-TestThreadPool-1] INFO d.HystrixCommandWithErrorTest$StringWithErrorCommand - Run command with input: NewEchoHelloWorld1 | |
13:30:12.107 [hystrix-TestThreadPool-2] INFO d.HystrixCommandWithErrorTest$ErrorCommand - Run command with input: NewEchoHelloWorld1 and the exception: {} | |
java.lang.Exception: Throwable caught while executing. | |
at com.netflix.hystrix.AbstractCommand.getExceptionFromThrowable(AbstractCommand.java:1903) ~[hystrix-core-1.4.0.jar:1.4.0] | |
at com.netflix.hystrix.AbstractCommand.wrapWithOnExecutionErrorHook(AbstractCommand.java:1406) ~[hystrix-core-1.4.0.jar:1.4.0] | |
at com.netflix.hystrix.AbstractCommand.access$1000(AbstractCommand.java:64) ~[hystrix-core-1.4.0.jar:1.4.0] | |
at com.netflix.hystrix.AbstractCommand$ExecutionHookApplication$1.onError(AbstractCommand.java:1246) ~[hystrix-core-1.4.0.jar:1.4.0] | |
at com.netflix.hystrix.HystrixCommand$1.call(HystrixCommand.java:297) [hystrix-core-1.4.0.jar:1.4.0] | |
at com.netflix.hystrix.HystrixCommand$1.call(HystrixCommand.java:289) [hystrix-core-1.4.0.jar:1.4.0] | |
at rx.Observable$1.call(Observable.java:144) [rxjava-1.0.7.jar:1.0.7] | |
at rx.Observable$1.call(Observable.java:136) [rxjava-1.0.7.jar:1.0.7] | |
at rx.Observable$1.call(Observable.java:144) [rxjava-1.0.7.jar:1.0.7] | |
at rx.Observable$1.call(Observable.java:136) [rxjava-1.0.7.jar:1.0.7] | |
at rx.Observable$1.call(Observable.java:144) [rxjava-1.0.7.jar:1.0.7] | |
at rx.Observable$1.call(Observable.java:136) [rxjava-1.0.7.jar:1.0.7] | |
at rx.Observable.unsafeSubscribe(Observable.java:7466) [rxjava-1.0.7.jar:1.0.7] | |
at com.netflix.hystrix.AbstractCommand$5.call(AbstractCommand.java:514) [hystrix-core-1.4.0.jar:1.4.0] | |
at com.netflix.hystrix.AbstractCommand$5.call(AbstractCommand.java:497) [hystrix-core-1.4.0.jar:1.4.0] | |
at rx.Observable.unsafeSubscribe(Observable.java:7466) [rxjava-1.0.7.jar:1.0.7] | |
at rx.internal.operators.OperatorSubscribeOn$1$1.call(OperatorSubscribeOn.java:62) [rxjava-1.0.7.jar:1.0.7] | |
at com.netflix.hystrix.strategy.concurrency.HystrixContexSchedulerAction$1.call(HystrixContexSchedulerAction.java:56) [hystrix-core-1.4.0.jar:1.4.0] | |
at com.netflix.hystrix.strategy.concurrency.HystrixContexSchedulerAction$1.call(HystrixContexSchedulerAction.java:47) [hystrix-core-1.4.0.jar:1.4.0] | |
at com.netflix.hystrix.strategy.concurrency.HystrixContexSchedulerAction.call(HystrixContexSchedulerAction.java:69) [hystrix-core-1.4.0.jar:1.4.0] | |
at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:47) [rxjava-1.0.7.jar:1.0.7] | |
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_31] | |
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_31] | |
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_31] | |
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_31] | |
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_31] | |
Caused by: java.lang.OutOfMemoryError: null | |
at demo.HystrixCommandWithErrorTest$StringWithErrorCommand.run(HystrixCommandWithErrorTest.java:60) ~[test/:na] | |
at demo.HystrixCommandWithErrorTest$StringWithErrorCommand.run(HystrixCommandWithErrorTest.java:37) ~[test/:na] | |
at com.netflix.hystrix.HystrixCommand$1.call(HystrixCommand.java:294) [hystrix-core-1.4.0.jar:1.4.0] | |
... 21 common frames omitted | |
13:30:12.112 [Test worker] INFO d.HystrixCommandWithErrorTest - Command called and the result is: The message received: NewEchoHelloWorld1 and the exception/error: java.lang.Exception: Throwable caught while executing. | |
13:30:12.116 [hystrix-TestThreadPool-3] INFO d.HystrixCommandWithErrorTest$StringWithErrorCommand - Run command with input: HelloWorld2 | |
13:30:12.121 [hystrix-TestThreadPool-4] INFO d.HystrixCommandWithErrorTest$ErrorCommand - Run command with input: HelloWorld2 and the exception: {} | |
java.lang.Exception: Throwable caught while executing. | |
at com.netflix.hystrix.AbstractCommand.getExceptionFromThrowable(AbstractCommand.java:1903) ~[hystrix-core-1.4.0.jar:1.4.0] | |
at com.netflix.hystrix.AbstractCommand.wrapWithOnExecutionErrorHook(AbstractCommand.java:1406) ~[hystrix-core-1.4.0.jar:1.4.0] | |
at com.netflix.hystrix.AbstractCommand.access$1000(AbstractCommand.java:64) ~[hystrix-core-1.4.0.jar:1.4.0] | |
at com.netflix.hystrix.AbstractCommand$ExecutionHookApplication$1.onError(AbstractCommand.java:1246) ~[hystrix-core-1.4.0.jar:1.4.0] | |
at com.netflix.hystrix.HystrixCommand$1.call(HystrixCommand.java:297) [hystrix-core-1.4.0.jar:1.4.0] | |
at com.netflix.hystrix.HystrixCommand$1.call(HystrixCommand.java:289) [hystrix-core-1.4.0.jar:1.4.0] | |
at rx.Observable$1.call(Observable.java:144) [rxjava-1.0.7.jar:1.0.7] | |
at rx.Observable$1.call(Observable.java:136) [rxjava-1.0.7.jar:1.0.7] | |
at rx.Observable$1.call(Observable.java:144) [rxjava-1.0.7.jar:1.0.7] | |
at rx.Observable$1.call(Observable.java:136) [rxjava-1.0.7.jar:1.0.7] | |
at rx.Observable$1.call(Observable.java:144) [rxjava-1.0.7.jar:1.0.7] | |
at rx.Observable$1.call(Observable.java:136) [rxjava-1.0.7.jar:1.0.7] | |
at rx.Observable.unsafeSubscribe(Observable.java:7466) [rxjava-1.0.7.jar:1.0.7] | |
at com.netflix.hystrix.AbstractCommand$5.call(AbstractCommand.java:514) [hystrix-core-1.4.0.jar:1.4.0] | |
at com.netflix.hystrix.AbstractCommand$5.call(AbstractCommand.java:497) [hystrix-core-1.4.0.jar:1.4.0] | |
at rx.Observable.unsafeSubscribe(Observable.java:7466) [rxjava-1.0.7.jar:1.0.7] | |
at rx.internal.operators.OperatorSubscribeOn$1$1.call(OperatorSubscribeOn.java:62) [rxjava-1.0.7.jar:1.0.7] | |
at com.netflix.hystrix.strategy.concurrency.HystrixContexSchedulerAction$1.call(HystrixContexSchedulerAction.java:56) [hystrix-core-1.4.0.jar:1.4.0] | |
at com.netflix.hystrix.strategy.concurrency.HystrixContexSchedulerAction$1.call(HystrixContexSchedulerAction.java:47) [hystrix-core-1.4.0.jar:1.4.0] | |
at com.netflix.hystrix.strategy.concurrency.HystrixContexSchedulerAction.call(HystrixContexSchedulerAction.java:69) [hystrix-core-1.4.0.jar:1.4.0] | |
at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:47) [rxjava-1.0.7.jar:1.0.7] | |
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_31] | |
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_31] | |
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_31] | |
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_31] | |
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_31] | |
Caused by: java.lang.OutOfMemoryError: null | |
at demo.HystrixCommandWithErrorTest$StringWithErrorCommand.run(HystrixCommandWithErrorTest.java:60) ~[test/:na] | |
at demo.HystrixCommandWithErrorTest$StringWithErrorCommand.run(HystrixCommandWithErrorTest.java:37) ~[test/:na] | |
at com.netflix.hystrix.HystrixCommand$1.call(HystrixCommand.java:294) [hystrix-core-1.4.0.jar:1.4.0] | |
... 21 common frames omitted | |
13:30:12.130 [Test worker] INFO d.HystrixCommandWithErrorTest - Command called and the result is: The message received: HelloWorld2 and the exception/error: java.lang.Exception: Throwable caught while executing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment