-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Annotation interface javax.ws.rs.PathParam has no element 'value' (Android) #967
Comments
The first exception is actually just a warning log and can be ignored fi you want. It does point to some issue though. I would guess that the The second output is an exception and the message says "This is a bug in rescu", which is interesting. I think it could be related to this issue: mmazi/rescu#50 @mmazi Could you share your wisdom here? |
Thanks for the answer. I'm able to workaround the second exception by fetching all the tickers from the exchange. It is not ideal but, it works.
|
@kryptohash , which version(s) of Android does this happen on? Have you tried multiple versions? Did the same thing happen? Which version of XChange are you using? I know you've found a workaround for your issue, but providing this information would help us with debugging. The only thing I can think of that could be the reason for the rescu error is a strange version of Java (or Android), where the @kryptohash , if you can, it would be also great if you could reproduce the error using the latest version of rescu (this won't fix the issue, but should produce a more informative error message); if you're using Maven, just add this to your
|
I'm building the App using the latest and greatest for Android. This is API 22 (or Android 5.1.1 Lollipop).
Here is the build.gradle content
|
Let me think out loud a bit, since I'm still groping in the dark about this. The core problem is that rescu can't find the
The Here's the code that fails:
I can think of a few possible ways this can happen:
I find all of the above a bit far fetched though. Anyone has any other ideas? Also, the issue does not seem to be limited to EmpoEx (but should appear at least for all exchanges that use |
I tried pulling the Doge-BTC ticker from Cryptsy Exchange and I got the same exact exception. So, the problem affects all the exchanges that use PathParam.
This is the code
|
I just encountered the same problem, but only after enabling ProGuard on my Android project. Therefore I'm pretty sure this problem is ProGuard related. @kryptohash Maybe try to disable ProGuard and see if the error still occurs. If I find a way to get this working with ProGuard enabled I will let you know. Or if you find a way, please let me know. |
Quick googling reveals that putting something like this in the
(Perhpas other *Param classes etc. in Since @kryptohash has confirmed (via code) that he uses ProGuard, and this is a general and well-known ProGuard issue not related to rescu, I'm closing this. |
Thanks, @omnibrain ! |
I can confirm that
solves the problem! |
Thanks @omnibrain and @mmazi. Everything works now. You guys rock! |
I'm getting the below exception on the Android Wallet that I'm developing for my altcoin and I cannot figure out why.
So far, EmpoEx is the only exchange trading my coin so, I'm kinda stuck with this problem.
Here are snips of my code:
Here is the content of the empoex.json file located under \main\resources (Added LTC/BTC to test)
Also, see the screenshot showing Android Studio halted at the breakpoint.
The text was updated successfully, but these errors were encountered: