Open car1000 opened 4 months ago
An error occurred with the class loader
2024-07-09 20:33:29.905 [http-nio-8080-exec-26] ERROR o.s.b.w.s.s.ErrorPageFilter Forwarding to error page from request [/getTransactionInfo.pinpoint] due to exception [class java.lang.String cannot be cast to class com.navercorp.pinpoint.common.util.StringStringValue (java.lang.String is in module java.base of loader 'bootstrap'; com.navercorp.pinpoint.common.util.StringStringValue is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @5b9b45b4)] java.lang.ClassCastException: class java.lang.String cannot be cast to class com.navercorp.pinpoint.common.util.StringStringValue (java.lang.String is in module java.base of loader 'bootstrap'; com.navercorp.pinpoint.common.util.StringStringValue is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @5b9b45b4)
What causes this?
We haven't modified the code. This is all source code. monogo is used in the code on the user side.
We are using version 4.5.2
We wrote a controller on navercorp.pinpoint.web of ppweb.
package com.huawei.gaia.monitor.web.controller;
@GetMapping(value = "/getTransactionInfo") public CallStackInfoVo getTransactionInfo(@RequestParam("traceId") String traceId, @RequestParam(value = "focusTimestamp", required = false, defaultValue = DEFAULT_FOCUS_TIMESTAMP) long focusTimestamp, @RequestParam(value = "agentId", required = false) String agentId, @RequestParam(value = "spanId", required = false, defaultValue = DEFAULT_SPANID) long spanId, @RequestParam(value = "v", required = false, defaultValue = "0") int viewVersion) { logger.info("Chenqiang============================================== GET /transactionInfo params {traceId={}, focusTimestamp={}, agentId={}, spanId={}, v={}}", traceId, focusTimestamp, agentId, spanId, viewVersion); final TransactionId transactionId = TransactionIdUtils.parseTransactionId(traceId); final ColumnGetCount columnGetCount = ColumnGetCountFactory.create(callstackSelectSpansLimit);