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
Java - Unable to parse XML (Unparsable date) #273
Comments
Looks like the XML data is broken for those profiles. Do you have examples or does it fail for all profiles? Dates have always been problematic in the XML data because of various format changes and inconsistencies. |
I did a quick test on an Android app.
Results : Only the first and the last returned the SteamId64. The rest returned the same error.
Took a look in the profile xml files for memberSince tag. The date for all of them is similar, so the one causing the crash on the second to fifth profile was pretty weird. The code seems to be unable to parse the date and causing it to run
Thanks a lot, and sorry for any English sentence error. |
Do you have any profile IDs or custom URLs that I can check? |
Will remove when you've replied me. The above result is used in this order.
|
Ok, I'll have a look. |
Sorry, I'm unable to reproduce this problem. Can you give some information about your environment? Java version and locale in particular. |
I got a feeling it's due to the Java environment I'm working on/targeted for the Android project. I'm using JDK v 1.8.0_31. |
I am having the same problem. It happens when you allow the library to fetch the id's data on creation, and seems to be happening regardless of what I put in. I am also using this with an android application |
Can you provide example profiles? |
I haven't been able to get it to work, so I have been using the profile "demomenz" which I found on the usage section of the website |
@liammcnabb What Java and Steam Condenser version are you using? This code works flawlessly for me: SteamId id = SteamId.create("demomenz", true); The exception you posted hints at some JRE internal problem when parsing the XML. Can you also post the root exception that caused the |
I guess there’s no way to reproduce this now. |
I have 2 Android applications using Steam Condenser for Java. Recently, both of them have failed to work due to the same problem. Unparsable date.
An example of the error log.
The code I'm using:
Any idea on how to solve it? Thank you!
The text was updated successfully, but these errors were encountered: