javascript事件模型框架-eventutil.js

本文介绍了一种跨浏览器的事件处理机制,包括添加与移除事件监听器的方法,以及针对不同浏览器特性的事件格式化处理,确保开发者可以编写兼容性强且易于维护的事件驱动型代码。

var EventUtil = new Object;
/**//*
此方法用来给特定对象添加事件,oTarget是指定对象,sEventType是事件类型,如click、keydown等, fnHandler是事件回调函数
/*
EventUtil.addEventHandler = function (oTarget, sEventType, fnHandler) {
//firefox情况下
if (oTarget.addEventListener) {
oTarget.addEventListener(sEventType, fnHandler, false);
}
//IE下
else if (oTarget.attachEvent) {
oTarget.attachEvent("on" + sEventType, fnHandler);
}
else {
oTarget["on" + sEventType] = fnHandler;
}
};
/*
此方法用来移除特定对象的特定事件,oTarget是指定对象,sEventType是事件类型,如click、keydown等,fnHandler是事件回调函数
/*
EventUtil.removeEventHandler = function (oTarget, sEventType, fnHandler) {
if (oTarget.removeEventListener) {
oTarget.removeEventListener(sEventType, fnHandler, false);
} else if (oTarget.detachEvent) {
oTarget.detachEvent("on" + sEventType, fnHandler);
} else {
oTarget["on" + sEventType] = null;
}
};

/*
格式化事件,因为IE和其他浏览器下获取事件的方式不同并且事件的属性也不尽相同,通过此方法提供一个一致的事件
*/
EventUtil.formatEvent = function (oEvent) {
//isIE和isWin引用到一个js文件,判断浏览器和操作系统类型
if (isIE && isWin) {
oEvent.charCode = (oEvent.type == "keypress") ? oEvent.keyCode : 0;
//IE只支持冒泡,不支持捕获
oEvent.eventPhase = 2;
oEvent.isChar = (oEvent.charCode > 0);
oEvent.pageX = oEvent.clientX + document.body.scrollLeft;
oEvent.pageY = oEvent.clientY + document.body.scrollTop;
//阻止事件的默认行为
oEvent.preventDefault = function () {
this.returnValue = false;
};

//将toElement,fromElement转化为标准的relatedTarget
if (oEvent.type == "mouseout") {
oEvent.relatedTarget = oEvent.toElement;
} else if (oEvent.type == "mouseover") {
oEvent.relatedTarget = oEvent.fromElement;
}
//取消冒泡
oEvent.stopPropagation = function () {
this.cancelBubble = true;
};

oEvent.target = oEvent.srcElement;
//添加事件发生时间属性,IE没有
oEvent.time = (new Date).getTime();
}
return oEvent;
};

EventUtil.getEvent = function() {
if (window.event) {
//格式化IE的事件
return this.formatEvent(window.event);
} else {
return EventUtil.getEvent.caller.arguments[0];
}
};

Cannot load JDBC driver class 'com.huawei.opengauss.jdbc.Driver' java.lang.ClassNotFoundException: com.huawei.opengauss.jdbc.Driver at java.net.URLClassLoader.findClassInternal(URLClassLoader.java:401) at java.net.URLClassLoader.findClass(URLClassLoader.java:360) at java.lang.ClassLoader.loadClass(ClassLoader.java:427) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) at java.lang.ClassLoader.loadClass(ClassLoader.java:360) at org.apache.commons.dbcp2.DriverFactory.createDriver(DriverFactory.java:49) at org.apache.commons.dbcp2.BasicDataSource.createConnectionFactory(BasicDataSource.java:459) at org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:525) at org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:731) at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:159) at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:117) at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:80) at org.mybatis.spring.transaction.SpringManagedTransaction.openConnection(SpringManagedTransaction.java:80) at org.mybatis.spring.transaction.SpringManagedTransaction.getConnection(SpringManagedTransaction.java:67) at org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:337) at org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleExecutor.java:86) at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:62) at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:325) at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156) at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109) at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:89) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.ibatis.plugin.Invocation.proceed(Invocation.java:49) at com.huawei.it.jalor5.core.orm.PageInterceptor.intercept(PageInterceptor.java:94) at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:62) at com.sun.proxy.$Proxy264.query(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.ibatis.plugin.Invocation.proceed(Invocation.java:49) at com.huawei.it.jalor5.core.orm.JalorResultSetInterceptor.intercept(JalorResultSetInterceptor.java:73) at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:62) at com.sun.proxy.$Proxy264.query(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.ibatis.plugin.Invocation.proceed(Invocation.java:49) at com.huawei.it.jalor5.core.orm.ProgramInterceptor.intercept(ProgramInterceptor.java:41) at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:62) at com.sun.proxy.$Proxy264.query(Unknown Source) at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:151) at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:145) at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:427) at com.sun.proxy.$Proxy160.selectList(Unknown Source) at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:224) at org.apache.ibatis.binding.MapperMethod.executeForMany(MapperMethod.java:147) at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:80) at org.apache.ibatis.binding.MapperProxy$PlainMethodInvoker.invoke(MapperProxy.java:145) at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:86) at com.sun.proxy.$Proxy162.findRegistryGatewayListByParentPath(Unknown Source) at com.huawei.it.jalor5.registry.service.impl.RegistryQueryService.findRegistryListByParentPath4InitGlobal(RegistryQueryService.java:246) at com.huawei.it.jalor5.registry.service.impl.RegistryQueryService$$FastClassBySpringCGLIB$$1c034836.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:388) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) at com.huawei.it.jalor5.security.service.impl.internal.SecurityInterceptor.invoke(SecurityInterceptor.java:68) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708) at com.huawei.it.jalor5.registry.service.impl.RegistryQueryService$$EnhancerBySpringCGLIB$$c9e6d33e.findRegistryListByParentPath4InitGlobal(<generated>) at com.huawei.it.jalor.boot.after.GlobalParameterUtil.initAllAppNameStaticParam(GlobalParameterUtil.java:159) at com.huawei.it.jalor.boot.after.GlobalParameterUtil.initGlobal(GlobalParameterUtil.java:120) at com.huawei.it.jalor.boot.after.GlobalParameterUtil.initByRegistry(GlobalParameterUtil.java:59) at com.huawei.it.jalor.boot.after.GlobalParameterUtil.synInitByRegistry(GlobalParameterUtil.java:86) at com.huawei.it.jalor.boot.after.GlobalParameterInitHanlder.execute(GlobalParameterInitHanlder.java:24) at com.huawei.it.jalor.boot.after.GlobalParameterInitHanlder.execute(GlobalParameterInitHanlder.java:20) at com.huawei.it.jalor5.core.dispatcher.impl.EventUtil.executeEventHandler(EventUtil.java:170) at com.huawei.it.jalor5.core.dispatcher.impl.EventUtil.dispatch(EventUtil.java:147) at com.huawei.it.jalor5.core.dispatcher.impl.EventUtil.dispatch(EventUtil.java:73) at com.huawei.it.jalor.boot.AfterStartUpBean.setAfterStartUp(AfterStartUpBean.java:54) at com.huawei.it.jalor.boot.AfterStartUpBean.onApplicationEvent(AfterStartUpBean.java:76) at com.huawei.it.jalor.boot.AfterStartUpBean.onApplicationEvent(AfterStartUpBean.java:40) at org.springfr2025-09-05 09:08:01 [main] ERROR ExceptionHandler:227 - Code:[null],User:[0],[Error:nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Cannot load JDBC driver class 'com.huawei.opengauss.jdbc.Driver' ### The error may exist in URL [jar:file:/D:/repository20220310/com/huawei/his/framework/jalor-registry-impl/6.6.6.0.RELEASE/jalor-registry-impl-6.6.6.0.RELEASE.jar!/com/huawei/it/jalor5/registry/dao/IRegistryDao.postgresql.xml] ### The error may involve com.huawei.it.jalor5.registry.dao.IRegistryDao.findRegistryGatewayListByParentPath ### The error occurred while executing a query ### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Cannot load JDBC driver class 'com.huawei.opengauss.jdbc.Driver'], URI:[null] org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Cannot load JDBC driver class 'com.huawei.opengauss.jdbc.Driver' ### The error may exist in URL [jar:file:/D:/repository20220310/com/huawei/his/framework/jalor-registry-impl/6.6.6.0.RELEASE/jalor-registry-impl-6.6.6.0.RELEASE.jar!/com/huawei/it/jalor5/registry/dao/IRegistryDao.postgresql.xml] ### The error may involve com.huawei.it.jalor5.registry.dao.IRegistryDao.findRegistryGatewayListByParentPath ### The error occurred while executing a query ### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Cannot load JDBC driver class 'com.huawei.opengauss.jdbc.Driver' at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:96) ~[mybatis-spring-2.0.7.jar:2.0.7] at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:441) ~[mybatis-spring-2.0.7.jar:2.0.7] at com.sun.proxy.$Proxy160.selectList(Unknown Source) ~[?:?] at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:224) ~[mybatis-spring-2.0.7.jar:2.0.7] at org.apache.ibatis.binding.MapperMethod.executeForMany(MapperMethod.java:147) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:80) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.binding.MapperProxy$PlainMethodInvoker.invoke(MapperProxy.java:145) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:86) ~[mybatis-3.5.9.jar:3.5.9] at com.sun.proxy.$Proxy162.findRegistryGatewayListByParentPath(Unknown Source) ~[?:?] at com.huawei.it.jalor5.registry.service.impl.RegistryQueryService.findRegistryListByParentPath4InitGlobal(RegistryQueryService.java:246) ~[jalor-registry-impl-6.6.6.0.RELEASE.jar:6.6.6.0.RELEASE] at com.huawei.it.jalor5.registry.service.impl.RegistryQueryService$$FastClassBySpringCGLIB$$1c034836.invoke(<generated>) ~[jalor-registry-impl-6.6.6.0.RELEASE.jar:6.6.6.0.RELEASE] at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.3.27.jar:5.3.27] at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793) ~[spring-aop-5.3.27.jar:5.3.27] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.3.27.jar:5.3.27] at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) ~[spring-aop-5.3.27.jar:5.3.27] at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123) ~[spring-tx-5.3.27.jar:5.3.27] at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:388) ~[spring-tx-5.3.27.jar:5.3.27] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119) ~[spring-tx-5.3.27.jar:5.3.27] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175) ~[spring-aop-5.3.27.jar:5.3.27] at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) ~[spring-aop-5.3.27.jar:5.3.27] at com.huawei.it.jalor5.security.service.impl.internal.SecurityInterceptor.invoke(SecurityInterceptor.java:68) ~[jalor-authorization-6.6.6.0.RELEASE.jar:6.6.6.0.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.27.jar:5.3.27] at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) ~[spring-aop-5.3.27.jar:5.3.27] at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97) ~[spring-aop-5.3.27.jar:5.3.27] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.27.jar:5.3.27] at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) ~[spring-aop-5.3.27.jar:5.3.27] at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708) ~[spring-aop-5.3.27.jar:5.3.27] at com.huawei.it.jalor5.registry.service.impl.RegistryQueryService$$EnhancerBySpringCGLIB$$c9e6d33e.findRegistryListByParentPath4InitGlobal(<generated>) ~[jalor-registry-impl-6.6.6.0.RELEASE.jar:6.6.6.0.RELEASE] at com.huawei.it.jalor.boot.after.GlobalParameterUtil.initAllAppNameStaticParam(GlobalParameterUtil.java:159) ~[jalor-boot-6.6.6.0.RELEASE.jar:6.6.6.0.RELEASE] at com.huawei.it.jalor.boot.after.GlobalParameterUtil.initGlobal(GlobalParameterUtil.java:120) ~[jalor-boot-6.6.6.0.RELEASE.jar:6.6.6.0.RELEASE] at com.huawei.it.jalor.boot.after.GlobalParameterUtil.initByRegistry(GlobalParameterUtil.java:59) ~[jalor-boot-6.6.6.0.RELEASE.jar:6.6.6.0.RELEASE] at com.huawei.it.jalor.boot.after.GlobalParameterUtil.synInitByRegistry(GlobalParameterUtil.java:86) ~[jalor-boot-6.6.6.0.RELEASE.jar:6.6.6.0.RELEASE] at com.huawei.it.jalor.boot.after.GlobalParameterInitHanlder.execute(GlobalParameterInitHanlder.java:24) ~[jalor-boot-6.6.6.0.RELEASE.jar:6.6.6.0.RELEASE] at com.huawei.it.jalor.boot.after.GlobalParameterInitHanlder.execute(GlobalParameterInitHanlder.java:20) ~[jalor-boot-6.6.6.0.RELEASE.jar:6.6.6.0.RELEASE] at com.huawei.it.jalor5.core.dispatcher.impl.EventUtil.executeEventHandler(EventUtil.java:170) ~[jalor-core-6.6.6.0.RELEASE.jar:6.6.6.0.RELEASE] at com.huawei.it.jalor5.core.dispatcher.impl.EventUtil.dispatch(EventUtil.java:147) ~[jalor-core-6.6.6.0.RELEASE.jar:6.6.6.0.RELEASE] at com.huawei.it.jalor5.core.dispatcher.impl.EventUtil.dispatch(EventUtil.java:73) ~[jalor-core-6.6.6.0.RELEASE.jar:6.6.6.0.RELEASE] at com.huawei.it.jalor.boot.AfterStartUpBean.setAfterStartUp(AfterStartUpBean.java:54) ~[jalor-boot-6.6.6.0.RELEASE.jar:6.6.6.0.RELEASE] at com.huawei.it.jalor.boot.AfterStartUpBean.onApplicationEvent(AfterStartUpBean.java:76) ~[jalor-boot-6.6.6.0.RELEASE.jar:6.6.6.0.RELEASE] at com.huawei.it.jalor.boot.AfterStartUpBean.onApplicationEvent(AfterStartUpBean.java:40) ~[jalor-boot-6.6.6.0.RELEASE.jar:6.6.6.0.RELEASE] at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176) ~[spring-context-5.3.27.jar:5.3.27] at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169) ~[spring-context-5.3.27.jar:5.3.27] at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143) ~[spring-context-5.3.27.jar:5.3.27] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:421) ~[spring-context-5.3.27.jar:5.3.27] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:378) ~[spring-context-5.3.27.jar:5.3.27] at org.springframework.boot.context.event.EventPublishingRunListener.ready(EventPublishingRunListener.java:114) ~[spring-boot-2.7.12.jar:2.7.12] at org.springframework.boot.SpringApplicationRunListeners.lambda$ready$6(SpringApplicationRunListeners.java:82) ~[spring-boot-2.7.12.jar:2.7.12] at java.util.ArrayList.forEach(ArrayList.java:1259) ~[?:1.8.0_452] at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:120) ~[spring-boot-2.7.12.jar:2.7.12] at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:114) ~[spring-boot-2.7.12.jar:2.7.12] at org.springframework.boot.SpringApplicationRunListeners.ready(SpringApplicationRunListeners.java:82) ~[spring-boot-2.7.12.jar:2.7.12] at org.springframework.boot.SpringApplication.run(SpringApplication.java:322) ~[spring-boot-2.7.12.jar:2.7.12] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1303) ~[spring-boot-2.7.12.jar:2.7.12] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1292) ~[spring-boot-2.7.12.jar:2.7.12] at com.huawei.it.multitenant.app.MultitenantApplication.main(MultitenantApplication.java:16) ~[classes/:?] Caused by: org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Cannot load JDBC driver class 'com.huawei.opengauss.jdbc.Driver' ### The error may exist in URL [jar:file:/D:/repository20220310/com/huawei/his/framework/jalor-registry-impl/6.6.6.0.RELEASE/jalor-registry-impl-6.6.6.0.RELEASE.jar!/com/huawei/it/jalor5/registry/dao/IRegistryDao.postgresql.xml] ### The error may involve com.huawei.it.jalor5.registry.dao.IRegistryDao.findRegistryGatewayListByParentPath ### The error occurred while executing a query ### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Cannot load JDBC driver class 'com.huawei.opengauss.jdbc.Driver' at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:153) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:145) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140) ~[mybatis-3.5.9.jar:3.5.9] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_452] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_452] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_452] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_452] at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:427) ~[mybatis-spring-2.0.7.jar:2.0.7] ... 53 more Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Cannot load JDBC driver class 'com.huawei.opengauss.jdbc.Driver' at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:83) ~[spring-jdbc-5.3.27.jar:5.3.27] at org.mybatis.spring.transaction.SpringManagedTransaction.openConnection(SpringManagedTransaction.java:80) ~[mybatis-spring-2.0.7.jar:2.0.7] at org.mybatis.spring.transaction.SpringManagedTransaction.getConnection(SpringManagedTransaction.java:67) ~[mybatis-spring-2.0.7.jar:2.0.7] at org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:337) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleExecutor.java:86) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:62) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:325) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:89) ~[mybatis-3.5.9.jar:3.5.9] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_452] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_452] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_452] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_452] at org.apache.ibatis.plugin.Invocation.proceed(Invocation.java:49) ~[mybatis-3.5.9.jar:3.5.9] at com.huawei.it.jalor5.core.orm.PageInterceptor.intercept(PageInterceptor.java:94) ~[jalor-orm-6.6.6.0.RELEASE.jar:6.6.6.0.RELEASE] at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:62) ~[mybatis-3.5.9.jar:3.5.9] at com.sun.proxy.$Proxy264.query(Unknown Source) ~[?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_452] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_452] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_452] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_452] at org.apache.ibatis.plugin.Invocation.proceed(Invocation.java:49) ~[mybatis-3.5.9.jar:3.5.9] at com.huawei.it.jalor5.core.orm.JalorResultSetInterceptor.intercept(JalorResultSetInterceptor.java:73) ~[jalor-orm-6.6.6.0.RELEASE.jar:6.6.6.0.RELEASE] at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:62) ~[mybatis-3.5.9.jar:3.5.9] at com.sun.proxy.$Proxy264.query(Unknown Source) ~[?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_452] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_452] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_452] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_452] at org.apache.ibatis.plugin.Invocation.proceed(Invocation.java:49) ~[mybatis-3.5.9.jar:3.5.9] at com.huawei.it.jalor5.core.orm.ProgramInterceptor.intercept(ProgramInterceptor.java:41) ~[jalor-orm-6.6.6.0.RELEASE.jar:6.6.6.0.RELEASE] at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:62) ~[mybatis-3.5.9.jar:3.5.9] at com.sun.proxy.$Proxy264.query(Unknown Source) ~[?:?] at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:151) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:145) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140) ~[mybatis-3.5.9.jar:3.5.9] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_452] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_452] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_452] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_452] at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:427) ~[mybatis-spring-2.0.7.jar:2.0.7] ... 53 more Caused by: java.sql.SQLException: Cannot load JDBC driver class 'com.huawei.opengauss.jdbc.Driver' at org.apache.commons.dbcp2.DriverFactory.createDriver(DriverFactory.java:54) ~[commons-dbcp2-2.9.0.jar:2.9.0] at org.apache.commons.dbcp2.BasicDataSource.createConnectionFactory(BasicDataSource.java:459) ~[commons-dbcp2-2.9.0.jar:2.9.0] at org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:525) ~[commons-dbcp2-2.9.0.jar:2.9.0] at org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:731) ~[commons-dbcp2-2.9.0.jar:2.9.0] at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:159) ~[spring-jdbc-5.3.27.jar:5.3.27] at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:117) ~[spring-jdbc-5.3.27.jar:5.3.27] at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:80) ~[spring-jdbc-5.3.27.jar:5.3.27] at org.mybatis.spring.transaction.SpringManagedTransaction.openConnection(SpringManagedTransaction.java:80) ~[mybatis-spring-2.0.7.jar:2.0.7] at org.mybatis.spring.transaction.SpringManagedTransaction.getConnection(SpringManagedTransaction.java:67) ~[mybatis-spring-2.0.7.jar:2.0.7] at org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:337) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleExecutor.java:86) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:62) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:325) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:89) ~[mybatis-3.5.9.jar:3.5.9] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_452] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_452] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_452] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_452] at org.apache.ibatis.plugin.Invocation.proceed(Invocation.java:49) ~[mybatis-3.5.9.jar:3.5.9] at com.huawei.it.jalor5.core.orm.PageInterceptor.intercept(PageInterceptor.java:94) ~[jalor-orm-6.6.6.0.RELEASE.jar:6.6.6.0.RELEASE] at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:62) ~[mybatis-3.5.9.jar:3.5.9] at com.sun.proxy.$Proxy264.query(Unknown Source) ~[?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_452] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_452] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_452] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_452] at org.apache.ibatis.plugin.Invocation.proceed(Invocation.java:49) ~[mybatis-3.5.9.jar:3.5.9] at com.huawei.it.jalor5.core.orm.JalorResultSetInterceptor.intercept(JalorResultSetInterceptor.java:73) ~[jalor-orm-6.6.6.0.RELEASE.jar:6.6.6.0.RELEASE] at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:62) ~[mybatis-3.5.9.jar:3.5.9] at com.sun.proxy.$Proxy264.query(Unknown Source) ~[?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_452] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_452] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_452] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_452] at org.apache.ibatis.plugin.Invocation.proceed(Invocation.java:49) ~[mybatis-3.5.9.jar:3.5.9] at com.huawei.it.jalor5.core.orm.ProgramInterceptor.intercept(ProgramInterceptor.java:41) ~[jalor-orm-6.6.6.0.RELEASE.jar:6.6.6.0.RELEASE] at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:62) ~[mybatis-3.5.9.jar:3.5.9] at com.sun.proxy.$Proxy264.query(Unknown Source) ~[?:?] at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:151) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:145) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140) ~[mybatis-3.5.9.jar:3.5.9] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_452] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_452] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_452] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_452] at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:427) ~[mybatis-spring-2.0.7.jar:2.0.7] ... 53 more Caused by: java.lang.ClassNotFoundException: com.huawei.opengauss.jdbc.Driver at java.net.URLClassLoader.findClassInternal(URLClassLoader.java:401) ~[?:1.8.0_452] at java.net.URLClassLoader.findClass(URLClassLoader.java:360) ~[?:1.8.0_452] at java.lang.ClassLoader.loadClass(ClassLoader.java:427) ~[?:1.8.0_452] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) ~[?:1.8.0_452] at java.lang.ClassLoader.loadClass(ClassLoader.java:360) ~[?:1.8.0_452] at org.apache.commons.dbcp2.DriverFactory.createDriver(DriverFactory.java:49) ~[commons-dbcp2-2.9.0.jar:2.9.0] at org.apache.commons.dbcp2.BasicDataSource.createConnectionFactory(BasicDataSource.java:459) ~[commons-dbcp2-2.9.0.jar:2.9.0] at org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicData这个是什么问题怎么解决
09-06
"C:\Program Files\Java\jdk-21\bin\java.exe" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:60134,suspend=y,server=n -Dcool.request.port=54072 -javaagent:C:\Users\MR\AppData\Local\JetBrains\IntelliJIdea2023.1\captureAgent\debugger-agent.jar -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath "D:\repository_JAVAFX\org\openjfx\javafx-controls\21.0.1\javafx-controls-21.0.1.jar;D:\repository_JAVAFX\org\openjfx\javafx-graphics\21.0.1\javafx-graphics-21.0.1.jar;D:\repository_JAVAFX\org\openjfx\javafx-base\21.0.1\javafx-base-21.0.1.jar;D:\repository_JAVAFX\org\openjfx\javafx-fxml\21.0.1\javafx-fxml-21.0.1.jar;D:\repository_JAVAFX\org\openjfx\javafx-web\21.0.1\javafx-web-21.0.1.jar;D:\repository_JAVAFX\org\openjfx\javafx-media\21.0.1\javafx-media-21.0.1.jar;D:\repository_JAVAFX\com\alibaba\easyexcel\3.3.2\easyexcel-3.3.2.jar;D:\repository_JAVAFX\com\alibaba\easyexcel-support\3.3.2\easyexcel-support-3.3.2.jar;D:\repository_JAVAFX\org\apache\poi\poi\4.1.2\poi-4.1.2.jar;D:\repository_JAVAFX\org\apache\commons\commons-collections4\4.4\commons-collections4-4.4.jar;D:\repository_JAVAFX\org\apache\commons\commons-math3\3.6.1\commons-math3-3.6.1.jar;D:\repository_JAVAFX\com\zaxxer\SparseBitSet\1.2\SparseBitSet-1.2.jar;D:\repository_JAVAFX\org\apache\poi\poi-ooxml\4.1.2\poi-ooxml-4.1.2.jar;D:\repository_JAVAFX\org\apache\commons\commons-compress\1.19\commons-compress-1.19.jar;D:\repository_JAVAFX\com\github\virtuald\curvesapi\1.06\curvesapi-1.06.jar;D:\repository_JAVAFX\org\apache\poi\poi-ooxml-schemas\4.1.2\poi-ooxml-schemas-4.1.2.jar;D:\repository_JAVAFX\org\apache\xmlbeans\xmlbeans\3.1.0\xmlbeans-3.1.0.jar;D:\repository_JAVAFX\org\ehcache\ehcache\3.9.9\ehcache-3.9.9.jar;C:\Users\MR\.config\.cool-request\request\lib\spring-invoke-starter.jar;D:\install\IntelliJ IDEA 2023.1.3\lib\idea_rt.jar" -p D:\repository_JAVAFX\org\kordamp\ikonli\ikonli-javafx\12.3.1\ikonli-javafx-12.3.1.jar;D:\repository_JAVAFX\org\openjfx\javafx-fxml\21.0.1\javafx-fxml-21.0.1-win.jar;D:\repository_JAVAFX\org\openjfx\javafx-controls\21.0.1\javafx-controls-21.0.1-win.jar;D:\repository_JAVAFX\org\slf4j\slf4j-api\2.0.13\slf4j-api-2.0.13.jar;D:\repository_JAVAFX\org\openjfx\javafx-base\21.0.1\javafx-base-21.0.1-win.jar;D:\repository_JAVAFX\org\kordamp\bootstrapfx\bootstrapfx-core\0.4.0\bootstrapfx-core-0.4.0.jar;D:\repository_JAVAFX\eu\hansolo\tilesfx\17.0.0\tilesfx-17.0.0.jar;D:\repository_JAVAFX\commons-codec\commons-codec\1.16.1\commons-codec-1.16.1.jar;D:\repository_JAVAFX\ch\qos\logback\logback-classic\1.4.14\logback-classic-1.4.14.jar;D:\repository_JAVAFX\ch\qos\logback\logback-core\1.4.14\logback-core-1.4.14.jar;D:\repository_JAVAFX\org\openjfx\javafx-graphics\21.0.1\javafx-graphics-21.0.1-win.jar;D:\repository_JAVAFX\org\controlsfx\controlsfx\11.1.2\controlsfx-11.1.2.jar;D:\work\IPEZMCX\target\classes;D:\repository_JAVAFX\commons-io\commons-io\2.16.1\commons-io-2.16.1.jar;D:\repository_JAVAFX\org\kordamp\ikonli\ikonli-core\12.3.1\ikonli-core-12.3.1.jar;D:\repository_JAVAFX\com\alibaba\easyexcel-core\3.3.2\easyexcel-core-3.3.2.jar;D:\repository_JAVAFX\com\dlsc\formsfx\formsfx-core\11.6.0\formsfx-core-11.6.0.jar;D:\repository_JAVAFX\org\apache\commons\commons-csv\1.11.0\commons-csv-1.11.0.jar;D:\repository_JAVAFX\org\openjfx\javafx-web\21.0.1\javafx-web-21.0.1-win.jar;D:\repository_JAVAFX\org\openjfx\javafx-media\21.0.1\javafx-media-21.0.1-win.jar -m com.example.ipezmcx/com.example.ipezmcx.HelloApplication 已连接到目标 VM, 地址: ''127.0.0.1:60134',传输: '套接字'' 9月 30, 2025 2:18:01 下午 javafx.fxml.FXMLLoader$ValueElement processValue 警告: Loading FXML document with JavaFX API of version 25 by JavaFX runtime of version 21.0.1 找到 2 个 csv 文件 14:18:04.733 [JavaFX Application Thread] DEBUG com.alibaba.excel.metadata.property.ExcelHeadProperty -- The initialization sheet/table 'ExcelHeadProperty' is complete , head kind is CLASS 14:18:04.745 [JavaFX Application Thread] DEBUG com.alibaba.excel.context.AnalysisContextImpl -- Initialization 'AnalysisContextImpl' complete 14:18:04.757 [JavaFX Application Thread] DEBUG com.alibaba.excel.util.SheetUtils -- The first is read by default. 14:18:04.757 [JavaFX Application Thread] DEBUG com.alibaba.excel.metadata.property.ExcelHeadProperty -- The initialization sheet/table 'ExcelHeadProperty' is complete , head kind is CLASS 14:18:04.757 [JavaFX Application Thread] DEBUG com.alibaba.excel.context.AnalysisContextImpl -- Began to read:com.alibaba.excel.read.metadata.holder.csv.CsvReadSheetHolder@fca2ffaa Exception in thread "JavaFX Application Thread" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at javafx.fxml@21.0.1/javafx.fxml.FXMLLoader$MethodHandler.invoke(FXMLLoader.java:1858) at javafx.fxml@21.0.1/javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(FXMLLoader.java:1726) at javafx.base@21.0.1/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86) at javafx.base@21.0.1/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:232) at javafx.base@21.0.1/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:189) at javafx.base@21.0.1/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59) at javafx.base@21.0.1/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58) at javafx.base@21.0.1/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at javafx.base@21.0.1/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at javafx.base@21.0.1/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at javafx.base@21.0.1/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at javafx.base@21.0.1/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at javafx.base@21.0.1/com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74) at javafx.base@21.0.1/com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49) at javafx.base@21.0.1/javafx.event.Event.fireEvent(Event.java:198) at javafx.graphics@21.0.1/javafx.scene.Node.fireEvent(Node.java:8875) at javafx.controls@21.0.1/javafx.scene.control.Button.fire(Button.java:203) at javafx.controls@21.0.1/com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(ButtonBehavior.java:207) at javafx.controls@21.0.1/com.sun.javafx.scene.control.inputmap.InputMap.handle(InputMap.java:274) at javafx.base@21.0.1/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:247) at javafx.base@21.0.1/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80) at javafx.base@21.0.1/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:232) at javafx.base@21.0.1/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:189) at javafx.base@21.0.1/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59) at javafx.base@21.0.1/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58) at javafx.base@21.0.1/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at javafx.base@21.0.1/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at javafx.base@21.0.1/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at javafx.base@21.0.1/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at javafx.base@21.0.1/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at javafx.base@21.0.1/com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74) at javafx.base@21.0.1/com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54) at javafx.base@21.0.1/javafx.event.Event.fireEvent(Event.java:198) at javafx.graphics@21.0.1/javafx.scene.Scene$MouseHandler.process(Scene.java:3984) at javafx.graphics@21.0.1/javafx.scene.Scene.processMouseEvent(Scene.java:1890) at javafx.graphics@21.0.1/javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2708) at javafx.graphics@21.0.1/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:411) at javafx.graphics@21.0.1/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:301) at java.base/java.security.AccessController.doPrivileged(AccessController.java:400) at javafx.graphics@21.0.1/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(GlassViewEventHandler.java:450) at javafx.graphics@21.0.1/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:424) at javafx.graphics@21.0.1/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:449) at javafx.graphics@21.0.1/com.sun.glass.ui.View.handleMouseEvent(View.java:551) at javafx.graphics@21.0.1/com.sun.glass.ui.View.notifyMouse(View.java:937) at javafx.graphics@21.0.1/com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at javafx.graphics@21.0.1/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:185) at java.base/java.lang.Thread.run(Thread.java:1583) Caused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at com.sun.javafx.reflect.Trampoline.invoke(MethodUtil.java:72) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at javafx.base@21.0.1/com.sun.javafx.reflect.MethodUtil.invoke(MethodUtil.java:270) at javafx.fxml@21.0.1/com.sun.javafx.fxml.MethodHelper.invoke(MethodHelper.java:84) at javafx.fxml@21.0.1/javafx.fxml.FXMLLoader$MethodHandler.invoke(FXMLLoader.java:1853) ... 46 more Caused by: com.alibaba.excel.support.cglib.core.CodeGenerationException: java.lang.IllegalAccessError-->superclass access check failed: class com.example.ipezmcx.dto.Csv$$BeanMapByEasyExcelCGLIB$$27da946f (in module com.example.ipezmcx) cannot access class com.alibaba.excel.support.cglib.beans.BeanMap (in unnamed module @0x670002) because module com.example.ipezmcx does not read unnamed module @0x670002 at com.alibaba.excel.support.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:511) at com.alibaba.excel.support.cglib.core.AbstractClassGenerator.generate(AbstractClassGenerator.java:363) at com.alibaba.excel.support.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:110) at com.alibaba.excel.support.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:108) at com.alibaba.excel.support.cglib.core.internal.LoadingCache$2.call(LoadingCache.java:54) at java.base/java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:317) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java) at com.alibaba.excel.support.cglib.core.internal.LoadingCache.createEntry(LoadingCache.java:61) at com.alibaba.excel.support.cglib.core.internal.LoadingCache.get(LoadingCache.java:34) at com.alibaba.excel.support.cglib.core.AbstractClassGenerator$ClassLoaderData.get(AbstractClassGenerator.java:134) at com.alibaba.excel.support.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:319) at com.alibaba.excel.support.cglib.beans.BeanMap$Generator.create(BeanMap.java:140) at easyexcel.core@3.3.2/com.alibaba.excel.util.BeanMapUtils.create(BeanMapUtils.java:29) at easyexcel.core@3.3.2/com.alibaba.excel.read.listener.ModelBuildEventListener.buildUserModel(ModelBuildEventListener.java:141) at easyexcel.core@3.3.2/com.alibaba.excel.read.listener.ModelBuildEventListener.invoke(ModelBuildEventListener.java:42) at easyexcel.core@3.3.2/com.alibaba.excel.read.listener.ModelBuildEventListener.invoke(ModelBuildEventListener.java:35) at easyexcel.core@3.3.2/com.alibaba.excel.read.processor.DefaultAnalysisEventProcessor.dealData(DefaultAnalysisEventProcessor.java:104) at easyexcel.core@3.3.2/com.alibaba.excel.read.processor.DefaultAnalysisEventProcessor.endRow(DefaultAnalysisEventProcessor.java:51) at easyexcel.core@3.3.2/com.alibaba.excel.analysis.csv.CsvExcelReadExecutor.dealRecord(CsvExcelReadExecutor.java:138) at easyexcel.core@3.3.2/com.alibaba.excel.analysis.csv.CsvExcelReadExecutor.execute(CsvExcelReadExecutor.java:77) at easyexcel.core@3.3.2/com.alibaba.excel.analysis.ExcelAnalyserImpl.analysis(ExcelAnalyserImpl.java:124) at easyexcel.core@3.3.2/com.alibaba.excel.ExcelReader.read(ExcelReader.java:66) at easyexcel.core@3.3.2/com.alibaba.excel.ExcelReader.read(ExcelReader.java:56) at easyexcel.core@3.3.2/com.alibaba.excel.read.builder.ExcelReaderSheetBuilder.doReadSync(ExcelReaderSheetBuilder.java:80) at com.example.ipezmcx/com.example.ipezmcx.utils.FileUtil.parseCsvWithEasyExcel(FileUtil.java:178) at com.example.ipezmcx/com.example.ipezmcx.service.IpeService.fileVL(IpeService.java:55) at com.example.ipezmcx/com.example.ipezmcx.service.IpeService.clcsv(IpeService.java:44) at com.example.ipezmcx/com.example.ipezmcx.HelloController.startYYOnClic(HelloController.java:47) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ... 53 more Caused by: java.lang.IllegalAccessError: superclass access check failed: class com.example.ipezmcx.dto.Csv$$BeanMapByEasyExcelCGLIB$$27da946f (in module com.example.ipezmcx) cannot access class com.alibaba.excel.support.cglib.beans.BeanMap (in unnamed module @0x670002) because module com.example.ipezmcx does not read unnamed module @0x670002 at java.base/java.lang.ClassLoader.defineClass0(Native Method) at java.base/java.lang.System$2.defineClass(System.java:2394) at java.base/java.lang.invoke.MethodHandles$Lookup$ClassDefiner.defineClass(MethodHandles.java:2505) at java.base/java.lang.invoke.MethodHandles$Lookup$ClassDefiner.defineClass(MethodHandles.java:2480) at java.base/java.lang.invoke.MethodHandles$Lookup.defineClass(MethodHandles.java:1865) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at com.alibaba.excel.support.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:506) ... 81 more
最新发布
10-01
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值