Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caused by: com.bj58.spat.gaea.protocol.exception.OtherException: error num:30222411741354--state:OtherException--Message:org/apache/commons/dbcp/BasicDataSourceFactory #3

Open
frank0417 opened this issue Jul 12, 2013 · 0 comments

Comments

@frank0417
Copy link

用jdbc连接池时,如果创建连接的方式是静态加载连接池,序列话失败:

scaning entity.entity.News
scaning com.ys.common.model.com.ys.common.model.SW
scaning com.ys.sas.db.com.ys.sas.db.JdbcHelper
scaning com.ys.sas.db.com.ys.sas.db.JdbcUtils
Scan jar files completed!
Exception in thread "main" java.lang.reflect.UndeclaredThrowableException
at com.sun.proxy.$Proxy0.findSW(Unknown Source)
at gaeaclientdemo.GaeaClientTest.main(GaeaClientTest.java:48)
Caused by: com.bj58.spat.gaea.protocol.exception.OtherException: error num:30222411741354--state:OtherException--Message:org/apache/commons/dbcp/BasicDataSourceFactorycom.ys.sas.db.JdbcUtils.(JdbcUtils.java:32)---com.ys.sas.db.JdbcHelper.getPreparedStatement(JdbcHelper.java:318)---com.ys.sas.db.JdbcHelper.query(JdbcHelper.java:51)---com.ys.sas.dao.impl.SWDaoImpl.findSWByYYCSMC(SWDaoImpl.java:44)---com.ys.sas.service.impl.SWServiceImpl.findSW(SWServiceImpl.java:28)---SWServiceImplProxyStub1373619771642.findSW(SWServiceImplProxyStub1373619771642.java)---SWServiceImplProxyStub1373619771642.invoke(SWServiceImplProxyStub1373619771642.java)---com.bj58.spat.gaea.server.core.proxy.InvokerBase.doInvoke(InvokerBase.java:114)---com.bj58.spat.gaea.server.core.proxy.AsyncInvokerHandle$1.run(AsyncInvokerHandle.java:93)---com.bj58.spat.gaea.server.util.async.AsyncWorker$1.run(AsyncWorker.java:126)---java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)---java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)---java.lang.Thread.run(Unknown Source)---
at com.bj58.spat.gaea.protocol.exception.ThrowErrorHelper.throwServiceError(ThrowErrorHelper.java:35)
at com.bj58.spat.gaea.client.proxy.ServiceProxy.invoke(ServiceProxy.java:183)
at com.bj58.spat.gaea.client.proxy.builder.MethodCaller.doMethodCall(MethodCaller.java:85)
at com.bj58.spat.gaea.client.proxy.builder.ProxyStandard.invoke(ProxyStandard.java:58)
... 2 more

@xinbinhao
Copy link

看异常信息是因为业务里面程序异常导致的。建议排查下业务代码。

2013/7/12 frank0417 [email protected]

用jdbc连接池时,如果创建连接的方式是静态加载连接池,序列话失败:

scaning entity.entity.News
scaning com.ys.common.model.com.ys.common.model.SW
scaning com.ys.sas.db.com.ys.sas.db.JdbcHelper
scaning com.ys.sas.db.com.ys.sas.db.JdbcUtils
Scan jar files completed!
Exception in thread "main" java.lang.reflect.UndeclaredThrowableException
at com.sun.proxy.$Proxy0.findSW(Unknown Source)
at gaeaclientdemo.GaeaClientTest.main(GaeaClientTest.java:48)
Caused by: com.bj58.spat.gaea.protocol.exception.OtherException: error
num:30222411741354--state:OtherException--Message:org/apache/commons/dbcp/BasicDataSourceFactorycom.ys.sas.db.JdbcUtils.(JdbcUtils.java:32)---com.ys.sas.db.JdbcHelper.getPreparedStatement(JdbcHelper.java:318)---com.ys.sas.db.JdbcHelper.query(JdbcHelper.java:51)---com.ys.sas.dao.impl.SWDaoImpl.findSWByYYCSMC(SWDaoImpl.java:44)---com.ys.sas.service.impl.SWServiceImpl.findSW(SWServiceImpl.java:28)---SWServiceImplProxyStub1373619771642.findSW(SWServiceImplProxyStub1373619771642.java)---SWServiceImplProxyStub1373619771642.invoke(SWServiceImplProxyStub1373619771642.java)---com.bj58.spat.gaea.server.core.proxy.InvokerBase.doInvoke(InvokerBase.java:114)---com.bj58.spat.gaea.server.core.proxy.AsyncInvokerHandle$1.run(AsyncInvokerHandle.java:93)---com.bj58.spat.gaea.server.util.async.AsyncWorker$1.run(AsyncWorker.java:126)---java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
Source)---java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)---java.lang.Thread.run(Unknown Source)---
at
com.bj58.spat.gaea.protocol.exception.ThrowErrorHelper.throwServiceError(ThrowErrorHelper.java:35)
at
com.bj58.spat.gaea.client.proxy.ServiceProxy.invoke(ServiceProxy.java:183)
at
com.bj58.spat.gaea.client.proxy.builder.MethodCaller.doMethodCall(MethodCaller.java:85)
at
com.bj58.spat.gaea.client.proxy.builder.ProxyStandard.invoke(ProxyStandard.java:58)
... 2 more


Reply to this email directly or view it on GitHubhttps://github.com//issues/3
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants