[jira] [Comment Edited] (CB-9189) java.lang.NullPointerException on select from library

2015-12-08 Thread sandrine gomez (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15046966#comment-15046966
 ] 

sandrine gomez edited comment on CB-9189 at 12/8/15 3:27 PM:
-

I also have encountered a java.lang.NullPointerException with Camera plugin.

Do you think this is the same problem ?

On Android 4.2 (Samsung Galaxy Trend Plus) :

java.lang.RuntimeException: Unable to resume activity 
{com.neopostshipping.pod4carriers/com.neopostshipping.pod4carriers.POD4Carriers}:
 java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, 
request=34, result=-1, data=null} to activity 
{com.neopostshipping.pod4carriers/com.neopostshipping.pod4carriers.POD4Carriers}:
 java.lang.NullPointerException
at 
android.app.ActivityThread.performResumeActivity(ActivityThread.java:2853)
at 
android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2882)
at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2314)
at android.app.ActivityThread.access$700(ActivityThread.java:157)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1289)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:5317)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: Failure delivering result 
ResultInfo{who=null, request=34, result=-1, data=null} to activity 
{com.neopostshipping.pod4carriers/com.neopostshipping.pod4carriers.POD4Carriers}:
 java.lang.NullPointerException
at android.app.ActivityThread.deliverResults(ActivityThread.java:3433)
at 
android.app.ActivityThread.performResumeActivity(ActivityThread.java:2827)
... 12 more
Caused by: java.lang.NullPointerException
at 
org.apache.cordova.camera.CameraLauncher.processResultFromCamera(CameraLauncher.java:445)
at 
org.apache.cordova.camera.CameraLauncher.onActivityResult(CameraLauncher.java:674)
at 
org.apache.cordova.CordovaInterfaceImpl.onActivityResult(CordovaInterfaceImpl.java:120)
at 
org.apache.cordova.CordovaActivity.onActivityResult(CordovaActivity.java:353)
at android.app.Activity.dispatchActivityResult(Activity.java:5515)
at android.app.ActivityThread.deliverResults(ActivityThread.java:3429)
... 13 more


was (Author: s.gomez):
I also have encountered a java.lang.NullPointerException while saving a picture 
taken with Camera plugin.

Do you think this is the same problem ?

On Android 4.2 (Samsung Galaxy Trend Plus) :

java.lang.RuntimeException: Unable to resume activity 
{com.neopostshipping.pod4carriers/com.neopostshipping.pod4carriers.POD4Carriers}:
 java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, 
request=34, result=-1, data=null} to activity 
{com.neopostshipping.pod4carriers/com.neopostshipping.pod4carriers.POD4Carriers}:
 java.lang.NullPointerException
at 
android.app.ActivityThread.performResumeActivity(ActivityThread.java:2853)
at 
android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2882)
at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2314)
at android.app.ActivityThread.access$700(ActivityThread.java:157)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1289)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:5317)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: Failure delivering result 
ResultInfo{who=null, request=34, result=-1, data=null} to activity 
{com.neopostshipping.pod4carriers/com.neopostshipping.pod4carriers.POD4Carriers}:
 java.lang.NullPointerException
at android.app.ActivityThread.deliverResults(ActivityThread.java:3433)
at 
android.app.ActivityThread.performResumeActivity(ActivityThread.java:2827)
... 12 more
Caused by: java.lang.NullPointerException
at 
org.apache.cordova.camera.CameraLauncher.processResultFromCamera(CameraLauncher.java:445)
at 

[jira] [Comment Edited] (CB-9189) java.lang.NullPointerException on select from library

2015-10-19 Thread Richard B Knoll (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=14964322#comment-14964322
 ] 

Richard B Knoll edited comment on CB-9189 at 10/20/15 12:45 AM:


Yes, I can confirm this is present in the camera plugin v1.2.0 on Android 5.1.1 
(not Cyanogenmod). It definitely seems to be related to Activities getting 
killed in the background. There is nothing we can do about the Activity dying, 
but crashing definitely seems like the incorrect response. I've updated the 
priority to critical because of the amount of activity on this thread.


was (Author: riknoll):
Yes, I can confirm this is present in the camera plugin v1.2.0 on Android 
5.1.1. It definitely seems to be related to Activities getting killed in the 
background. There is nothing we can do about the Activity dying, but crashing 
definitely seems like the incorrect response. I've updated the priority to 
critical because of the amount of activity on this thread.

> java.lang.NullPointerException on select from library
> -
>
> Key: CB-9189
> URL: https://issues.apache.org/jira/browse/CB-9189
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin Camera
>Affects Versions: 5.0.1
> Environment: Android. 
>Reporter: Mark Harding
>Priority: Critical
>  Labels: Triaged, android, camera, file, library
>
> I'm getting multiple crash reports via google play. I'm unable to replicate 
> myself but I think it could be related to CyanogenMod.
> Android 5.0 (LG Leon 4G LTE (c50))
> {code}
> java.lang.RuntimeException: Unable to resume activity 
> {com.minds.mobile/com.minds.mobile.MainActivity}: java.lang.RuntimeException: 
> Failure delivering result ResultInfo{who=null, request=18, result=-1, 
> data=Intent { 
> dat=content://com.google.android.apps.photos.contentprovider/0/1/https://lh3.googleusercontent.com/xZgV-3YvXmuR6W7uEAJOLuHHSI0nrkzZTGESgcggVi_ovpv8qkc=s0-d/ACTUAL
>  flg=0x1 (has clip) }} to activity 
> {com.minds.mobile/com.minds.mobile.MainActivity}: 
> java.lang.NullPointerException: Attempt to invoke virtual method 'void 
> org.apache.cordova.CallbackContext.success(java.lang.String)' on a null 
> object reference
> at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3040)
> at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3071)
> at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2410)
> at android.app.ActivityThread.access$800(ActivityThread.java:155)
> at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1323)
> at android.os.Handler.dispatchMessage(Handler.java:102)
> at android.os.Looper.loop(Looper.java:135)
> at android.app.ActivityThread.main(ActivityThread.java:5376)
> at java.lang.reflect.Method.invoke(Native Method)
> at java.lang.reflect.Method.invoke(Method.java:372)
> at 
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:908)
> at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:703)
> Caused by: java.lang.RuntimeException: Failure delivering result 
> ResultInfo{who=null, request=18, result=-1, data=Intent { 
> dat=content://com.google.android.apps.photos.contentprovider/0/1/https://lh3.googleusercontent.com/xZgV-3YvXmuR6W7uEAJOLuHHSI0nrkzZTGESgcggVi_ovpv8qkc=s0-d/ACTUAL
>  flg=0x1 (has clip) }} to activity 
> {com.minds.mobile/com.minds.mobile.MainActivity}: 
> java.lang.NullPointerException: Attempt to invoke virtual method 'void 
> org.apache.cordova.CallbackContext.success(java.lang.String)' on a null 
> object reference
> at android.app.ActivityThread.deliverResults(ActivityThread.java:3645)
> at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3026)
> ... 11 more
> Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 
> 'void org.apache.cordova.CallbackContext.success(java.lang.String)' on a null 
> object reference
> at 
> org.apache.cordova.camera.CameraLauncher.processResultFromGallery(CameraLauncher.java:613)
> at 
> org.apache.cordova.camera.CameraLauncher.onActivityResult(CameraLauncher.java:695)
> at 
> org.apache.cordova.CordovaInterfaceImpl.onActivityResult(CordovaInterfaceImpl.java:120)
> at 
> org.apache.cordova.CordovaActivity.onActivityResult(CordovaActivity.java:321)
> at android.app.Activity.dispatchActivityResult(Activity.java:6223)
> at android.app.ActivityThread.deliverResults(ActivityThread.java:3641)
> ... 12 more
> {code}
> Android 4.4 (Moto G)
> {code}
> java.lang.RuntimeException: Unable to resume activity 
> {com.minds.mobile/com.minds.mobile.MainActivity}: java.lang.RuntimeException: 
> Failure delivering result ResultInfo{who=null, request=18, result=-1, 
> data=Intent { dat=content://media/external/images/media/31135 flg=0x1 }} to 
> activity 

[jira] [Comment Edited] (CB-9189) java.lang.NullPointerException on select from library

2015-08-14 Thread Elodie Corbel (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14696782#comment-14696782
 ] 

Elodie Corbel edited comment on CB-9189 at 8/14/15 9:56 AM:


My app is also crashing with same error. I don't use Crosswalk and it crashes 
on a Sony Xperia SP with Cyanogenmod 10.2 (Android 4.3.1). It doesn't always 
happen.
Maybe the problem is Cyanogenmod ?
Here is the log :

{code}
E/AndroidRuntime(21796): FATAL EXCEPTION: main
E/AndroidRuntime(21796): java.lang.RuntimeException: Unable to resume activity 
{com.monappli/com.monappli.MainActivity}: java.lang.RuntimeException: Failure 
delivering result ResultInfo{who=null, request=33, result=-1, data=null
} to activity {com.monappli/com.monappli.MainActivity}: 
java.lang.NullPointerException
E/AndroidRuntime(21796):at 
android.app.ActivityThread.performResumeActivity(ActivityThread.java:2918)
E/AndroidRuntime(21796):at 
android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2947)
E/AndroidRuntime(21796):at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2394)
E/AndroidRuntime(21796):at 
android.app.ActivityThread.access$600(ActivityThread.java:153)
E/AndroidRuntime(21796):at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1269)
E/AndroidRuntime(21796):at 
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(21796):at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(21796):at 
android.app.ActivityThread.main(ActivityThread.java:5289)
E/AndroidRuntime(21796):at java.lang.reflect.Method.invokeNative(Native 
Method)
E/AndroidRuntime(21796):at 
java.lang.reflect.Method.invoke(Method.java:525)
E/AndroidRuntime(21796):at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
E/AndroidRuntime(21796):at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:555)
E/AndroidRuntime(21796):at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(21796): Caused by: java.lang.RuntimeException: Failure 
delivering result ResultInfo{who=null, request=33, re
sult=-1, data=null} to activity {com.monappli/com.monappli.MainActivity}: 
java.lang.NullPointerExceptio
n
E/AndroidRuntime(21796):at 
android.app.ActivityThread.deliverResults(ActivityThread.java:3495)
E/AndroidRuntime(21796):at 
android.app.ActivityThread.performResumeActivity(ActivityThread.java:2905)
E/AndroidRuntime(21796):... 12 more
E/AndroidRuntime(21796): Caused by: java.lang.NullPointerException
E/AndroidRuntime(21796):at 
org.apache.cordova.camera.CameraLauncher.processResultFromCamera(CameraLauncher.java:400)
E/AndroidRuntime(21796):at 
org.apache.cordova.camera.CameraLauncher.onActivityResult(CameraLauncher.java:674)
E/AndroidRuntime(21796):at 
org.apache.cordova.CordovaInterfaceImpl.onActivityResult(CordovaInterfaceImpl.java:120)
E/AndroidRuntime(21796):at 
org.apache.cordova.CordovaActivity.onActivityResult(CordovaActivity.java:320)
E/AndroidRuntime(21796):at 
android.app.Activity.dispatchActivityResult(Activity.java:5322)
E/AndroidRuntime(21796):at 
android.app.ActivityThread.deliverResults(ActivityThread.java:3491)
E/AndroidRuntime(21796):... 13 more
{code}


was (Author: ecorbel):
My app is also crashing with same error. I don't use Crosswalk and it crashes 
on a Sony Xperia SP with Cyanogenmod 10.2 (Android 4.3.1).
Maybe the problem is Cyanogenmod ?
Here is the log :

{code}
E/AndroidRuntime(21796): FATAL EXCEPTION: main
E/AndroidRuntime(21796): java.lang.RuntimeException: Unable to resume activity 
{com.monappli/com.monappli.MainActivity}: java.lang.RuntimeException: Failure 
delivering result ResultInfo{who=null, request=33, result=-1, data=null
} to activity {com.monappli/com.monappli.MainActivity}: 
java.lang.NullPointerException
E/AndroidRuntime(21796):at 
android.app.ActivityThread.performResumeActivity(ActivityThread.java:2918)
E/AndroidRuntime(21796):at 
android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2947)
E/AndroidRuntime(21796):at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2394)
E/AndroidRuntime(21796):at 
android.app.ActivityThread.access$600(ActivityThread.java:153)
E/AndroidRuntime(21796):at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1269)
E/AndroidRuntime(21796):at 
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(21796):at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(21796):at 
android.app.ActivityThread.main(ActivityThread.java:5289)
E/AndroidRuntime(21796):at java.lang.reflect.Method.invokeNative(Native 
Method)
E/AndroidRuntime(21796):at 
java.lang.reflect.Method.invoke(Method.java:525)