question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"UnsupportedOperationException" during upload Android file

See original GitHub issue

Environment

– Java – : openjdk 12 2019-03-19 OpenJDK Runtime Environment (build 12+33) OpenJDK 64-Bit Server VM (build 12+33, mixed mode, sharing)

– OS – : System Version: macOS 10.14.3 (18D109) Kernel Version: Darwin 18.2.0

– CLI – : crowdin: stable 2.0.28

Reproduce

$ crowdin upload sources --config crowdin.yml 
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
Exception in thread "main" java.lang.ExceptionInInitializerError
       at com.crowdin.cli.commands.Commands.initCli(Commands.java:858)
       at com.crowdin.cli.commands.Commands.initialize(Commands.java:128)
       at com.crowdin.cli.commands.Commands.run(Commands.java:232)
       at com.crowdin.cli.Cli.main(Cli.java:17)
Caused by: java.lang.UnsupportedOperationException: No class provided, and an appropriate one cannot be found.
       at org.apache.logging.log4j.LogManager.callerClass(LogManager.java:555)
       at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:580)
       at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:567)
       at com.crowdin.client.CrowdinApiClientImpl.<clinit>(CrowdinApiClientImpl.java:22)
       ... 4 more

Update

It’s seems to be issue of compatibility with my java version. I got it working with

java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)

As I prefer to use the latest SDK system wide, i’m using jenv to set the java version inside the folder where I use crowdin.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
rohalskyycommented, Apr 8, 2019

Hi there @anis-campos ! Our developers are aware of this kind of issue and already working to fix it in the nearest! Really glad to hear that you’ve found a workaround for the time being. We’ll let you know as soon as everything is ready.

0reactions
rohalskyycommented, Apr 10, 2019

This is great news! Thanks for the confirmation!

Read more comments on GitHub >

github_iconTop Results From Across the Web

UnsupportedOperationException with MultiPart file upload ...
When using an alternative FileSystem with FilePart.transferTo I am seeing an UnsupportedOperationException thrown during multipart file upload.
Read more >
Problem forking build scan upload... java.lang ...
Problem forking build scan upload FAILURE: Build failed with an exception. * What went wrong: java.lang.UnsupportedOperationException (no ...
Read more >
How to Fix the Unsupported Operation Exception in Java
An UnsupportedOperationException is thrown when a requested operation cannot be performed because it is not supported for that particular class.
Read more >
Support File Upload for X.509 authenticated devices #371
Exception in thread "main" java.lang.UnsupportedOperationException: File Upload does not support x509 authentication
Read more >
Android N crashes in TextAppearanceSpan with Failed to ...
It is somehow related to creating a WebView. If I do not create the WebView, then the crash does not happen. BackStack: java.lang.UnsupportedOperationException: ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found