exception while reading counters data from files in C:\tomcat-7\temp\javamelody\_LAPTOP-1ITIB6Q9

本文介绍了一种Tomcat启动时出现的异常情况及其解决方法。异常表现为在读取计数器数据时出现ZipException错误。解决步骤为删除安装路径下temp文件夹中的javamelody文件夹及_LAPTOP-1ITIB6Q9文件夹,重启后问题得到解决。
部署运行你感兴趣的模型镜像

Tomcat 启动异常:

exception while reading counters data from files in C:\Java\tomcat-7.0.67_th_v1.0\temp\javamelody\_LAPTOP-1ITIB6Q9

java.util.zip.ZipException: Not in GZIP format


解决方法: 将Tomcat安装路径下的temp文件夹下的javamelody文件夹下的_LAPTOP-1ITIB6Q9文件夹删除.

重启Tomcat,项目正常运行,而javamelody文件夹下又有新的_LAPTOP-1ITIB6Q9文件夹生成.



您可能感兴趣的与本文相关的镜像

Stable-Diffusion-3.5

Stable-Diffusion-3.5

图片生成
Stable-Diffusion

Stable Diffusion 3.5 (SD 3.5) 是由 Stability AI 推出的新一代文本到图像生成模型,相比 3.0 版本,它提升了图像质量、运行速度和硬件效率

Build type set to Release. -- -- The build system will automatically enable all components. -- Use -DENABLE_DEFAULT=OFF to disable components by default. -- -- Configuring testing-support support... -- Enabling testing-support support. -- Override with -DENABLE_TESTING=ON/OFF -- Extracting version information from git describe... -- Compiler Version: cc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -- Compiler Flags: /usr/bin/cc:::-O3 -DNDEBUG -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized /usr/bin/c++:::-O3 -DNDEBUG -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -- ADDING PERF COUNTERS -- Boost version: 1.65.1 -- Found the following Boost libraries: -- date_time -- program_options -- filesystem -- system -- regex -- thread -- unit_test_framework -- chrono -- atomic -- User set python executable /usr/bin/python3 -- Python checking for six - python 2 and 3 compatibility library - found -- -- Checking for module SWIG -- Found SWIG version 3.0.12. -- -- Configuring python-support support... -- Dependency PYTHONLIBS_FOUND = TRUE -- Dependency SWIG_FOUND = TRUE -- Dependency SWIG_VERSION_CHECK = TRUE -- Dependency SIX_FOUND = TRUE -- Enabling python-support support. -- Override with -DENABLE_PYTHON=ON/OFF -- -- Configuring VOLK support... -- Build type set to Release. -- Extracting version information from git describe... -- -- Python checking for python >= 3.4 -- Python checking for python >= 3.4 - found -- -- Python checking for mako >= 0.4.2 -- Python checking for mako >= 0.4.2 - found -- QA Testing is enabled. -- Modify using: -DENABLE_TESTING=ON/OFF -- System profiling is disabled. -- Modify using: -DENABLE_PROFILING=ON/OFF -- Compiler name: GNU -- x86* CPU detected -- Compiler doesn't support NEON, Overruled arch neon -- Compiler doesn't support NEON, Overruled arch neonv7 -- Compiler doesn't support NEON, Overruled arch neonv8 -- CPU width is 64 bits, Overruled arch 32 -- Available architectures: generic;64;3dnow;abm;popcount;mmx;fma;sse;sse2;orc;norc;sse3;ssse3;sse4_a;sse4_1;sse4_2;avx;avx2;avx512f;avx512cd -- Available machines: generic_orc;sse2_64_mmx_orc;sse3_64_mmx_orc;ssse3_64_mmx_orc;sse4_a_64_mmx_orc;sse4_1_64_mmx_orc;sse4_2_64_mmx_orc;avx_64_mmx_orc;avx2_64_mmx_orc;avx512f_64_mmx_orc;avx512cd_64_mmx_orc -- BUILD TYPE = RELEASE -- Base cflags = -O3 -DNDEBUG -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -fcx-limited-range -Wall -- BUILD INFO ::: generic_orc ::: GNU ::: -O3 -DNDEBUG -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -fcx-limited-range -Wall -- BUILD INFO ::: sse2_64_mmx_orc ::: GNU ::: -O3 -DNDEBUG -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -fcx-limited-range -Wall -m64 -mmmx -msse -msse2 -- BUILD INFO ::: sse3_64_mmx_orc ::: GNU ::: -O3 -DNDEBUG -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -fcx-limited-range -Wall -m64 -mmmx -msse -msse2 -msse3 -- BUILD INFO ::: ssse3_64_mmx_orc ::: GNU ::: -O3 -DNDEBUG -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -fcx-limited-range -Wall -m64 -mmmx -msse -msse2 -msse3 -mssse3 -- BUILD INFO ::: sse4_a_64_mmx_orc ::: GNU ::: -O3 -DNDEBUG -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -fcx-limited-range -Wall -m64 -mmmx -msse -msse2 -msse3 -msse4a -mpopcnt -- BUILD INFO ::: sse4_1_64_mmx_orc ::: GNU ::: -O3 -DNDEBUG -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -fcx-limited-range -Wall -m64 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -- BUILD INFO ::: sse4_2_64_mmx_orc ::: GNU ::: -O3 -DNDEBUG -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -fcx-limited-range -Wall -m64 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -- BUILD INFO ::: avx_64_mmx_orc ::: GNU ::: -O3 -DNDEBUG -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -fcx-limited-range -Wall -m64 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mavx -- BUILD INFO ::: avx2_64_mmx_orc ::: GNU ::: -O3 -DNDEBUG -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -fcx-limited-range -Wall -m64 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mavx -mfma -mavx2 -- BUILD INFO ::: avx512f_64_mmx_orc ::: GNU ::: -O3 -DNDEBUG -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -fcx-limited-range -Wall -m64 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mavx -mfma -mavx2 -mavx512f -- BUILD INFO ::: avx512cd_64_mmx_orc ::: GNU ::: -O3 -DNDEBUG -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -fcx-limited-range -Wall -m64 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mavx -mfma -mavx2 -mavx512f -mavx512cd -- Compiler Version: cc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -- c flags: -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -fcx-limited-range -Wall; -- asm flags: -- c flags: -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -fcx-limited-range -Wall; -- asm flags: -- Loading version 2.2.1 into constants... -- Using install prefix: /usr/local -- -- Configuring volk support... -- Enabling volk support. -- Override with -DENABLE_VOLK=ON/OFF -- Override with -DENABLE_INTERNAL_VOLK=ON/OFF -- Looked for LOG4CPP libraries named log4cpp;orocos-log4cpp. CMake Error at cmake/Modules/FindLOG4CPP.cmake:46 (message): Could NOT find LOG4CPP library Call Stack (most recent call first): CMakeLists.txt:467 (find_package) -- Configuring incomplete, errors occurred! See also "/home/rtt1/workarea/gnuradio/build/CMakeFiles/CMakeOutput.log". See also "/home/rtt1/workarea/gnuradio/build/CMakeFiles/CMakeError.log".
最新发布
08-09
在使用 CMake 构建项目时,若提示 `CMake could not find LOG4CPP library`,通常表示 CMake 无法自动定位 log4cpp 的头文件和库文件。此类问题可以通过以下方式解决: ### 手动编写 `log4cppConfig.cmake` 文件 若 log4cpp 是手动编译安装的,可能缺少 CMake 的配置文件(如 `log4cppConfig.cmake`)。可以手动编写该文件以供 `find_package` 使用: ```cmake find_path(LOG4CPP_INCLUDE_DIR NAMES log4cpp PATHS "${CMAKE_CURRENT_LIST_DIR}/include") find_library(LOG4CPP_LIBRARY NAMES log4cpp PATHS "${CMAKE_CURRENT_LIST_DIR}/lib") if (LOG4CPP_INCLUDE_DIR AND LOG4CPP_LIBRARY) set(LOG4CPP_FOUND TRUE) set(LOG4CPP_LIBRARIES ${LOG4CPP_LIBRARY}) set(LOG4CPP_INCLUDE_DIRS ${LOG4CPP_INCLUDE_DIR}) else () set(LOG4CPP_FOUND FALSE) message(WARNING "LOG4CPP not found") endif () if (LOG4CPP_FOUND) if (NOT LOG4CPP_FIND_QUIETLY) message(STATUS "Found LOG4CPP: ${LOG4CPP_LIBRARIES}") endif () else () if (LOG4CPP_FIND_REQUIRED) message(STATUS "Looked for LOG4CPP libraries named ${LOG4CPP_NAMES}.") message(FATAL_ERROR "Could NOT find LOG4CPP library") endif () endif () ``` 将该文件放置在 log4cpp 的安装路径中,例如 `/usr/local/lib/cmake/log4cpp/`,以便 CMake 能够找到它[^1]。 ### 在 `CMakeLists.txt` 中手动指定路径 若自动查找失败,可以在 `CMakeLists.txt` 中手动指定 log4cpp 的头文件目录和库路径: ```cmake set(LOG4CPP_INCLUDE_DIR /path/to/log4cpp/include) set(LOG4CPP_LIBRARY /path/to/log4cpp/lib/liblog4cpp.a) ``` 然后在项目中使用: ```cmake include_directories(${LOG4CPP_INCLUDE_DIR}) target_link_libraries(your_target_name ${LOG4CPP_LIBRARY}) ``` 这种方式适用于 log4cpp 安装路径未加入系统环境变量的情况[^2]。 ### 使用 `FindLog4Cpp.cmake` 模块 对于 GNU Radio 等项目,需要引入 `FindLog4Cpp.cmake` 模块来查找 log4cpp。该模块通常不在默认路径中,需手动复制到项目中的 `cmake/Modules/` 目录,并在 `CMakeLists.txt` 中启用日志功能: ```cmake list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules") include(GrMiscUtils) GR_LOGGING() ``` 这将确保构建系统能够找到 log4cpp 并启用日志记录功能[^3]。 ### 确保 log4cpp 正确安装 检查 log4cpp 是否已正确安装,其头文件应位于 `/usr/local/include/log4cpp`,静态库或动态库应位于 `/usr/local/lib/`。若未安装,可通过以下命令安装: ```bash make install ``` 确保安装路径已加入系统环境变量,或在 CMake 配置中明确指定路径[^1]。 --- ###
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值