react-native APK crash with "Unknown" error - react-native

My react-native developing environment is on Windows 7; worked fine until yesterday, but suddenly the APK reports an error after it loads the bundle.
The error Message:
Unknown
run
NativeRunnable.java
handleCallback
Handler.java:873
dispatchMessage
Handler.java:99
dispatchMessage
MessageQueueThreadHandler.java:29
loop
Looper.java:193
run
MessageQueueThreadImpl.java:232
run
Thread.java:764
I did google for the error, but no luck. I tried clearing the cache using npm start -- --reset-cache, but the error remains.
I found and tried similar posts but their solutions did not work either.
Error Logcat:
06-16 14:30:16.144 5885 6735 E unknown:ReactNative: Exception in native call
06-16 14:30:16.144 5885 6735 E unknown:ReactNative: com.facebook.jni.UnknownCppException: Unknown
06-16 14:30:16.144 5885 6735 E unknown:ReactNative: at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
06-16 14:30:16.144 5885 6735 E unknown:ReactNative: at android.os.Handler.handleCallback(Handler.java:873)
06-16 14:30:16.144 5885 6735 E unknown:ReactNative: at android.os.Handler.dispatchMessage(Handler.java:99)
06-16 14:30:16.144 5885 6735 E unknown:ReactNative: at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
06-16 14:30:16.144 5885 6735 E unknown:ReactNative: at android.os.Looper.loop(Looper.java:193)
06-16 14:30:16.144 5885 6735 E unknown:ReactNative: at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:232)
06-16 14:30:16.144 5885 6735 E unknown:ReactNative: at java.lang.Thread.run(Thread.java:764)
06-16 14:30:16.152 5885 6735 E ReactNativeJNI: Attempting to call JS function on a bad application bundle: RCTDeviceEventEmitter.emit()
06-16 14:30:16.155 5885 6735 E unknown:ReactNative: Exception in native call
06-16 14:30:16.155 5885 6735 E unknown:ReactNative: java.lang.RuntimeException: Attempting to call JS function on a bad application bundle: RCTDeviceEventEmitter.emit()
06-16 14:30:16.155 5885 6735 E unknown:ReactNative: at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
06-16 14:30:16.155 5885 6735 E unknown:ReactNative: at android.os.Handler.handleCallback(Handler.java:873)
06-16 14:30:16.155 5885 6735 E unknown:ReactNative: at android.os.Handler.dispatchMessage(Handler.java:99)
06-16 14:30:16.155 5885 6735 E unknown:ReactNative: at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
06-16 14:30:16.155 5885 6735 E unknown:ReactNative: at android.os.Looper.loop(Looper.java:193)
06-16 14:30:16.155 5885 6735 E unknown:ReactNative: at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:232)
06-16 14:30:16.155 5885 6735 E unknown:ReactNative: at java.lang.Thread.run(Thread.java:764)
06-16 14:30:16.155 5885 6735 E ReactNativeJNI: Attempting to call JS function on a bad application bundle: AppRegistry.runApplication()
06-16 14:30:16.156 5885 6735 E unknown:ReactNative: Exception in native call
06-16 14:30:16.156 5885 6735 E unknown:ReactNative: java.lang.RuntimeException: Attempting to call JS function on a bad application bundle: AppRegistry.runApplication()
06-16 14:30:16.156 5885 6735 E unknown:ReactNative: at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
06-16 14:30:16.156 5885 6735 E unknown:ReactNative: at android.os.Handler.handleCallback(Handler.java:873)
06-16 14:30:16.156 5885 6735 E unknown:ReactNative: at android.os.Handler.dispatchMessage(Handler.java:99)
06-16 14:30:16.156 5885 6735 E unknown:ReactNative: at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
06-16 14:30:16.156 5885 6735 E unknown:ReactNative: at android.os.Looper.loop(Looper.java:193)
06-16 14:30:16.156 5885 6735 E unknown:ReactNative: at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:232)
06-16 14:30:16.156 5885 6735 E unknown:ReactNative: at java.lang.Thread.run(Thread.java:764)
06-16 14:30:16.165 5885 5885 D ReactNative: CatalystInstanceImpl.destroy() start
06-16 14:30:16.181 1571 1571 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 3936256
06-16 14:30:16.187 1571 1571 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 3936256
06-16 14:30:16.189 5885 6734 D ReactNative: CatalystInstanceImpl.destroy() end
06-16 14:30:16.193 1571 1571 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 3936256
06-16 14:30:16.224 5885 5885 D ReactNative: CatalystInstanceImpl.destroy() start
06-16 14:30:16.224 5885 5885 D ReactNative: CatalystInstanceImpl.destroy() start
06-16 14:30:16.233 5885 5885 W unknown:ReactNative: Tried to enqueue runnable on already finished thread: 'js... dropping Runnable.
06-16 14:30:16.233 5885 5885 W MessageQueue: Handler (com.facebook.react.bridge.queue.MessageQueueThreadHandler) {ef3c15} sending message to a Handler on a dead thread
06-16 14:30:16.233 5885 5885 W MessageQueue: java.lang.IllegalStateException: Handler (com.facebook.react.bridge.queue.MessageQueueThreadHandler) {ef3c15} sending message to a Handler on a dead thread
06-16 14:30:16.233 5885 5885 W MessageQueue: at android.os.MessageQueue.enqueueMessage(MessageQueue.java:546)
06-16 14:30:16.233 5885 5885 W MessageQueue: at android.os.Handler.enqueueMessage(Handler.java:745)
06-16 14:30:16.233 5885 5885 W MessageQueue: at android.os.Handler.sendMessageAtTime(Handler.java:697)
06-16 14:30:16.233 5885 5885 W MessageQueue: at android.os.Handler.sendMessageDelayed(Handler.java:667)
06-16 14:30:16.233 5885 5885 W MessageQueue: at android.os.Handler.post(Handler.java:395)
06-16 14:30:16.233 5885 5885 W MessageQueue: at com.facebook.react.bridge.queue.MessageQueueThreadImpl.runOnQueue(MessageQueueThreadImpl.java:70)
06-16 14:30:16.233 5885 5885 W MessageQueue: at com.facebook.react.bridge.ReactContext.runOnJSQueueThread(ReactContext.java:306)
06-16 14:30:16.233 5885 5885 W MessageQueue: at com.facebook.react.uimanager.events.EventDispatcher$ScheduleDispatchFrameCallback.doFrame(EventDispatcher.java:302)
06-16 14:30:16.233 5885 5885 W MessageQueue: at com.facebook.react.modules.core.ReactChoreographer$ReactChoreographerDispatcher.doFrame(ReactChoreographer.java:166)
06-16 14:30:16.233 5885 5885 W MessageQueue: at com.facebook.react.modules.core.ChoreographerCompat$FrameCallback$1.doFrame(ChoreographerCompat.java:84)
06-16 14:30:16.233 5885 5885 W MessageQueue: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:947)
06-16 14:30:16.233 5885 5885 W MessageQueue: at android.view.Choreographer.doCallbacks(Choreographer.java:761)
06-16 14:30:16.233 5885 5885 W MessageQueue: at android.view.Choreographer.doFrame(Choreographer.java:693)
06-16 14:30:16.233 5885 5885 W MessageQueue: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:935)
06-16 14:30:16.233 5885 5885 W MessageQueue: at android.os.Handler.handleCallback(Handler.java:873)
06-16 14:30:16.233 5885 5885 W MessageQueue: at android.os.Handler.dispatchMessage(Handler.java:99)
06-16 14:30:16.233 5885 5885 W MessageQueue: at android.os.Looper.loop(Looper.java:193)
06-16 14:30:16.233 5885 5885 W MessageQueue: at android.app.ActivityThread.main(ActivityThread.java:6669)
06-16 14:30:16.233 5885 5885 W MessageQueue: at java.lang.reflect.Method.invoke(Native Method)
06-16 14:30:16.233 5885 5885 W MessageQueue: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
06-16 14:30:16.233 5885 5885 W MessageQueue: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
06-16 14:30:16.251 2042 2042 I GoogleInputMethod: onFinishInput() : Dummy InputConnection bound
06-16 14:30:16.252 2042 2042 I GoogleInputMethod: onStartInput() : Dummy InputConnection bound
06-16 14:30:16.255 5885 5902 D EGL_emulation: eglMakeCurrent: 0xe5dc78a0: ver 2 0 (tinfo 0xe7055d70)
Edit: I have excluded from above log the parts that were the same as when the error was fixed.

After debugging; disabling the #babel/plugin-transform-arrow-functions plugin (version 7.2.0) and then clearing the cache (as suggested in another answer) fixed it for me:
Steps:
Disable the #babel/plugin-transform-arrow-functions plugin, for example, I did just comment it out inside the babel.config.js file, like below:
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
['#babel/plugin-proposal-decorators', { decoratorsBeforeExport: false }],
// Below plugin is unable to handle some of our arrow-functions,
// which results in "Unknown" error after the app is launched.
// ```
// ['#babel/plugin-transform-arrow-functions', { spec: true }]
// ```
]
};
When the Packager is already running, close and/or terminate it using process-manager
For react-native init approach (without expo), run:
npm start -- --reset-cache
(those who are using expo-cli should instead of above run expo start -c)
Above mentioned command is for me equal to removing the %temp%/metro-cache directory.
But still, cannot hurt to delete the ~/.babel.json file (on Windows %userProfile%/.babel.json file) as suggested here, I mean, I have tested and the above-mentioned command did not remove and/or change the .babel.json file.
Logcat after fixed:
06-16 14:55:48.670 5885 6650 D ReactNative: CatalystInstanceImpl.destroy() end
06-16 14:55:49.374 5885 6652 W ReactNativeJS: Require cycle: node_modules\react-native-reanimated\src\utils.js -> node_modules\react-native-reanimated\src\core\AnimatedBlock.js -> node_modules\react-native-reanimated\src\utils.js
06-16 14:55:49.374 5885 6652 W ReactNativeJS:
06-16 14:55:49.374 5885 6652 W ReactNativeJS: Require cycles are allowed, butcan result in uninitialized values. Consider refactoring to remove the need fora cycle.
06-16 14:55:49.374 5885 6652 W ReactNativeJS: Require cycle: node_modules\react-native-reanimated\src\base.js -> node_modules\react-native-reanimated\src\core\AnimatedCond.js -> node_modules\react-native-reanimated\src\utils.js -> node_modules\react-native-reanimated\src\core\AnimatedValue.js -> node_modules\react-native-reanimated\src\base.js
06-16 14:55:49.374 5885 6652 W ReactNativeJS:
06-16 14:55:49.374 5885 6652 W ReactNativeJS: Require cycles are allowed, butcan result in uninitialized values. Consider refactoring to remove the need fora cycle.
06-16 14:55:49.374 5885 6652 W ReactNativeJS: Require cycle: node_modules\react-native-reanimated\src\utils.js -> node_modules\react-native-reanimated\src\core\AnimatedValue.js -> node_modules\react-native-reanimated\src\utils.js
06-16 14:55:49.374 5885 6652 W ReactNativeJS:
06-16 14:55:49.374 5885 6652 W ReactNativeJS: Require cycles are allowed, butcan result in uninitialized values. Consider refactoring to remove the need fora cycle.
06-16 14:55:49.375 5885 6652 W ReactNativeJS: Require cycle: node_modules\react-native-reanimated\src\core\AnimatedValue.js -> node_modules\react-native-reanimated\src\derived\evaluateOnce.js -> node_modules\react-native-reanimated\src\core\AnimatedValue.js
06-16 14:55:49.375 5885 6652 W ReactNativeJS:
06-16 14:55:49.375 5885 6652 W ReactNativeJS: Require cycles are allowed, butcan result in uninitialized values. Consider refactoring to remove the need fora cycle.
06-16 14:55:49.375 5885 6652 W ReactNativeJS: Require cycle: node_modules\react-native-reanimated\src\base.js -> node_modules\react-native-reanimated\src\core\AnimatedCond.js -> node_modules\react-native-reanimated\src\utils.js -> node_modules\react-native-reanimated\src\core\AnimatedValue.js -> node_modules\react-native-reanimated\src\derived\evaluateOnce.js -> node_modules\react-native-reanimated\src\base.js
06-16 14:55:49.375 5885 6652 W ReactNativeJS:
06-16 14:55:49.375 5885 6652 W ReactNativeJS: Require cycles are allowed, butcan result in uninitialized values. Consider refactoring to remove the need fora cycle.
06-16 14:55:49.375 5885 6652 W ReactNativeJS: Require cycle: node_modules\react-native-reanimated\src\base.js -> node_modules\react-native-reanimated\src\core\AnimatedCond.js -> node_modules\react-native-reanimated\src\utils.js -> node_modules\react-native-reanimated\src\core\AnimatedValue.js -> node_modules\react-native-reanimated\src\derived\interpolate.js -> node_modules\react-native-reanimated\src\base.js
06-16 14:55:49.375 5885 6652 W ReactNativeJS:
06-16 14:55:49.375 5885 6652 W ReactNativeJS: Require cycles are allowed, butcan result in uninitialized values. Consider refactoring to remove the need fora cycle.
06-16 14:55:49.478 5885 6652 I ReactNativeJS: Running application "StormHoundsApp" with appParams: {"rootTag":201}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF
06-16 14:55:49.749 5885 5885 I ReactNative: [GESTURE HANDLER] Initialize gesture handler for root view com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView{32e1596 V.E...... ......ID 0,0-768,1136 #c9}
06-16 14:55:51.469 1831 1854 W audio_hw_generic: Not supplying enough data toHAL, expected position 5387280 , only wrote 5234400
06-16 14:55:52.561 1912 2108 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_SV_STATUS, 0, com.android.server.location.GnssLocationProvider$SvStatusInfo#b89f9d4)
06-16 14:55:52.562 1912 1926 I GnssLocationProvider: WakeLock released by handleMessage(REPORT_SV_STATUS, 0, com.android.server.location.GnssLocationProvider$SvStatusInfo#b89f9d4)
06-16 14:55:52.566 2537 2951 W ctxmgr : [AclManager]No 2 for (accnt=account#-517948760#, com.google.android.gms(10015):IndoorOutdoorProducer, vrsn=13280000,0, 3pPkg = null , 3pMdlId = null , pid = 2537). Was: 3 for 57, account#-517948760#
To have a cleaner log, I have excluded from above the parts that were the same as when the error was present.

In my case I stoped metro, cleaned the watchman list:
watchman watch-del-all
and started it again, with the --reset-cache parameter:
react-native start --reset-cache
After deploying the app once more, the error was gone. I didn't need to do anything else.
I think some java files got corrupted (perhaps a racing condition, between updatas?) and nothing else seemed to trigger the recreation of those files again.

Related

React Native crash IllegalArgumentException Could not convert class android.net.Uri$HierarchicalUri at com.facebook.react.bridge.Arguments.fromBundle

I'm creating a React Native chat / messenger app. In order to get the intent the app was launched with (say with a share intent), I am overriding the createReactActivityDelegate method in MainActivity.java
However, this is causing the app to crash repeatably with the following exceptions:
03-30 10:30:50.165 6977 7026 E AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
03-30 10:30:50.165 6977 7026 E AndroidRuntime: Process: com.heloprotocol.helo.app.rn.notificationtester, PID: 6977
03-30 10:30:50.165 6977 7026 E AndroidRuntime: java.lang.IllegalArgumentException: Could not convert class
03-30 10:30:50.165 6977 7026 E AndroidRuntime: at com.facebook.react.bridge.Arguments.fromBundle(Unknown Source:152)
03-30 10:30:50.165 6977 7026 E AndroidRuntime: at d.f.n.M.c(Unknown Source:40)
03-30 10:30:50.165 6977 7026 E AndroidRuntime: at d.f.n.M.b(Unknown Source:87)
03-30 10:30:50.165 6977 7026 E AndroidRuntime: at d.f.n.M.a(Unknown Source:0)
03-30 10:30:50.165 6977 7026 E AndroidRuntime: at d.f.n.G.run(Unknown Source:6)
03-30 10:30:50.165 6977 7026 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:794)
03-30 10:30:50.165 6977 7026 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
03-30 10:30:50.165 6977 7026 E AndroidRuntime: at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(Unknown Source:0)
03-30 10:30:50.165 6977 7026 E AndroidRuntime: at android.os.Looper.loop(Looper.java:176)
03-30 10:30:50.165 6977 7026 E AndroidRuntime: at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(Unknown Source:37)
03-30 10:30:50.165 6977 7026 E AndroidRuntime: at java.lang.Thread.run(Thread.java:764)
AND
03-31 12:58:53.844 29352 29396 E AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
03-31 12:58:53.844 29352 29396 E AndroidRuntime: Process: com.heloprotocol.helo.chat.app.rn.notificationtester, PID: 29352
03-31 12:58:53.844 29352 29396 E AndroidRuntime: java.lang.IllegalArgumentException: Could not convert class android.os.BinderProxy
03-31 12:58:53.844 29352 29396 E AndroidRuntime: at com.facebook.react.bridge.Arguments.fromBundle(Unknown Source:152)
03-31 12:58:53.844 29352 29396 E AndroidRuntime: at d.f.n.M.c(Unknown Source:40)
03-31 12:58:53.844 29352 29396 E AndroidRuntime: at d.f.n.M.b(Unknown Source:87)
03-31 12:58:53.844 29352 29396 E AndroidRuntime: at d.f.n.M.a(Unknown Source:0)
03-31 12:58:53.844 29352 29396 E AndroidRuntime: at d.f.n.G.run(Unknown Source:6)
03-31 12:58:53.844 29352 29396 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:873)
03-31 12:58:53.844 29352 29396 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
03-31 12:58:53.844 29352 29396 E AndroidRuntime: at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(Unknown Source:0)
03-31 12:58:53.844 29352 29396 E AndroidRuntime: at android.os.Looper.loop(Looper.java:193)
03-31 12:58:53.844 29352 29396 E AndroidRuntime: at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(Unknown Source:37)
03-31 12:58:53.844 29352 29396 E AndroidRuntime: at java.lang.Thread.run(Thread.java:764)
I can see the following exception in debug mode:
2020-03-16 17:26:05.214 31063-31063/com.heloprotocol.helo.app.rn.notificationtester E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.heloprotocol.helo.app.rn.notificationtester, PID: 31063
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.heloprotocol.helo.app.rn.notificationtester/com.heloprotocol.helo.app.rn.notificationtester.MainActivity}: java.lang.IllegalArgumentException: Could not convert class android.net.Uri$HierarchicalUri
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3047)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3182)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1916)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6898)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Caused by: java.lang.IllegalArgumentException: Could not convert class android.net.Uri$HierarchicalUri
at com.facebook.react.bridge.Arguments.fromBundle(Arguments.java:302)
at com.facebook.react.ReactInstanceManager.attachRootViewToInstance(ReactInstanceManager.java:1063)
at com.facebook.react.ReactInstanceManager.attachRootView(ReactInstanceManager.java:748)
at com.facebook.react.ReactRootView.attachToReactInstanceManager(ReactRootView.java:568)
at com.facebook.react.ReactRootView.startReactApplication(ReactRootView.java:399)
at com.facebook.react.ReactRootView.startReactApplication(ReactRootView.java:363)
at com.facebook.react.ReactDelegate.loadApp(ReactDelegate.java:102)
at com.facebook.react.ReactActivityDelegate.loadApp(ReactActivityDelegate.java:88)
at com.facebook.react.ReactActivityDelegate.onCreate(ReactActivityDelegate.java:83)
at com.facebook.react.ReactActivity.onCreate(ReactActivity.java:44)
at com.heloprotocol.helo.app.rn.notificationtester.MainActivity.onCreate(MainActivity.java:38)
at android.app.Activity.performCreate(Activity.java:7149)
at android.app.Activity.performCreate(Activity.java:7140)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1288)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3027)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3182)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1916)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6898)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
2020-03-16 17:26:05.249 31063-31458/com.heloprotocol.helo.app.rn.notificationtester D/OSTracker: OS Event: crash
2020-03-16 17:26:05.258 31063-31063/com.heloprotocol.helo.app.rn.notificationtester I/Process: Sending signal. PID: 31063 SIG: 9
How to fix this error ?

React Native Android - Build Successful - But Doesn't Open

My app builds successfully, opens on the emulator, then immediately shuts down. I spent almost 24 hours straight studying what could be wrong and going over all the answers and none of them work for me. Here is the final details...
BUILD SUCCESSFUL in 21s
262 actionable tasks: 1 executed, 261 up-to-date
info Running adb -s emulator-5554 reverse tcp:8081 tcp:8081
info Starting the app on emulator-5554 (adb -s emulator-5554 shell am start -n com.myapp/com.myapp.MainActivity)...
Starting: Intent { cmp=com.myapp/.MainActivity }
Would greatly appreciate someone figuring this out with me!
Here is the logcat...
10-17 13:27:27.409 3405 3492 I MicroDetector: Keeping mic open: false
10-17 13:27:27.409 3405 3492 I MicroDetectionWorker: #onError(false)
10-17 13:27:27.498 1756 2440 E GnssHAL_GnssInterface: gnssSvStatusCb: a: input svInfo.flags is 8
10-17 13:27:27.498 1756 2440 E GnssHAL_GnssInterface: gnssSvStatusCb: b: input svInfo.flags is 8
10-17 13:27:28.501 1756 2440 E GnssHAL_GnssInterface: gnssSvStatusCb: a: input svInfo.flags is 8
10-17 13:27:28.501 1756 2440 E GnssHAL_GnssInterface: gnssSvStatusCb: b: input svInfo.flags is 8
10-17 13:27:28.519 2021 2368 W AppOps : Noting op not finished: uid 10101 pkg com.google.android.gms code 41 time=1571344043502 duration=0
10-17 13:27:29.506 1756 2440 E GnssHAL_GnssInterface: gnssSvStatusCb: a: input svInfo.flags is 8
10-17 13:27:29.506 1756 2440 E GnssHAL_GnssInterface: gnssSvStatusCb: b: input svInfo.flags is 8
10-17 13:27:30.511 1756 2440 E GnssHAL_GnssInterface: gnssSvStatusCb: a: input svInfo.flags is 8
10-17 13:27:30.511 1756 2440 E GnssHAL_GnssInterface: gnssSvStatusCb: b: input svInfo.flags is 8
10-17 13:27:31.515 1756 2440 E GnssHAL_GnssInterface: gnssSvStatusCb: a: input svInfo.flags is 8
10-17 13:27:31.515 1756 2440 E GnssHAL_GnssInterface: gnssSvStatusCb: b: input svInfo.flags is 8
10-17 13:27:32.413 3405 3492 I MicroDetectionWorker: #startMicroDetector [speakerMode: 0]
10-17 13:27:32.414 3405 3492 W ErrorReporter: reportError [type: 211, code: 393244, bug: 0]: errorCode: 393244, engine: 0
try turning debugger off and on again
try building the code in xcode/android studio, inspect errors if any
usually it's a debugger issue for me. good luck!
Okay - I found the problem and have finally got this up and running. Way, way, way high up in the logcat was a message from Google Admob saying that I needed to add the appId in the meta tag of the AndroidManifest file. This was very hard to find because the logcat keeps running constantly and even if you look deep in the log it disappears quickly.
To figure this out I started adb logcat in a new shell (terminal window), gave it a second to fill up, then cleared it using CMD K, then in another shell ran react-native run-android.
When it fully built I immediately pressed Cmd C in the logcat window to stop it from running. Then I scrolled all the way to the top and found the error message from Google AdMob with instructions to add the following code to the AndroidManifest.xml file within the <application></application> section...
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-xxxxxxxxxxxxxxxx~yyyyyyyyyy"/>
It also stated that without this the app would crash. So I added my id and now have a running app in the emulator.

Crash on TF Detect app for some faster rcnn models.

I'm training some faster rcnn models with only one class on
my own data set. The training goes fine but when I export
model for inference and try to used it on android sample app
(TF Detect), I'm getting the following exception:
11-28 10:56:27.002 15666 16593 E AndroidRuntime: FATAL EXCEPTION: inference
11-28 10:56:27.002 15666 16593 E AndroidRuntime: Process: org.tensorflow.demo, PID: 15666
11-28 10:56:27.002 15666 16593 E AndroidRuntime: java.nio.BufferOverflowException
11-28 10:56:27.002 15666 16593 E AndroidRuntime: at java.nio.HeapFloatBuffer.put(HeapFloatBuffer.java:179)
11-28 10:56:27.002 15666 16593 E AndroidRuntime: at org.tensorflow.Tensor.writeTo(Tensor.java:488)
11-28 10:56:27.002 15666 16593 E AndroidRuntime: at org.tensorflow.contrib.android.TensorFlowInferenceInterface.fetch(TensorFlowInferenceInterface.java:478)
11-28 10:56:27.002 15666 16593 E AndroidRuntime: at org.tensorflow.contrib.android.TensorFlowInferenceInterface.fetch(TensorFlowInferenceInterface.java:432)
11-28 10:56:27.002 15666 16593 E AndroidRuntime: at org.tensorflow.demo.TensorFlowObjectDetectionAPIModel.recognizeImage(TensorFlowObjectDetectionAPIModel.java:167)
at the following line of code from TensorFlowObjectDetectionAPIModel class:
inferenceInterface.fetch(outputNames[0], outputLocations);
I tried these two models:
faster_rcnn_resnet101_pets
faster_rcnn_inception_v2_pets
Do you have any idea about what is causing this exception?
Regards,
I am using FasterRcnn, I've solved same issue by changing value of MAX_RESULTS from 100 to 500 in TensorFlowObjectDetectionAPIModel.java (TensorFlow android example app)
Problem is RCNN returns more output than SSD
Sorry, this is my first answer

Keras and TensorFlow: What means "Peer access not supported between device ordinals 0 and 1" and how to fix it?

I have 2 GPUs installed and when i train a model i get the following message. What means "Peer access not supported between device ordinals 0 and 1" and "Peer access not supported between device ordinals 1 and 0"? Is it an error is it something i have to fix? I mean, the model itself trains successfully in the end. I think it uses only one of the GPUs, not both. But i want to understand this message and fix the problem. Is there something i need to do?
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:135] successfully opened CUDA library cublas64_80.dll locally
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:135] successfully opened CUDA library cudnn64_5.dll locally
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:135] successfully opened CUDA library cufft64_80.dll locally
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:135] successfully opened CUDA library nvcuda.dll locally
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:135] successfully opened CUDA library curand64_80.dll locally
E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "BestSplits" device_type: "CPU"') for unknown op: BestSplits
E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "CountExtremelyRandomStats" device_type: "CPU"') for unknown op: CountExtremelyRandomStats
E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "FinishedNodes" device_type: "CPU"') for unknown op: FinishedNodes
E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "GrowTree" device_type: "CPU"') for unknown op: GrowTree
E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "ReinterpretStringToFloat" device_type: "CPU"') for unknown op: ReinterpretStringToFloat
E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "SampleInputs" device_type: "CPU"') for unknown op: SampleInputs
E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "ScatterAddNdim" device_type: "CPU"') for unknown op: ScatterAddNdim
E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "TopNInsert" device_type: "CPU"') for unknown op: TopNInsert
E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "TopNRemove" device_type: "CPU"') for unknown op: TopNRemove
E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "TreePredictions" device_type: "CPU"') for unknown op: TreePredictions
E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "UpdateFertileSlots" device_type: "CPU"') for unknown op: UpdateFertileSlots
Using TensorFlow backend.
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_device.cc:885] Found device 0 with properties:
name: GeForce GTX 970
major: 5 minor: 2 memoryClockRate (GHz) 1.253
pciBusID 0000:01:00.0
Total memory: 4.00GiB
Free memory: 3.31GiB
W c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\cuda\cuda_driver.cc:590] creating context when one is currently active; existing: 0000022BB5DD0500
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_device.cc:885] Found device 1 with properties:
name: GeForce GTX 970
major: 5 minor: 2 memoryClockRate (GHz) 1.253
pciBusID 0000:02:00.0
Total memory: 4.00GiB
Free memory: 3.31GiB
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_device.cc:777] Peer access not supported between device ordinals 0 and 1
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_device.cc:777] Peer access not supported between device ordinals 1 and 0
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_device.cc:906] DMA: 0 1
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_device.cc:916] 0: Y N
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_device.cc:916] 1: N Y
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_device.cc:975] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX 970, pci bus id: 0000:01:00.0)
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_device.cc:975] Creating TensorFlow device (/gpu:1) -> (device: 1, name: GeForce GTX 970, pci bus id: 0000:02:00.0)
This just means that the gpus cannot communicate (pass information between gpu0 to gpu1 or vice versa) without passing the data back to cpu first.

Active,Notifying feature is not working in Worklight 6.2

I was trying to notify the users of a specific version using Active, Notifying feature in Worklight console (Wl 6.2). It was not successful and the below message was thrown in the logs.
We have recently updated the iFix from IBM (Worklight v6.2.0.1 InterimFix 201511281300). Since we are trying this feature for first time , not sure if this because of this fix.
Any help would be greatly appreciated.
Server Logs:
[12/11/15 8:59:58:564 SGT] 00000127 com.ibm.worklight.admin.actions.BaseTransaction E RuntimeMBeanCallable.call() exception
java.lang.reflect.UndeclaredThrowableException
at $Proxy213.setAccessRule(Unknown Source)
at com.ibm.worklight.admin.actions.ApplicationEnvironmentAccessRuleChangeTransaction.prepareMBean(ApplicationEnvironmentAccessRuleChangeTransaction.java:170)
at com.ibm.worklight.admin.actions.util.RuntimeMBeanWorkerThreadCaller$RuntimeMBeanCallable.call(RuntimeMBeanWorkerThreadCaller.java:75)
at com.ibm.worklight.admin.actions.util.RuntimeMBeanWorkerThreadCaller.callSynchronously(RuntimeMBeanWorkerThreadCaller.java:182)
at com.ibm.worklight.admin.actions.util.RuntimeMBeanPoolCaller.callRuntimeMBeans(RuntimeMBeanPoolCaller.java:93)
at com.ibm.worklight.admin.actions.BaseTransaction.prepare(BaseTransaction.java:395)
at com.ibm.worklight.admin.actions.BaseTransaction.internalRun(BaseTransaction.java:311)
at com.ibm.worklight.admin.actions.BaseTransaction.run(BaseTransaction.java:227)
at com.ibm.worklight.admin.services.ApplicationEnvService.setVersionAccessRuleInternal(ApplicationEnvService.java:657)
at com.ibm.worklight.admin.services.ApplicationEnvService.setVersionAccessRule(ApplicationEnvService.java:514)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.wink.server.internal.handlers.InvokeMethodHandler.handleRequest(InvokeMethodHandler.java:63)
at org.apache.wink.server.handlers.AbstractHandler.handleRequest(AbstractHandler.java:33)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
at org.apache.wink.server.internal.handlers.CreateInvocationParametersHandler.handleRequest(CreateInvocationParametersHandler.java:54)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
at org.apache.wink.server.handlers.AbstractHandler.handleRequest(AbstractHandler.java:34)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleSubResourceMethod(FindResourceMethodHandler.java:183)
at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleRequest(FindResourceMethodHandler.java:110)
at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleSubResourceLocator(FindResourceMethodHandler.java:230)
at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleRequest(FindResourceMethodHandler.java:115)
at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleSubResourceLocator(FindResourceMethodHandler.java:230)
at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleRequest(FindResourceMethodHandler.java:115)
at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleSubResourceLocator(FindResourceMethodHandler.java:230)
at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleRequest(FindResourceMethodHandler.java:115)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
at org.apache.wink.server.internal.handlers.FindRootResourceHandler.handleRequest(FindRootResourceHandler.java:95)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
at org.apache.wink.server.internal.handlers.HeadMethodHandler.handleRequest(HeadMethodHandler.java:53)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
at org.apache.wink.server.internal.handlers.OptionsMethodHandler.handleRequest(OptionsMethodHandler.java:46)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
at org.apache.wink.server.internal.handlers.SearchResultHandler.handleRequest(SearchResultHandler.java:33)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
at org.apache.wink.server.internal.log.ResourceInvocation.handleRequest(ResourceInvocation.java:92)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
at org.apache.wink.server.internal.log.Requests.handleRequest(Requests.java:76)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
at org.apache.wink.server.handlers.AbstractHandlersChain.run(AbstractHandlersChain.java:52)
at org.apache.wink.server.internal.RequestProcessor.handleRequestWithoutFaultBarrier(RequestProcessor.java:207)
at org.apache.wink.server.internal.RequestProcessor.handleRequest(RequestProcessor.java:154)
at org.apache.wink.server.internal.servlet.RestServlet.service(RestServlet.java:133)
at com.ibm.worklight.admin.services.RestServlet.service(RestServlet.java:39)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1240)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:760)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:127)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:88)
at com.ibm.worklight.admin.services.RestFilter.doFilter(RestFilter.java:61)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:194)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:85)
at com.ibm.worklight.admin.common.filter.HSTSFilter.doFilter(HSTSFilter.java:110)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:194)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:85)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:949)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1029)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:4499)
at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost$2.handleRequest(DynamicVirtualHost.java:282)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:954)
at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost$2.run(DynamicVirtualHost.java:252)
at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink$TaskWrapper.run(HttpDispatcherLink.java:584)
at com.ibm.ws.threading.internal.Worker.executeWork(Worker.java:439)
at com.ibm.ws.threading.internal.Worker.run(Worker.java:421)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.InvalidObjectException: No constructor has a #ConstructorProperties for this set of items: [action, createdTime, downloadLink, message, multiLanguageMessagesJSON]
at com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory$CompositeBuilderViaConstructor.fromCompositeData(Unknown Source)
at com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory$CompositeMapping.fromNonNullOpenValue(Unknown Source)
at com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory$NonNullMXBeanMapping.fromOpenValue(Unknown Source)
at com.sun.jmx.mbeanserver.ConvertingMethod.fromOpenParameters(Unknown Source)
at com.sun.jmx.mbeanserver.ConvertingMethod.invokeWithOpenReturn(Unknown Source)
at com.sun.jmx.mbeanserver.ConvertingMethod.invokeWithOpenReturn(Unknown Source)
at com.sun.jmx.mbeanserver.MXBeanIntrospector.invokeM2(Unknown Source)
at com.sun.jmx.mbeanserver.MXBeanIntrospector.invokeM2(Unknown Source)
at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(Unknown Source)
at com.sun.jmx.mbeanserver.PerInterface.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.MBeanSupport.invoke(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
at com.ibm.ws.kernel.boot.jmx.service.MBeanServerForwarderDelegate.invoke(MBeanServerForwarderDelegate.java:197)
at com.ibm.ws.jmx.internal.DelayedMBeanActivator.invoke(DelayedMBeanActivator.java:445)
at com.ibm.ws.kernel.boot.jmx.internal.PlatformMBeanServer.invoke(PlatformMBeanServer.java:272)
at com.ibm.ws.jmx.connector.server.rest.helpers.MBeanServerHelper.invoke(MBeanServerHelper.java:159)
at com.ibm.ws.jmx.connector.server.rest.resources.MBeanResource.invocation(MBeanResource.java:172)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.wink.server.internal.handlers.InvokeMethodHandler.handleRequest(InvokeMethodHandler.java:63)
at org.apache.wink.server.handlers.AbstractHandler.handleRequest(AbstractHandler.java:33)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)
at org.apache.wink.server.internal.handlers.CreateInvocationParametersHandler.handleRequest(CreateInvocationParametersHandler.java:54)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)
at org.apache.wink.server.handlers.AbstractHandler.handleRequest(AbstractHandler.java:34)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)
at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleSubResourceMethod(FindResourceMethodHandler.java:188)
at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleRequest(FindResourceMethodHandler.java:110)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)
at org.apache.wink.server.internal.handlers.FindRootResourceHandler.handleRequest(FindRootResourceHandler.java:95)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)
at org.apache.wink.server.internal.handlers.HeadMethodHandler.handleRequest(HeadMethodHandler.java:53)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)
at org.apache.wink.server.internal.handlers.OptionsMethodWADLHandler.handleRequest(OptionsMethodWADLHandler.java:51)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)
at org.apache.wink.server.internal.handlers.SearchResultHandler.handleRequest(SearchResultHandler.java:33)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)
at org.apache.wink.server.internal.log.ResourceInvocation.handleRequest(ResourceInvocation.java:92)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)
at org.apache.wink.server.internal.log.Requests.handleRequest(Requests.java:76)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)
at org.apache.wink.server.handlers.AbstractHandlersChain.run(AbstractHandlersChain.java:60)
at org.apache.wink.server.internal.RequestProcessor.handleRequestWithoutFaultBarrier(RequestProcessor.java:207)
at org.apache.wink.server.internal.RequestProcessor.handleRequest(RequestProcessor.java:154)
at org.apache.wink.server.internal.servlet.RestServlet.service(RestServlet.java:124)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1240)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:760)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:127)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:88)
at com.ibm.ws.app.manager.wab.internal.OsgiDirectoryProtectionFilter.doFilter(OsgiDirectoryProtectionFilter.java:96)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:194)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:85)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:949)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1029)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:78)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:885)
... 5 more
Activity Log:
Transaction 13752
type: SET_APPLICATION_ENV_VERSION_ACCESS_RULE
status: FAILURE
dateCreated : 2015-12-11T00:59:58.361Z
dateUpdated: 2015-12-11T00:59:59.297Z
server: Liberty
description:
appVersion:
applicationName: ABCD
environment: iphone
version: 1.0
action: NOTIFY
createdAtDate: 2015-12-11T00:59:58.299Z
downloadLink:
message: hello
errors:
1 :
mbeanName: com.worklight.common.server.jmx.api:qualifier=ABCD,type=ProjectManagement_KOM-MAP-WLSRV
date: 2015-12-11T00:59:58.627Z
phase: PREPARE
code: FAILURE
exception: UndeclaredThrowableException
details: UndeclaredThrowableException
The exception clearly indicates a problem at either creating of saving the active notify rule. Please open a PMR so that it will be investigated and resolved. You'll then receive an iFix...