android-cannot resolve the method(handlerMessage(android.os.Message))

本文解决了一个常见的Android开发问题:由于导入错误导致的sendMessage方法无法识别。作者分享了正确的导入方式并提醒开发者注意避免类似错误。

搜来搜去 这个问题  不知道为啥不识别sendmessage这个方法

其实 仅仅是因为导包错误而已

import android.os.Handler;
这是我们需要导入的

看看你

是不是导成别的包里的handler啦

这种错误不是第一次犯了,还老是浪费好多时间

吃好几堑了,该长点儿记性啦!


package com.videogo.ui.login; import android.app.AlertDialog; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.ViewGroup; import android.view.Window; import android.view.WindowManager; import android.widget.AdapterView; import android.widget.BaseAdapter; import android.widget.Button; import android.widget.DatePicker; import android.widget.ImageButton; import android.widget.ListView; import android.widget.RelativeLayout; import android.widget.TextView; import android.widget.Toast; import androidx.appcompat.app.AppCompatActivity; import com.videogo.openapi.EZOpenSDK; import ezviz.ezopensdk.R; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.net.HttpURLConnection; import java.net.URL; import java.net.URLEncoder; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.List; import java.util.Locale; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; public class FanHui extends AppCompatActivity { private static final String TAG = "EZPlayback"; private String mAppKey; private String mDeviceSerial; private String mVerifyCode; private String mAccessToken; private int mCameraNo; private TextView mDateTextView; private int mSelectedYear, mSelectedMonth, mSelectedDay; private static final String KEY_APPKEY = "appkey"; private static final String KEY_SERIAL = "serial"; private static final String KEY_VERIFYCODE = "VerifyCode"; private static final String KEY_ACCESSTOKEN = "accessToken"; private static final String KEY_CAMERANO = "cameraNo"; // 回放录像相关 private static final String VIDEO_BY_TIME_URL = "https://open.ys7.com/api/lapp/video/by/time"; private ExecutorService mExecutorService; private ListView mListView; private PlaybackAdapter mAdapter; private List<VideoInfo> mVideoList = new ArrayList<>(); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.ez_playback_list_page); // 创建线程池 mExecutorService = Executors.newFixedThreadPool(2); extractParametersFromIntent(); final Calendar calendar = Calendar.getInstance(); mSelectedYear = calendar.get(Calendar.YEAR); mSelectedMonth = calendar.get(Calendar.MONTH); mSelectedDay = calendar.get(Calendar.DAY_OF_MONTH); // 初始化视图 initViews(); // 设置日期显示模块 setupDatePicker(); // 默认加载当天的录像 loadVideosForSelectedDate(); } private void initViews() { // 查找ListView mListView = findViewById(R.id.listView); if (mListView == null) { Log.e(TAG, "ListView not found with ID listView"); return; } // 初始化适配器 mAdapter = new PlaybackAdapter(); mListView.setAdapter(mAdapter); // 设置点击事件 mListView.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { VideoInfo video = mVideoList.get(position); playVideo(video); } }); } private void setupDatePicker() { mDateTextView = findViewById(R.id.date_text); ImageButton datePickerButton = findViewById(R.id.date_picker_button); updateDateDisplay(); datePickerButton.setOnClickListener(v -> showDatePickerDialog()); } private void updateDateDisplay() { String formattedDate = String.format(Locale.getDefault(), "%d年%02d月%02d日", mSelectedYear, mSelectedMonth + 1, // 月份需要+1 mSelectedDay); mDateTextView.setText(formattedDate); } private void showDatePickerDialog() { final AlertDialog dlg = new AlertDialog.Builder(this, R.style.Theme_AppCompat_Dialog).create(); dlg.show(); Window window = dlg.getWindow(); window.setContentView(R.layout.datepicker_layout); // 设置对话框宽度 WindowManager.LayoutParams lp = window.getAttributes(); lp.width = WindowManager.LayoutParams.MATCH_PARENT; window.setAttributes(lp); // 获取并初始化 DatePicker DatePicker dpPicker = window.findViewById(R.id.dpPicker); // 隐藏不需要的视图 ViewGroup rootView = (ViewGroup) dpPicker.getChildAt(0); if (rootView != null) { ViewGroup childView = (ViewGroup) rootView.getChildAt(0); if (childView != null) { childView.getChildAt(2).setVisibility(View.VISIBLE); // 确保月选择器可见 childView.getChildAt(1).setVisibility(View.VISIBLE); } } dpPicker.init(mSelectedYear, mSelectedMonth, mSelectedDay, null); // 设置按钮事件 RelativeLayout yesButton = window.findViewById(R.id.YES); RelativeLayout noButton = window.findViewById(R.id.NO); yesButton.setOnClickListener(v -> { mSelectedYear = dpPicker.getYear(); mSelectedMonth = dpPicker.getMonth(); mSelectedDay = dpPicker.getDayOfMonth(); updateDateDisplay(); dlg.dismiss(); // 加载新选择的日期的录像 loadVideosForSelectedDate(); }); noButton.setOnClickListener(v -> dlg.dismiss()); } private void extractParametersFromIntent() { Bundle extras = getIntent().getExtras(); if (extras != null) { mAppKey = extras.getString(KEY_APPKEY, ""); mDeviceSerial = extras.getString(KEY_SERIAL, ""); mVerifyCode = extras.getString(KEY_VERIFYCODE, ""); mAccessToken = extras.getString(KEY_ACCESSTOKEN, ""); mCameraNo = extras.getInt(KEY_CAMERANO, 0); Log.d(TAG, "Received parameters:"); Log.d(TAG, "AppKey: " + mAppKey); Log.d(TAG, "DeviceSerial: " + mDeviceSerial); Log.d(TAG, "VerifyCode: " + mVerifyCode); Log.d(TAG, "AccessToken: " + mAccessToken); Log.d(TAG, "CameraNo: " + mCameraNo); } else { Log.e(TAG, "No parameters received from intent"); } } private void loadVideosForSelectedDate() { // 计算开始和结束时间戳 Calendar cal = Calendar.getInstance(); cal.set(mSelectedYear, mSelectedMonth, mSelectedDay, 0, 0, 0); long startTime = cal.getTimeInMillis(); cal.set(mSelectedYear, mSelectedMonth, mSelectedDay, 23, 59, 59); long endTime = cal.getTimeInMillis(); // 发起网络请求获取录像 fetchVideosByTime(startTime, endTime); } private void fetchVideosByTime(long startTime, long endTime) { mExecutorService.execute(() -> { try { URL url = new URL(VIDEO_BY_TIME_URL); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setRequestMethod("POST"); conn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); conn.setDoOutput(true); conn.setConnectTimeout(10000); conn.setReadTimeout(10000); // 构建POST数据 StringBuilder postData = new StringBuilder(); postData.append("accessToken=").append(URLEncoder.encode(mAccessToken, "UTF-8")); postData.append("&deviceSerial=").append(URLEncoder.encode(mDeviceSerial, "UTF-8")); postData.append("&channelNo=").append(mCameraNo); postData.append("&startTime=").append(startTime); postData.append("&endTime=").append(endTime); postData.append("&recType=").append(0); // 系统自动选择 // 发送请求 OutputStream os = conn.getOutputStream(); os.write(postData.toString().getBytes("UTF-8")); os.flush(); os.close(); // 处理响应 int responseCode = conn.getResponseCode(); if (responseCode == HttpURLConnection.HTTP_OK) { // 读取响应内容 InputStream is = conn.getInputStream(); BufferedReader reader = new BufferedReader(new InputStreamReader(is)); StringBuilder response = new StringBuilder(); String line; while ((line = reader.readLine()) != null) { response.append(line); } reader.close(); // 解析JSON响应 JSONObject json = new JSONObject(response.toString()); String code = json.optString("code", "0"); if ("200".equals(code)) { JSONArray data = json.getJSONArray("data"); List<VideoInfo> videos = parseVideoData(data); runOnUiThread(() -> { mVideoList.clear(); mVideoList.addAll(videos); mAdapter.notifyDataSetChanged(); }); } else { String msg = json.optString("msg", "未知错误"); Log.e(TAG, "获取录像失败: " + msg); runOnUiThread(() -> Toast.makeText(FanHui.this, "获取录像失败: " + msg, Toast.LENGTH_SHORT).show()); } } else { Log.e(TAG, "HTTP错误: " + responseCode); runOnUiThread(() -> Toast.makeText(FanHui.this, "网络请求失败: " + responseCode, Toast.LENGTH_SHORT).show()); } conn.disconnect(); } catch (Exception e) { Log.e(TAG, "获取录像异常", e); runOnUiThread(() -> Toast.makeText(FanHui.this, "获取录像出错: " + e.getMessage(), Toast.LENGTH_SHORT).show()); } }); } private List<VideoInfo> parseVideoData(JSONArray data) throws JSONException { List<VideoInfo> videos = new ArrayList<>(); SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss", Locale.getDefault()); for (int i = 0; i < data.length(); i++) { JSONObject videoObj = data.getJSONObject(i); VideoInfo video = new VideoInfo(); video.id = videoObj.optString("id"); video.startTime = videoObj.optLong("startTime"); video.endTime = videoObj.optLong("endTime"); video.recType = videoObj.optInt("recType"); // 格式化时间显示 Date startDate = new Date(video.startTime); Date endDate = new Date(video.endTime); video.timeRange = sdf.format(startDate) + " - " + sdf.format(endDate); videos.add(video); } return videos; } private void playVideo(VideoInfo video) { // 使用EZOpenSDK播放回放录像 try { // 创建播放器实例 EZPlayer player = EZOpenSDK.getInstance().createPlayer(mDeviceSerial, mCameraNo); // 配置播放器 player.setHandler(new Handler()); player.setPlayVerifyCode(mVerifyCode); // 开始回放 player.startPlayback(video.startTime, video.endTime); // 这里需要将播放器与界面中的播放窗口关联 // 通常需要获取TextureView或SurfaceView的holder // 例如:player.setSurfaceHolder(surfaceHolder); Toast.makeText(this, "开始播放录像: " + video.timeRange, Toast.LENGTH_SHORT).show(); } catch (Exception e) { Log.e(TAG, "播放录像失败", e); Toast.makeText(this, "播放录像失败: " + e.getMessage(), Toast.LENGTH_SHORT).show(); } } @Override protected void onDestroy() { super.onDestroy(); if (mExecutorService != null) { mExecutorService.shutdown(); } } // 录像信息数据结构 private static class VideoInfo { String id; long startTime; long endTime; int recType; String timeRange; } // 列表适配器 private class PlaybackAdapter extends BaseAdapter { @Override public int getCount() { return mVideoList.size(); } @Override public Object getItem(int position) { return mVideoList.get(position); } @Override public long getItemId(int position) { return position; } @Override public View getView(int position, View convertView, ViewGroup parent) { ViewHolder holder; if (convertView == null) { convertView = getLayoutInflater().inflate(R.layout.video_item_layout, parent, false); holder = new ViewHolder(); holder.timeTextView = convertView.findViewById(R.id.time_text); holder.durationTextView = convertView.findViewById(R.id.duration_text); convertView.setTag(holder); } else { holder = (ViewHolder) convertView.getTag(); } VideoInfo video = mVideoList.get(position); // 计算持续时间(分钟) long durationMinutes = (video.endTime - video.startTime) / (1000 * 60); holder.timeTextView.setText(video.timeRange); holder.durationTextView.setText(durationMinutes + "分钟"); return convertView; } class ViewHolder { TextView timeTextView; TextView durationTextView; } } // 简单的Handler实现 private static class Handler implements android.os.Handler.Callback { @Override public boolean handleMessage(Message msg) { // 处理播放器回调 return false; } } } 依据上述代码解决这7个报错:Cannot resolve symbol 'EZPlayer' Cannot resolve method 'setHandler(com.videogo.ui.login.FanHui.Handler)' Cannot resolve method 'setPlayVerifyCode(java.lang.String)' Cannot resolve method 'startPlayback(long, long)' Class 'Handler' must either be declared abstract or implement abstract method 'handleMessage(Message)' in 'Callback' Method does not override method from its superclass Cannot resolve symbol 'Message'
06-26
D:\sdk\bin\java.exe -XX:TieredStopAtLevel=1 -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-Dmanagement.endpoints.jmx.exposure.include=*" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2022.3.3\lib\idea_rt.jar=52652:C:\Program Files\JetBrains\IntelliJ IDEA 2022.3.3\bin" -Dfile.encoding=UTF-8 -classpath D:\Company\tongling\tongling1\xueyi-modules\xueyi-tenant\target\classes;D:\maven\repository\com\alibaba\cloud\spring-cloud-starter-alibaba-nacos-discovery\2021.0.4.0\spring-cloud-starter-alibaba-nacos-discovery-2021.0.4.0.jar;D:\maven\repository\com\alibaba\cloud\spring-cloud-alibaba-commons\2021.0.4.0\spring-cloud-alibaba-commons-2021.0.4.0.jar;D:\maven\repository\com\alibaba\nacos\nacos-client\2.0.4\nacos-client-2.0.4.jar;D:\maven\repository\commons-codec\commons-codec\1.15\commons-codec-1.15.jar;D:\maven\repository\com\fasterxml\jackson\core\jackson-core\2.13.4\jackson-core-2.13.4.jar;D:\maven\repository\com\fasterxml\jackson\core\jackson-databind\2.13.4.2\jackson-databind-2.13.4.2.jar;D:\maven\repository\com\fasterxml\jackson\core\jackson-annotations\2.13.4\jackson-annotations-2.13.4.jar;D:\maven\repository\org\apache\httpcomponents\httpasyncclient\4.1.5\httpasyncclient-4.1.5.jar;D:\maven\repository\org\apache\httpcomponents\httpcore\4.4.16\httpcore-4.4.16.jar;D:\maven\repository\org\apache\httpcomponents\httpcore-nio\4.4.16\httpcore-nio-4.4.16.jar;D:\maven\repository\org\apache\httpcomponents\httpclient\4.5.14\httpclient-4.5.14.jar;D:\maven\repository\org\reflections\reflections\0.9.11\reflections-0.9.11.jar;D:\maven\repository\com\google\guava\guava\20.0\guava-20.0.jar;D:\maven\repository\org\javassist\javassist\3.21.0-GA\javassist-3.21.0-GA.jar;D:\maven\repository\io\prometheus\simpleclient\0.15.0\simpleclient-0.15.0.jar;D:\maven\repository\io\prometheus\simpleclient_tracer_otel\0.15.0\simpleclient_tracer_otel-0.15.0.jar;D:\maven\repository\io\prometheus\simpleclient_tracer_common\0.15.0\simpleclient_tracer_common-0.15.0.jar;D:\maven\repository\io\prometheus\simpleclient_tracer_otel_agent\0.15.0\simpleclient_tracer_otel_agent-0.15.0.jar;D:\maven\repository\org\yaml\snakeyaml\1.30\snakeyaml-1.30.jar;D:\maven\repository\com\alibaba\spring\spring-context-support\1.0.11\spring-context-support-1.0.11.jar;D:\maven\repository\org\springframework\cloud\spring-cloud-commons\3.1.5\spring-cloud-commons-3.1.5.jar;D:\maven\repository\org\springframework\security\spring-security-crypto\5.7.6\spring-security-crypto-5.7.6.jar;D:\maven\repository\org\springframework\cloud\spring-cloud-context\3.1.5\spring-cloud-context-3.1.5.jar;D:\maven\repository\com\alibaba\cloud\spring-cloud-starter-alibaba-nacos-config\2021.0.4.0\spring-cloud-starter-alibaba-nacos-config-2021.0.4.0.jar;D:\maven\repository\org\slf4j\slf4j-api\1.7.36\slf4j-api-1.7.36.jar;D:\maven\repository\com\alibaba\cloud\spring-cloud-starter-alibaba-sentinel\2021.0.4.0\spring-cloud-starter-alibaba-sentinel-2021.0.4.0.jar;D:\maven\repository\com\alibaba\csp\sentinel-transport-simple-http\1.8.5\sentinel-transport-simple-http-1.8.5.jar;D:\maven\repository\com\alibaba\csp\sentinel-transport-common\1.8.5\sentinel-transport-common-1.8.5.jar;D:\maven\repository\com\alibaba\csp\sentinel-datasource-extension\1.8.5\sentinel-datasource-extension-1.8.5.jar;D:\maven\repository\com\alibaba\fastjson\1.2.83_noneautotype\fastjson-1.2.83_noneautotype.jar;D:\maven\repository\com\alibaba\csp\sentinel-annotation-aspectj\1.8.5\sentinel-annotation-aspectj-1.8.5.jar;D:\maven\repository\com\alibaba\csp\sentinel-core\1.8.5\sentinel-core-1.8.5.jar;D:\maven\repository\org\aspectj\aspectjweaver\1.9.7\aspectjweaver-1.9.7.jar;D:\maven\repository\com\alibaba\cloud\spring-cloud-circuitbreaker-sentinel\2021.0.4.0\spring-cloud-circuitbreaker-sentinel-2021.0.4.0.jar;D:\maven\repository\com\alibaba\csp\sentinel-reactor-adapter\1.8.5\sentinel-reactor-adapter-1.8.5.jar;D:\maven\repository\com\alibaba\csp\sentinel-spring-webflux-adapter\1.8.5\sentinel-spring-webflux-adapter-1.8.5.jar;D:\maven\repository\com\alibaba\csp\sentinel-spring-webmvc-adapter\1.8.5\sentinel-spring-webmvc-adapter-1.8.5.jar;D:\maven\repository\com\alibaba\csp\sentinel-parameter-flow-control\1.8.5\sentinel-parameter-flow-control-1.8.5.jar;D:\maven\repository\com\googlecode\concurrentlinkedhashmap\concurrentlinkedhashmap-lru\1.4.2\concurrentlinkedhashmap-lru-1.4.2.jar;D:\maven\repository\com\alibaba\csp\sentinel-cluster-server-default\1.8.5\sentinel-cluster-server-default-1.8.5.jar;D:\maven\repository\com\alibaba\csp\sentinel-cluster-common-default\1.8.5\sentinel-cluster-common-default-1.8.5.jar;D:\maven\repository\io\netty\netty-handler\4.1.86.Final\netty-handler-4.1.86.Final.jar;D:\maven\repository\io\netty\netty-common\4.1.86.Final\netty-common-4.1.86.Final.jar;D:\maven\repository\io\netty\netty-resolver\4.1.86.Final\netty-resolver-4.1.86.Final.jar;D:\maven\repository\io\netty\netty-buffer\4.1.86.Final\netty-buffer-4.1.86.Final.jar;D:\maven\repository\io\netty\netty-transport\4.1.86.Final\netty-transport-4.1.86.Final.jar;D:\maven\repository\io\netty\netty-transport-native-unix-common\4.1.86.Final\netty-transport-native-unix-common-4.1.86.Final.jar;D:\maven\repository\io\netty\netty-codec\4.1.86.Final\netty-codec-4.1.86.Final.jar;D:\maven\repository\com\alibaba\csp\sentinel-cluster-client-default\1.8.5\sentinel-cluster-client-default-1.8.5.jar;D:\maven\repository\com\alibaba\cloud\spring-cloud-alibaba-sentinel-datasource\2021.0.4.0\spring-cloud-alibaba-sentinel-datasource-2021.0.4.0.jar;D:\maven\repository\org\springframework\boot\spring-boot-starter-actuator\2.7.7\spring-boot-starter-actuator-2.7.7.jar;D:\maven\repository\org\springframework\boot\spring-boot-starter\2.7.7\spring-boot-starter-2.7.7.jar;D:\maven\repository\org\springframework\boot\spring-boot\2.7.7\spring-boot-2.7.7.jar;D:\maven\repository\org\springframework\spring-context\5.3.24\spring-context-5.3.24.jar;D:\maven\repository\org\springframework\boot\spring-boot-autoconfigure\2.7.7\spring-boot-autoconfigure-2.7.7.jar;D:\maven\repository\org\springframework\boot\spring-boot-starter-logging\2.7.7\spring-boot-starter-logging-2.7.7.jar;D:\maven\repository\ch\qos\logback\logback-classic\1.2.11\logback-classic-1.2.11.jar;D:\maven\repository\ch\qos\logback\logback-core\1.2.11\logback-core-1.2.11.jar;D:\maven\repository\org\apache\logging\log4j\log4j-to-slf4j\2.17.2\log4j-to-slf4j-2.17.2.jar;D:\maven\repository\org\apache\logging\log4j\log4j-api\2.17.2\log4j-api-2.17.2.jar;D:\maven\repository\org\slf4j\jul-to-slf4j\1.7.36\jul-to-slf4j-1.7.36.jar;D:\maven\repository\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;D:\maven\repository\org\springframework\spring-core\5.3.24\spring-core-5.3.24.jar;D:\maven\repository\org\springframework\spring-jcl\5.3.24\spring-jcl-5.3.24.jar;D:\maven\repository\org\springframework\boot\spring-boot-actuator-autoconfigure\2.7.7\spring-boot-actuator-autoconfigure-2.7.7.jar;D:\maven\repository\org\springframework\boot\spring-boot-actuator\2.7.7\spring-boot-actuator-2.7.7.jar;D:\maven\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.13.4\jackson-datatype-jsr310-2.13.4.jar;D:\maven\repository\io\micrometer\micrometer-core\1.9.6\micrometer-core-1.9.6.jar;D:\maven\repository\org\hdrhistogram\HdrHistogram\2.1.12\HdrHistogram-2.1.12.jar;D:\maven\repository\org\latencyutils\LatencyUtils\2.0.3\LatencyUtils-2.0.3.jar;D:\Company\tongling\tongling1\xueyi-common\xueyi-common-log\target\classes;D:\Company\tongling\tongling1\xueyi-common\xueyi-common-security\target\classes;D:\maven\repository\org\springframework\spring-webmvc\5.3.24\spring-webmvc-5.3.24.jar;D:\maven\repository\org\springframework\spring-aop\5.3.24\spring-aop-5.3.24.jar;D:\maven\repository\org\springframework\spring-beans\5.3.24\spring-beans-5.3.24.jar;D:\maven\repository\org\springframework\spring-expression\5.3.24\spring-expression-5.3.24.jar;D:\Company\tongling\tongling1\xueyi-api\xueyi-api-system\target\classes;D:\Company\tongling\tongling1\xueyi-common\xueyi-common-redis\target\classes;D:\maven\repository\org\springframework\boot\spring-boot-starter-data-redis\2.7.7\spring-boot-starter-data-redis-2.7.7.jar;D:\maven\repository\org\springframework\data\spring-data-redis\2.7.6\spring-data-redis-2.7.6.jar;D:\maven\repository\org\springframework\data\spring-data-keyvalue\2.7.6\spring-data-keyvalue-2.7.6.jar;D:\maven\repository\org\springframework\data\spring-data-commons\2.7.6\spring-data-commons-2.7.6.jar;D:\maven\repository\org\springframework\spring-tx\5.3.24\spring-tx-5.3.24.jar;D:\maven\repository\org\springframework\spring-oxm\5.3.24\spring-oxm-5.3.24.jar;D:\maven\repository\io\lettuce\lettuce-core\6.1.10.RELEASE\lettuce-core-6.1.10.RELEASE.jar;D:\Company\tongling\tongling1\xueyi-common\xueyi-common-web\target\classes;D:\maven\repository\com\mysql\mysql-connector-j\8.0.31\mysql-connector-j-8.0.31.jar;D:\Company\tongling\tongling1\xueyi-common\xueyi-common-datascope\target\classes;D:\Company\tongling\tongling1\xueyi-common\xueyi-common-datasource\target\classes;D:\maven\repository\com\alibaba\druid-spring-boot-starter\1.2.16\druid-spring-boot-starter-1.2.16.jar;D:\maven\repository\com\alibaba\druid\1.2.16\druid-1.2.16.jar;D:\maven\repository\com\baomidou\dynamic-datasource-spring-boot-starter\3.5.2\dynamic-datasource-spring-boot-starter-3.5.2.jar;D:\maven\repository\org\springframework\boot\spring-boot-starter-jdbc\2.7.7\spring-boot-starter-jdbc-2.7.7.jar;D:\maven\repository\com\zaxxer\HikariCP\4.0.3\HikariCP-4.0.3.jar;D:\maven\repository\org\springframework\spring-jdbc\5.3.24\spring-jdbc-5.3.24.jar;D:\maven\repository\org\springframework\boot\spring-boot-starter-aop\2.7.7\spring-boot-starter-aop-2.7.7.jar;D:\Company\tongling\tongling1\xueyi-common\xueyi-common-cache\target\classes;D:\maven\repository\com\alibaba\cloud\spring-cloud-starter-alibaba-seata\2021.0.4.0\spring-cloud-starter-alibaba-seata-2021.0.4.0.jar;D:\maven\repository\io\seata\seata-spring-boot-starter\1.5.2\seata-spring-boot-starter-1.5.2.jar;D:\maven\repository\io\seata\seata-spring-autoconfigure-client\1.5.2\seata-spring-autoconfigure-client-1.5.2.jar;D:\maven\repository\io\seata\seata-spring-autoconfigure-core\1.5.2\seata-spring-autoconfigure-core-1.5.2.jar;D:\maven\repository\io\seata\seata-all\1.5.2\seata-all-1.5.2.jar;D:\maven\repository\io\netty\netty-all\4.1.86.Final\netty-all-4.1.86.Final.jar;D:\maven\repository\io\netty\netty-codec-dns\4.1.86.Final\netty-codec-dns-4.1.86.Final.jar;D:\maven\repository\io\netty\netty-codec-haproxy\4.1.86.Final\netty-codec-haproxy-4.1.86.Final.jar;D:\maven\repository\io\netty\netty-codec-http\4.1.86.Final\netty-codec-http-4.1.86.Final.jar;D:\maven\repository\io\netty\netty-codec-http2\4.1.86.Final\netty-codec-http2-4.1.86.Final.jar;D:\maven\repository\io\netty\netty-codec-memcache\4.1.86.Final\netty-codec-memcache-4.1.86.Final.jar;D:\maven\repository\io\netty\netty-codec-mqtt\4.1.86.Final\netty-codec-mqtt-4.1.86.Final.jar;D:\maven\repository\io\netty\netty-codec-redis\4.1.86.Final\netty-codec-redis-4.1.86.Final.jar;D:\maven\repository\io\netty\netty-codec-smtp\4.1.86.Final\netty-codec-smtp-4.1.86.Final.jar;D:\maven\repository\io\netty\netty-codec-socks\4.1.86.Final\netty-codec-socks-4.1.86.Final.jar;D:\maven\repository\io\netty\netty-codec-stomp\4.1.86.Final\netty-codec-stomp-4.1.86.Final.jar;D:\maven\repository\io\netty\netty-codec-xml\4.1.86.Final\netty-codec-xml-4.1.86.Final.jar;D:\maven\repository\io\netty\netty-handler-proxy\4.1.86.Final\netty-handler-proxy-4.1.86.Final.jar;D:\maven\repository\io\netty\netty-handler-ssl-ocsp\4.1.86.Final\netty-handler-ssl-ocsp-4.1.86.Final.jar;D:\maven\repository\io\netty\netty-resolver-dns\4.1.86.Final\netty-resolver-dns-4.1.86.Final.jar;D:\maven\repository\io\netty\netty-transport-rxtx\4.1.86.Final\netty-transport-rxtx-4.1.86.Final.jar;D:\maven\repository\io\netty\netty-transport-sctp\4.1.86.Final\netty-transport-sctp-4.1.86.Final.jar;D:\maven\repository\io\netty\netty-transport-udt\4.1.86.Final\netty-transport-udt-4.1.86.Final.jar;D:\maven\repository\io\netty\netty-transport-classes-epoll\4.1.86.Final\netty-transport-classes-epoll-4.1.86.Final.jar;D:\maven\repository\io\netty\netty-transport-classes-kqueue\4.1.86.Final\netty-transport-classes-kqueue-4.1.86.Final.jar;D:\maven\repository\io\netty\netty-resolver-dns-classes-macos\4.1.86.Final\netty-resolver-dns-classes-macos-4.1.86.Final.jar;D:\maven\repository\io\netty\netty-transport-native-epoll\4.1.86.Final\netty-transport-native-epoll-4.1.86.Final-linux-x86_64.jar;D:\maven\repository\io\netty\netty-transport-native-epoll\4.1.86.Final\netty-transport-native-epoll-4.1.86.Final-linux-aarch_64.jar;D:\maven\repository\io\netty\netty-transport-native-kqueue\4.1.86.Final\netty-transport-native-kqueue-4.1.86.Final-osx-x86_64.jar;D:\maven\repository\io\netty\netty-transport-native-kqueue\4.1.86.Final\netty-transport-native-kqueue-4.1.86.Final-osx-aarch_64.jar;D:\maven\repository\io\netty\netty-resolver-dns-native-macos\4.1.86.Final\netty-resolver-dns-native-macos-4.1.86.Final-osx-x86_64.jar;D:\maven\repository\io\netty\netty-resolver-dns-native-macos\4.1.86.Final\netty-resolver-dns-native-macos-4.1.86.Final-osx-aarch_64.jar;D:\maven\repository\org\antlr\antlr4\4.8\antlr4-4.8.jar;D:\maven\repository\org\antlr\antlr4-runtime\4.8\antlr4-runtime-4.8.jar;D:\maven\repository\org\antlr\antlr-runtime\3.5.2\antlr-runtime-3.5.2.jar;D:\maven\repository\org\antlr\ST4\4.3\ST4-4.3.jar;D:\maven\repository\org\abego\treelayout\org.abego.treelayout.core\1.0.3\org.abego.treelayout.core-1.0.3.jar;D:\maven\repository\org\glassfish\javax.json\1.0.4\javax.json-1.0.4.jar;D:\maven\repository\com\ibm\icu\icu4j\61.1\icu4j-61.1.jar;D:\maven\repository\com\typesafe\config\1.2.1\config-1.2.1.jar;D:\maven\repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;D:\maven\repository\org\apache\commons\commons-pool2\2.11.1\commons-pool2-2.11.1.jar;D:\maven\repository\commons-pool\commons-pool\1.6\commons-pool-1.6.jar;D:\maven\repository\cglib\cglib\3.1\cglib-3.1.jar;D:\maven\repository\org\ow2\asm\asm\4.2\asm-4.2.jar;D:\maven\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;D:\maven\repository\com\github\ben-manes\caffeine\caffeine\2.9.3\caffeine-2.9.3.jar;D:\maven\repository\org\checkerframework\checker-qual\3.19.0\checker-qual-3.19.0.jar;D:\maven\repository\com\google\errorprone\error_prone_annotations\2.10.0\error_prone_annotations-2.10.0.jar;D:\maven\repository\com\google\zxing\core\3.3.1\core-3.3.1.jar;D:\Company\tongling\tongling1\xueyi-common\xueyi-common-swagger\target\classes;D:\maven\repository\org\springframework\boot\spring-boot-starter-web\2.7.7\spring-boot-starter-web-2.7.7.jar;D:\maven\repository\org\springframework\boot\spring-boot-starter-json\2.7.7\spring-boot-starter-json-2.7.7.jar;D:\maven\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.13.4\jackson-datatype-jdk8-2.13.4.jar;D:\maven\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.13.4\jackson-module-parameter-names-2.13.4.jar;D:\maven\repository\org\springframework\boot\spring-boot-starter-tomcat\2.7.7\spring-boot-starter-tomcat-2.7.7.jar;D:\maven\repository\org\apache\tomcat\embed\tomcat-embed-core\9.0.70\tomcat-embed-core-9.0.70.jar;D:\maven\repository\org\apache\tomcat\embed\tomcat-embed-el\9.0.70\tomcat-embed-el-9.0.70.jar;D:\maven\repository\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.70\tomcat-embed-websocket-9.0.70.jar;D:\maven\repository\org\springframework\spring-web\5.3.24\spring-web-5.3.24.jar;D:\maven\repository\org\springdoc\springdoc-openapi-ui\1.6.13\springdoc-openapi-ui-1.6.13.jar;D:\maven\repository\org\springdoc\springdoc-openapi-webmvc-core\1.6.13\springdoc-openapi-webmvc-core-1.6.13.jar;D:\maven\repository\org\springdoc\springdoc-openapi-common\1.6.13\springdoc-openapi-common-1.6.13.jar;D:\maven\repository\io\swagger\core\v3\swagger-core\2.2.7\swagger-core-2.2.7.jar;D:\maven\repository\jakarta\xml\bind\jakarta.xml.bind-api\2.3.3\jakarta.xml.bind-api-2.3.3.jar;D:\maven\repository\jakarta\activation\jakarta.activation-api\1.2.2\jakarta.activation-api-1.2.2.jar;D:\maven\repository\com\fasterxml\jackson\dataformat\jackson-dataformat-yaml\2.13.4\jackson-dataformat-yaml-2.13.4.jar;D:\maven\repository\io\swagger\core\v3\swagger-annotations\2.2.7\swagger-annotations-2.2.7.jar;D:\maven\repository\io\swagger\core\v3\swagger-models\2.2.7\swagger-models-2.2.7.jar;D:\maven\repository\org\webjars\swagger-ui\4.15.5\swagger-ui-4.15.5.jar;D:\maven\repository\org\webjars\webjars-locator-core\0.50\webjars-locator-core-0.50.jar;D:\maven\repository\io\github\classgraph\classgraph\4.8.149\classgraph-4.8.149.jar;D:\Company\tongling\tongling1\xueyi-api\xueyi-api-file\target\classes;D:\Company\tongling\tongling1\xueyi-common\xueyi-common-core\target\classes;D:\maven\repository\org\springframework\cloud\spring-cloud-starter-openfeign\3.1.5\spring-cloud-starter-openfeign-3.1.5.jar;D:\maven\repository\org\springframework\cloud\spring-cloud-openfeign-core\3.1.5\spring-cloud-openfeign-core-3.1.5.jar;D:\maven\repository\io\github\openfeign\form\feign-form-spring\3.8.0\feign-form-spring-3.8.0.jar;D:\maven\repository\io\github\openfeign\form\feign-form\3.8.0\feign-form-3.8.0.jar;D:\maven\repository\commons-fileupload\commons-fileupload\1.4\commons-fileupload-1.4.jar;D:\maven\repository\io\github\openfeign\feign-core\11.10\feign-core-11.10.jar;D:\maven\repository\io\github\openfeign\feign-slf4j\11.10\feign-slf4j-11.10.jar;D:\maven\repository\org\springframework\cloud\spring-cloud-starter-loadbalancer\3.1.5\spring-cloud-starter-loadbalancer-3.1.5.jar;D:\maven\repository\org\springframework\cloud\spring-cloud-loadbalancer\3.1.5\spring-cloud-loadbalancer-3.1.5.jar;D:\maven\repository\io\projectreactor\reactor-core\3.4.26\reactor-core-3.4.26.jar;D:\maven\repository\org\reactivestreams\reactive-streams\1.0.4\reactive-streams-1.0.4.jar;D:\maven\repository\io\projectreactor\addons\reactor-extra\3.4.9\reactor-extra-3.4.9.jar;D:\maven\repository\org\springframework\boot\spring-boot-starter-cache\2.7.7\spring-boot-starter-cache-2.7.7.jar;D:\maven\repository\com\stoyanr\evictor\1.0.0\evictor-1.0.0.jar;D:\maven\repository\org\springframework\spring-context-support\5.3.24\spring-context-support-5.3.24.jar;D:\maven\repository\org\mapstruct\mapstruct\1.5.3.Final\mapstruct-1.5.3.Final.jar;D:\maven\repository\com\alibaba\transmittable-thread-local\2.14.2\transmittable-thread-local-2.14.2.jar;D:\maven\repository\com\baomidou\mybatis-plus-boot-starter\3.5.3\mybatis-plus-boot-starter-3.5.3.jar;D:\maven\repository\com\baomidou\mybatis-plus\3.5.3\mybatis-plus-3.5.3.jar;D:\maven\repository\com\baomidou\mybatis-plus-extension\3.5.3\mybatis-plus-extension-3.5.3.jar;D:\maven\repository\com\baomidou\mybatis-plus-core\3.5.3\mybatis-plus-core-3.5.3.jar;D:\maven\repository\com\baomidou\mybatis-plus-annotation\3.5.3\mybatis-plus-annotation-3.5.3.jar;D:\maven\repository\com\github\jsqlparser\jsqlparser\4.4\jsqlparser-4.4.jar;D:\maven\repository\org\mybatis\mybatis\3.5.10\mybatis-3.5.10.jar;D:\maven\repository\org\mybatis\mybatis-spring\2.0.7\mybatis-spring-2.0.7.jar;D:\maven\repository\com\github\pagehelper\pagehelper\5.3.2\pagehelper-5.3.2.jar;D:\maven\repository\org\springframework\boot\spring-boot-starter-validation\2.7.7\spring-boot-starter-validation-2.7.7.jar;D:\maven\repository\org\hibernate\validator\hibernate-validator\6.2.5.Final\hibernate-validator-6.2.5.Final.jar;D:\maven\repository\jakarta\validation\jakarta.validation-api\2.0.2\jakarta.validation-api-2.0.2.jar;D:\maven\repository\org\jboss\logging\jboss-logging\3.4.3.Final\jboss-logging-3.4.3.Final.jar;D:\maven\repository\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;D:\maven\repository\com\alibaba\fastjson2\fastjson2\2.0.25\fastjson2-2.0.25.jar;D:\maven\repository\io\jsonwebtoken\jjwt\0.9.1\jjwt-0.9.1.jar;D:\maven\repository\javax\xml\bind\jaxb-api\2.3.1\jaxb-api-2.3.1.jar;D:\maven\repository\javax\activation\javax.activation-api\1.2.0\javax.activation-api-1.2.0.jar;D:\maven\repository\org\apache\commons\commons-lang3\3.12.0\commons-lang3-3.12.0.jar;D:\maven\repository\commons-io\commons-io\2.11.0\commons-io-2.11.0.jar;D:\maven\repository\org\apache\poi\poi-ooxml\4.1.2\poi-ooxml-4.1.2.jar;D:\maven\repository\org\apache\poi\poi\4.1.2\poi-4.1.2.jar;D:\maven\repository\org\apache\commons\commons-collections4\4.4\commons-collections4-4.4.jar;D:\maven\repository\org\apache\commons\commons-math3\3.6.1\commons-math3-3.6.1.jar;D:\maven\repository\com\zaxxer\SparseBitSet\1.2\SparseBitSet-1.2.jar;D:\maven\repository\org\apache\poi\poi-ooxml-schemas\4.1.2\poi-ooxml-schemas-4.1.2.jar;D:\maven\repository\org\apache\xmlbeans\xmlbeans\3.1.0\xmlbeans-3.1.0.jar;D:\maven\repository\org\apache\commons\commons-compress\1.19\commons-compress-1.19.jar;D:\maven\repository\com\github\virtuald\curvesapi\1.06\curvesapi-1.06.jar;D:\maven\repository\javax\servlet\javax.servlet-api\4.0.1\javax.servlet-api-4.0.1.jar;D:\maven\repository\org\projectlombok\lombok\1.18.24\lombok-1.18.24.jar;D:\maven\repository\cn\hutool\hutool-core\5.8.11\hutool-core-5.8.11.jar;D:\maven\repository\cn\hutool\hutool-extra\5.8.11\hutool-extra-5.8.11.jar;D:\maven\repository\cn\hutool\hutool-setting\5.8.11\hutool-setting-5.8.11.jar;D:\maven\repository\cn\hutool\hutool-log\5.8.11\hutool-log-5.8.11.jar;D:\maven\repository\cn\hutool\hutool-crypto\5.8.11\hutool-crypto-5.8.11.jar;D:\Company\tongling\tongling1\xueyi-api\xueyi-api-tenant\target\classes;D:\maven\repository\com\belerweb\pinyin4j\2.5.1\pinyin4j-2.5.1.jar;D:\maven\repository\org\springframework\cloud\spring-cloud-starter-bootstrap\3.1.5\spring-cloud-starter-bootstrap-3.1.5.jar;D:\maven\repository\org\springframework\cloud\spring-cloud-starter\3.1.5\spring-cloud-starter-3.1.5.jar;D:\maven\repository\org\springframework\security\spring-security-rsa\1.0.11.RELEASE\spring-security-rsa-1.0.11.RELEASE.jar;D:\maven\repository\org\bouncycastle\bcpkix-jdk15on\1.69\bcpkix-jdk15on-1.69.jar;D:\maven\repository\org\bouncycastle\bcprov-jdk15on\1.69\bcprov-jdk15on-1.69.jar;D:\maven\repository\org\bouncycastle\bcutil-jdk15on\1.69\bcutil-jdk15on-1.69.jar com.xueyi.tenant.XueYiTenantApplication 10:26:04.305 [background-preinit] INFO o.h.v.i.util.Version - [<clinit>,21] - HV000001: Hibernate Validator 6.2.5.Final 10:26:05.750 [main] ERROR c.a.n.c.s.SecurityProxy - [login,149] - login failed: {"code":500,"message":"caused: Cannot invoke \"com.alibaba.nacos.plugin.auth.impl.jwt.NacosJwtParser.getExpireTimeInSeconds(String)\" because \"this.jwtParser\" is null;","header":{"header":{"Accept-Charset":"UTF-8","Authorization":"Bearer","Connection":"close","Content-Length":"142","Content-Security-Policy":"script-src 'self'","Content-Type":"text/html;charset=UTF-8","Date":"Fri, 08 Aug 2025 02:26:05 GMT","Vary":"Access-Control-Request-Headers"},"originalResponseHeader":{"Authorization":["Bearer"],"Connection":["close"],"Content-Length":["142"],"Content-Security-Policy":["script-src 'self'"],"Content-Type":["text/html;charset=UTF-8"],"Date":["Fri, 08 Aug 2025 02:26:05 GMT"],"Vary":["Access-Control-Request-Headers","Access-Control-Request-Method","Origin"]},"charset":"UTF-8"}} Spring Boot Version: 2.7.7 Spring Application Name: xueyi-tenant _______ _________ _________ _______ _ _______ _ _________ |\ /||\ /|( ____ \|\ /|\__ __/ \__ __/( ____ \( ( /|( ___ )( ( /|\__ __/ ( \ / )| ) ( || ( \/( \ / ) ) ( ) ( | ( \/| \ ( || ( ) || \ ( | ) ( \ (_) / | | | || (__ \ (_) / | | _____ | | | (__ | \ | || (___) || \ | | | | ) _ ( | | | || __) \ / | |(_____)| | | __) | (\ \) || ___ || (\ \) | | | / ( ) \ | | | || ( ) ( | | | | | ( | | \ || ( ) || | \ | | | ( / \ )| (___) || (____/\ | | ___) (___ | | | (____/\| ) \ || ) ( || ) \ | | | |/ \|(_______)(_______/ \_/ \_______/ )_( (_______/|/ )_)|/ \||/ )_) )_( 10:26:06.284 [main] INFO c.a.n.c.r.client - [lambda$createClient$0,80] - [RpcClientFactory] create a new rpc client of 064ef4c3-d861-4adb-8ecd-806e245df97b_config-0 10:26:06.470 [main] INFO o.r.Reflections - [scan,232] - Reflections took 103 ms to scan 1 urls, producing 3 keys and 6 values 10:26:06.554 [main] INFO o.r.Reflections - [scan,232] - Reflections took 35 ms to scan 1 urls, producing 4 keys and 9 values 10:26:06.598 [main] INFO o.r.Reflections - [scan,232] - Reflections took 39 ms to scan 1 urls, producing 3 keys and 10 values 10:26:06.604 [main] WARN o.r.Reflections - [scan,179] - given scan urls are empty. set urls in the configuration 10:26:06.646 [main] INFO o.r.Reflections - [scan,232] - Reflections took 39 ms to scan 1 urls, producing 1 keys and 5 values 10:26:06.679 [main] INFO o.r.Reflections - [scan,232] - Reflections took 28 ms to scan 1 urls, producing 1 keys and 7 values 10:26:06.724 [main] INFO o.r.Reflections - [scan,232] - Reflections took 38 ms to scan 1 urls, producing 2 keys and 8 values 10:26:06.731 [main] WARN o.r.Reflections - [scan,179] - given scan urls are empty. set urls in the configuration 10:26:06.734 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,60] - [064ef4c3-d861-4adb-8ecd-806e245df97b_config-0] RpcClient init label, labels = {module=config, Vipserver-Tag=null, source=sdk, Amory-Tag=null, Location-Tag=null, taskId=0, AppName=unknown} 10:26:06.736 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,60] - [064ef4c3-d861-4adb-8ecd-806e245df97b_config-0] Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda$458/0x0000000801391bf8 10:26:06.737 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,60] - [064ef4c3-d861-4adb-8ecd-806e245df97b_config-0] Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda$459/0x0000000801391e18 10:26:06.739 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,60] - [064ef4c3-d861-4adb-8ecd-806e245df97b_config-0] Registry connection listener to current client:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$1 10:26:06.740 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,60] - [064ef4c3-d861-4adb-8ecd-806e245df97b_config-0] RpcClient init, ServerListFactory = com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$2 10:26:06.815 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,60] - [064ef4c3-d861-4adb-8ecd-806e245df97b_config-0] Try to connect to server on start up, server: {serverIp = '127.0.0.1', server main port = 8848} 10:26:08.760 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,60] - [064ef4c3-d861-4adb-8ecd-806e245df97b_config-0] Success to connect to server [127.0.0.1:8848] on start up, connectionId = 1754619968459_127.0.0.1_52736 10:26:08.762 [com.alibaba.nacos.client.remote.worker] INFO c.a.n.c.r.client - [printIfInfoEnabled,60] - [064ef4c3-d861-4adb-8ecd-806e245df97b_config-0] Notify connected event to listeners. 10:26:08.762 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,60] - [064ef4c3-d861-4adb-8ecd-806e245df97b_config-0] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler 10:26:08.764 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,60] - [064ef4c3-d861-4adb-8ecd-806e245df97b_config-0] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$$Lambda$473/0x00000008014c37f0 10:26:08.957 [main] WARN c.a.c.n.c.NacosPropertySourceBuilder - [loadNacosData,87] - Ignore the empty nacos configuration and get it based on dataId[xueyi-tenant] & group[DEFAULT_GROUP] 10:26:08.967 [main] WARN c.a.c.n.c.NacosPropertySourceBuilder - [loadNacosData,87] - Ignore the empty nacos configuration and get it based on dataId[xueyi-tenant.yml] & group[DEFAULT_GROUP] 10:26:09.005 [main] INFO c.x.t.XueYiTenantApplication - [logStartupProfileInfo,637] - The following 1 profile is active: "dev" 10:26:11.197 [com.alibaba.nacos.client.Worker] ERROR c.a.n.c.s.SecurityProxy - [login,149] - login failed: {"code":500,"message":"caused: Cannot invoke \"com.alibaba.nacos.plugin.auth.impl.jwt.NacosJwtParser.getExpireTimeInSeconds(String)\" because \"this.jwtParser\" is null;","header":{"header":{"Accept-Charset":"UTF-8","Authorization":"Bearer","Connection":"close","Content-Length":"142","Content-Security-Policy":"script-src 'self'","Content-Type":"text/html;charset=UTF-8","Date":"Fri, 08 Aug 2025 02:26:11 GMT","Vary":"Access-Control-Request-Headers"},"originalResponseHeader":{"Authorization":["Bearer"],"Connection":["close"],"Content-Length":["142"],"Content-Security-Policy":["script-src 'self'"],"Content-Type":["text/html;charset=UTF-8"],"Date":["Fri, 08 Aug 2025 02:26:11 GMT"],"Vary":["Access-Control-Request-Headers","Access-Control-Request-Method","Origin"]},"charset":"UTF-8"}} 10:26:16.421 [com.alibaba.nacos.client.Worker] ERROR c.a.n.c.s.SecurityProxy - [login,149] - login failed: {"code":500,"message":"caused: Cannot invoke \"com.alibaba.nacos.plugin.auth.impl.jwt.NacosJwtParser.getExpireTimeInSeconds(String)\" because \"this.jwtParser\" is null;","header":{"header":{"Accept-Charset":"UTF-8","Authorization":"Bearer","Connection":"close","Content-Length":"142","Content-Security-Policy":"script-src 'self'","Content-Type":"text/html;charset=UTF-8","Date":"Fri, 08 Aug 2025 02:26:16 GMT","Vary":"Access-Control-Request-Headers"},"originalResponseHeader":{"Authorization":["Bearer"],"Connection":["close"],"Content-Length":["142"],"Content-Security-Policy":["script-src 'self'"],"Content-Type":["text/html;charset=UTF-8"],"Date":["Fri, 08 Aug 2025 02:26:16 GMT"],"Vary":["Access-Control-Request-Headers","Access-Control-Request-Method","Origin"]},"charset":"UTF-8"}} 10:26:16.799 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - Loaded Apache Tomcat Native library [1.3.0] using APR version [1.7.4]. 10:26:16.800 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [true]. 10:26:16.800 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true] 10:26:16.821 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - OpenSSL successfully initialized [OpenSSL 3.0.13 30 Jan 2024] 10:26:16.864 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Initializing ProtocolHandler ["http-nio-9700"] 10:26:16.865 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat] 10:26:16.865 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/9.0.70] 10:26:17.497 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext 10:26:19.447 [main] INFO c.a.d.p.DruidDataSource - [init,996] - {dataSource-1,master} inited 10:26:19.450 [main] INFO c.b.d.d.DynamicRoutingDataSource - [addDataSource,154] - dynamic-datasource - add a datasource named [master] success 10:26:19.451 [main] INFO c.b.d.d.DynamicRoutingDataSource - [afterPropertiesSet,234] - dynamic-datasource initial loaded [1] datasource,primary datasource named [master] 10:26:21.486 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - [refresh,591] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'teSourceController': Unsatisfied dependency expressed through field 'baseService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'teSourceServiceImpl': Unsatisfied dependency expressed through field 'baseManager'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'teSourceManagerImpl': Unsatisfied dependency expressed through field 'baseConverter'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.xueyi.tenant.api.source.domain.model.TeSourceConverter' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)} 10:26:21.488 [main] INFO c.b.d.d.DynamicRoutingDataSource - [destroy,211] - dynamic-datasource start closing .... 10:26:21.497 [main] INFO c.a.d.p.DruidDataSource - [close,2138] - {dataSource-1} closing ... 10:26:21.510 [main] INFO c.a.d.p.DruidDataSource - [close,2211] - {dataSource-1} closed 10:26:21.511 [main] INFO c.b.d.d.DynamicRoutingDataSource - [destroy,215] - dynamic-datasource all closed success,bye 10:26:21.515 [main] INFO o.a.c.c.StandardService - [log,173] - Stopping service [Tomcat] 10:26:21.649 [com.alibaba.nacos.client.Worker] ERROR c.a.n.c.s.SecurityProxy - [login,149] - login failed: {"code":500,"message":"caused: Cannot invoke \"com.alibaba.nacos.plugin.auth.impl.jwt.NacosJwtParser.getExpireTimeInSeconds(String)\" because \"this.jwtParser\" is null;","header":{"header":{"Accept-Charset":"UTF-8","Authorization":"Bearer","Connection":"close","Content-Length":"142","Content-Security-Policy":"script-src 'self'","Content-Type":"text/html;charset=UTF-8","Date":"Fri, 08 Aug 2025 02:26:21 GMT","Vary":"Access-Control-Request-Headers"},"originalResponseHeader":{"Authorization":["Bearer"],"Connection":["close"],"Content-Length":["142"],"Content-Security-Policy":["script-src 'self'"],"Content-Type":["text/html;charset=UTF-8"],"Date":["Fri, 08 Aug 2025 02:26:21 GMT"],"Vary":["Access-Control-Request-Headers","Access-Control-Request-Method","Origin"]},"charset":"UTF-8"}} 10:26:21.685 [main] ERROR o.s.b.SpringApplication - [reportFailure,821] - Application run failed org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'teSourceController': Unsatisfied dependency expressed through field 'baseService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'teSourceServiceImpl': Unsatisfied dependency expressed through field 'baseManager'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'teSourceManagerImpl': Unsatisfied dependency expressed through field 'baseConverter'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.xueyi.tenant.api.source.domain.model.TeSourceConverter' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)} at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:660) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1431) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:731) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408) at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1303) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1292) at com.xueyi.tenant.XueYiTenantApplication.main(XueYiTenantApplication.java:20) Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'teSourceServiceImpl': Unsatisfied dependency expressed through field 'baseManager'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'teSourceManagerImpl': Unsatisfied dependency expressed through field 'baseConverter'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.xueyi.tenant.api.source.domain.model.TeSourceConverter' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)} at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:660) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1431) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:657) ... 20 common frames omitted Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'teSourceManagerImpl': Unsatisfied dependency expressed through field 'baseConverter'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.xueyi.tenant.api.source.domain.model.TeSourceConverter' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)} at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:660) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1431) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:657) ... 34 common frames omitted Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.xueyi.tenant.api.source.domain.model.TeSourceConverter' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)} at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoMatchingBeanFound(DefaultListableBeanFactory.java:1801) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1357) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:657) ... 48 common frames omitted 10:26:21.689 [Thread-1] WARN c.a.n.c.h.HttpClientBeanHolder - [shutdown,108] - [HttpClientBeanHolder] Start destroying common HttpClient 10:26:21.690 [Thread-7] WARN c.a.n.c.n.NotifyCenter - [shutdown,136] - [NotifyCenter] Start destroying Publisher 10:26:21.690 [Thread-7] WARN c.a.n.c.n.NotifyCenter - [shutdown,153] - [NotifyCenter] Destruction of the end 10:26:21.690 [Thread-1] WARN c.a.n.c.h.HttpClientBeanHolder - [shutdown,114] - [HttpClientBeanHolder] Destruction of the end Process finished with exit code 1 这个错误是怎么一回事?
08-09
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值