CI框架Unable to locate the specified class

本文介绍了在使用CI框架时遇到的“Unable to locate the specified class”错误及其解决办法。该问题通常由控制器名称与类名冲突引起,文章推荐通过为类文件添加后缀_lib来避免此类错误。

CI框架Unable to locate the specified class

发现加载任何类都会报这个错误。

错误原因:控制器名称与类名同名导致的。

建议:类名都加个后缀lib,如Test_lib.php

之前有过又忘了这个问题。

# 验证GL渲染器 DISPLAY=:0 glxinfo | grep "OpenGL renderer" # 检查内核消息 dmesg | grep -iE "drm|vga|fb0" Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package libdrm-tools Command 'drm_info' not found, but can be installed with: apt install drm-info Error: unable to open display :0 [ 7.227977] Console: colour VGA+ 80x25 [ 7.654513] vgaarb: loaded [ 8.488129] ACPI: bus type drm_connector registered [ 11.694958] systemd[1]: Starting modprobe@drm.service - Load Kernel Module drm... root@srv771551:~# # 强制使用fbdev驱动 startx -- -config /etc/X11/xorg.conf.d/20-gpu.conf -retro # 使用最低配置模式 Xorg -noreset -keeptty -verbose 3 :0 X.Org X Server 1.21.1.11 X Protocol Version 11, Revision 0 Current Operating System: Linux srv771551 6.8.0-60-generic #63-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 15 19:04:15 UTC 2025 x86_64 Kernel command line: BOOT_IMAGE=/vmlinuz-6.8.0-60-generic root=UUID=30964bc7-c7b0-4ada-9642-1f49d6e6c210 ro console=tty0 console=ttyS0,115200 earlyprintk=ttyS0,115200 consoleblank=0 memhp_default_state=online console=tty1 console=ttyS0 xorg-server 2:21.1.12-1ubuntu1.3 (For technical support please see http://www.ubuntu.com/support) Current version of pixman: 0.42.2 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Tue May 27 22:12:19 2025 (++) Using config file: "/etc/X11/xorg.conf.d/20-gpu.conf" (==) Using config directory: "/etc/X11/xorg.conf.d" (==) Using system config directory "/usr/share/X11/xorg.conf.d" (EE) Fatal server error: (EE) no screens found(EE) (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information. (EE) (EE) Server terminated with error (1). Closing log file. xinit: giving up xinit: unable to connect to X server: Connection refused xinit: server error X.Org X Server 1.21.1.11 X Protocol Version 11, Revision 0 Current Operating System: Linux srv771551 6.8.0-60-generic #63-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 15 19:04:15 UTC 2025 x86_64 Kernel command line: BOOT_IMAGE=/vmlinuz-6.8.0-60-generic root=UUID=30964bc7-c7b0-4ada-9642-1f49d6e6c210 ro console=tty0 console=ttyS0,115200 earlyprintk=ttyS0,115200 consoleblank=0 memhp_default_state=online console=tty1 console=ttyS0 xorg-server 2:21.1.12-1ubuntu1.3 (For technical support please see http://www.ubuntu.com/support) Current version of pixman: 0.42.2 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Tue May 27 22:12:34 2025 (==) Using config directory: "/etc/X11/xorg.conf.d" (==) Using system config directory "/usr/share/X11/xorg.conf.d" (==) No Layout section. Using the first Screen section. (**) |-->Screen "Default Screen" (0) (**) | |-->Monitor "<default monitor>" (**) | |-->Device "Default Device" (**) | |-->GPUDevice "GPU0" (==) No monitor specified for screen "Default Screen". Using a default monitor configuration. (**) Allowing byte-swapped clients (==) Automatically adding devices (==) Automatically enabling devices (==) Automatically adding GPU devices (==) Automatically binding GPU devices (==) Max clients allowed: 256, resource mask: 0x1fffff (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist. Entry deleted from font path. (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist. Entry deleted from font path. (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist. Entry deleted from font path. (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist. Entry deleted from font path. (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist. Entry deleted from font path. (==) FontPath set to: /usr/share/fonts/X11/misc, /usr/share/fonts/X11/Type1, built-ins (==) ModulePath set to "/usr/lib/xorg/modules" (II) The server relies on udev to provide the list of input devices. If no devices become available, reconfigure udev or disable AutoAddDevices. (II) Loader magic: 0x576497426020 (II) Module ABI versions: X.Org ANSI C Emulation: 0.4 X.Org Video Driver: 25.2 X.Org XInput driver : 24.4 X.Org Server Extension : 10.0 (--) using VT number 3 (II) systemd-logind: took control of session /org/freedesktop/login1/session/_38 (II) LoadModule: "glx" (II) Loading /usr/lib/xorg/modules/extensions/libglx.so (II) Module glx: vendor="X.Org Foundation" compiled for 1.21.1.11, module version = 1.0.0 ABI class: X.Org Server Extension, version 10.0 (II) LoadModule: "vesa" (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so (II) Module vesa: vendor="X.Org Foundation" compiled for 1.21.1.7, module version = 2.6.0 Module class: X.Org Video Driver ABI class: X.Org Video Driver, version 25.2 (II) LoadModule: "modesetting" (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so (II) Module modesetting: vendor="X.Org Foundation" compiled for 1.21.1.11, module version = 1.21.1 Module class: X.Org Video Driver ABI class: X.Org Video Driver, version 25.2 (II) VESA: driver for VESA chipsets: vesa (II) modesetting: Driver for Modesetting Kernel Drivers: kms (WW) Falling back to old probe method for modesetting (EE) open /dev/dri/card0: No such file or directory (WW) Falling back to old probe method for modesetting (EE) open /dev/dri/card0: No such file or directory (EE) No devices detected. (==) Matched modesetting as autoconfigured driver 0 (==) Matched fbdev as autoconfigured driver 1 (==) Matched vesa as autoconfigured driver 2 (==) Assigned the driver to the xf86ConfigLayout (II) LoadModule: "modesetting" (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so (II) Module modesetting: vendor="X.Org Foundation" compiled for 1.21.1.11, module version = 1.21.1 Module class: X.Org Video Driver ABI class: X.Org Video Driver, version 25.2 (II) UnloadModule: "modesetting" (II) Unloading modesetting (II) Failed to load module "modesetting" (already loaded, 0) (II) LoadModule: "fbdev" (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so (II) Module fbdev: vendor="X.Org Foundation" compiled for 1.21.1.11, module version = 0.5.0 Module class: X.Org Video Driver ABI class: X.Org Video Driver, version 25.2 (II) LoadModule: "vesa" (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so (II) Module vesa: vendor="X.Org Foundation" compiled for 1.21.1.7, module version = 2.6.0 Module class: X.Org Video Driver ABI class: X.Org Video Driver, version 25.2 (II) UnloadModule: "vesa" (II) Unloading vesa (II) Failed to load module "vesa" (already loaded, 0) (II) VESA: driver for VESA chipsets: vesa (II) modesetting: Driver for Modesetting Kernel Drivers: kms (II) FBDEV: driver for framebuffer: fbdev (WW) Falling back to old probe method for modesetting (EE) open /dev/dri/card0: No such file or directory (EE) open /dev/dri/card0: No such file or directory (EE) open /dev/dri/card0: No such file or directory (EE) open /dev/dri/card0: No such file or directory (WW) Falling back to old probe method for fbdev (II) Loading sub module "fbdevhw" (II) LoadModule: "fbdevhw" (II) Loading /usr/lib/xorg/modules/libfbdevhw.so (II) Module fbdevhw: vendor="X.Org Foundation" compiled for 1.21.1.11, module version = 0.0.2 ABI class: X.Org Video Driver, version 25.2 (EE) open /dev/fb0: No such file or directory (WW) Falling back to old probe method for modesetting (EE) open /dev/dri/card0: No such file or directory (EE) open /dev/dri/card0: No such file or directory (EE) open /dev/dri/card0: No such file or directory (EE) open /dev/dri/card0: No such file or directory (WW) Falling back to old probe method for fbdev (II) Loading sub module "fbdevhw" (II) LoadModule: "fbdevhw" (II) Loading /usr/lib/xorg/modules/libfbdevhw.so (II) Module fbdevhw: vendor="X.Org Foundation" compiled for 1.21.1.11, module version = 0.0.2 ABI class: X.Org Video Driver, version 25.2 (EE) open /dev/fb0: No such file or directory (EE) No devices detected. (EE) Fatal server error: (EE) no screens found(EE) (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information. (EE) (EE) Server terminated with error (1). Closing log file. root@srv771551:~#
05-29
[0.008s][warning][cds] Archived non-system classes are disabled because the java.system.class.loader property is specified (value = "com.intellij.util.lang.PathClassLoader"). To use archived non-system classes, this property must not be set 2025-09-04 19:34:52,703 [ 48] WARN - #c.i.p.i.b.AppStarter - Unable to load JNA library (Linux/6.8.0-78-generic, jna.boot.library.path=/home/user/pycharm-2025.2.1.1/lib/jna/aarch64) java.lang.UnsatisfiedLinkError: Unable to locate JNA native support library at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:1014) at com.sun.jna.Native.<clinit>(Native.java:221) at com.intellij.jna.JnaLoader.load(JnaLoader.java:29) at com.intellij.platform.ide.bootstrap.StartupUtil$scheduleLoadSystemLibsAndLogInfoAndInitMacApp$1$2.invokeSuspend(startup.kt:353) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100) at kotlinx.coroutines.internal.SoftLimitedDispatcher$Worker.run(SoftLimitedDispatcher.kt:130) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:613) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:1183) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:778) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:765) **Start Failed** Internal error java.awt.HeadlessException: No X11 DISPLAY variable was set, or no headful library support was found, but this program performed an operation which requires it, at java.desktop/java.awt.dnd.DragSource.getDefaultDragSource(DragSource.java:226) at com.intellij.platform.ide.bootstrap.UiKt$scheduleUpdateFrameClassAndWindowIconAndPreloadSystemFonts$1$3.invokeSuspend(ui.kt:267) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714) at java.base/java.security.AccessController.doPrivileged(AccessController.java:400) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:276) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) ----- JRE: 21.0.8+9-Ubuntu-0ubuntu122.04.1 amd64 (Ubuntu) /usr/lib/jvm/java-21-openjdk-amd64
最新发布
09-05
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值