gpt4 book ai didi

java - java.sql.SQLException的含义PWS0005数据库中发生错误

转载 作者:行者123 更新时间:2023-11-28 23:13:27 28 4
gpt4 key购买 nike

启动Web面板并获得PSW005时出现随机问题。该错误是随机的,因为可以执行相同的操作而没有错误。即使发送日志后,IBM也几乎没有帮助。有没有人遇到这个错误?

我们正在使用IBM iSeries(AS / 400)作为数据库服务器的Tomcat 9.0上运行。该系统已用Java重写,以替代传统的“绿屏”系统。

2018年12月21日13:11:16.781在[路径[/ gpweb]引发了异常[java.lang.ClassCastException:com.genexus.db.driver.DataSourceConnectionPool无法转换为com.genexus.db.driver.ConnectionPool
    在com.genexus.db.driver.DataSource.disconnectOnException(DataSource.java:442)
    在com.genexus.db.ServerUserInformation.disconnectOnException(ServerUserInformation.java:83)
    在com.genexus.db.DBConnectionManager.disconnectOnException(DBConnectionManager.java:255)
    在com.genexus.Application.GXLocalException(Application.java:588)
    在com.genexus.Application.GXLocalException(Application.java:577)
    在com.genexus.Application.GXLocalException(Application.java:572)
    在com.genexus.Application.rollback(Application.java:930)
    在com.genexus.Application.rollback(Application.java:868)
    在com.genexus.db.DefaultExceptionErrorHandler.handleSQLError(DefaultExceptionErrorHandler.java:45)
    在com.genexus.db.DataStoreProvider.execute(DataStoreProvider.java:233)
    在com.genexus.db.DataStoreProvider.execute(DataStoreProvider.java:200)
    在com.genexus.db.DataStoreProvider.execute(DataStoreProvider.java:192)
    在gpweb.mambosettingstoplink.privateExecute(mambosettingstoplink.java:61)
    在gpweb.mambosettingstoplink.execute_int(mambosettingstoplink.java:54)
    在gpweb.mambosettingstoplink.execute(mambosettingstoplink.java:43)
    在gpweb.amambobuildnavbartoplinks.privateExecute(amambobuildnavbartoplinks.java:101)
    在gpweb.amambobuildnavbartoplinks.execute_int(amambobuildnavbartoplinks.java:90)
    在gpweb.amambobuildnavbartoplinks.execute(amambobuildnavbartoplinks.java:76)
    在gpweb.mambobuildnavbartoplinks.execute_int(mambobuildnavbartoplinks.java:79)
    在gpweb.mambobuildnavbartoplinks.execute(mambobuildnavbartoplinks.java:69)
    在gpweb.mambomasterpage_impl.e130B2(mambomasterpage_impl.java:645)
    在gpweb.mambomasterpage_impl.rf0B2(mambomasterpage_impl.java:524)
    在gpweb.mambomasterpage_impl.refresh(mambomasterpage_impl.java:502)
    在gpweb.mambomasterpage_impl.we0B2(mambomasterpage_impl.java:448)
    在gpweb.mambomasterpage_impl.webExecute(mambomasterpage_impl.java:59)
    在gpweb.wwelcome_impl.webExecute(wwelcome_impl.java:118)
    在com.genexus.webpanels.GXWebPanel.webExecuteEx(GXWebPanel.java:358)
    在com.genexus.webpanels.GXWebPanel.doExecute(GXWebPanel.java:373)
    在gpweb.wwelcome.doExecute(wwelcome.java:23)
    在com.genexus.webpanels.GXWebObjectStub.callDoExecute(GXWebObjectStub.java:228)
    在com.genexus.webpanels.GXWebObjectStub.callExecute(GXWebObjectStub.java:137)
    在com.genexus.webpanels.GXWebObjectStub.doGet(GXWebObjectStub.java:44)
    在javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
    在javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
    在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
    在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    在org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
    在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    在com.genexus.filters.ExpiresFilter.doFilter(ExpiresFilter.java:1240)
    在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    在org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
    在org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
    在org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
    在org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
    在org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
    在org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:651)
    在org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
    在org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
    在org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:417)
    在org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
    在org.apache.coyote.AbstractProtocol $ ConnectionHandler.process(AbstractProtocol.java:754)
    在org.apache.tomcat.util.net.NioEndpoint $ SocketProcessor.doRun(NioEndpoint.java:1376)
    在org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
    在java.util.concurrent.ThreadPoolExecutor.runWorker(未知来源)
    在java.util.concurrent.ThreadPoolExecutor $ Worker.run(未知来源)
    在org.apache.tomcat.util.threads.TaskThread $ WrappingRunnable.run(TaskThread.java:61)
    在java.lang.Thread.run(未知来源)
根本原因
 javax.servlet.ServletException:java.lang.ClassCastException:com.genexus.db.driver.DataSourceConnectionPool无法转换为com.genexus.db.driver.ConnectionPool
    在com.genexus.db.driver.DataSource.disconnectOnException(DataSource.java:442)
    在com.genexus.db.ServerUserInformation.disconnectOnException(ServerUserInformation.java:83)
    在com.genexus.db.DBConnectionManager.disconnectOnException(DBConnectionManager.java:255)
    在com.genexus.Application.GXLocalException(Application.java:588)
    在com.genexus.Application.GXLocalException(Application.java:577)
    在com.genexus.Application.GXLocalException(Application.java:572)
    在com.genexus.Application.rollback(Application.java:930)
    在com.genexus.Application.rollback(Application.java:868)
    在com.genexus.db.DefaultExceptionErrorHandler.handleSQLError(DefaultExceptionErrorHandler.java:45)
    在com.genexus.db.DataStoreProvider.execute(DataStoreProvider.java:233)
    在com.genexus.db.DataStoreProvider.execute(DataStoreProvider.java:200)
    在com.genexus.db.DataStoreProvider.execute(DataStoreProvider.java:192)
    在gpweb.mambosettingstoplink.privateExecute(mambosettingstoplink.java:61)
    在gpweb.mambosettingstoplink.execute_int(mambosettingstoplink.java:54)
    在gpweb.mambosettingstoplink.execute(mambosettingstoplink.java:43)
    在gpweb.amambobuildnavbartoplinks.privateExecute(amambobuildnavbartoplinks.java:101)
    在gpweb.amambobuildnavbartoplinks.execute_int(amambobuildnavbartoplinks.java:90)
    在gpweb.amambobuildnavbartoplinks.execute(amambobuildnavbartoplinks.java:76)
    在gpweb.mambobuildnavbartoplinks.execute_int(mambobuildnavbartoplinks.java:79)
    在gpweb.mambobuildnavbartoplinks.execute(mambobuildnavbartoplinks.java:69)
    在gpweb.mambomasterpage_impl.e130B2(mambomasterpage_impl.java:645)
    在gpweb.mambomasterpage_impl.rf0B2(mambomasterpage_impl.java:524)
    在gpweb.mambomasterpage_impl.refresh(mambomasterpage_impl.java:502)
    在gpweb.mambomasterpage_impl.we0B2(mambomasterpage_impl.java:448)
    在gpweb.mambomasterpage_impl.webExecute(mambomasterpage_impl.java:59)
    在gpweb.wwelcome_impl.webExecute(wwelcome_impl.java:118)
    在com.genexus.webpanels.GXWebPanel.webExecuteEx(GXWebPanel.java:358)
    在com.genexus.webpanels.GXWebPanel.doExecute(GXWebPanel.java:373)
    在gpweb.wwelcome.doExecute(wwelcome.java:23)
    在com.genexus.webpanels.GXWebObjectStub.callDoExecute(GXWebObjectStub.java:228)
    在com.genexus.webpanels.GXWebObjectStub.callExecute(GXWebObjectStub.java:137)
    在com.genexus.webpanels.GXWebObjectStub.doGet(GXWebObjectStub.java:44)
    在javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
    在javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
    在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
    在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    在org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
    在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    在com.genexus.filters.ExpiresFilter.doFilter(ExpiresFilter.java:1240)
    在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    在org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
    在org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
    在org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
    在org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
    在org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
    在org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:651)
    在org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
    在org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
    在org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:417)
    在org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
    在org.apache.coyote.AbstractProtocol $ ConnectionHandler.process(AbstractProtocol.java:754)
    在org.apache.tomcat.util.net.NioEndpoint $ SocketProcessor.doRun(NioEndpoint.java:1376)
    在org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
    在java.util.concurrent.ThreadPoolExecutor.runWorker(未知来源)
    在java.util.concurrent.ThreadPoolExecutor $ Worker.run(未知来源)
    在org.apache.tomcat.util.threads.TaskThread $ WrappingRunnable.run(TaskThread.java:61)
    在java.lang.Thread.run(未知来源)

at com.genexus.webpanels.GXWebObjectStub.callExecute(GXWebObjectStub.java:221)
at com.genexus.webpanels.GXWebObjectStub.doGet(GXWebObjectStub.java:44)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.genexus.filters.ExpiresFilter.doFilter(ExpiresFilter.java:1240)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:651)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:417)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:754)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1376)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)

最佳答案

不是答案,而是注释部分中不适合的注释。


  com.genexus.db.driver.DataSourceConnectionPool无法强制转换为
  com.genexus.db.driver.ConnectionPool位于


这看起来很像是配置问题。 Genexus似乎正在尝试使用自己的数据库连接池,但由于某种原因,它无法处理内部类com.genexus.db.driver.DataSourceConnectionPool

您应该检查:


Genexus Datbase连接池是否正确版本?
JDBC驱动程序对您要使用的Java版本和Tomcat版本是否正确?
您在开发时是否使用相同的Genexus,Tomcat,JDBC驱动程序和数据库连接池进行部署?


无疑,基础架构中存在一些问题。如有必要,请从头开始重新安装Tomcat,并注意要添加到它的每个附加库以及每个附加配置。

这不太可能是Tomcat上的错误。更像是服务器设置或正在部署的WAR文件中的错误。

关于java - java.sql.SQLException的含义PWS0005数据库中发生错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53890792/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com