You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is Issue 659 moved from a Google Code project.
Added by 2012-01-05T05:53:58.000Z by thilopl...@gmail.com.
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-Medium, v1.0rc8
Original description
I am storing JSON returned by Twitter (via twitter4j). The JSON includes a numeric id, that is too large for an Integer (twitter4j has it as a long). As a result I am getting a java.lang.NumberFormatException: For input string: "154520162480046080".
I am not sure if Twitter/twitter4j are 100% spec-compliant and if Long is technically allowed in JSON, but it would be nice to be able to parse this somehow. This probably needs some configuration to get reliable results (not sometimes Integer, sometimes Long).
java.lang.NumberFormatException: For input string: "154520162480046080"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:461)
at java.lang.Integer.<init>(Integer.java:660)
at com.orientechnologies.orient.core.serialization.serializer.OStringSerializerHelper.fieldTypeFromStream(OStringSerializerHelper.java:76)
at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerJSON.getValue(ORecordSerializerJSON.java:357)
at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerJSON.fromString(ORecordSerializerJSON.java:160)
at com.orientechnologies.orient.core.record.ORecordAbstract.fromJSON(ORecordAbstract.java:190)
The text was updated successfully, but these errors were encountered:
This is Issue 659 moved from a Google Code project.
Added by 2012-01-05T05:53:58.000Z by thilopl...@gmail.com.
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-Medium, v1.0rc8
Original description
The text was updated successfully, but these errors were encountered: