{"height":"190","version":"1.0","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/98194825/1514241549987688","provider_name":"Hatena Blog","author_name":"aipacommander","published":"2015-07-16 21:47:31","url":"https://aipacommander.com/entry/2015/07/16/214731","blog_url":"https://aipacommander.com/","description":"\u304a\u3063\u3001\u30a8\u30e9\u30fc\u304c\u3067\u3066\u3044\u308b\u304a\uff08^\u03c9^ = ^\u03c9^\uff09 // log.price\u306fLong\u578b\u3067\u3001priceMap.get(\"price\")\u306fint\u578b\u306a\u306e\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3067\u304d\u306a\u3044 log.price = priceMap.get(\"price\"); \u3093\u3067\u3001\u4fee\u6b63\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u7528\u610f\u3057\u305f\u3089\u30a8\u30e9\u30fc\u304c\u304c\u304c log.price = Integer.parseInt(priceMap.get(\"price\").toString()); [ClassCastException: java.lang.Long cannot be cast to java.lang.Integer] \u3044\u307e\u3044\u3061\u3088\u304f\u308f\u304b\u3063\u3066\u3044\u306a\u3044\u304c\u3001\u30e2\u30c7\u30eb\u5909\u6570\u306el\u2026","categories":["Java"],"author_url":"https://blog.hatena.ne.jp/aipacommander/","title":"\u3010Java\u3011\u30a8\u30e9\u30fc\u300cClassCastException: java.lang.Long cannot be cast to java.lang.Integer\u300d","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Faipacommander.com%2Fentry%2F2015%2F07%2F16%2F214731\" title=\"\u3010Java\u3011\u30a8\u30e9\u30fc\u300cClassCastException: java.lang.Long cannot be cast to java.lang.Integer\u300d - IT\u306e\u968a\u9577\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","provider_url":"https://hatena.blog","blog_title":"IT\u306e\u968a\u9577\u306e\u30d6\u30ed\u30b0"}