- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试使用其 Java 驱动程序测试 ArangoDB。我正在 CentOS 6.6 上测试它。我收到以下错误:
15:48:01.151 [main] DEBUG com.arangodb.http.HttpManager - [REQ]http-POST: url=http://127.0.0.1:8529/_api/gharial?waitForSync=true, headers=null, body={"name":"test","edgeDefinitions":[{"collection":"FriendsWith","from":["Profile"],"to":["Profile"]}],"orphanCollections":[]}
15:48:01.267 [main] DEBUG com.arangodb.http.HttpManager - [RES]http-POST: statusCode=503
15:48:01.269 [main] DEBUG com.arangodb.http.HttpManager - [RES]http-POST: text=<html><head><title>Service Unavailable</title></head><body><p>This service is temporarily not available. Please check the log file for errors.</p></body></html>
Exception in thread "main" com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 29 path $
at com.google.gson.JsonParser.parse(JsonParser.java:65)
at com.google.gson.JsonParser.parse(JsonParser.java:45)
at com.arangodb.BaseArangoDriver.createEntity(BaseArangoDriver.java:209)
at com.arangodb.BaseArangoDriver.createEntity(BaseArangoDriver.java:309)
at com.arangodb.impl.InternalGraphDriverImpl.createGraph(InternalGraphDriverImpl.java:80)
at com.arangodb.ArangoDriver.createGraph(ArangoDriver.java:4242)
at Program.main(Program.java:76)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 29 path $
at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1573)
at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1423)
at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:546)
at com.google.gson.stream.JsonReader.peek(JsonReader.java:429)
at com.google.gson.JsonParser.parse(JsonParser.java:60)
... 11 more
Process finished with exit code 1
我尝试重新启动服务并重新安装。日志文件包含以下行:
2015-08-12T08:06:27Z [22123] ERROR TypeError: Cannot read property 'save' of undefined
2015-08-12T08:06:27Z [22123] ERROR at createQueue (/usr/share/arangodb/js/server/modules/org/arangodb/foxx/queues.js:109:15)
2015-08-12T08:06:27Z [22123] ERROR at /usr/share/arangodb/js/server/modules/org/arangodb/foxx/queues.js:394:1
2015-08-12T08:06:27Z [22123] ERROR at [object Object].Module.run (/usr/share/arangodb/js/common/bootstrap/modules.js:1415:10)
2015-08-12T08:06:27Z [22123] ERROR at createModule (/usr/share/arangodb/js/common/bootstrap/modules.js:517:19)
2015-08-12T08:06:27Z [22123] ERROR at requireModuleFrom (/usr/share/arangodb/js/common/bootstrap/modules.js:619:21)
2015-08-12T08:06:27Z [22123] ERROR at requirePackage (/usr/share/arangodb/js/common/bootstrap/modules.js:755:21)
2015-08-12T08:06:27Z [22123] ERROR at [object Object].Module.require (/usr/share/arangodb/js/common/bootstrap/modules.js:1209:21)
2015-08-12T08:06:27Z [22123] ERROR at args.require (/usr/share/arangodb/js/common/bootstrap/modules.js:1367:21)
2015-08-12T08:06:27Z [22123] ERROR at /usr/share/arangodb/js/server/modules/org/arangodb/foxx.js:33:18
2015-08-12T08:06:27Z [22123] ERROR at [object Object].Module.run (/usr/share/arangodb/js/common/bootstrap/modules.js:1415:10)
2015-08-12T08:06:27Z [22123] ERROR at createModule (/usr/share/arangodb/js/common/bootstrap/modules.js:517:19)
2015-08-12T08:06:27Z [22123] ERROR at requireModuleFrom (/usr/share/arangodb/js/common/bootstrap/modules.js:619:21)
2015-08-12T08:06:27Z [22123] ERROR at requirePackage (/usr/share/arangodb/js/common/bootstrap/modules.js:772:21)
2015-08-12T08:06:27Z [22123] ERROR at [object Object].Module.require (/usr/share/arangodb/js/common/bootstrap/modules.js:1209:21)
2015-08-12T08:06:27Z [22123] ERROR at args.require (/usr/share/arangodb/js/common/bootstrap/modules.js:1367:21)
2015-08-12T08:06:27Z [22123] ERROR at /usr/share/arangodb/js/apps/system/_api/gharial/APP/gharial.js:32:24
2015-08-12T08:06:27Z [22123] ERROR at /usr/share/arangodb/js/apps/system/_api/gharial/APP/gharial.js:1395:2
2015-08-12T08:06:27Z [22123] ERROR at [object Object].Module.run (/usr/share/arangodb/js/common/bootstrap/modules.js:1415:10)
2015-08-12T08:06:27Z [22123] ERROR at ArangoApp.loadAppScript (/usr/share/arangodb/js/server/modules/org/arangodb/foxx/arangoApp.js:452:24)
2015-08-12T08:06:27Z [22123] ERROR at mountController (/usr/share/arangodb/js/server/modules/org/arangodb/foxx/routing.js:662:7)
2015-08-12T08:06:27Z [22123] ERROR at /usr/share/arangodb/js/server/modules/org/arangodb/foxx/routing.js:631:9
2015-08-12T08:06:27Z [22123] ERROR at Array.forEach (native)
2015-08-12T08:06:27Z [22123] ERROR at routeApp (/usr/share/arangodb/js/server/modules/org/arangodb/foxx/routing.js:630:32)
2015-08-12T08:06:27Z [22123] ERROR at Object.routes (/usr/share/arangodb/js/server/modules/org/arangodb/foxx/manager.js:268:10)
2015-08-12T08:06:27Z [22123] ERROR at foxxRouting (/usr/share/arangodb/js/server/modules/org/arangodb/actions.js:1054:74)
2015-08-12T08:06:27Z [22123] ERROR at execute (/usr/share/arangodb/js/server/modules/org/arangodb/actions.js:1308:7)
2015-08-12T08:06:27Z [22123] ERROR at Object.routeRequest (/usr/share/arangodb/js/server/modules/org/arangodb/actions.js:1329:3)
2015-08-12T08:06:27Z [22123] ERROR at Function.actions.defineHttp.callback (/usr/share/arangodb/js/actions/api-system.js:58:15)
2015-08-12T08:06:27Z [22123] ERROR
2015-08-12T08:06:27Z [22123] ERROR [ArangoError 3103: failed to invoke module
2015-08-12T08:06:27Z [22123] ERROR File: /usr/share/arangodb/js/server/modules/org/arangodb/foxx/queues.js]
2015-08-12T08:06:27Z [22123] ERROR at [object Object].Module.run (/usr/share/arangodb/js/common/bootstrap/modules.js:1420:20)
2015-08-12T08:06:27Z [22123] ERROR at createModule (/usr/share/arangodb/js/common/bootstrap/modules.js:517:19)
2015-08-12T08:06:27Z [22123] ERROR at requireModuleFrom (/usr/share/arangodb/js/common/bootstrap/modules.js:619:21)
2015-08-12T08:06:27Z [22123] ERROR at requirePackage (/usr/share/arangodb/js/common/bootstrap/modules.js:755:21)
2015-08-12T08:06:27Z [22123] ERROR at [object Object].Module.require (/usr/share/arangodb/js/common/bootstrap/modules.js:1209:21)
2015-08-12T08:06:27Z [22123] ERROR at args.require (/usr/share/arangodb/js/common/bootstrap/modules.js:1367:21)
2015-08-12T08:06:27Z [22123] ERROR at /usr/share/arangodb/js/server/modules/org/arangodb/foxx.js:33:18
2015-08-12T08:06:27Z [22123] ERROR at [object Object].Module.run (/usr/share/arangodb/js/common/bootstrap/modules.js:1415:10)
2015-08-12T08:06:27Z [22123] ERROR at createModule (/usr/share/arangodb/js/common/bootstrap/modules.js:517:19)
2015-08-12T08:06:27Z [22123] ERROR at requireModuleFrom (/usr/share/arangodb/js/common/bootstrap/modules.js:619:21)
2015-08-12T08:06:27Z [22123] ERROR at requirePackage (/usr/share/arangodb/js/common/bootstrap/modules.js:772:21)
2015-08-12T08:06:27Z [22123] ERROR at [object Object].Module.require (/usr/share/arangodb/js/common/bootstrap/modules.js:1209:21)
2015-08-12T08:06:27Z [22123] ERROR at args.require (/usr/share/arangodb/js/common/bootstrap/modules.js:1367:21)
2015-08-12T08:06:27Z [22123] ERROR at /usr/share/arangodb/js/apps/system/_api/gharial/APP/gharial.js:32:24
2015-08-12T08:06:27Z [22123] ERROR at /usr/share/arangodb/js/apps/system/_api/gharial/APP/gharial.js:1395:2
2015-08-12T08:06:27Z [22123] ERROR at [object Object].Module.run (/usr/share/arangodb/js/common/bootstrap/modules.js:1415:10)
2015-08-12T08:06:27Z [22123] ERROR at ArangoApp.loadAppScript (/usr/share/arangodb/js/server/modules/org/arangodb/foxx/arangoApp.js:452:24)
2015-08-12T08:06:27Z [22123] ERROR at mountController (/usr/share/arangodb/js/server/modules/org/arangodb/foxx/routing.js:662:7)
2015-08-12T08:06:27Z [22123] ERROR at /usr/share/arangodb/js/server/modules/org/arangodb/foxx/routing.js:631:9
2015-08-12T08:06:27Z [22123] ERROR at Array.forEach (native)
2015-08-12T08:06:27Z [22123] ERROR at routeApp (/usr/share/arangodb/js/server/modules/org/arangodb/foxx/routing.js:630:32)
2015-08-12T08:06:27Z [22123] ERROR at Object.routes (/usr/share/arangodb/js/server/modules/org/arangodb/foxx/manager.js:268:10)
2015-08-12T08:06:27Z [22123] ERROR at foxxRouting (/usr/share/arangodb/js/server/modules/org/arangodb/actions.js:1054:74)
2015-08-12T08:06:27Z [22123] ERROR at execute (/usr/share/arangodb/js/server/modules/org/arangodb/actions.js:1308:7)
2015-08-12T08:06:27Z [22123] ERROR at Object.routeRequest (/usr/share/arangodb/js/server/modules/org/arangodb/actions.js:1329:3)
2015-08-12T08:06:27Z [22123] ERROR at Function.actions.defineHttp.callback (/usr/share/arangodb/js/actions/api-system.js:58:15)
2015-08-12T08:06:27Z [22123] ERROR
2015-08-12T08:06:27Z [22123] ERROR [ArangoError 3103: failed to invoke module
2015-08-12T08:06:27Z [22123] ERROR File: /usr/share/arangodb/js/server/modules/org/arangodb/foxx.js]
2015-08-12T08:06:27Z [22123] ERROR at [object Object].Module.run (/usr/share/arangodb/js/common/bootstrap/modules.js:1420:20)
2015-08-12T08:06:27Z [22123] ERROR at createModule (/usr/share/arangodb/js/common/bootstrap/modules.js:517:19)
2015-08-12T08:06:27Z [22123] ERROR at requireModuleFrom (/usr/share/arangodb/js/common/bootstrap/modules.js:619:21)
2015-08-12T08:06:27Z [22123] ERROR at requirePackage (/usr/share/arangodb/js/common/bootstrap/modules.js:772:21)
2015-08-12T08:06:27Z [22123] ERROR at [object Object].Module.require (/usr/share/arangodb/js/common/bootstrap/modules.js:1209:21)
2015-08-12T08:06:27Z [22123] ERROR at args.require (/usr/share/arangodb/js/common/bootstrap/modules.js:1367:21)
2015-08-12T08:06:27Z [22123] ERROR at /usr/share/arangodb/js/apps/system/_api/gharial/APP/gharial.js:32:24
2015-08-12T08:06:27Z [22123] ERROR at /usr/share/arangodb/js/apps/system/_api/gharial/APP/gharial.js:1395:2
2015-08-12T08:06:27Z [22123] ERROR at [object Object].Module.run (/usr/share/arangodb/js/common/bootstrap/modules.js:1415:10)
2015-08-12T08:06:27Z [22123] ERROR at ArangoApp.loadAppScript (/usr/share/arangodb/js/server/modules/org/arangodb/foxx/arangoApp.js:452:24)
2015-08-12T08:06:27Z [22123] ERROR at mountController (/usr/share/arangodb/js/server/modules/org/arangodb/foxx/routing.js:662:7)
2015-08-12T08:06:27Z [22123] ERROR at /usr/share/arangodb/js/server/modules/org/arangodb/foxx/routing.js:631:9
2015-08-12T08:06:27Z [22123] ERROR at Array.forEach (native)
2015-08-12T08:06:27Z [22123] ERROR at routeApp (/usr/share/arangodb/js/server/modules/org/arangodb/foxx/routing.js:630:32)
2015-08-12T08:06:27Z [22123] ERROR at Object.routes (/usr/share/arangodb/js/server/modules/org/arangodb/foxx/manager.js:268:10)
2015-08-12T08:06:27Z [22123] ERROR at foxxRouting (/usr/share/arangodb/js/server/modules/org/arangodb/actions.js:1054:74)
2015-08-12T08:06:27Z [22123] ERROR at execute (/usr/share/arangodb/js/server/modules/org/arangodb/actions.js:1308:7)
2015-08-12T08:06:27Z [22123] ERROR at Object.routeRequest (/usr/share/arangodb/js/server/modules/org/arangodb/actions.js:1329:3)
2015-08-12T08:06:27Z [22123] ERROR at Function.actions.defineHttp.callback (/usr/share/arangodb/js/actions/api-system.js:58:15)
2015-08-12T08:06:27Z [22123] ERROR
2015-08-12T08:06:27Z [22123] ERROR Cannot compute Foxx application routes: [ArangoError 3103: failed to invoke module\nFile: /usr/share/arangodb/js/apps/system/_api/gharial/APP/gharial.js]
2015-08-12T08:06:27Z [22123] ERROR [ArangoError 3103: failed to invoke module
2015-08-12T08:06:27Z [22123] ERROR File: /usr/share/arangodb/js/apps/system/_api/gharial/APP/gharial.js]
2015-08-12T08:06:27Z [22123] ERROR at [object Object].Module.run (/usr/share/arangodb/js/common/bootstrap/modules.js:1420:20)
2015-08-12T08:06:27Z [22123] ERROR at ArangoApp.loadAppScript (/usr/share/arangodb/js/server/modules/org/arangodb/foxx/arangoApp.js:452:24)
2015-08-12T08:06:27Z [22123] ERROR at mountController (/usr/share/arangodb/js/server/modules/org/arangodb/foxx/routing.js:662:7)
2015-08-12T08:06:27Z [22123] ERROR at /usr/share/arangodb/js/server/modules/org/arangodb/foxx/routing.js:631:9
2015-08-12T08:06:27Z [22123] ERROR at Array.forEach (native)
2015-08-12T08:06:27Z [22123] ERROR at routeApp (/usr/share/arangodb/js/server/modules/org/arangodb/foxx/routing.js:630:32)
2015-08-12T08:06:27Z [22123] ERROR at Object.routes (/usr/share/arangodb/js/server/modules/org/arangodb/foxx/manager.js:268:10)
2015-08-12T08:06:27Z [22123] ERROR at foxxRouting (/usr/share/arangodb/js/server/modules/org/arangodb/actions.js:1054:74)
2015-08-12T08:06:27Z [22123] ERROR at execute (/usr/share/arangodb/js/server/modules/org/arangodb/actions.js:1308:7)
2015-08-12T08:06:27Z [22123] ERROR at Object.routeRequest (/usr/share/arangodb/js/server/modules/org/arangodb/actions.js:1329:3)
2015-08-12T08:06:27Z [22123] ERROR at Function.actions.defineHttp.callback (/usr/share/arangodb/js/actions/api-system.js:58:15)
2015-08-12T08:06:27Z [22123] ERROR
最佳答案
用户已删除系统_graphs
集合,该集合用于ArangoDB内部的图形管理。
相应的错误消息有点令人困惑,并通过较新的 ArangoDB 版本进行了改进。
解决方案是 to recreate the the collection by specifying it will be a system collection :
db._create("_graphs", {isSystem: true})
关于java - driver.CreateGraph 上的 ArangoDB JsonSyntaxException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31946646/
我正在开发一个通过 HTTPS POST 请求将数据导入 Web 服务的项目。为了创建 HTTPS 请求,我使用了 Retrofit2。这是我关于如何创建请求和评估响应的方法: 我正在创建一个对象来存
我遇到了 JSON 解析错误。我的代码如下: try { //Read the server response and attempt to parse it as JSON
我正在使用托管在 SmarterAsp.net 上的 ASP Web API 网络服务以 Json 格式获取数据以在我的 android 应用程序中使用它们,当我使用 Wifi 时一切正常并且 Jso
大家好,我正在制作一个 Android 应用程序,其中我收到 4 条错误消息: GSON 无法解析为类型 JsonSyntaxException 无法解析为类型 和另外2个 刚刚添加了gson-2.2
我最近决定使用 Android 的 Retrofit Library 来进行网络调用,并使用 GSON 来处理 JSON。但我不断收到以下异常,并且我的应用程序崩溃了。 Caused by: retr
我是retrofit的新手(我之前使用volley),在此之前我在retrofit方面做得很好,直到出现此错误:- com.google.gson.JsonSyntaxException: java.
我正在运行一些 Java 分析工具来进行 WES 分析。所以,我可以被认为是 Java 的新手 :( 顺便说一句,我使用 PharmCAT 来分析我的 VCF 文件。但我得到了这个错误: com.go
我有一个名为 DateTime 的自定义对象。我使用方法 registerTypeAdapter 注册 TypeAdapter 。我认为 GSON 忽略了这个适配器。 GSON如何检测json对象中的
我正在尝试使用 Gson 反序列化一个 json 数组,但目前我收到了一个 JsonSyntaxException。 json 字符串是由 .NET MVC3 Web 服务使用 JsonResult
正在测试一个抛出 JsonSyntaxException 的类,即使我期望抛出预期的错误,测试仍然失败。我的测试: @规则 公共(public) ExpectedException 异常 = Expe
我正在读取一个 Json 字符串并使用 scala 代码将其转换为一个对象: val myInstance = (new Gson()).fromJson(t, classOf[myClass]) 一
相关Question Json的响应是换行符Json: {"type":"data","id":"xyz"} {"type":"value","id":"xcf"} .... .... 我正在使用Re
我正在尝试复制 Google App Engine Servlet 模块 here使用 Retrofit 而不是 AsyncTask。 我觉得很奇怪,但显然 Retrofit 2.0 不支持连接到 G
我遇到了这个问题,我不想解决那个问题,但想办法告诉 GSON“跳过错误并继续”解析: Can't parses json : java.lang.IllegalStateException:
首先,我知道其他一些用户之前已经问过类似的问题,所以您可能认为这是一个重复的问题,但事实并非如此。 我想创建一个模型类来解析 GoogleMaps-Direction API 响应从 JSON 格式到
我是 gson 新手并收到此错误。 com.google.gson.JsonSyntaxException:java.lang.IllegalStateException:预期为 BEGIN_OBJE
我正在获取一个 JSON 字符串,并希望将其转换为类型化对象。 但是我收到以下反序列化错误: 04-02 16:20:45.632: E/AndroidRuntime(30912): com.goog
我有一个 JSON 文件: { "settings": { "header": { "id": "240A64CDC43F", "filename": "net
我正在尝试使用其 Java 驱动程序测试 ArangoDB。我正在 CentOS 6.6 上测试它。我收到以下错误: 15:48:01.151 [main] DEBUG com.arangodb.ht
这个问题已经有答案了: Gson to json conversion with two DateFormat (3 个回答) 已关闭 6 年前。 我遇到以下异常 - com.google.gson.
我是一名优秀的程序员,十分优秀!