我正在使用 oriento 插入我的 OrientDB 数据库:
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":"Date","iso":"2014-03-21T09:46:14.669Z"},"bio":".","birthday":{"__type": "日期","iso":"1992-06-10T00:00:00.000Z"},"email":"REMOVED@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":["activity","schedule","findfriends","log","share","workouts/today"],"lastVersionUsed":"2.4.2","level":2,"location":"Azerbaijan","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.013s]上一个":[{"name":"OrientDB.RequestError","data":{}}],"id":1,"type":"java.lang.NumberFormatException","hasMore":0}} [ 0.013s]
知道它指的是什么吗?
这是我的输出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)