Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not uninstall script from file #6

Open
mchoma opened this issue Feb 23, 2015 · 0 comments
Open

Could not uninstall script from file #6

mchoma opened this issue Feb 23, 2015 · 0 comments

Comments

@mchoma
Copy link

mchoma commented Feb 23, 2015

Hi,
I am using arquillian-extension-byteman in version 1.0.0.Alpha3.
I am getting org.jboss.arquillian.extension.byteman.impl.common.SubmitException: Could not uninstall script from file.
Even specifying exec = ExecType.CONTAINER didn't help. I had to downgrade to 1.0.0.Alpha2.

Martin Choma

13:22:57,797 INFO  [stdout] (Attach Listener) Setting org.jboss.byteman.verbose=true
13:22:57,809 INFO  [stdout] (Attach Listener) TransformListener() : accepting requests on localhost:9091
13:22:57,879 INFO  [stdout] (Thread-81) TransformListener() : handling connection on port 9091
13:22:57,902 INFO  [stdout] (Thread-81) retransforming org.picketbox.datasource.security.SecureIdentityLoginModule
13:22:57,946 INFO  [stdout] (Thread-81) org.jboss.byteman.agent.Transformer : possible trigger for rule bmrule in class org.picketbox.datasource.security.SecureIdentityLoginModule
13:22:57,963 INFO  [stdout] (Thread-81) RuleTriggerMethodAdapter.injectTriggerPoint : inserting trigger into org.picketbox.datasource.security.SecureIdentityLoginModule.login() boolean for rule bmrule
13:22:57,968 INFO  [stdout] (Thread-81) org.jboss.byteman.agent.Transformer : inserted trigger for bmrule in class org.picketbox.datasource.security.SecureIdentityLoginModule
13:22:57,999 INFO  [stdout] (Thread-81) TransformListener() : handling connection on port 9091
13:22:58,031 INFO  [stdout] (Thread-81) retransforming org.picketbox.datasource.security.SecureIdentityLoginModule
13:22:58,033 INFO  [stdout] (Thread-81) org.jboss.byteman.agent.Transformer : possible trigger for rule bmrule in class org.picketbox.datasource.security.SecureIdentityLoginModule
13:22:58,034 INFO  [stdout] (Thread-81) RuleTriggerMethodAdapter.injectTriggerPoint : inserting trigger into org.picketbox.datasource.security.SecureIdentityLoginModule.login() boolean for rule bmrule
13:22:58,036 INFO  [stdout] (Thread-81) org.jboss.byteman.agent.Transformer : inserted trigger for bmrule in class org.picketbox.datasource.security.SecureIdentityLoginModule
13:22:58,347 INFO  [stdout] (Thread-81) TransformListener() : handling connection on port 9091
13:22:58,351 INFO  [stdout] (Thread-81) retransforming org.picketbox.datasource.security.SecureIdentityLoginModule
13:22:58,360 INFO  [stdout] (Thread-81) TransformListener() : handling connection on port 9091
13:22:58,361 SEVERE [org.jboss.arquillian.extension.byteman.impl.common.AbstractRuleInstaller] (pool-1-thread-1) Error uninstalling 'Method:' script to  localhost:9091, exec [ALL, CONTAINER], msg: Could not uninstall script from file
13:22:58,365 ERROR [org.jboss.arquillian.protocol.jmx.JMXTestRunner] (pool-1-thread-1) Failed: org.jboss.as.test.integration.security.jaas.cache.JAASCacheNullTestCase.test: org.jboss.arquillian.extension.byteman.impl.common.SubmitException: Could not uninstall script from file
    at org.jboss.arquillian.extension.byteman.impl.common.SubmitUtil.uninstall(SubmitUtil.java:46) [arquillian-service:]
    at org.jboss.arquillian.extension.byteman.impl.common.AbstractRuleInstaller.uninstall(AbstractRuleInstaller.java:40) [arquillian-service:]
    at org.jboss.arquillian.extension.byteman.impl.common.AbstractRuleInstaller.uninstallMethod(AbstractRuleInstaller.java:82) [arquillian-service:]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_25]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_25]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_25]
    at java.lang.reflect.Method.invoke(Method.java:483) [rt.jar:1.8.0_25]
    at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90) [arquillian-service:]
    at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99) [arquillian-service:]
    at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81) [arquillian-service:]
    at org.jboss.arquillian.testenricher.cdi.CreationalContextDestroyer.destory(CreationalContextDestroyer.java:44) [arquillian-service:]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_25]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_25]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_25]
    at java.lang.reflect.Method.invoke(Method.java:483) [rt.jar:1.8.0_25]
    at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90) [arquillian-service:]
    at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88) [arquillian-service:]
    at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:89) [arquillian-service:]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_25]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_25]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_25]
    at java.lang.reflect.Method.invoke(Method.java:483) [rt.jar:1.8.0_25]
    at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90) [arquillian-service:]
    at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88) [arquillian-service:]
    at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75) [arquillian-service:]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_25]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_25]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_25]
    at java.lang.reflect.Method.invoke(Method.java:483) [rt.jar:1.8.0_25]
    at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90) [arquillian-service:]
    at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88) [arquillian-service:]
    at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60) [arquillian-service:]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_25]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_25]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_25]
    at java.lang.reflect.Method.invoke(Method.java:483) [rt.jar:1.8.0_25]
    at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90) [arquillian-service:]
    at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88) [arquillian-service:]
    at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135) [arquillian-service:]
    at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115) [arquillian-service:]
    at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.after(EventTestRunnerAdaptor.java:103) [arquillian-service:]
    at org.jboss.arquillian.junit.Arquillian$5$1.evaluate(Arquillian.java:245) [arquillian-service:]
    at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314) [arquillian-service:]
    at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46) [arquillian-service:]
    at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:240) [arquillian-service:]
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) [arquillian-service:]
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) [arquillian-service:]
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) [arquillian-service:]
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) [arquillian-service:]
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) [arquillian-service:]
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) [arquillian-service:]
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) [arquillian-service:]
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) [arquillian-service:]
    at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:185) [arquillian-service:]
    at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314) [arquillian-service:]
    at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46) [arquillian-service:]
    at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:199) [arquillian-service:]
    at org.junit.runners.ParentRunner.run(ParentRunner.java:309) [arquillian-service:]
    at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:147) [arquillian-service:]
    at org.junit.runner.JUnitCore.run(JUnitCore.java:160) [arquillian-service:]
    at org.junit.runner.JUnitCore.run(JUnitCore.java:138) [arquillian-service:]
    at org.jboss.arquillian.junit.container.JUnitTestRunner.execute(JUnitTestRunner.java:65) [arquillian-service:]
    at org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethodInternal(JMXTestRunner.java:128) [arquillian-service:]
    at org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethod(JMXTestRunner.java:107) [arquillian-service:]
    at org.jboss.as.arquillian.service.ArquillianService$ExtendedJMXTestRunner.runTestMethod(ArquillianService.java:214) [arquillian-service:]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_25]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_25]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_25]
    at java.lang.reflect.Method.invoke(Method.java:483) [rt.jar:1.8.0_25]
    at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71) [rt.jar:1.8.0_25]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_25]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_25]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_25]
    at java.lang.reflect.Method.invoke(Method.java:483) [rt.jar:1.8.0_25]
    at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275) [rt.jar:1.8.0_25]
    at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112) [rt.jar:1.8.0_25]
    at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46) [rt.jar:1.8.0_25]
    at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237) [rt.jar:1.8.0_25]
    at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138) [rt.jar:1.8.0_25]
    at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252) [rt.jar:1.8.0_25]
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) [rt.jar:1.8.0_25]
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) [rt.jar:1.8.0_25]
    at org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.invoke(PluggableMBeanServerImpl.java:1468)
    at org.jboss.as.jmx.PluggableMBeanServerImpl.invoke(PluggableMBeanServerImpl.java:740)
    at org.jboss.as.jmx.BlockingNotificationMBeanServer.invoke(BlockingNotificationMBeanServer.java:168)
    at org.jboss.remotingjmx.protocol.v2.ServerProxy$InvokeHandler.handle(ServerProxy.java:952)
    at org.jboss.remotingjmx.protocol.v2.ServerCommon$MessageReciever$1$1.run(ServerCommon.java:153)
    at org.jboss.as.jmx.ServerInterceptorFactory$Interceptor$1.run(ServerInterceptorFactory.java:75)
    at org.jboss.as.jmx.ServerInterceptorFactory$Interceptor$1.run(ServerInterceptorFactory.java:70)
    at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.8.0_25]
    at javax.security.auth.Subject.doAs(Subject.java:422) [rt.jar:1.8.0_25]
    at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:94)
    at org.jboss.as.jmx.ServerInterceptorFactory$Interceptor.handleEvent(ServerInterceptorFactory.java:70)
    at org.jboss.remotingjmx.protocol.v2.ServerCommon$MessageReciever$1.run(ServerCommon.java:149)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_25]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_25]
    at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_25]
Caused by: java.lang.Exception: The remote byteman agent reported an error:
ERROR failed to find loaded rule with name bmrule
ERROR No rule scripts to remove

    at org.jboss.byteman.agent.submit.Submit$Comm.readResponse(Submit.java:966) [byteman.jar:0.0.0.Arq]
    at org.jboss.byteman.agent.submit.Submit.submitRequest(Submit.java:790) [byteman.jar:0.0.0.Arq]
    at org.jboss.byteman.agent.submit.Submit.deleteScripts(Submit.java:697) [byteman.jar:0.0.0.Arq]
    at org.jboss.arquillian.extension.byteman.impl.common.SubmitUtil.uninstall(SubmitUtil.java:44) [arquillian-service:]
    ... 96 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant