|
|
还没有账号?赶快去注册吧!
您需要 登录 才可以下载或查看,没有账号?立即注册
×
以下为错误报告:6 b- P% U: i x; h" Q5 L4 b
---- Minecraft Crash Report ----$ U: W6 |1 O5 r0 w; E, A3 t
// This doesn't make any sense!' W% H* U( X9 G" ?) O; i
8 h" ]" _( f7 @
Time: 2024-11-24 20:54:569 h! v6 B5 @3 F1 o1 L
Description: Exception in server tick loop
' V& u( _, F* A, d Q' n6 T- l% z) H# T/ H
java.lang.NoSuchMethodError: 'boolean org.mtr.mod.config.Server.getUseThreadedSimulation()', I" _( s1 w3 E8 @; z
at knot//top.mcmtr.mod.Init.lambda$init$1(Init.java:56)+ P/ ]- V! D" Y* k
at knot//org.mtr.mapping.registry.EventRegistry.lambda$registerServerStarted$1(EventRegistry.java:26)
2 E: V$ X7 l- z: V" g( y" N" `$ J at knot//net.fabricmc.fabric.api.event.lifecycle.v1.ServerLifecycleEvents.lambda$static$2(ServerLifecycleEvents.java:49), c8 O( c2 R* ~* C% t* U R! Y% w
at knot//net.minecraft.server.MinecraftServer.handler$zgc000$fabric-lifecycle-events-v1$afterSetupServer(MinecraftServer.java:2352)
]! H/ t& |& x4 k8 c at knot//net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:654)' v1 j v$ f0 l% g+ ^ X
at knot//net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:266)7 T, `9 Z! A. N" S; h- c
at java.base/java.lang.Thread.run(Thread.java:842); C, ~1 T( K. s) x! c* g
9 E7 ]% P& z2 `2 D8 o2 O: H9 b* O5 J( {
A detailed walkthrough of the error, its code path and all known details is as follows:
* p6 P* o( b m& r---------------------------------------------------------------------------------------
( V, ^0 \" I* e6 T! T" L; }$ R, v# U. D% N' b; x
-- System Details --, ?: X2 E# L5 o. q% Z
Details:
. ~0 ]9 b# g5 s5 [9 Y( {. I0 S0 \ Minecraft Version: 1.19.4$ n* i" m7 y, B8 c& Z2 l- G
Minecraft Version ID: 1.19.4- @0 U8 m" J+ S( ]+ x9 J; P, {
Operating System: Windows 10 (amd64) version 10.01 B' J* a: L. D* J
Java Version: 17.0.10, Oracle Corporation& F V9 V1 k( {5 ?
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode, sharing), Oracle Corporation& k2 g7 G# l- @
Memory: 666431000 bytes (635 MiB) / 1691353088 bytes (1613 MiB) up to 2147483648 bytes (2048 MiB)1 U9 v7 Z" c: q9 S9 l1 H( |
CPUs: 8
5 Y( o" Z7 m8 K$ H Processor Vendor: GenuineIntel" d8 |; O/ ~+ i. O: |& N F1 H
Processor Name: Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz+ W1 A- I2 p, H. _4 C/ R. l
Identifier: Intel64 Family 6 Model 79 Stepping 1
9 O: P9 A. R/ T. g w8 }% I Microarchitecture: Broadwell (Server)
% w3 P# z9 d9 B; j/ M. b Frequency (GHz): 2.40
% R6 |9 ?4 I; _! C4 W! p Number of physical packages: 1
7 @+ [& j: s- B Number of physical CPUs: 8
4 D) q4 H0 G3 a% f, z Number of logical CPUs: 80 x- ^0 ^+ @: e
Graphics card #0 name: Microsoft Remote Display Adapter* V+ z( p/ m2 }, e5 V0 O2 z
Graphics card #0 vendor: Microsoft: Y6 g2 W3 t1 O
Graphics card #0 VRAM (MB): 0.001 f1 U: o) w6 ?0 t
Graphics card #0 deviceId: unknown" R( v, u* f% }( v1 b
Graphics card #0 versionInfo: DriverVersion=10.0.19041.4355
: Z8 [4 ]7 G$ i) t Graphics card #1 name: Microsoft 基本显示适配器 H+ `) g( ~5 \" C" a
Graphics card #1 vendor: (标准显示卡类型) (0x1013)& Q; u- D2 D" s' @( L" m% |+ m
Graphics card #1 VRAM (MB): 0.005 ^/ ?; k+ B% O- \4 i4 W8 C
Graphics card #1 deviceId: 0x00b8
2 N0 G3 V7 l$ ]) b2 P- ?. } Graphics card #1 versionInfo: DriverVersion=10.0.19041.36368 {1 O: b& _* n' H& a5 A/ n
Memory slot #0 capacity (MB): 8192.00
3 i- w" ], e5 n: p& b Memory slot #0 clockSpeed (GHz): 0.00
( e; r' ~5 G' c9 c Memory slot #0 type: RAM" s% }$ U. L, M% s1 L% S8 [# E6 X
Virtual memory max (MB): 8191.47+ f8 w7 M& [0 U7 K: [9 R- }
Virtual memory used (MB): 6320.55 Z8 t/ z0 N+ k4 |( T7 L9 f. A
Swap memory total (MB): 0.00
, M0 w" ?, L. c& k$ { Swap memory used (MB): 0.004 J+ ~& y ]3 [! V6 u
JVM Flags: 0 total;
& c i8 u) }8 h0 n Fabric Mods: / B1 o' x5 x1 G p* k5 C2 @
aft_fabroads: Aftersans53228's fabric roads 1.0.2& M# [2 q* E: \5 U- [: z
libgui: LibGui 7.1.1+1.19.46 }6 E# I" J- H, {- t8 ]" ~) W
jankson: Jankson 5.0.1+j1.2.29 [' J9 j5 [! D( ~" o
blue_endless_jankson: jankson 1.2.2
" F0 o8 W" H% z# I+ j libninepatch: LibNinePatch 1.2.0
" g% g$ }- q3 O% b9 U% A architectury: Architectury 8.2.91! B( m& t. x6 _: j1 o9 I
badpackets: Bad Packets 0.4.3
. g' S9 S- l' B bagofholding: Bag Of Holding 6.0.0 Y$ c8 V, r2 ~
cardinal-components-base: Cardinal Components API (base) 5.1.0
6 p4 R/ Y: S: E! r cardinal-components-entity: Cardinal Components API (entities) 5.1.0, S$ r# S8 ~" z h
extensibleenums: Extensible Enums 4.0.01 ~/ G" x/ J+ @" v; E' Y% x8 Y9 F
iteminteractionscore: Item Interactions Core 6.0.08 [: i8 o* \) Z
chatimage: ChatImage 1.2.4+1.19.4+fabric
; M; h3 z$ t f actionlib: ActionLib 0.6.1-fabric
. ]; K' _9 @5 _4 k! b io_github_kituin_chatimagecode: ChatImageCode 0.9.74 I" L% i7 W' b
chiselsandbits: chisels-and-bits 1.3.137
: P8 s( |8 h# y& {. [+ G6 O org_lz4_lz4-pure-java: lz4-pure-java 1.8.0
5 D6 @# p& m& }% \ saeculariacaudices: Saecularia Caudices 1.0.17
1 v1 ^6 ` l9 Z, _) r; R1 i scena: Scena 1.0.100, ^9 y- b* g6 l5 c
cloth-config: Cloth Config v10 10.1.135
+ d( Y% t2 E# H5 v* G" J2 }' S* E cloth-basic-math: cloth-basic-math 0.6.1
6 _/ T4 ]/ t5 \' |/ E1 [1 J# z9 b1 @0 I compostbag: Compost Bag 1.0.2. `9 f; d1 C% `9 g4 P6 \& J4 b' A
fabric-api: Fabric API 0.87.2+1.19.4
* l2 Z; Z7 J# A# P7 S2 D0 \! k fabric-api-base: Fabric API Base 0.4.28+737a6ee8f4
2 O$ s i! i: ^+ Y: V fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.29+504944c8f4. e3 V" b1 {$ U
fabric-biome-api-v1: Fabric Biome API (v1) 13.0.10+6b242079f45 t0 l$ N, u, L* T! I
fabric-block-api-v1: Fabric Block API (v1) 1.0.8+e022e5d1f4
# O, w, e P1 u; }5 A J fabric-command-api-v1: Fabric Command API (v1) 1.2.31+f71b366ff4
- M& X: a- u4 O5 ` fabric-command-api-v2: Fabric Command API (v2) 2.2.10+10ce000ff4
* b! t; U5 k3 d% [7 f, O fabric-commands-v0: Fabric Commands (v0) 0.2.48+df3654b3f4
' Q; z9 E' Q$ e1 X fabric-containers-v0: Fabric Containers (v0) 0.1.59+df3654b3f4% E* b! O' ~. c& W3 [/ S" \
fabric-content-registries-v0: Fabric Content Registries (v0) 3.5.14+10ce000ff4
( I& W- ?! M q( i/ ^ fabric-convention-tags-v1: Fabric Convention Tags 1.5.3+6d727b51f4( `3 [: O' _ g6 K' |" N( M" x
fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.17+aeb40ebef46 k J# A* e8 m, Z; i4 j- o/ i
fabric-data-generation-api-v1: Fabric Data Generation API (v1) 11.5.2+26f09d40f4
+ e2 x2 ~" ?% a3 V fabric-dimensions-v1: Fabric Dimensions API (v1) 2.1.50+44c9c860f4& m$ t# D" ?" e7 v# G$ C
fabric-entity-events-v1: Fabric Entity Events (v1) 1.5.17+10ce000ff4
: e; E5 C2 c+ K" g fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.6.1+4b6b93f0f49 o9 k9 }) ^ n. @5 V3 R
fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.56+df3654b3f4
0 A% V1 w- A" [. t. a3 J M" i fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.36+3f657af2f4
- Z" [1 ^+ b- s$ z( |& ]. U* } fabric-item-api-v1: Fabric Item API (v1) 2.1.21+10ce000ff4$ i! N# a! n; m0 {) L
fabric-item-group-api-v1: Fabric Item Group API (v1) 3.0.10+8400c67ef43 \1 b) j2 j( C& \2 b% Z2 r
fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.2.19+10ce000ff46 n" C6 E4 R, _2 a
fabric-loot-api-v2: Fabric Loot API (v2) 1.1.32+10ce000ff45 m$ o' h1 m5 T/ m+ S4 ?5 G
fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.1.36+9e7660c6f4
% F4 u* D5 S4 f% \2 J/ o fabric-message-api-v1: Fabric Message API (v1) 5.1.5+53c11dadf4! k( d2 ?, B2 H9 B0 S
fabric-mining-level-api-v1: Fabric Mining Level API (v1) 2.1.44+10ce000ff4
0 u" C3 B! A L: \2 j fabric-networking-api-v1: Fabric Networking API (v1) 1.3.6+ae9c4c6af40 ]1 L T) M( k6 h2 T" ]$ v
fabric-networking-v0: Fabric Networking (v0) 0.3.46+df3654b3f4/ R( V1 l! I; N1 g
fabric-object-builder-api-v1: Fabric Object Builder API (v1) 7.1.1+d63b52eaf4
8 o1 m, X5 C" l2 G% x4 Z fabric-particles-v1: Fabric Particles (v1) 1.1.1+86d48884f4
9 R( h& y0 E8 B* x. H# I: x3 S# t fabric-recipe-api-v1: Fabric Recipe API (v1) 1.0.13+10ce000ff40 c! S( \3 q, b
fabric-registry-sync-v0: Fabric Registry Sync (v0) 2.3.2+95ae8716f4$ K5 v2 M5 [! c. f) `
fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.32+10ce000ff4
7 V5 [2 B0 C0 \2 } fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 3.0.25+10ce000ff4
% J; P5 i- ^3 k+ h L( S fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 2.3.3+10ce000ff4
0 A& H: V# l2 L fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.11.7+8400c67ef4
% i& R0 U& n% ]$ P2 J9 [" x% S fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.3.25+10ce000ff4
4 F5 K4 |1 i* P' q; e fabric-transfer-api-v1: Fabric Transfer API (v1) 3.3.1+602c17c7f4) h! q N; K% V( g {- w2 i
fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 3.3.0+1b5f819af4
! y7 n3 e1 z C( o$ N: v/ n- i& s* V fabricloader: Fabric Loader 0.16.9
M- y6 q9 l( H. G6 Q mixinextras: MixinExtras 0.4.1
6 I3 Z3 f; a/ I3 u( t3 G& y forgeconfigapiport: Forge Config API Port 6.0.2- p7 y3 X4 z! H% |6 s8 c
com_electronwill_night-config_core: core 3.6.5
# }. C# e4 Z$ M com_electronwill_night-config_toml: toml 3.6.5
" F: E% D4 I) O& x- s7 V java: Java HotSpot(TM) 64-Bit Server VM 17
+ A1 ~/ H' c6 m$ m9 A' I konkrete: Konkrete 1.6.1
+ j) w4 s& ^% L londonunderground: MTR London Underground Addon 2.2.27 ^4 S# ^# O/ ]9 E; p' f
londonundergroundtrains: MTR London Underground Trains 1.0.1
; f# t1 H+ K Q+ q% V mcpitanlibarch: MCPitanLib 1.8.4-1.19.4-fabric/ D0 [+ N% n7 |9 e$ i& @. r3 S' B
org_yaml_snakeyaml: snakeyaml 2.0 t% p+ l E; O; }
minecraft: Minecraft 1.19.4
- n1 t! M( r; b* V" l: ^. K mishanguc: Mishang Urban Construction 1.4.2
1 g) T4 E3 s9 x0 q1 q, i7 b msd: MTR Station Decoration Addon 1.3.11
4 J, r; t6 H7 ]/ h+ V mtr: Minecraft Transit Railway 4.0.0-beta-8& C6 P( ?* p7 N
puzzleslib: Puzzles Lib 6.0.11
+ h8 [' L! B: w2 I4 h" T russianmetro: MTR Russian Metro Addon 4.0.0-2.0.0-beta-2
# u2 e7 E+ G4 S8 p$ x6 [& n slide_show: Slide Show 1.0.3-Enhancement-1; ? e; y3 C* Q. d* \7 d ^
worldedit: WorldEdit 7.2.14+6360-094b734* e' G0 }" h) l
yet_another_config_lib_v3: YetAnotherConfigLib 3.1.1+1.19.4
% E9 j( W# e2 C! M6 z& \ com_twelvemonkeys_common_common-image: common-image 3.10.0-SNAPSHOT
' Q1 _" w1 R6 y' a2 A: U% u& u com_twelvemonkeys_common_common-io: common-io 3.10.0-SNAPSHOT
3 ~5 s- X% a& ^5 d/ ^- i com_twelvemonkeys_common_common-lang: common-lang 3.10.0-SNAPSHOT
$ T( C; n8 j% o6 l& f4 { com_twelvemonkeys_imageio_imageio-core: imageio-core 3.10.0-SNAPSHOT
( E9 ^3 z( U# v" d* O9 Y com_twelvemonkeys_imageio_imageio-metadata: imageio-metadata 3.10.0-SNAPSHOT
! v/ y9 I# n# `1 y' ~" @ com_twelvemonkeys_imageio_imageio-webp: imageio-webp 3.10.0-SNAPSHOT
1 B* o9 B* b/ E) X yet_another_config_lib: YetAnotherConfigLib 2.5.1+1.19.4( V5 G# Y+ K7 g: W5 x
Server Running: true2 Z% f4 g2 e* x2 ~* ?
Player Count: 0 / 20; []1 h9 A' z/ [) d/ d, _- Q
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)
3 }* a% k$ l# h$ ` Enabled Feature Flags: minecraft:vanilla
8 n( d U" ^- b: X2 Z2 A World Generation: Stable
\ B. U0 O9 g, L Is Modded: Definitely; Server brand changed to 'fabric'$ V. I" p4 Q* B( s' z7 v' b' e/ K
Type: Dedicated Server (map_server.txt)9 J# Y' t* ^# l7 G0 U+ s
以下为豆包AI解析(希望有所帮助):
6 ~& ? _7 W3 c6 I; o v$ \2 s9 K[color=var(--md-box-samantha-normal-text-color) !important]以下是对这份 Minecraft 服务器崩溃报告的详细解析:5 b; S8 F" a' \& r/ b" d# P. B( I
一、崩溃概述
1 W/ d1 O5 y* x- 时间:2024 年 11 月 24 日 20:54:56
- 描述:在服务器的 tick 循环(即游戏每一次更新循环)过程中发生了异常,导致服务器崩溃。
8 ?# v0 n& }$ v) C0 I9 K# k% F 二、错误核心信息
! c0 a, J0 A8 N a- u- 错误类型:java.lang.NoSuchMethodError
- 这表示在代码运行期间,尝试调用了一个不存在的方法。具体来说,是找不到 org.mtr.mod.config.Server 类中的 getUseThreadedSimulation() 方法。0 c+ \) J8 ^* Z3 ]: U
- 错误发生位置及调用栈:
- 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 行)处终止了异常传播链,因为线程遇到异常通常会停止当前执行路径并抛出异常信息。0 P+ E! l) k2 N W& r0 {6 U6 D8 H( m% J
6 P8 F, F% s" g5 ]
8 v4 y' S' ^: W) j- N k 三、系统详情" G) k6 C5 M/ d0 D; j) n3 O
- Minecraft 版本及相关信息:
- 版本:1.19.4
- 版本 ID:1.19.44 { H5 @& c. O# A1 H& y
- 操作系统:Windows 10(amd64)版本 10.0
- Java 版本及虚拟机信息:
- Java 版本:17.0.10,由 Oracle Corporation 提供
- Java VM 版本:Java HotSpot (TM) 64-Bit Server VM(混合模式,共享),同样由 Oracle Corporation 提供
5 {' ]. F! n$ D( e+ r
- 内存信息:
- 当前使用内存:666431000 字节(约 635 MiB)
- 最大可用内存:2147483648 字节(约 2048 MiB)
- 总内存:1691353088 字节(约 1613 MiB)2 ?+ T1 w4 B2 m- G& I) D
- CPU 信息:
- 数量:8 个逻辑 CPU,来自 Intel (R) Xeon (R) CPU E5-2680 v4 @ 2.40GHz 处理器
- 包含处理器的详细信息如微架构、频率等。
0 }" N8 ~6 B; v# {1 C
- 显卡信息:列出了两张显卡的详细信息,包括名称、厂商、显存等,不过从显存为 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 等等。众多模组涵盖了从道路添加、物品交互、配置管理、图形渲染等各个方面的功能扩展。; q" y3 j4 f' t. D$ v; k
9 O! S* V" n: [, e& r 四、服务器运行状态信息! t2 R" u5 r! W3 o" @$ J! `$ w
- 服务器运行状态:正在运行(true)。
- 玩家数量:0 人,最大可容纳 20 人。
- 数据 包:列出了多个已加载的数据包,不过都显示为不兼容状态,如 file/§e[服务器必装]§3CRH2C-2071.zip 等,可能这些数据包存在版本或格式等方面的问题与当前服务器配置不匹配。
- 启用的功能标志:仅启用了 minecraft:vanilla。
- 世界生成:稳定。
- 服务器是否被修改:明确是被修改过的,服务器品牌已变为 'fabric',表明使用了 Fabric 相关的模组和框架来扩展服务器功能。
& c- h& B4 {+ B1 P+ s8 G) _ 五、可能导致错误的原因及解决办法(一)版本不匹配. ]0 Z1 @3 [% u2 y6 N9 O
- 原因:
- org.mtr.mod.config.Server 所在的模组或相关库在编译时和运行时的版本可能不一致。例如,编译项目时使用的版本有 getUseThreadedSimulation() 方法,但运行时加载的版本较旧,该方法已被移除或尚未添加。
3 W+ I. ^8 y* C6 c
- 解决办法:
- 检查项目的依赖管理文件(如 Maven 的 pom.xml 或 Gradle 的 build.gradle,如果适用的话),确保所有依赖的库版本都是正确且一致的。
- 尝试更新相关模组或库到最新版本,同时要注意可能会引入其他兼容性问题,需进行充分测试。' k" K% D; ]& I; T9 ?0 k4 n4 o
6 ~; X) g; H8 i4 l) _" @, p9 b (二)类路径问题
% q- Z9 [' O: [1 x; y- 原因:
- 可能在运行时,正确版本的包含 getUseThreadedSimulation() 方法的类没有被正确加载到类路径中。这可能是由于类路径配置错误,或者在运行时某些库没有被正确添加到类路径导致的。
+ j1 G! q' Y. S# O6 q3 t% O. d
- 解决办法:
- 仔细检查运行时的类路径设置,确保所有需要的库都在类路径中。在 Java 应用中,可以通过查看启动脚本(如果有)或者在 IDE 中检查运行配置来确认类路径的设置是否正确。
- 如果是在一些容器化环境(如 Docker)中运行,也要检查容器内的类路径设置是否正确。1 I ~0 V7 U1 J9 w5 y! A f
4 p; t* F3 T& U* x: Y3 H (三)编译错误
j6 t5 n9 v8 @- 原因:
- 虽然这种情况相对较少,但也有可能是在编译项目时,由于某些原因(如代码中的错误引用、编译过程中的异常等)导致 getUseThreadedSimulation() 方法实际上并没有被正确编译进最终的可执行文件或库中,即使对应的源文件中有该方法定义。" ]1 e6 [& P0 k9 C) J# `2 F
- 解决办法:
- 尝试重新编译项目,确保编译过程没有任何错误提示。可以先清理之前的编译产物(如删除 target 文件夹等,具体取决于项目的构建工具),然后再进行完整的编译操作。$ i! N+ @' n% |& |, g% _+ y
0 ?* d* O' c4 X- a5 S
) i3 N$ @0 [3 [0 C6 \ |
|