我正在使用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时出错 { “用户”:{ “设置”:{ “__类型”: “指针”, “类名”: “设置”, “对象ID”: “L89RW0E7pB”}, “acceptedTerms”:真 “activitiesCount”:1,“appFirstUseDate “:{” __类型 “:” 日期 “ ”异“: ”2014-03-21T09:46:14.669Z“}, ”生物“:” “” 生日 “:{” __类型 “:” 日期”, “异”: “1992-06-10T00:00:00.000Z”}, “电子邮件”: “REMOVED@hotmail.com”, “设备”:{ “1”:[6,100,105,107,4]}, “followerCount”: 0 “followingCount”:0, “性别”:2 “目标”:1, “height_unit”:2 “height_val1”:1, “height_val2”:64, “kitchenSinkBadgesSeen”:[ “活动”, “日程表” “findfriends”, “登录”, “共享”, “训练/今天”], “lastVersionUsed”: “2.4.2”, “水平”:2 “位置”: “阿塞拜疆”, “numReferrals”:0, “平台”:2 “popularFeedLastReadAt”:{ “__类型”: “日期”, “异”: “2014-04-09T10:56:10.054Z”}, “postCount”:1, “seenHamburgerInstructions”:真”流 “:” b”, “时区”: “亚洲/巴库”, “unsubscribedFromWorkoutEmails”:真正的 “用户名”: “古尔纳拉”, “网站”: “google.com”, “重”:62, “weight_unit” :2, “createdAt”: “2014-03-21T09:48:34.152Z”, “updatedAt”: “2014-04-09T10:57:24.883Z”, “对象ID”: “T6bALDD7vf”, “ACL”: { “*”:{ “读”:真正}, “T6bALDD7vf”:{ “读”:真实的, “写”:真正}}, “sessionToken”: “jgaq50y07p07053h5f0x9gkt6”}, “错误”:{ “名”: “OrientDB.RequestError”, “消息”:NULL, “数据”:{}, “先前”:[{ “名称”: “OrientDB.RequestError”, “数据”:{}}], “ID”:1, “类型”: “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)