关于jfinal使用oracle数据库

项目需要Mysql和Oracle一起用,本地测试正常,客户服务器下报错(在客户内网情况Oracle正常联通),把使用改为false,不执行那一个代码块就正常运行,可是本地确实没问题,不知道问题在哪。报错图太大不让上传所以发成文本了,不止各位有没有遇到过。

1.png2.png


--------以下是错误信息-------


七月 01, 2020 10:32:11 上午 org.apache.catalina.loader.WebappClassLoader loadClass

信息: Illegal access: this web application instance has been stopped already.  Could not load oracle.net.mesg.Message.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.

java.lang.IllegalStateException

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1600)

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)

at java.util.ResourceBundle$Control.newBundle(ResourceBundle.java:2566)

at java.util.ResourceBundle.loadBundle(ResourceBundle.java:1436)

at java.util.ResourceBundle.findBundle(ResourceBundle.java:1400)

at java.util.ResourceBundle.findBundle(ResourceBundle.java:1354)

at java.util.ResourceBundle.findBundle(ResourceBundle.java:1354)

at java.util.ResourceBundle.findBundle(ResourceBundle.java:1354)

at java.util.ResourceBundle.findBundle(ResourceBundle.java:1354)

at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1296)

at java.util.ResourceBundle.getBundle(ResourceBundle.java:721)

at oracle.net.ns.Message11.getMessage(Message11.java:64)

at oracle.net.ns.NetException.getMessage(NetException.java:222)

at oracle.jdbc.driver.DatabaseError.createSqlException(DatabaseError.java:447)

at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:457)

at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:546)

at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:236)

at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)

at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)

at com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:156)

at com.alibaba.druid.filter.stat.StatFilter.connection_connect(StatFilter.java:218)

at com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:150)

at com.alibaba.druid.filter.FilterAdapter.connection_connect(FilterAdapter.java:786)

at com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:150)

at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1560)

at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1623)

at com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:2468)


评论区

JFinal

2020-07-01 12:34

可能是重启的时候出现的问题,例如项目中有 "非守护线程",造成 shutdown tomcat 的时候这些线程没有退出,造成重启只进行到了一半

建议使用 jfinal undertow 开发、打包、部署,这些事统统不存在