{"action":"created","issue":{"url":"https://api.github.com/repos/Stuart-campbell/RushOrm/issues/84","labels_url":"https://api.github.com/repos/Stuart-campbell/RushOrm/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/Stuart-campbell/RushOrm/issues/84/comments","events_url":"https://api.github.com/repos/Stuart-campbell/RushOrm/issues/84/events","html_url":"https://github.com/Stuart-campbell/RushOrm/issues/84","id":116335505,"number":84,"title":"NumberFormatException invalid int","user":{"login":"fabsimilian","id":985635,"avatar_url":"https://avatars.githubusercontent.com/u/985635?v=3","gravatar_id":"","url":"https://api.github.com/users/fabsimilian","html_url":"https://github.com/fabsimilian","followers_url":"https://api.github.com/users/fabsimilian/followers","following_url":"https://api.github.com/users/fabsimilian/following{/other_user}","gists_url":"https://api.github.com/users/fabsimilian/gists{/gist_id}","starred_url":"https://api.github.com/users/fabsimilian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabsimilian/subscriptions","organizations_url":"https://api.github.com/users/fabsimilian/orgs","repos_url":"https://api.github.com/users/fabsimilian/repos","events_url":"https://api.github.com/users/fabsimilian/events{/privacy}","received_events_url":"https://api.github.com/users/fabsimilian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-11T13:25:37Z","updated_at":"2015-11-16T09:57:10Z","closed_at":null,"body":"Hi, i saw the Issue with the NumberFormatExcpt here: https://github.com/Stuart-campbell/RushOrm/issues/34\r\n\r\nAnd this bug should be fixed in v1.1.5. \r\nWe're using v1.1.7 in our project and we get a lot of NumberFormat Excpetions like these:\r\n\r\n``` \r\nFatal Exception: java.lang.NumberFormatException: Invalid int: \"2.75\"\r\n       at java.lang.Integer.invalidInt(Integer.java:138)\r\n       at java.lang.Integer.parse(Integer.java:410)\r\n       at java.lang.Integer.parseInt(Integer.java:367)\r\n       at java.lang.Integer.parseInt(Integer.java:334)\r\n       at co.uk.rushorm.core.implementation.RushColumnInt.deserialize(RushColumnInt.java:22)\r\n       at co.uk.rushorm.core.implementation.RushColumnInt.deserialize(RushColumnInt.java:9)\r\n       at co.uk.rushorm.core.implementation.RushColumnsImplementation.setField(RushColumnsImplementation.java:50)\r\n       at co.uk.rushorm.core.implementation.ReflectionClassLoader.loadClass(ReflectionClassLoader.java:99)\r\n       at co.uk.rushorm.core.implementation.ReflectionClassLoader.loadClasses(ReflectionClassLoader.java:54)\r\n       at co.uk.rushorm.core.implementation.ReflectionClassLoader.loadClasses(ReflectionClassLoader.java:42)\r\n       at co.uk.rushorm.core.RushCore.load(RushCore.java:608)\r\n       at co.uk.rushorm.core.RushCore.load(RushCore.java:257)\r\n       at co.uk.rushorm.core.RushSearch.find(RushSearch.java:41)\r\n```\r\n\r\n```\r\nCaused by java.lang.NumberFormatException: Invalid int: \"OCZ ARC 100 SERIES 480GB\r\n\r\n\"\r\n       at java.lang.Integer.invalidInt(Integer.java:138)\r\n       at java.lang.Integer.parse(Integer.java:410)\r\n       at java.lang.Integer.parseInt(Integer.java:367)\r\n       at java.lang.Integer.parseInt(Integer.java:334)\r\n       at co.uk.rushorm.core.implementation.RushColumnInt.deserialize(RushColumnInt.java:22)\r\n       at co.uk.rushorm.core.implementation.RushColumnInt.deserialize(RushColumnInt.java:9)\r\n       at co.uk.rushorm.core.implementation.RushColumnsImplementation.setField(RushColumnsImplementation.java:50)\r\n       at co.uk.rushorm.core.implementation.ReflectionClassLoader.loadClass(ReflectionClassLoader.java:99)\r\n       at co.uk.rushorm.core.implementation.ReflectionClassLoader.loadClasses(ReflectionClassLoader.java:54)\r\n       at co.uk.rushorm.core.implementation.ReflectionClassLoader.loadClasses(ReflectionClassLoader.java:42)\r\n       at co.uk.rushorm.core.RushCore.load(RushCore.java:608)\r\n       at co.uk.rushorm.core.RushCore.load(RushCore.java:257)\r\n       at co.uk.rushorm.core.RushSearch.find(RushSearch.java:41)\r\n```\r\n\r\n```\r\nCaused by java.lang.NumberFormatException: Invalid int: \"zotac\"\r\n       at java.lang.Integer.invalidInt(Integer.java:138)\r\n       at java.lang.Integer.parse(Integer.java:410)\r\n       at java.lang.Integer.parseInt(Integer.java:367)\r\n       at java.lang.Integer.parseInt(Integer.java:334)\r\n       at co.uk.rushorm.core.implementation.RushColumnInt.deserialize(RushColumnInt.java:22)\r\n       at co.uk.rushorm.core.implementation.RushColumnInt.deserialize(RushColumnInt.java:9)\r\n       at co.uk.rushorm.core.implementation.RushColumnsImplementation.setField(RushColumnsImplementation.java:50)\r\n       at co.uk.rushorm.core.implementation.ReflectionClassLoader.loadClass(ReflectionClassLoader.java:99)\r\n       at co.uk.rushorm.core.implementation.ReflectionClassLoader.loadClasses(ReflectionClassLoader.java:54)\r\n       at co.uk.rushorm.core.implementation.ReflectionClassLoader.loadClasses(ReflectionClassLoader.java:42)\r\n       at co.uk.rushorm.core.RushCore.load(RushCore.java:608)\r\n       at co.uk.rushorm.core.RushCore.load(RushCore.java:257)\r\n       at co.uk.rushorm.core.RushSearch.find(RushSearch.java:41)\r\n```\r\n\r\nand so on. \r\nIt seems that rushorm is mixing up some values from different variables when deserializing. \r\nThe next problem is - i cannot reproduce this behavior but there are a lot of crashes in our developer console with such kind of log messages. \r\n\r\nMost of the crashes happen on Sony or Samsung Devices with Android 5 (82% 5.1.1, 8% 5.0.2)\r\n\r\nAnd not only in one Modelclass but  in nearly everyone. \r\nFor example: \r\n\r\n```\r\npublic class Product extends RushObject implements Serializable {\r\n\r\n    @SerializedName(\"id\")\r\n    private Integer productId;\r\n\r\n    @SerializedName(\"best_avl\")\r\n    private int bestAvailability;\r\n\r\n    @SerializedName(\"offer_count\")\r\n    private int offerCount;\r\n\r\n    private String title;\r\n\r\n    @SerializedName(\"subtitle\")\r\n    private ArrayList<String> subtitle = new ArrayList<>();\r\n\r\n    private String description;\r\n\r\n    @SerializedName(\"rating_count\")\r\n    private float ratingCount;\r\n\r\n    @SerializedName(\"rating_stars\")\r\n    private float ratingStarts;\r\n\r\n    @SerializedName(\"rating_percent\")\r\n    private float ratingPercent;\r\n\r\n    @SerializedName(\"best_price\")\r\n    private String bestPrice;\r\n}\r\n```\r\n\r\nDo you have any idea how we can fix this bug? "},"comment":{"url":"https://api.github.com/repos/Stuart-campbell/RushOrm/issues/comments/156975270","html_url":"https://github.com/Stuart-campbell/RushOrm/issues/84#issuecomment-156975270","issue_url":"https://api.github.com/repos/Stuart-campbell/RushOrm/issues/84","id":156975270,"user":{"login":"fabsimilian","id":985635,"avatar_url":"https://avatars.githubusercontent.com/u/985635?v=3","gravatar_id":"","url":"https://api.github.com/users/fabsimilian","html_url":"https://github.com/fabsimilian","followers_url":"https://api.github.com/users/fabsimilian/followers","following_url":"https://api.github.com/users/fabsimilian/following{/other_user}","gists_url":"https://api.github.com/users/fabsimilian/gists{/gist_id}","starred_url":"https://api.github.com/users/fabsimilian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabsimilian/subscriptions","organizations_url":"https://api.github.com/users/fabsimilian/orgs","repos_url":"https://api.github.com/users/fabsimilian/repos","events_url":"https://api.github.com/users/fabsimilian/events{/privacy}","received_events_url":"https://api.github.com/users/fabsimilian/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T09:57:10Z","updated_at":"2015-11-16T09:57:10Z","body":"Thank u for the quick response. \r\nHm, I'll try it, but the problem is that i can't reproduce this error / behaviour. I just see the logs from the crashes. \r\nWill or could this work with an existing database too? "}}