chetbox / boopjs

Formerly boopjs.com
https://chetbox.com
1 stars 0 forks source link

InvocationTargetExcpetion #264

Closed chetbox closed 8 years ago

chetbox commented 8 years ago
  tap('next');
java.lang.reflect.InvocationTargetException
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at lgzmrmbhly.com.chetbox.chetbot.android.util.InputEvents.injectEvent(InputEvents.java:38)
    at lgzmrmbhly.com.chetbox.chetbot.android.Chetbot$2.call(Chetbot.java:98)
    at lgzmrmbhly.org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1479)
    at lgzmrmbhly.org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815)
    at lgzmrmbhly.org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
    at lgzmrmbhly.org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
    at lgzmrmbhly.org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3282)
    at lgzmrmbhly.org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:120)
    at lgzmrmbhly.org.mozilla.javascript.Context.evaluateString(Context.java:1219)
    at lgzmrmbhly.com.chetbox.chetbot.android.Chetbot.onStatement(Chetbot.java:194)
    at lgzmrmbhly.com.chetbox.chetbot.android.ChetbotServerConnection$ServerConnectionImpl.onMessage(ChetbotServerConnection.java:189)
    at lgzmrmbhly.org.java_websocket.client.WebSocketClient.onWebsocketMessage(WebSocketClient.java:312)
    at lgzmrmbhly.org.java_websocket.WebSocketImpl.decodeFrames(WebSocketImpl.java:368)
    at lgzmrmbhly.org.java_websocket.WebSocketImpl.decode(WebSocketImpl.java:157)
    at lgzmrmbhly.org.java_websocket.client.WebSocketClient.interruptableRun(WebSocketClient.java:230)
    at lgzmrmbhly.org.java_websocket.client.WebSocketClient.run(WebSocketClient.java:188)
    at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Method.invoke(Native Method)
    at lgzmrmbhly.com.chetbox.chetbot.android.util.InputEvents.injectEvent(InputEvents.java:35)
    ... 16 more
Caused by: lgzmrmbhly.android.support.test.espresso.InjectEventSecurityException: java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission
    at lgzmrmbhly.android.support.test.espresso.base.InputManagerEventInjectionStrategy.innerInjectMotionEvent(InputManagerEventInjectionStrategy.java:162)
    at lgzmrmbhly.android.support.test.espresso.base.InputManagerEventInjectionStrategy.innerInjectMotionEvent(InputManagerEventInjectionStrategy.java:160)
    at lgzmrmbhly.android.support.test.espresso.base.InputManagerEventInjectionStrategy.injectMotionEvent(InputManagerEventInjectionStrategy.java:132)
    ... 18 more
Caused by: java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission
    at android.os.Parcel.readException(Parcel.java:1599)
    at android.os.Parcel.readException(Parcel.java:1552)
    at android.hardware.input.IInputManager$Stub$Proxy.injectInputEvent(IInputManager.java:417)
    at android.hardware.input.InputManager.injectInputEvent(InputManager.java:679)
    at java.lang.reflect.Method.invoke(Native Method)
    at lgzmrmbhly.android.support.test.espresso.base.InputManagerEventInjectionStrategy.innerInjectMotionEvent(InputManagerEventInjectionStrategy.java:146)
    ... 20 more
chetbox commented 8 years ago

Seen on Slack Demo

sign_in('chetbot', 'chetbot@chetbox.com', 'myweakpassword');
java.lang.reflect.InvocationTargetException
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at lgzmrmbhly.com.chetbox.chetbot.android.util.RootViews.reduceRoots(RootViews.java:162)
    at lgzmrmbhly.com.chetbox.chetbot.android.util.RootViews.getTopmostWindowView(RootViews.java:80)
    at lgzmrmbhly.com.chetbox.chetbot.android.Chetbot$3.call(Chetbot.java:106)
    at lgzmrmbhly.org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1479)
    at lgzmrmbhly.org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815)
    at lgzmrmbhly.org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
    at lgzmrmbhly.org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
    at lgzmrmbhly.org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3282)
    at lgzmrmbhly.org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:120)
    at lgzmrmbhly.org.mozilla.javascript.Context.evaluateString(Context.java:1219)
    at lgzmrmbhly.com.chetbox.chetbot.android.Chetbot.onStatement(Chetbot.java:194)
    at lgzmrmbhly.com.chetbox.chetbot.android.ChetbotServerConnection$ServerConnectionImpl.onMessage(ChetbotServerConnection.java:189)
    at lgzmrmbhly.org.java_websocket.client.WebSocketClient.onWebsocketMessage(WebSocketClient.java:312)
    at lgzmrmbhly.org.java_websocket.WebSocketImpl.decodeFrames(WebSocketImpl.java:368)
    at lgzmrmbhly.org.java_websocket.WebSocketImpl.decode(WebSocketImpl.java:157)
    at lgzmrmbhly.org.java_websocket.client.WebSocketClient.interruptableRun(WebSocketClient.java:230)
    at lgzmrmbhly.org.java_websocket.client.WebSocketClient.run(WebSocketClient.java:188)
    at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Method.invoke(Native Method)
    at lgzmrmbhly.com.chetbox.chetbot.android.util.RootViews.reduceRoots(RootViews.java:158)
    ... 17 more
Caused by: java.lang.IndexOutOfBoundsException: index (0) must be less than size (0)
    at lgzmrmbhly.com.google.common.base.Preconditions.checkElementIndex(Preconditions.java:303)
    at lgzmrmbhly.com.google.common.base.Preconditions.checkElementIndex(Preconditions.java:282)
    at lgzmrmbhly.com.google.common.collect.EmptyImmutableList.get(EmptyImmutableList.java:74)
    at lgzmrmbhly.android.support.test.espresso.base.RootViewPicker.reduceRoots(RootViewPicker.java:212)
    ... 19 more