RedisFront icon indicating copy to clipboard operation
RedisFront copied to clipboard

RedisFront-1.0.5-windows 无法启动

Open jhyhhmail opened this issue 3 years ago • 0 comments

public class DerbyUtils { private static final Logger log = LoggerFactory.getLogger(DerbyUtils.class); private static Connection conn;

private DerbyUtils() {
}

public static DerbyUtils getInstance() {
    return new DerbyUtils();
}

public static void init() {
    try {
        File derbyFolder = new File(Const.CURRENT_DIR_DERBY_LOG_FILE_PATH);
        if (FileUtil.isEmpty(derbyFolder)) {
            boolean dirCreated = derbyFolder.mkdir();
            log.info("create Derby Log dir created: {}", dirCreated);
            boolean fileCreated = (new File(Const.DERBY_LOG_FILE)).createNewFile();
            log.info("create Derby Log File created: {}", fileCreated);
        }

derbyFolder.mkdir(); 创建了目录后没在目录中创建任何文件,工具无法启动

2022-12-22 11:35:25 ERROR com.redisfront.commons.util.DerbyUtils:43 - Derby init failed - 系统找不到指定的路径。 2022-12-22 11:35:25 ERROR com.redisfront.commons.exception.GlobalExceptionHandler:18 - Thread[AWT-EventQueue-0] 应用异常 com.redisfront.commons.exception.RedisFrontException: java.io.IOException: 系统找不到指定的路径。 at com.redisfront.commons.util.DerbyUtils.init(DerbyUtils.java:44) at com.redisfront.RedisFrontApplication.lambda$main$0(RedisFrontApplication.java:61) at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.EventQueue$4.run(Unknown Source) at java.desktop/java.awt.EventQueue$4.run(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Unknown Source) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.desktop/java.awt.EventDispatchThread.run(Unknown Source) Caused by: java.io.IOException: 系统找不到指定的路径。 at java.base/java.io.WinNTFileSystem.createFileExclusively(Native Method) at java.base/java.io.File.createNewFile(Unknown Source) at com.redisfront.commons.util.DerbyUtils.init(DerbyUtils.java:33) ... 14 common frames omitted 2022-12-22 11:35:25 ERROR com.redisfront.commons.exception.GlobalExceptionHandler:18 - Thread[AWT-EventQueue-0] 应用异常 java.lang.NullPointerException: Cannot invoke "java.awt.Component.getParent()" because "" is null at java.desktop/javax.swing.SwingUtilities.getWindowAncestor(Unknown Source) at java.desktop/javax.swing.SwingUtilities.windowForComponent(Unknown Source) at com.redisfront.commons.util.AlertUtils.showErrorDialog(AlertUtils.java:30) at com.redisfront.commons.exception.GlobalExceptionHandler.lambda$static$0(GlobalExceptionHandler.java:22) at java.base/java.lang.ThreadGroup.uncaughtException(Unknown Source) at java.base/java.lang.ThreadGroup.uncaughtException(Unknown Source) at java.desktop/java.awt.EventDispatchThread.processException(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.desktop/java.awt.EventDispatchThread.run(Unknown Source) 2022-12-22 13:10:40 INFO io.netty.util.internal.PlatformDependent:213 - Your platform does not provide complete low-level API for accessing direct buffers reliably. Unless explicitly requested, heap buffer will always be preferred to avoid potential system instability.

jhyhhmail avatar Dec 22 '22 05:12 jhyhhmail