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

Sharing files not possible: java.lang.NumberFormatException: For input string: in GetActivitiesRemoteOperation #14517

Open
4 tasks done
aegy025 opened this issue Feb 9, 2025 · 5 comments · May be fixed by nextcloud/android-library#1672
Assignees
Labels
bug feature: sharing to/from other apps performance: misc lag, ANR, etc and rarer exceptions/errors that don't have their own labels stable-3.30

Comments

@aegy025
Copy link

aegy025 commented Feb 9, 2025

⚠️ Before posting ⚠️

  • This is a bug, not a question or an enhancement.
  • I've searched for similar issues and didn't find a duplicate.
  • I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • I agree to follow Nextcloud's Code of Conduct.

Steps to reproduce

Cause of error

Exception in thread "AsyncTask #3" java.lang.RuntimeException: An error occurred while executing doInBackground()
    at android.os.AsyncTask$4.done(AsyncTask.java:415)
    at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:381)
    at java.util.concurrent.FutureTask.setException(FutureTask.java:250)
    at java.util.concurrent.FutureTask.run(FutureTask.java:269)
    at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
    at java.lang.Thread.run(Thread.java:1012)
Caused by: Exception in thread "AsyncTask #3" java.lang.NumberFormatException: For input string: "2291134285"
    at java.lang.Integer.parseInt(Integer.java:790)
    at java.lang.Integer.parseInt(Integer.java:908)
    at com.owncloud.android.lib.resources.activities.GetActivitiesRemoteOperation.run(GetActivitiesRemoteOperation.java:117)
    at com.owncloud.android.lib.common.operations.RemoteOperation.execute(RemoteOperation.java:208)
    at com.owncloud.android.ui.activities.data.activities.ActivitiesServiceApiImpl$GetActivityListTask.doInBackground(ActivitiesServiceApiImpl.java:86)
    at com.owncloud.android.ui.activities.data.activities.ActivitiesServiceApiImpl$GetActivityListTask.doInBackground(ActivitiesServiceApiImpl.java:52)
    at android.os.AsyncTask$3.call(AsyncTask.java:394)
    at java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
    at java.lang.Thread.run(Thread.java:1012)

App information

  • ID: com.nextcloud.client
  • Version: 30300890
  • Build flavor: gplay

Device information

  • Brand: Sony
  • Device: XQ-CT54
  • Model: XQ-CT54
  • Id: 64.2.A.2.235
  • Product: XQ-CT54_EEA

Firmware

  • SDK: 34
  • Release: 14
  • Incremental: 064002A002023500519766968

Expected behaviour

Sharing file

Actual behaviour

Error, see error report above.

Android version

14

Device brand and model

Sony Xperia IV

Stock or custom OS?

Stock

Nextcloud android app version

3.30.8

Nextcloud server version

Nextcloud Hub 8

Using a reverse proxy?

I don't know

Android logs

Cause of error

Exception in thread "AsyncTask #3" java.lang.RuntimeException: An error occurred while executing doInBackground()
    at android.os.AsyncTask$4.done(AsyncTask.java:415)
    at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:381)
    at java.util.concurrent.FutureTask.setException(FutureTask.java:250)
    at java.util.concurrent.FutureTask.run(FutureTask.java:269)
    at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
    at java.lang.Thread.run(Thread.java:1012)
Caused by: Exception in thread "AsyncTask #3" java.lang.NumberFormatException: For input string: "2291134285"
    at java.lang.Integer.parseInt(Integer.java:790)
    at java.lang.Integer.parseInt(Integer.java:908)
    at com.owncloud.android.lib.resources.activities.GetActivitiesRemoteOperation.run(GetActivitiesRemoteOperation.java:117)
    at com.owncloud.android.lib.common.operations.RemoteOperation.execute(RemoteOperation.java:208)
    at com.owncloud.android.ui.activities.data.activities.ActivitiesServiceApiImpl$GetActivityListTask.doInBackground(ActivitiesServiceApiImpl.java:86)
    at com.owncloud.android.ui.activities.data.activities.ActivitiesServiceApiImpl$GetActivityListTask.doInBackground(ActivitiesServiceApiImpl.java:52)
    at android.os.AsyncTask$3.call(AsyncTask.java:394)
    at java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
    at java.lang.Thread.run(Thread.java:1012)

App information

  • ID: com.nextcloud.client
  • Version: 30300890
  • Build flavor: gplay

Device information

  • Brand: Sony
  • Device: XQ-CT54
  • Model: XQ-CT54
  • Id: 64.2.A.2.235
  • Product: XQ-CT54_EEA

Firmware

  • SDK: 34
  • Release: 14
  • Incremental: 064002A002023500519766968

Server error logs

Additional information

No response

@alexknop
Copy link
Collaborator

@aegy025 can you provide the steps that you are taking to get this error so I can try to reproduce the problem?

@aegy025
Copy link
Author

aegy025 commented Feb 13, 2025 via email

@alexknop
Copy link
Collaborator

@aegy025 I mean what steps are you taking to share. It is not clear where you are doing this from in order for you to receive an error.
For instance, are you opening Nextcloud, finding a file in your cloud instance and trying to share the file via Messages, Email, or any other Android application?
Or are you finding a file on your phone and trying to share it by choosing Nextcloud, which creates an upload as opposed to Messages, Email, etc.

These details matter to get proper troubleshooting done.

@aegy025
Copy link
Author

aegy025 commented Feb 14, 2025 via email

@alperozturk96
Copy link
Collaborator

Hello.

Thanks for the report. I will try to reproduce it. Shared stack trace might help.

@joshtrichards joshtrichards added feature: sharing to/from other apps stable-3.30 performance: misc lag, ANR, etc and rarer exceptions/errors that don't have their own labels labels Feb 25, 2025
@joshtrichards joshtrichards changed the title Sharing files not possible Sharing files not possible: java.lang.NumberFormatException: For input string: in GetActivitiesRemoteOperation Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug feature: sharing to/from other apps performance: misc lag, ANR, etc and rarer exceptions/errors that don't have their own labels stable-3.30
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants