|
|
还没有账号?赶快去注册吧!
您需要 登录 才可以下载或查看,没有账号?立即注册
×
以下为错误报告:
+ U. c: @ M% a2 k% O---- Minecraft Crash Report ----' N4 i, g8 a0 ~; O! d, d; i
// This doesn't make any sense!# E6 V( k8 d8 u7 ?, E
o$ {; t4 [; n
Time: 2024-11-24 20:54:56
) y+ }) D6 x, @. }- w+ EDescription: Exception in server tick loop
7 T. t6 e' ~ j9 m
, C1 P8 I3 y0 h$ k8 j$ T% h4 {. Mjava.lang.NoSuchMethodError: 'boolean org.mtr.mod.config.Server.getUseThreadedSimulation()'6 {! H1 z) n/ J, e8 `3 c; w0 d
at knot//top.mcmtr.mod.Init.lambda$init$1(Init.java:56); e( ?: Y e# u& O
at knot//org.mtr.mapping.registry.EventRegistry.lambda$registerServerStarted$1(EventRegistry.java:26)! b% f- E- R% D# Q9 i/ D
at knot//net.fabricmc.fabric.api.event.lifecycle.v1.ServerLifecycleEvents.lambda$static$2(ServerLifecycleEvents.java:49)) i' s0 Y; |: ^* i. D7 I3 S( P
at knot//net.minecraft.server.MinecraftServer.handler$zgc000$fabric-lifecycle-events-v1$afterSetupServer(MinecraftServer.java:2352)
5 A0 S; n( g% L: s9 L at knot//net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:654)
3 ^" ^* @* H' D0 F at knot//net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:266)% u1 ]7 {+ D4 e
at java.base/java.lang.Thread.run(Thread.java:842)8 @- T4 u. X" `0 X& r
6 Q4 i8 C/ j9 J, D( `2 H6 ?$ O+ a/ E; d* V
A detailed walkthrough of the error, its code path and all known details is as follows:: N, y% u5 D) k0 j, d9 y z7 Z
---------------------------------------------------------------------------------------
2 I J5 I( N- N: {8 q- O4 j' m6 Q& _ W9 f" P
-- System Details --
8 {; T9 `; o/ f# @* f: v# \0 V8 q$ MDetails:) v6 `" r8 Z2 O, D/ s$ E
Minecraft Version: 1.19.4
& U2 {6 d4 L9 }2 e1 G, I& ] Minecraft Version ID: 1.19.4
. [4 b: X' O$ o9 L4 c8 S/ [+ p Operating System: Windows 10 (amd64) version 10.09 H; B1 d0 V( h
Java Version: 17.0.10, Oracle Corporation) O5 ] q& Q7 h. t
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode, sharing), Oracle Corporation
# w* |, I$ {: M x' f( O Memory: 666431000 bytes (635 MiB) / 1691353088 bytes (1613 MiB) up to 2147483648 bytes (2048 MiB)
; N, n8 [6 O3 p! q" F$ \& Y CPUs: 8! D0 ?* A9 K. j, T y
Processor Vendor: GenuineIntel
; B' s2 @1 E# L! y1 b& g Processor Name: Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz
/ q* Z* j. C0 F8 f0 |, V4 c e Identifier: Intel64 Family 6 Model 79 Stepping 1/ H6 Z& `' A8 r
Microarchitecture: Broadwell (Server)6 V9 @7 g8 L$ }8 L+ \* t/ W
Frequency (GHz): 2.40
! y: f+ w: p( O0 r, h( l2 } Number of physical packages: 1 s8 _' ?( R v* e6 D
Number of physical CPUs: 8
3 X, {7 T: P5 S Number of logical CPUs: 8
6 ^1 D6 P3 I: Z/ V p Graphics card #0 name: Microsoft Remote Display Adapter4 Q5 p: a# c: @% f8 }
Graphics card #0 vendor: Microsoft
" \3 s" h- B' ]; I Graphics card #0 VRAM (MB): 0.00
1 N2 q q' G3 w; W& v) j E! E' m Graphics card #0 deviceId: unknown0 d* r4 J5 x$ E4 ]
Graphics card #0 versionInfo: DriverVersion=10.0.19041.4355
0 |) U. h, d7 i2 x$ \# A* K5 t) M Graphics card #1 name: Microsoft 基本显示适配器" V- \: _4 P$ q# V9 t
Graphics card #1 vendor: (标准显示卡类型) (0x1013)
3 c* |4 x. ~7 m' ?# b, T Graphics card #1 VRAM (MB): 0.00, X/ I* F+ X2 v
Graphics card #1 deviceId: 0x00b8
& k) u) x# S( m/ g- T Graphics card #1 versionInfo: DriverVersion=10.0.19041.3636: N$ P( M: m. g g6 w( I
Memory slot #0 capacity (MB): 8192.00* \. I& @" k H4 H% Y( P9 H |
Memory slot #0 clockSpeed (GHz): 0.00
3 A* h. ?/ y. ~4 K$ f Memory slot #0 type: RAM
* @( g: N- g3 H: c+ L$ H7 F) E- C Virtual memory max (MB): 8191.476 C4 d9 s- J0 l$ Y; d8 d
Virtual memory used (MB): 6320.553 |# ~; L- Y8 K7 ?$ ?
Swap memory total (MB): 0.00' F+ }& t* F% l; ~- t! U; W
Swap memory used (MB): 0.002 J$ K9 r* Z2 M# I7 {- q
JVM Flags: 0 total;
5 S/ ~# W# }9 c Fabric Mods:
8 d" u, |/ m: O# ~ F& ^% D: \ aft_fabroads: Aftersans53228's fabric roads 1.0.25 O. V7 ~' {% E9 a$ l3 ~" X' f
libgui: LibGui 7.1.1+1.19.4
4 D V6 Z% n& x- O" L8 B; p1 t' x jankson: Jankson 5.0.1+j1.2.2
/ @" C' ]$ B* b) d7 ?9 M' ~ blue_endless_jankson: jankson 1.2.20 Q0 }$ Y$ j' R: a' p& ~' B+ a& X
libninepatch: LibNinePatch 1.2.0
: Q$ X0 I2 Y& z1 _. B& M+ ~ architectury: Architectury 8.2.917 M$ n w2 u, }1 C8 q" V, o% a# p
badpackets: Bad Packets 0.4.3
' {. D5 k+ O+ x8 C( W. B; j bagofholding: Bag Of Holding 6.0.0/ R4 B+ C6 ~# X/ O- Z7 X
cardinal-components-base: Cardinal Components API (base) 5.1.0+ {$ q- `& N. O! M% ?1 B
cardinal-components-entity: Cardinal Components API (entities) 5.1.0
4 k! b, v5 O" H5 L { extensibleenums: Extensible Enums 4.0.0( d0 w* F/ ?' w, \, s
iteminteractionscore: Item Interactions Core 6.0.0. E- v' b- l+ e6 ~4 l
chatimage: ChatImage 1.2.4+1.19.4+fabric
+ S1 U* F, `4 r5 s X2 M8 ^ actionlib: ActionLib 0.6.1-fabric
3 V. G. w; F. e; J4 f' o io_github_kituin_chatimagecode: ChatImageCode 0.9.7
G9 ~! x) s1 T, ~& c3 }- a chiselsandbits: chisels-and-bits 1.3.1379 A7 d* ^, G" D* I* Z& p+ p) t8 \
org_lz4_lz4-pure-java: lz4-pure-java 1.8.0
8 r5 e5 d+ E& r7 V' l# f saeculariacaudices: Saecularia Caudices 1.0.17 }: U* T1 R& N# H
scena: Scena 1.0.100
) W: |( q' `5 n9 t0 x" C# ~ cloth-config: Cloth Config v10 10.1.135
' k* G1 G6 w: S* Y- Z/ }5 Q! |+ i! n cloth-basic-math: cloth-basic-math 0.6.1) D+ D9 b! r' U! t8 R
compostbag: Compost Bag 1.0.2
3 A" F) k/ [3 a$ J/ g. t( Y fabric-api: Fabric API 0.87.2+1.19.4" v! d" V" M# `. F0 b3 c
fabric-api-base: Fabric API Base 0.4.28+737a6ee8f4
# C+ y0 B" P5 ?2 V4 g fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.29+504944c8f4
$ E. V1 ], e. C; }' P fabric-biome-api-v1: Fabric Biome API (v1) 13.0.10+6b242079f4
: K$ g+ n7 [! y fabric-block-api-v1: Fabric Block API (v1) 1.0.8+e022e5d1f4
7 z; A7 F0 x, O& n fabric-command-api-v1: Fabric Command API (v1) 1.2.31+f71b366ff4
- Q9 c7 ~! D7 |0 y* N6 @& Q; Y fabric-command-api-v2: Fabric Command API (v2) 2.2.10+10ce000ff4; i; z. K0 P! o1 }: m
fabric-commands-v0: Fabric Commands (v0) 0.2.48+df3654b3f4& l2 Q" V2 d- |4 `2 [/ Y
fabric-containers-v0: Fabric Containers (v0) 0.1.59+df3654b3f4/ ]6 b: h$ {0 S- o- W1 t& Y
fabric-content-registries-v0: Fabric Content Registries (v0) 3.5.14+10ce000ff45 ?4 S% ^ G- u1 q4 g8 ^
fabric-convention-tags-v1: Fabric Convention Tags 1.5.3+6d727b51f4
- r; o v8 \- H5 ]: q) `# a fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.17+aeb40ebef4 d" q9 j4 J5 a. c( R; L( w% E! v, L4 |
fabric-data-generation-api-v1: Fabric Data Generation API (v1) 11.5.2+26f09d40f4
+ O& o% [1 a! o& L! \ fabric-dimensions-v1: Fabric Dimensions API (v1) 2.1.50+44c9c860f4
, k; v. e$ d" ^ fabric-entity-events-v1: Fabric Entity Events (v1) 1.5.17+10ce000ff4+ ~- a- v8 J. _; p9 z
fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.6.1+4b6b93f0f4
2 Q7 n& l7 D. c6 { fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.56+df3654b3f4
$ s" K0 E$ h7 m( b) } fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.36+3f657af2f4
8 H0 n+ ? O) K5 k3 S fabric-item-api-v1: Fabric Item API (v1) 2.1.21+10ce000ff4
" j! Z+ G) e$ r( a/ {9 f1 E fabric-item-group-api-v1: Fabric Item Group API (v1) 3.0.10+8400c67ef4
2 V, P1 t! D% k* O: q3 u fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.2.19+10ce000ff4
4 {: w0 @, F7 e/ o; I" M8 T: x) ] fabric-loot-api-v2: Fabric Loot API (v2) 1.1.32+10ce000ff4
b/ D. P$ P7 g; M fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.1.36+9e7660c6f4+ d( T# b3 b( Y4 i( O& V# U, A# y
fabric-message-api-v1: Fabric Message API (v1) 5.1.5+53c11dadf4
! E! Y/ i! f$ I, d ~* m fabric-mining-level-api-v1: Fabric Mining Level API (v1) 2.1.44+10ce000ff4
" A/ u7 ?" B+ ]+ f2 } fabric-networking-api-v1: Fabric Networking API (v1) 1.3.6+ae9c4c6af4
]3 @9 x6 X8 V7 Q( l fabric-networking-v0: Fabric Networking (v0) 0.3.46+df3654b3f4
/ l3 s* B. d n8 ~7 _; F fabric-object-builder-api-v1: Fabric Object Builder API (v1) 7.1.1+d63b52eaf4
; d+ `/ P7 J, J; [0 s: } fabric-particles-v1: Fabric Particles (v1) 1.1.1+86d48884f46 B0 ~3 u( X$ B9 @
fabric-recipe-api-v1: Fabric Recipe API (v1) 1.0.13+10ce000ff40 z& [3 G, ^2 j; r" ~2 v
fabric-registry-sync-v0: Fabric Registry Sync (v0) 2.3.2+95ae8716f4
' ]; k! Q$ V" d7 K) d fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.32+10ce000ff4" O! W+ b: q4 V Q- R" @1 W* y
fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 3.0.25+10ce000ff42 P% x2 u$ l% g# m6 ^
fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 2.3.3+10ce000ff4 \" F6 E. `+ V& f, x* H
fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.11.7+8400c67ef4
& \! W/ m9 n5 p1 H fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.3.25+10ce000ff4. k7 `. g% D& p0 d
fabric-transfer-api-v1: Fabric Transfer API (v1) 3.3.1+602c17c7f4" m, u1 o. o% D; `; w
fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 3.3.0+1b5f819af4
- D! S& O$ j ?+ Z w, V* C- } fabricloader: Fabric Loader 0.16.9) g# i; R8 M5 ^6 q( }8 _0 C
mixinextras: MixinExtras 0.4.1
# p- m3 K9 w% Q; ?/ }, g) f% O forgeconfigapiport: Forge Config API Port 6.0.2
; d5 n9 }1 }: a com_electronwill_night-config_core: core 3.6.5
2 P2 a9 w$ O& l! G com_electronwill_night-config_toml: toml 3.6.5/ }! D2 k3 L; |+ f! F0 N- Y2 j- d
java: Java HotSpot(TM) 64-Bit Server VM 17
( a( J( V/ L3 w) u2 f5 t+ J# W konkrete: Konkrete 1.6.1
) y1 ^1 |; V# ]3 J4 H3 P( }2 i londonunderground: MTR London Underground Addon 2.2.2
: J }& S2 f# O- Z! `5 \! C/ l londonundergroundtrains: MTR London Underground Trains 1.0.19 u/ x, z i, T6 T1 {& N V
mcpitanlibarch: MCPitanLib 1.8.4-1.19.4-fabric* }' d; B. v: ~8 W: a+ H4 a
org_yaml_snakeyaml: snakeyaml 2.0
8 ^* Y2 M1 K) O5 | minecraft: Minecraft 1.19.4( X) }! S0 r9 x( J7 Z
mishanguc: Mishang Urban Construction 1.4.2
( N, v$ J( \. D5 M" M6 }1 K" M msd: MTR Station Decoration Addon 1.3.11' ?2 z1 R e: D; v
mtr: Minecraft Transit Railway 4.0.0-beta-8! h6 k; h6 z* ~1 u. y4 ^+ x
puzzleslib: Puzzles Lib 6.0.11 g ~1 h9 P+ n% q$ h% G
russianmetro: MTR Russian Metro Addon 4.0.0-2.0.0-beta-2
( ^6 F# r( W m( z H slide_show: Slide Show 1.0.3-Enhancement-16 D7 D" P8 C- ?, A
worldedit: WorldEdit 7.2.14+6360-094b734
8 \1 o: Q& v, Y. R7 T yet_another_config_lib_v3: YetAnotherConfigLib 3.1.1+1.19.43 C# M( O7 h4 M6 i ~8 N2 B
com_twelvemonkeys_common_common-image: common-image 3.10.0-SNAPSHOT% D& |! A+ u* N- }7 P
com_twelvemonkeys_common_common-io: common-io 3.10.0-SNAPSHOT
( c+ i6 ]) e( c( o4 N, q com_twelvemonkeys_common_common-lang: common-lang 3.10.0-SNAPSHOT! {. D2 _' i4 e; K h$ D
com_twelvemonkeys_imageio_imageio-core: imageio-core 3.10.0-SNAPSHOT0 n% ~7 m% L/ y" T: ~
com_twelvemonkeys_imageio_imageio-metadata: imageio-metadata 3.10.0-SNAPSHOT: }2 Y9 w0 D; X2 e) P
com_twelvemonkeys_imageio_imageio-webp: imageio-webp 3.10.0-SNAPSHOT; T$ Y/ x+ A6 x7 B I
yet_another_config_lib: YetAnotherConfigLib 2.5.1+1.19.4
n7 C% u& R. |2 ~3 U9 r Server Running: true* l$ P2 B; l& b, d: c
Player Count: 0 / 20; []
- X3 y, |. v( O Data Packs: vanilla, fabric, file/§e[服务器必装]§3CRH2C-2071.zip (incompatible), file/§e[服务器必装]§4[内部禁泄]§a[bili冰树是GOD]§6§lMTR指示牌追加v1.3BETA-§c§l§n盗版必究.zip (incompatible), file/§e[服务器必装]§6宇通E12.zip (incompatible), file/§e[服务器必装]§bMTR国铁轨道追加正式版v2.0.zip (incompatible), file/§e[服务器必装]§fgbt.zip (incompatible), file/§e[服务器必装]§fshLCD-NOLANGS-16A02-v2024.5.zip (incompatible), file/§e[服务器必装]§f字体材质.zip (incompatible), file/§e[服务器必装]§f阿尔斯通莱顿重工列车(1-7号线).zip (incompatible)
* a: U2 B1 D) q7 H% [ Enabled Feature Flags: minecraft:vanilla. d( ]- A( J. F7 Q. }) @
World Generation: Stable7 H, E$ X. z! }7 x
Is Modded: Definitely; Server brand changed to 'fabric'7 C+ k) u1 `0 ^/ J h1 J
Type: Dedicated Server (map_server.txt): l8 @/ D6 K/ |& z
以下为豆包AI解析(希望有所帮助):
: t7 y" N* Q) Q' t) I9 w( ?+ x" k[color=var(--md-box-samantha-normal-text-color) !important]以下是对这份 Minecraft 服务器崩溃报告的详细解析:
5 g& ]2 S' `5 Y$ O3 P4 X. U: ?一、崩溃概述
+ k' Y4 m3 d9 |9 }' X- 时间:2024 年 11 月 24 日 20:54:56
- 描述:在服务器的 tick 循环(即游戏每一次更新循环)过程中发生了异常,导致服务器崩溃。
. f# q- X! D3 t( q+ G% p 二、错误核心信息
1 Y R0 x, C, W, T& k9 Z- 错误类型:java.lang.NoSuchMethodError
- 这表示在代码运行期间,尝试调用了一个不存在的方法。具体来说,是找不到 org.mtr.mod.config.Server 类中的 getUseThreadedSimulation() 方法。( F; s7 T' ~; h7 r4 N
- 错误发生位置及调用栈:
- top.mcmtr.mod.Init.lambda$init$1(Init.java:56):错误最初在 top.mcmtr.mod.Init 类的一个匿名内部函数(lambda 表达式)中触发,该函数位于 Init.java 文件的第 56 行,可能是在此处初始化相关操作时尝试调用了那个不存在的方法。
- 随后,异常依次传播到以下各个类和方法中:
- org.mtr.mapping.registry.EventRegistry.lambda$registerServerStarted$1(EventRegistry.java:26):涉及服务器启动事件注册相关的匿名内部函数,在 EventRegistry.java 文件第 26 行。
- net.fabricmc.fabric.api.event.lifecycle.v1.ServerLifecycleEvents.lambda$static$2(ServerLifecycleEvents.java:49):与服务器生命周期事件处理相关的静态匿名内部函数,在 ServerLifecycleEvents.java 文件第 49 行。
- net.minecraft.server.MinecraftServer.handler$zgc000$fabric-lifecycle-events-v1$afterSetupServer(MinecraftServer.java:2352):MinecraftServer 类中处理服务器设置完成后后续操作的方法,在 MinecraftServer.java 文件第 2352 行。
- net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:654):MinecraftServer 类中的另一个方法,在 MinecraftServer.java 文件第 654 行。
- net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:266):同样是 MinecraftServer 类中的方法,在 MinecraftServer.java 文件第 266 行。
- java.base/java.lang.Thread.run(Thread.java:842):最终导致线程执行出现问题,在 java.base/java.lang.Thread.run 方法(Thread.java 文件第 842 行)处终止了异常传播链,因为线程遇到异常通常会停止当前执行路径并抛出异常信息。* F$ l4 ?. S1 Y/ G# U0 w' b
0 v6 R3 g/ B' G1 i5 a
6 k: u7 l/ J8 o& ]' R' d 三、系统详情+ g* l4 o- j9 |! ]5 O
- Minecraft 版本及相关信息:
- 版本:1.19.4
- 版本 ID:1.19.42 w" x. f7 _7 k8 x' t9 E
- 操作系统:Windows 10(amd64)版本 10.0
- Java 版本及虚拟机信息:
- Java 版本:17.0.10,由 Oracle Corporation 提供
- Java VM 版本:Java HotSpot (TM) 64-Bit Server VM(混合模式,共享),同样由 Oracle Corporation 提供
, x K. k. I! N2 d% d+ ?* \
- 内存信息:
- 当前使用内存:666431000 字节(约 635 MiB)
- 最大可用内存:2147483648 字节(约 2048 MiB)
- 总内存:1691353088 字节(约 1613 MiB)
2 x8 M" i, J# V1 g" `# A
- CPU 信息:
- 数量:8 个逻辑 CPU,来自 Intel (R) Xeon (R) CPU E5-2680 v4 @ 2.40GHz 处理器
- 包含处理器的详细信息如微架构、频率等。
- A3 z/ G1 S$ D3 h' G* m5 k
- 显卡信息:列出了两张显卡的详细信息,包括名称、厂商、显存等,不过从显存为 0.00 来看,可能并非主要用于游戏图形处理的高性能显卡。
- 虚拟内存信息:包括最大虚拟内存、已使用虚拟内存等情况。
- JVM Flags:未设置任何 JVM 标志(0 total)。
- Fabric Mods:详细列出了服务器所加载的众多 Fabric 模组及其依赖库,比如:
- aft_fabroads:Aftersans53228's fabric roads 1.0.2,其自身还依赖了 LibGui、Jankson 等库。
- architectury:Architectury 8.2.91。
- badpackets:Bad Packets 0.4.3 等等。众多模组涵盖了从道路添加、物品交互、配置管理、图形渲染等各个方面的功能扩展。
. L! f/ _4 }; V* O
6 H# ^. h$ j# _$ t( Q- t 四、服务器运行状态信息
- G( e6 J3 y2 |- 服务器运行状态:正在运行(true)。
- 玩家数量:0 人,最大可容纳 20 人。
- 数据 包:列出了多个已加载的数据包,不过都显示为不兼容状态,如 file/§e[服务器必装]§3CRH2C-2071.zip 等,可能这些数据包存在版本或格式等方面的问题与当前服务器配置不匹配。
- 启用的功能标志:仅启用了 minecraft:vanilla。
- 世界生成:稳定。
- 服务器是否被修改:明确是被修改过的,服务器品牌已变为 'fabric',表明使用了 Fabric 相关的模组和框架来扩展服务器功能。
6 B3 r @- T% V5 X. R 五、可能导致错误的原因及解决办法(一)版本不匹配& O, [5 g) [" K5 W0 ~7 S ~
- 原因:
- org.mtr.mod.config.Server 所在的模组或相关库在编译时和运行时的版本可能不一致。例如,编译项目时使用的版本有 getUseThreadedSimulation() 方法,但运行时加载的版本较旧,该方法已被移除或尚未添加。
' Q4 w9 c2 I$ o' _! ^
- 解决办法:
- 检查项目的依赖管理文件(如 Maven 的 pom.xml 或 Gradle 的 build.gradle,如果适用的话),确保所有依赖的库版本都是正确且一致的。
- 尝试更新相关模组或库到最新版本,同时要注意可能会引入其他兼容性问题,需进行充分测试。
* p* M4 q5 E6 C- s& ?. q6 Q' p! q4 p
4 }2 R: J: y6 L- T+ F0 } (二)类路径问题
# ?4 L8 b0 | A+ n/ A J- 原因:
- 可能在运行时,正确版本的包含 getUseThreadedSimulation() 方法的类没有被正确加载到类路径中。这可能是由于类路径配置错误,或者在运行时某些库没有被正确添加到类路径导致的。/ @1 U- T& v0 q
- 解决办法:
- 仔细检查运行时的类路径设置,确保所有需要的库都在类路径中。在 Java 应用中,可以通过查看启动脚本(如果有)或者在 IDE 中检查运行配置来确认类路径的设置是否正确。
- 如果是在一些容器化环境(如 Docker)中运行,也要检查容器内的类路径设置是否正确。 e. k: O+ M9 u; ^1 |8 I& _
7 G0 w3 D' x s) J' p& ^
(三)编译错误
8 f7 M) F1 ^" ~/ t- f- 原因:
- 虽然这种情况相对较少,但也有可能是在编译项目时,由于某些原因(如代码中的错误引用、编译过程中的异常等)导致 getUseThreadedSimulation() 方法实际上并没有被正确编译进最终的可执行文件或库中,即使对应的源文件中有该方法定义。' m# L1 B( }2 x2 U
- 解决办法:
- 尝试重新编译项目,确保编译过程没有任何错误提示。可以先清理之前的编译产物(如删除 target 文件夹等,具体取决于项目的构建工具),然后再进行完整的编译操作。
& _; m% J9 D" l9 P0 P* C
+ ~; i" ^3 K* |1 L ' {, ` e: Q7 V6 J+ T! v( m) C" z
|
|