puniverse / comsat

Fibers and actors for web development
docs.paralleluniverse.co/comsat
Other
598 stars 103 forks source link

Exception in Fiber "fiber-10000001" co.paralleluniverse.fibers.VerifyInstrumentationException: Uninstrumented methods (marked '**') or call-sites (marked '!!') detected on the call stack: #32

Closed maoxianfly closed 9 years ago

maoxianfly commented 9 years ago

QUASAR WARNING: Assertions enabled. This may harm performance. QUASAR WARNING: Quasar Java Agent isn't running. If you're using another instrumentation method you can ignore this message; otherwise, please refer to the Getting Started section in the Quasar documentation. QUASAR WARNING: Fibers are set to verify instrumentation. This may severely harm performance. Exception in Fiber "fiber-10000001" co.paralleluniverse.fibers.VerifyInstrumentationException: Uninstrumented methods (marked '') or call-sites (marked '!!') detected on the call stack: at co.paralleluniverse.common.util.ExtendedStackTrace.here (ExtendedStackTrace.java:44 bci: 8) at co.paralleluniverse.fibers.Fiber.checkInstrumentation (Fiber.java:1613 bci: 0) at co.paralleluniverse.fibers.Fiber.verifySuspend (Fiber.java:1586 bci: 6) at co.paralleluniverse.fibers.Stack.popMethod (Stack.java:155 bci: 11) at co.paralleluniverse.fibers.FiberAsync.run (FiberAsync.java:152 bci: 327) at co.paralleluniverse.fibers.httpclient.AsyncHttpReq.run (AsyncHttpReq.java:26 bci: 1) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.doExecute (FiberHttpClient.java:96 bci: 14) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.execute (FiberHttpClient.java:226 bci: 5) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.execute (FiberHttpClient.java:208 bci: 8) at com.flhx.core.util.httpClient.HttpClientUtils.get (HttpClientUtils.java:63 bci: 146) at com.flhx.test.quasarTest.QuasarIncreasingEchoTest$1.run (QuasarIncreasingEchoTest.java:39 bci: 2) (optimized) at com.flhx.test.quasarTest.QuasarIncreasingEchoTest$1.run (QuasarIncreasingEchoTest.java:35 bci: 1) (optimized) at co.paralleluniverse.fibers.Fiber.run (Fiber.java:1019 bci: 11) at co.paralleluniverse.fibers.Fiber.run1 (Fiber.java:1014 bci: 1) at co.paralleluniverse.fibers.Fiber.checkInstrumentation(Fiber.java:1664) at co.paralleluniverse.fibers.Fiber.checkInstrumentation(Fiber.java:1613) at co.paralleluniverse.fibers.Fiber.verifySuspend(Fiber.java:1586) at co.paralleluniverse.fibers.Stack.popMethod(Stack.java:155) at co.paralleluniverse.fibers.FiberAsync.run(FiberAsync.java:152) at co.paralleluniverse.fibers.httpclient.AsyncHttpReq.run(AsyncHttpReq.java:26) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.doExecute(FiberHttpClient.java:96) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.execute(FiberHttpClient.java:226) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.execute(FiberHttpClient.java:208) at com.flhx.core.util.httpClient.HttpClientUtils.get(HttpClientUtils.java:63) at com.flhx.test.quasarTest.QuasarIncreasingEchoTest$1.run(QuasarIncreasingEchoTest.java:39) at com.flhx.test.quasarTest.QuasarIncreasingEchoTest$1.run(QuasarIncreasingEchoTest.java:35) at co.paralleluniverse.fibers.Fiber.run(Fiber.java:1019) Exception in Fiber "fiber-10000001" co.paralleluniverse.fibers.VerifyInstrumentationException: Uninstrumented methods (marked '') or call-sites (marked '!!') detected on the call stack: at co.paralleluniverse.common.util.ExtendedStackTrace.here (ExtendedStackTrace.java:44 bci: 8) at co.paralleluniverse.fibers.Fiber.checkInstrumentation (Fiber.java:1613 bci: 0) at co.paralleluniverse.fibers.Fiber.verifySuspend (Fiber.java:1586 bci: 6) at co.paralleluniverse.fibers.Stack.popMethod (Stack.java:155 bci: 11) at co.paralleluniverse.fibers.FiberAsync.run (FiberAsync.java:152 bci: 327) at co.paralleluniverse.fibers.httpclient.AsyncHttpReq.run (AsyncHttpReq.java:26 bci: 1) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.doExecute (FiberHttpClient.java:96 bci: 14) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.execute (FiberHttpClient.java:226 bci: 5) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.execute (FiberHttpClient.java:208 bci: 8) at com.flhx.core.util.httpClient.HttpClientUtils.get (HttpClientUtils.java:63 bci: 146) at com.flhx.test.quasarTest.QuasarIncreasingEchoTest$1.run (QuasarIncreasingEchoTest.java:39 bci: 2) (optimized) at com.flhx.test.quasarTest.QuasarIncreasingEchoTest$1.run (QuasarIncreasingEchoTest.java:35 bci: 1) (optimized) at co.paralleluniverse.fibers.Fiber.run (Fiber.java:1019 bci: 11) at co.paralleluniverse.fibers.Fiber.run1 (Fiber.java:1014 bci: 1) at co.paralleluniverse.fibers.Fiber.checkInstrumentation(Fiber.java:1664) at co.paralleluniverse.fibers.Fiber.checkInstrumentation(Fiber.java:1613) at co.paralleluniverse.fibers.Fiber.verifySuspend(Fiber.java:1586) at co.paralleluniverse.fibers.Stack.popMethod(Stack.java:155) at co.paralleluniverse.fibers.FiberAsync.run(FiberAsync.java:152) at co.paralleluniverse.fibers.httpclient.AsyncHttpReq.run(AsyncHttpReq.java:26) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.doExecute(FiberHttpClient.java:96) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.execute(FiberHttpClient.java:226) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.execute(FiberHttpClient.java:208) at com.flhx.core.util.httpClient.HttpClientUtils.get(HttpClientUtils.java:63) at com.flhx.test.quasarTest.QuasarIncreasingEchoTest$1.run(QuasarIncreasingEchoTest.java:39) at com.flhx.test.quasarTest.QuasarIncreasingEchoTest$1.run(QuasarIncreasingEchoTest.java:35) at co.paralleluniverse.fibers.Fiber.run(Fiber.java:1019)

co.paralleluniverse.fibers.VerifyInstrumentationException: Uninstrumented methods (marked '') or call-sites (marked '!!') detected on the call stack: at co.paralleluniverse.common.util.ExtendedStackTrace.here (ExtendedStackTrace.java:44 bci: 8) at co.paralleluniverse.fibers.Fiber.checkInstrumentation (Fiber.java:1613 bci: 0) at co.paralleluniverse.fibers.Fiber.verifySuspend (Fiber.java:1586 bci: 6) at co.paralleluniverse.fibers.Stack.popMethod (Stack.java:155 bci: 11) at co.paralleluniverse.fibers.FiberAsync.run (FiberAsync.java:152 bci: 327) at co.paralleluniverse.fibers.httpclient.AsyncHttpReq.run (AsyncHttpReq.java:26 bci: 1) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.doExecute (FiberHttpClient.java:96 bci: 14) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.execute (FiberHttpClient.java:226 bci: 5) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.execute (FiberHttpClient.java:208 bci: 8) at com.flhx.core.util.httpClient.HttpClientUtils.get (HttpClientUtils.java:63 bci: 146) at com.flhx.test.quasarTest.QuasarIncreasingEchoTest$1.run (QuasarIncreasingEchoTest.java:39 bci: 2) (optimized) at com.flhx.test.quasarTest.QuasarIncreasingEchoTest$1.run (QuasarIncreasingEchoTest.java:35 bci: 1) (optimized) at co.paralleluniverse.fibers.Fiber.run (Fiber.java:1019 bci: 11) at co.paralleluniverse.fibers.Fiber.run1 (Fiber.java:1014 bci: 1) java.util.concurrent.ExecutionException: co.paralleluniverse.fibers.VerifyInstrumentationException: Uninstrumented methods (marked '') or call-sites (marked '!!') detected on the call stack: at co.paralleluniverse.common.util.ExtendedStackTrace.here (ExtendedStackTrace.java:44 bci: 8) at co.paralleluniverse.fibers.Fiber.checkInstrumentation (Fiber.java:1613 bci: 0) at co.paralleluniverse.fibers.Fiber.verifySuspend (Fiber.java:1586 bci: 6) at co.paralleluniverse.fibers.Stack.popMethod (Stack.java:155 bci: 11) at co.paralleluniverse.fibers.FiberAsync.run (FiberAsync.java:152 bci: 327) at co.paralleluniverse.fibers.httpclient.AsyncHttpReq.run (AsyncHttpReq.java:26 bci: 1) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.doExecute (FiberHttpClient.java:96 bci: 14) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.execute (FiberHttpClient.java:226 bci: 5) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.execute (FiberHttpClient.java:208 bci: 8) at com.flhx.core.util.httpClient.HttpClientUtils.get (HttpClientUtils.java:63 bci: 146) at com.flhx.test.quasarTest.QuasarIncreasingEchoTest$1.run (QuasarIncreasingEchoTest.java:39 bci: 2) (optimized) at com.flhx.test.quasarTest.QuasarIncreasingEchoTest$1.run (QuasarIncreasingEchoTest.java:35 bci: 1) (optimized) at co.paralleluniverse.fibers.Fiber.run (Fiber.java:1019 bci: 11) at co.paralleluniverse.fibers.Fiber.run1 (Fiber.java:1014 bci: 1) at co.paralleluniverse.fibers.Fiber.get(Fiber.java:1304) at com.flhx.test.quasarTest.QuasarIncreasingEchoTest.httpTest(QuasarIncreasingEchoTest.java:47) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:86) at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:49) at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:64) at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:50) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) at org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32) at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93) at com.sun.proxy.$Proxy2.processTestClass(Unknown Source) at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:106) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) at org.gradle.messaging.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:360) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54) at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: co.paralleluniverse.fibers.VerifyInstrumentationException: Uninstrumented methods (marked '_') or call-sites (marked '!!') detected on the call stack: at co.paralleluniverse.common.util.ExtendedStackTrace.here (ExtendedStackTrace.java:44 bci: 8) at co.paralleluniverse.fibers.Fiber.checkInstrumentation (Fiber.java:1613 bci: 0) at co.paralleluniverse.fibers.Fiber.verifySuspend (Fiber.java:1586 bci: 6) at co.paralleluniverse.fibers.Stack.popMethod (Stack.java:155 bci: 11) at co.paralleluniverse.fibers.FiberAsync.run (FiberAsync.java:152 bci: 327) at co.paralleluniverse.fibers.httpclient.AsyncHttpReq.run (AsyncHttpReq.java:26 bci: 1) _ at co.paralleluniverse.fibers.httpclient.FiberHttpClient.doExecute (FiberHttpClient.java:96 bci: 14) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.execute (FiberHttpClient.java:226 bci: 5) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.execute (FiberHttpClient.java:208 bci: 8) ** at com.flhx.core.util.httpClient.HttpClientUtils.get (HttpClientUtils.java:63 bci: 146) at com.flhx.test.quasarTest.QuasarIncreasingEchoTest$1.run (QuasarIncreasingEchoTest.java:39 bci: 2) (optimized) at com.flhx.test.quasarTest.QuasarIncreasingEchoTest$1.run (QuasarIncreasingEchoTest.java:35 bci: 1) (optimized) at co.paralleluniverse.fibers.Fiber.run (Fiber.java:1019 bci: 11) at co.paralleluniverse.fibers.Fiber.run1 (Fiber.java:1014 bci: 1) at co.paralleluniverse.fibers.Fiber.checkInstrumentation(Fiber.java:1664) at co.paralleluniverse.fibers.Fiber.checkInstrumentation(Fiber.java:1613) at co.paralleluniverse.fibers.Fiber.verifySuspend(Fiber.java:1586) at co.paralleluniverse.fibers.Stack.popMethod(Stack.java:155) at co.paralleluniverse.fibers.FiberAsync.run(FiberAsync.java:152) at co.paralleluniverse.fibers.httpclient.AsyncHttpReq.run(AsyncHttpReq.java:26) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.doExecute(FiberHttpClient.java:96) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.execute(FiberHttpClient.java:226) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.execute(FiberHttpClient.java:208) at com.flhx.core.util.httpClient.HttpClientUtils.get(HttpClientUtils.java:63) at com.flhx.test.quasarTest.QuasarIncreasingEchoTest$1.run(QuasarIncreasingEchoTest.java:39) at com.flhx.test.quasarTest.QuasarIncreasingEchoTest$1.run(QuasarIncreasingEchoTest.java:35) at co.paralleluniverse.fibers.Fiber.run(Fiber.java:1019) at co.paralleluniverse.fibers.Fiber.run1(Fiber.java:1014) at co.paralleluniverse.fibers.Fiber.exec(Fiber.java:729) at co.paralleluniverse.fibers.FiberForkJoinScheduler$FiberForkJoinTask.exec1(FiberForkJoinScheduler.java:257) at co.paralleluniverse.concurrent.forkjoin.ParkableForkJoinTask.doExec(ParkableForkJoinTask.java:116) at co.paralleluniverse.concurrent.forkjoin.ParkableForkJoinTask.exec(ParkableForkJoinTask.java:73) at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:902) at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1689) at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1644) at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

Running test: Test httpTest(com.flhx.test.quasarTest.QuasarIncreasingEchoTest) Failed test httpTest [com.flhx.test.quasarTest.QuasarIncreasingEchoTest] with exception: java.util.concurrent.ExecutionException: co.paralleluniverse.fibers.VerifyInstrumentationException: Uninstrumented methods (marked '') or call-sites (marked '!!') detected on the call stack: at co.paralleluniverse.common.util.ExtendedStackTrace.here (ExtendedStackTrace.java:44 bci: 8) at co.paralleluniverse.fibers.Fiber.checkInstrumentation (Fiber.java:1613 bci: 0) at co.paralleluniverse.fibers.Fiber.verifySuspend (Fiber.java:1586 bci: 6) at co.paralleluniverse.fibers.Stack.popMethod (Stack.java:155 bci: 11) at co.paralleluniverse.fibers.FiberAsync.run (FiberAsync.java:152 bci: 327) at co.paralleluniverse.fibers.httpclient.AsyncHttpReq.run (AsyncHttpReq.java:26 bci: 1) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.doExecute (FiberHttpClient.java:96 bci: 14) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.execute (FiberHttpClient.java:226 bci: 5) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.execute (FiberHttpClient.java:208 bci: 8) at com.flhx.core.util.httpClient.HttpClientUtils.get (HttpClientUtils.java:63 bci: 146) at com.flhx.test.quasarTest.QuasarIncreasingEchoTest$1.run (QuasarIncreasingEchoTest.java:39 bci: 2) (optimized) at com.flhx.test.quasarTest.QuasarIncreasingEchoTest$1.run (QuasarIncreasingEchoTest.java:35 bci: 1) (optimized) at co.paralleluniverse.fibers.Fiber.run (Fiber.java:1019 bci: 11) at co.paralleluniverse.fibers.Fiber.run1 (Fiber.java:1014 bci: 1) java.util.concurrent.ExecutionException: co.paralleluniverse.fibers.VerifyInstrumentationException: Uninstrumented methods (marked '') or call-sites (marked '!!') detected on the call stack: at co.paralleluniverse.common.util.ExtendedStackTrace.here (ExtendedStackTrace.java:44 bci: 8) at co.paralleluniverse.fibers.Fiber.checkInstrumentation (Fiber.java:1613 bci: 0) at co.paralleluniverse.fibers.Fiber.verifySuspend (Fiber.java:1586 bci: 6) at co.paralleluniverse.fibers.Stack.popMethod (Stack.java:155 bci: 11) at co.paralleluniverse.fibers.FiberAsync.run (FiberAsync.java:152 bci: 327) at co.paralleluniverse.fibers.httpclient.AsyncHttpReq.run (AsyncHttpReq.java:26 bci: 1) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.doExecute (FiberHttpClient.java:96 bci: 14) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.execute (FiberHttpClient.java:226 bci: 5) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.execute (FiberHttpClient.java:208 bci: 8) at com.flhx.core.util.httpClient.HttpClientUtils.get (HttpClientUtils.java:63 bci: 146) at com.flhx.test.quasarTest.QuasarIncreasingEchoTest$1.run (QuasarIncreasingEchoTest.java:39 bci: 2) (optimized) at com.flhx.test.quasarTest.QuasarIncreasingEchoTest$1.run (QuasarIncreasingEchoTest.java:35 bci: 1) (optimized) at co.paralleluniverse.fibers.Fiber.run (Fiber.java:1019 bci: 11) at co.paralleluniverse.fibers.Fiber.run1 (Fiber.java:1014 bci: 1) at co.paralleluniverse.fibers.Fiber.get(Fiber.java:1304) at com.flhx.test.quasarTest.QuasarIncreasingEchoTest.httpTest(QuasarIncreasingEchoTest.java:47) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:86) at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:49) at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:64) at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:50) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) at org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32) at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93) at com.sun.proxy.$Proxy2.processTestClass(Unknown Source) at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:106) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) at org.gradle.messaging.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:360) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54) at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: co.paralleluniverse.fibers.VerifyInstrumentationException: Uninstrumented methods (marked '_') or call-sites (marked '!!') detected on the call stack: at co.paralleluniverse.common.util.ExtendedStackTrace.here (ExtendedStackTrace.java:44 bci: 8) at co.paralleluniverse.fibers.Fiber.checkInstrumentation (Fiber.java:1613 bci: 0) at co.paralleluniverse.fibers.Fiber.verifySuspend (Fiber.java:1586 bci: 6) at co.paralleluniverse.fibers.Stack.popMethod (Stack.java:155 bci: 11) at co.paralleluniverse.fibers.FiberAsync.run (FiberAsync.java:152 bci: 327) at co.paralleluniverse.fibers.httpclient.AsyncHttpReq.run (AsyncHttpReq.java:26 bci: 1) _ at co.paralleluniverse.fibers.httpclient.FiberHttpClient.doExecute (FiberHttpClient.java:96 bci: 14) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.execute (FiberHttpClient.java:226 bci: 5) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.execute (FiberHttpClient.java:208 bci: 8) ** at com.flhx.core.util.httpClient.HttpClientUtils.get (HttpClientUtils.java:63 bci: 146) at com.flhx.test.quasarTest.QuasarIncreasingEchoTest$1.run (QuasarIncreasingEchoTest.java:39 bci: 2) (optimized) at com.flhx.test.quasarTest.QuasarIncreasingEchoTest$1.run (QuasarIncreasingEchoTest.java:35 bci: 1) (optimized) at co.paralleluniverse.fibers.Fiber.run (Fiber.java:1019 bci: 11) at co.paralleluniverse.fibers.Fiber.run1 (Fiber.java:1014 bci: 1) at co.paralleluniverse.fibers.Fiber.checkInstrumentation(Fiber.java:1664) at co.paralleluniverse.fibers.Fiber.checkInstrumentation(Fiber.java:1613) at co.paralleluniverse.fibers.Fiber.verifySuspend(Fiber.java:1586) at co.paralleluniverse.fibers.Stack.popMethod(Stack.java:155) at co.paralleluniverse.fibers.FiberAsync.run(FiberAsync.java:152) at co.paralleluniverse.fibers.httpclient.AsyncHttpReq.run(AsyncHttpReq.java:26) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.doExecute(FiberHttpClient.java:96) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.execute(FiberHttpClient.java:226) at co.paralleluniverse.fibers.httpclient.FiberHttpClient.execute(FiberHttpClient.java:208) at com.flhx.core.util.httpClient.HttpClientUtils.get(HttpClientUtils.java:63) at com.flhx.test.quasarTest.QuasarIncreasingEchoTest$1.run(QuasarIncreasingEchoTest.java:39) at com.flhx.test.quasarTest.QuasarIncreasingEchoTest$1.run(QuasarIncreasingEchoTest.java:35) at co.paralleluniverse.fibers.Fiber.run(Fiber.java:1019) at co.paralleluniverse.fibers.Fiber.run1(Fiber.java:1014) at co.paralleluniverse.fibers.Fiber.exec(Fiber.java:729) at co.paralleluniverse.fibers.FiberForkJoinScheduler$FiberForkJoinTask.exec1(FiberForkJoinScheduler.java:257) at co.paralleluniverse.concurrent.forkjoin.ParkableForkJoinTask.doExec(ParkableForkJoinTask.java:116) at co.paralleluniverse.concurrent.forkjoin.ParkableForkJoinTask.exec(ParkableForkJoinTask.java:73) at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:902) at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1689) at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1644) at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) com.flhx.test.quasarTest.QuasarIncreasingEchoTest > httpTest FAILED java.util.concurrent.ExecutionException at QuasarIncreasingEchoTest.java:47 Caused by: co.paralleluniverse.fibers.VerifyInstrumentationException Running test: Test test(com.flhx.test.quasarTest.QuasarIncreasingEchoTest)

maoxianfly commented 9 years ago

code :

Fiber stringFiber = new Fiber<>(new SuspendableCallable() { @Override public String run() throws SuspendExecution, InterruptedException { try { String url = "http://www.baidu.com"; HttpGet httpget = new HttpGet(url); return String resp = client.execute(httpget, BASIC_RESPONSE_HANDLER); } catch (IOException e) { e.printStackTrace(); } return null; } }).start(); String response = stringFiber.get();

circlespainter commented 9 years ago

The warning at the beginning tells that no agent is running. Is the agent running (or has AoT instrumentation been performed)?

maoxianfly commented 9 years ago

use AOT instrumentation compile:

gradle file :

compileJava { println 'paralleluniverse compileJava' doLast { ant.taskdef(name:'instrumentation', classname:'co.paralleluniverse.fibers.instrument.InstrumentationTask', classpath: configurations.compile.asPath) ant.instrumentation(verbose:'true', check:'true', debug:'true') { fileset(dir: sourceSets.main.output.classesDir) } } } compileTestJava.dependsOn processTestResources compileTestJava { println 'paralleluniverse compileTestJava' doLast { ant.taskdef(name:'instrumentation', classname:'co.paralleluniverse.fibers.instrument.InstrumentationTask', classpath: configurations.testCompile.asPath) ant.instrumentation(verbose:'true', check:'true', debug:'true') { fileset(dir: sourceSets.test.output.classesDir) } } }

maoxianfly commented 9 years ago

classes { doFirst{ println "Excuting scanSuspendables..." ant.taskdef( name:'scanSuspendables', classname:'co.paralleluniverse.fibers.instrument.SuspendablesScanner', classpath: "build/classes/main:build/resources/main:${configurations.provided.asPath}:${configurations.runtime.asPath}") ant.scanSuspendables( auto:true, suspendablesFile: "$sourceSets.main.output.resourcesDir/META-INF/suspendables", supersFile: "$sourceSets.main.output.resourcesDir/META-INF/suspendable-supers", append: true) { fileset(dir: sourceSets.main.output.classesDir) }

    //            ant.taskdef(name:'scanSuspendables',
    //                classname:'co.paralleluniverse.fibers.instrument.OldSuspendablesScanner',
    //                classpath: "build/classes/main:${configurations.provided.asPath}:${configurations.runtime.asPath}")
    //            ant.scanSuspendables(outputFile:"$sourceSets.main.output.resourcesDir/META-INF/suspendable-supers",
    //                suspendablesFile: "$sourceSets.main.output.resourcesDir/META-INF/suspendables"
    //            ) {
    //                fileset(dir: sourceSets.main.output.classesDir)
    //            }
}

}

circlespainter commented 9 years ago

Right. AoT instrumentation is not enough for integrations (like AHC's) that need instrumenting 3rd-party libraries. Can you please try using the agent instead?

maoxianfly commented 9 years ago

ok , but quasar agent Conflict with jrebel agent。

circlespainter commented 9 years ago

What's the issue when using both?

maoxianfly commented 9 years ago

E:\develop\Java\jdk1.8.0_25\bin\java

-javaagent:C:\Users\fly.gradle\caches\modules-2\files-2.1\co.paralleluniverse\quasar-core\0.7.2\5251bd3d85cb8ea2d2902a68818eeddef80b447d\quasar-core-0.7.2-jdk8.jar -agentpath:C:\Users\fly.IntelliJIdea14\config\plugins\jr-ide-idea\lib\jrebel6\lib\jrebel64.dll

-Didea.launcher.port=7539 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 14.1.3\bin" -Dfile.encoding=UTF-8 -classpath "E:\develop\Java\jdk1.8.0_25\jre\lib\charsets.jar;E:\develop\Java\jdk1.8.0_25\jre\lib\deploy.jar;E:\develop\Java\jdk1.8.0_25\jre\lib\javaws.jar;E:\develop\Java\jdk1.8.0_25\jre\lib\jce.jar;E:\develop\Java\jdk1.8.0_25\jre\lib\jfr.jar;E:\develop\Java\jdk1.8.0_25\jre\lib\jfxswt.jar;E:\develop\Java\jdk1.8.0_25\jre\lib\jsse.jar;E:\develop\Java\jdk1.8.0_25\jre\lib\management-agent.jar;E:\develop\Java\jdk1.8.0_25\jre\lib\plugin.jar;E:\develop\Java\jdk1.8.0_25\jre\lib\resources.jar;E:\develop\Java\jdk1.8.0_25\jre\lib\rt.jar;E:\develop\Java\jdk1.8.0_25\jre\lib\ext\access-bridge-64.jar;E:\develop\Java\jdk1.8.0_25\jre\lib\ext\cldrdata.jar;E:\develop\Java\jdk1.8.0_25\jre\lib\ext\dnsns.jar;E:\develop\Java\jdk1.8.0_25\jre\lib\ext\jaccess.jar;E:\develop\Java\jdk1.8.0_25\jre\lib\ext\jfxrt.jar;E:\develop\Java\jdk1.8.0_25\jre\lib\ext\localedata.jar;E:\develop\Java\jdk1.8.0_25\jre\lib\ext\nashorn.jar;E:\develop\Java\jdk1.8.0_25\jre\lib\ext\sunec.jar;E:\develop\Java\jdk1.8.0_25\jre\lib\ext\sunjce_provider.jar;E:\develop\Java\jdk1.8.0_25\jre\lib\ext\sunmscapi.jar;E:\develop\Java\jdk1.8.0_25\jre\lib\ext\sunpkcs11.jar;E:\develop\Java\jdk1.8.0_25\jre\lib\ext\zipfs.jar;C:\Users\fly\IdeaProjects\w2\core\build\classes\main;C:\Users\fly\IdeaProjects\w2\core\build\resources\main;C:\Users\fly.gradle\caches\modules-2\files-2.1\org.apache.logging.log4j\log4j-api\2.3\8d85ef2675d1b45fe78adad021f809bdf12f2eeb\log4j-api-2.3.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\org.apache.logging.log4j\log4j-core\2.3\58a3e964db5307e30650817c5daac1e8c8ede648\log4j-core-2.3.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\net.jpountz.lz4\lz4\1.3.0\c708bb2590c0652a642236ef45d9f99ff842a2ce\lz4-1.3.0.jar;C:\Users\fly\IdeaProjects\w2\gs\build\classes\main;C:\Users\fly\IdeaProjects\w2\gs\build\resources\main;C:\Users\fly.gradle\caches\modules-2\files-2.1\org.jodd\jodd-core\3.6.6\abd51a7a2a15fe725a604927b50bc0f54618e500\jodd-core-3.6.6.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\org.jodd\jodd-props\3.6.6\b77ad8557d7efb86eacbe7919353c53ab66a90a5\jodd-props-3.6.6.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\mysql\mysql-connector-java\5.1.35\b6ac941b7288376a7e8bc6490264bbd4427fb94e\mysql-connector-java-5.1.35.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\com.alibaba\fastjson\1.2.6\b74bde9cceb2f9ec1077a9c7c3a007c251531ba6\fastjson-1.2.6.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\org.apache.logging.log4j\log4j-slf4j-impl\2.3\57868006655a34050ad39e78c5b12aa9c74927f7\log4j-slf4j-impl-2.3.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\org.slf4j\slf4j-api\1.7.12\8e20852d05222dc286bf1c71d78d0531e177c317\slf4j-api-1.7.12.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\org.apache.httpcomponents\httpasyncclient\4.1\27ea5abf1834f2c0bde03abec3917172ec698870\httpasyncclient-4.1.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\org.apache.httpcomponents\httpclient\4.5\a1e6cbb3cc2c5f210dd1310ff9fcb2c09c0d1438\httpclient-4.5.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\org.apache.httpcomponents\httpcore\4.4.1\f5aa318bda4c6c8d688c9d00b90681dcd82ce636\httpcore-4.4.1.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\commons-logging\commons-logging\1.2\4bfc12adfe4842bf07b657f0369c4cb522955686\commons-logging-1.2.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\commons-codec\commons-codec\1.9\9ce04e34240f674bc72680f8b843b1457383161a\commons-codec-1.9.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\com.google.guava\guava\18.0\cce0823396aa693798f8882e64213b1772032b09\guava-18.0.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\com.squareup\protoparser\3.1.5\8c73884b395f62203f4a7792be5d42177c324216\protoparser-3.1.5.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\com.baidu\jprotobuf\1.7.3\37850212059f29b215e1c684c78da9467eca5603\jprotobuf-1.7.3.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\com.codahale.metrics\metrics-healthchecks\3.0.2\d99c34c33eceb7bc0e23c5b63fc517b0a53871c4\metrics-healthchecks-3.0.2.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\co.paralleluniverse\comsat-httpclient\0.4.0\8821e5990bab65c4b6d1d2dd0a0711759d7420ab\comsat-httpclient-0.4.0.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\com.baidu\jprotobuf-rpc-socket\2.23\41a03997922195c3611ad300c2b304748f95f409\jprotobuf-rpc-socket-2.23.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\com.baidu\jprotobuf-rpc-common\1.5\a80c6d47e4861423a1a0b7f5bf943593bae7931d\jprotobuf-rpc-common-1.5.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\org.apache.commons\commons-pool2\2.3\62a559a025fd890c30364296ece14643ba9c8c5b\commons-pool2-2.3.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\org.xerial.snappy\snappy-java\1.1.1.6\e3f12835a135c0d253bee4dbbe74d37ce35d7269\snappy-java-1.1.1.6.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\com.zaxxer\HikariCP\2.3.8\8da8310b59c9fcbdcaed98e474e7f1587f2002d8\HikariCP-2.3.8.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\io.netty\netty-all\4.0.29.Final\3ae0c9ad242cf197bf69032030cc6ef7c5ee04ad\netty-all-4.0.29.Final.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\com.google.protobuf\protobuf-java\2.5.0\a10732c76bfacdbd633a7eb0f7968b1059a65dfa\protobuf-java-2.5.0.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\org.javassist\javassist\3.18.1-GA\d9a09f7732226af26bf99f19e2cffe0ae219db5b\javassist-3.18.1-GA.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\co.paralleluniverse\quasar-core\0.7.2\5251bd3d85cb8ea2d2902a68818eeddef80b447d\quasar-core-0.7.2-jdk8.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\io.dropwizard.metrics\metrics-core\3.1.2\224f03afd2521c6c94632f566beb1bb5ee32cf07\metrics-core-3.1.2.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\org.latencyutils\LatencyUtils\2.0.2\dcfce0d8b128638aa20e58697b1c40ff09e342db\LatencyUtils-2.0.2.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\org.hdrhistogram\HdrHistogram\2.1.3\1ededfd6b2256151e082595ed0ef7ca5c4af464a\HdrHistogram-2.1.3.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\com.lmax\disruptor\3.3.2\8db3df28d7e4ad2526be59b54a1cbd9c9e982a7a\disruptor-3.3.2.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\de.javakaffee\kryo-serializers\0.30\6ca761d04c6838581d0033977a2e518dd5493c6\kryo-serializers-0.30.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\com.esotericsoftware.kryo\kryo\2.24.0\c6b206e80cfd97e66a1364003724491c757b92f\kryo-2.24.0.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\com.esotericsoftware.minlog\minlog\1.2\59bfcd171d82f9981a5e242b9e840191f650e209\minlog-1.2.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\org.objenesis\objenesis\2.1\87c0ea803b69252868d09308b4618f766f135a96\objenesis-2.1.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\org.ow2.asm\asm-all\5.0.4\e6244859997b3d4237a552669279780876228909\asm-all-5.0.4.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\co.paralleluniverse\quasar-actors\0.7.2\7f8c151b1170650db611d1db624e7a8c617a9ef4\quasar-actors-0.7.2.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\co.paralleluniverse\quasar-galaxy\0.7.2\5f168d09107a3b729b9040a88d849eda0357559a\quasar-galaxy-0.7.2.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\co.paralleluniverse\quasar-reactive-streams\0.7.2\fa5b934bcdb8009c699d4f0753391425eb95ca50\quasar-reactive-streams-0.7.2.jar;C:\Users\fly.gradle\caches\modules-2\files-2.1\org.apache.httpcomponents\httpcore-nio\4.4.1\a8c5e3c3bfea5ce23fb647c335897e415eb442e3\httpcore-nio-4.4.1.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 14.1.3\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain com.flhx.core.util.httpClient.HttpClientUtils

error:

java.lang.NullPointerException at co.paralleluniverse.fibers.instrument.MethodDatabase$ClassEntry.equals(MethodDatabase.java:592) at co.paralleluniverse.fibers.instrument.MethodDatabase.recordSuspendableMethods(MethodDatabase.java:303) at co.paralleluniverse.fibers.instrument.MethodDatabase.checkClass(MethodDatabase.java:368) at co.paralleluniverse.fibers.instrument.MethodDatabase.getOrLoadClassEntry(MethodDatabase.java:222) at co.paralleluniverse.fibers.instrument.SimpleSuspendableClassifier.isSuspendable(SimpleSuspendableClassifier.java:156) at co.paralleluniverse.fibers.instrument.DefaultSuspendableClassifier.isSuspendable(DefaultSuspendableClassifier.java:47) at co.paralleluniverse.fibers.instrument.InstrumentClass.visitMethod(InstrumentClass.java:142) at co.paralleluniverse.asm.ClassReader.b(Unknown Source) at co.paralleluniverse.asm.ClassReader.accept(Unknown Source) at co.paralleluniverse.asm.ClassReader.accept(Unknown Source) at co.paralleluniverse.fibers.instrument.QuasarInstrumentor.instrumentClass(QuasarInstrumentor.java:109) at co.paralleluniverse.fibers.instrument.QuasarInstrumentor.instrumentClass(QuasarInstrumentor.java:85) at co.paralleluniverse.fibers.instrument.JavaAgent$Transformer.transform(JavaAgent.java:185) at sun.instrument.TransformerManager.transform(TransformerManager.java:188) at sun.instrument.InstrumentationImpl._jr$transform(InstrumentationImpl.java:428) at com.zeroturnaround.javarebel.az.transform(SourceFile:112) at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java) at com.zeroturnaround.javarebel.auM.premain(SourceFile:240) at com.zeroturnaround.reload.jvmti.MinimalInstrumentation.loadClassAndCallPremain(SourceFile:46)

maoxianfly commented 9 years ago

use quasar agent and jrebel agent success。 The problem has been solved . thank you.