Advertisement
Guest User

Untitled

a guest
Feb 3rd, 2022
23
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. config.json:
  2. {
  3. "js_optimization_level": -1,
  4. "mirai_repo": "https://gitee.com/peratx/mirai-repo/raw/master",
  5. "maven_repo": [
  6. "https://maven.aliyun.com/repository/public"
  7. ],
  8. "packages": [
  9. {
  10. "id": "org.clojure:clojure",
  11. "version": "1.10.3",
  12. "type": "libs",
  13. "versionLocked": false
  14. },
  15. {
  16. "id": "net.mamoe:mirai-console",
  17. "channel": "beta",
  18. "version": "2.10.0-RC2",
  19. "type": "libs",
  20. "versionLocked": false
  21. },
  22. {
  23. "id": "net.mamoe:mirai-console-terminal",
  24. "channel": "beta",
  25. "version": "2.10.0-RC2",
  26. "type": "libs",
  27. "versionLocked": false
  28. },
  29. {
  30. "id": "net.mamoe:mirai-core-all",
  31. "channel": "beta",
  32. "version": "2.10.0-RC2",
  33. "type": "libs",
  34. "versionLocked": false
  35. },
  36. {
  37. "id": "org.itxtech:mcl-addon",
  38. "channel": "c122",
  39. "version": "1.2.2",
  40. "type": "plugins",
  41. "versionLocked": false
  42. }
  43. ],
  44. "disabled_scripts": [],
  45. "proxy": "",
  46. "log_level": 1,
  47. "script_props": {}
  48. }
  49.  
  50. 启动时的报错(貌似是在下载库的时候):
  51. 10:17:25 [ERROR] "org.clojure:clojure" is corrupted.
  52. 10:17:25 [ERROR] Failed to verify package "org.clojure:clojure"
  53. 10:17:25 [ERROR] com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
  54. at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:226)
  55. at com.google.gson.Gson.fromJson(Gson.java:932)
  56. at com.google.gson.Gson.fromJson(Gson.java:897)
  57. at com.google.gson.Gson.fromJson(Gson.java:846)
  58. at org.itxtech.mcl.component.Repository.fetchPackage(Repository.java:68)
  59. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  60. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  61. at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  62. at java.base/java.lang.reflect.Method.invoke(Unknown Source)
  63. at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:138)
  64. at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:226)
  65. at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1692)
  66. at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1013)
  67. at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
  68. at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:412)
  69. at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3578)
  70. at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:107)
  71. at org.mozilla.javascript.ArrowFunction.call(ArrowFunction.java:43)
  72. at org.mozilla.javascript.InterfaceAdapter.invokeImpl(InterfaceAdapter.java:155)
  73. at org.mozilla.javascript.InterfaceAdapter.lambda$invoke$0(InterfaceAdapter.java:105)
  74. at org.mozilla.javascript.Context.call(Context.java:554)
  75. at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:522)
  76. at org.mozilla.javascript.InterfaceAdapter.invoke(InterfaceAdapter.java:105)
  77. at org.mozilla.javascript.jdk18.VMBridge_jdk18$1.invoke(VMBridge_jdk18.java:126)
  78. at com.sun.proxy.$Proxy4.run(Unknown Source)
  79. at org.itxtech.mcl.script.ScriptManager.phaseLoad(ScriptManager.java:98)
  80. at org.itxtech.mcl.Loader.lambda$start$2(Loader.java:172)
  81. at org.itxtech.mcl.Loader.tryCatching(Loader.java:145)
  82. at org.itxtech.mcl.Loader.start(Loader.java:172)
  83. at org.itxtech.mcl.Loader.main(Loader.java:68)
  84. Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
  85. at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:384)
  86. at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:215)
  87. ... 29 more
  88.  
  89. 加载插件后的报错:
  90. 10:17:27 [ERROR] org.mozilla.javascript.WrappedException: Wrapped java.nio.file.NoSuchFileException: libs\clojure-1.10.3.jar (boot.js#98)
  91. at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1899)
  92. at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:160)
  93. at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:226)
  94. at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1692)
  95. at script(boot.js:98)
  96. at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1013)
  97. at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
  98. at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:412)
  99. at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3578)
  100. at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:107)
  101. at org.mozilla.javascript.ArrowFunction.call(ArrowFunction.java:43)
  102. at org.mozilla.javascript.InterfaceAdapter.invokeImpl(InterfaceAdapter.java:155)
  103. at org.mozilla.javascript.InterfaceAdapter.lambda$invoke$0(InterfaceAdapter.java:105)
  104. at org.mozilla.javascript.Context.call(Context.java:554)
  105. at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:522)
  106. at org.mozilla.javascript.InterfaceAdapter.invoke(InterfaceAdapter.java:105)
  107. at org.mozilla.javascript.jdk18.VMBridge_jdk18$1.invoke(VMBridge_jdk18.java:126)
  108. at com.sun.proxy.$Proxy4.run(Unknown Source)
  109. at org.itxtech.mcl.script.ScriptManager.phaseBoot(ScriptManager.java:106)
  110. at org.itxtech.mcl.Loader.lambda$start$3(Loader.java:176)
  111. at org.itxtech.mcl.Loader.tryCatching(Loader.java:145)
  112. at org.itxtech.mcl.Loader.start(Loader.java:176)
  113. at org.itxtech.mcl.Loader.main(Loader.java:68)
  114. Caused by: java.nio.file.NoSuchFileException: libs\clojure-1.10.3.jar
  115. at java.base/sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
  116. at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
  117. at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
  118. at java.base/sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(Unknown Source)
  119. at java.base/sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(Unknown Source)
  120. at java.base/sun.nio.fs.WindowsFileSystemProvider.readAttributes(Unknown Source)
  121. at java.base/java.nio.file.Files.readAttributes(Unknown Source)
  122. at java.base/java.util.zip.ZipFile$Source.get(Unknown Source)
  123. at java.base/java.util.zip.ZipFile$CleanableResource.<init>(Unknown Source)
  124. at java.base/java.util.zip.ZipFile$CleanableResource.get(Unknown Source)
  125. at java.base/java.util.zip.ZipFile.<init>(Unknown Source)
  126. at java.base/java.util.zip.ZipFile.<init>(Unknown Source)
  127. at java.base/java.util.jar.JarFile.<init>(Unknown Source)
  128. at java.base/java.util.jar.JarFile.<init>(Unknown Source)
  129. at java.base/java.util.jar.JarFile.<init>(Unknown Source)
  130. at org.itxtech.mcl.Utility.bootMirai(Utility.java:76)
  131. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  132. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  133. at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  134. at java.base/java.lang.reflect.Method.invoke(Unknown Source)
  135. at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:138)
  136. ... 20 more
  137.  
  138.  
Advertisement
RAW Paste Data Copied
Advertisement