OrientDB データベースに挿入するために oriento を使用しています。
db.insert().into('User').set(user).one()
.then (user) =>
created()
.error (e) =>
error "Error creating user #{ user["objectId"] }", {user:user, error:e}
そして 1868 行の後、次のエラー出力が表示されました (最初にエラーのあるユーザー オブジェクト、次にエラー オブジェクト)。
ユーザー作成エラー T6bALDD7vf {"user":{"settings":{"__type":"Pointer","className":"Settings","objectId":"L89RW0E7pB"},"acceptedTerms":true,"activitiesCount": 1,"appFirstUseDate":{"__type":"日付","iso":"2014-03-21T09:46:14.669Z"},"略歴":".","誕生日":{"__type": "日付","iso":"1992-06-10T00:00:00.000Z"},"メール":"削除@hotmail.com","機器":{"1":[6,100,105,107,4]}, "followerCount":0,"followingCount":0,"gender":2,"goal":1,"height_unit":2,"height_val1":1,"height_val2":64,"kitchenSinkBadgesSeen":["アクティビティ","schedule","findfriends","log","share","workouts/today"],"lastVersionUsed":"2.4.2","level":2,"location":"アゼルバイジャン","numReferrals ":0,"platform":2,"popularFeedLastReadAt":{"__type":"Date","iso":"2014-04-09T10:56:10.054Z"},"postCount":1,"seenHamburgerInstructions" :true,"stream":"b","timezone":"Asia/Baku","unsubscribedFromWorkoutEmails":true,"username":"gulnara","website":"google.com","weight":62 ,"weight_unit":2,"createdAt":"2014-03-21T09:48:34.152Z","updatedAt":"2014-04-09T10:57:24.883Z","objectId":"T6bALDD7vf","ACL":{"*":{"read":true},"T6bALDD7vf":{"read":true,"write":true}},"sessionToken":"jgaq50y07p07053h5f0x9gkt6"},"エラー":{"name":"OrientDB.RequestError","message":null,"data":{},"previous":[{"name":"OrientDB.RequestError","data":{}}] ,"id":1,"type":"java.lang.NumberFormatException","hasMore":0}} [0.013s]以前の":[{"name":"OrientDB.RequestError","data":{}}],"id":1,"type":"java.lang.NumberFormatException","hasMore":0}} [ 0.013秒]以前の":[{"name":"OrientDB.RequestError","data":{}}],"id":1,"type":"java.lang.NumberFormatException","hasMore":0}} [ 0.013秒]
それが何を指しているのか分かりますか?
my からの出力は次のserver.shとおりです。
-> java.math.BigDecimal.<init>(BigDecimal.java:498)
-> java.math.BigDecimal.<init>(BigDecimal.java:383)
-> java.math.BigDecimal.<init>(BigDecimal.java:806)
-> com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerStringAbstract.getTypeValue(ORecordSerializerStringAbstract.java:469)
-> com.orientechnologies.orient.core.command.OCommandRequestTextAbstract.fromStream(OCommandRequestTextAbstract.java:149)
-> com.orientechnologies.orient.core.command.OCommandRequestTextAbstract.fromStream(OCommandRequestTextAbstract.java:73)
-> com.orientechnologies.orient.core.serialization.serializer.stream.OStreamSerializerAnyStreamable.fromStream(OStreamSerializerAnyStreamable.java:73)
-> com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.command(ONetworkProtocolBinary.java:1152)
-> com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.executeRequest(ONetworkProtocolBinary.java:340)
-> com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.execute(OBinaryNetworkProtocolAbstract.java:169)
-> com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:45)