本站首页    管理页面    写新日志    退出


«September 2025»
123456
78910111213
14151617181920
21222324252627
282930


公告

关注电子政务、大型企业应用开发、Web、Workflow、MOM、MDA、RCP、GEF

email:gmluyang@gmail.com


链接

好友
bluedavy-林昊
刑红瑞
SixSun-翻译
Birt中文指南
SixSun-OpenDoc
Eclipse RCP and Web in action(编写中)

我的分类(专题)

日志更新

最新评论

留言板


Blog信息
blog名称:SixSun的Blog
日志总数:152
评论数量:372
留言数量:13
访问次数:2382997
建立时间:2004年12月13日




[Java Open Source]郁闷,Proxool
随笔,  心得体会

SixSun 发表于 2005/11/2 20:08:19

郁闷,用Proxool的时候,Connection Pool 是能被执行了,但在close() 时却出现以下的错误信息: 0 [main] INFO proxool.ProxoolFacade  - Proxool 0.8.3 (14-Dec-2003 16:06)812 [Shutdown Hook] INFO proxool.example  - Shutting down 'example' pool immediately [Shutdown Hook]937 [Shutdown Hook] ERROR proxool.ShutdownHook  - Problem calling "get cause" on IllegalStateException.java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.logicalcobwebs.proxool.ShutdownHook.remove(ShutdownHook.java:40) at org.logicalcobwebs.proxool.ProxoolFacade.shutdown(ProxoolFacade.java:238) at org.logicalcobwebs.proxool.ProxoolFacade.shutdown(ProxoolFacade.java:220) at org.logicalcobwebs.proxool.ShutdownHook.run(ShutdownHook.java:99) at java.lang.Thread.run(Thread.java:534)Caused by: java.lang.IllegalStateException: Shutdown in progress at java.lang.Shutdown.remove(Shutdown.java:102) at java.lang.Runtime.removeShutdownHook(Runtime.java:218) ... 9 more     于是在网上逛了一下 ,google了一把,在hibernate的论坛发现一个有意思是帖子【Topic: Proxool problem?】: http://forum.hibernate.org/viewtopic.php?t=926383&highlight=&sid=6e2e98a6214624a28fb4715de55aaf2a 帖子的时间跨度是从【 Mon Dec 15, 2003 9:27 am ~   Wed Oct 26, 2005 8:27 am  】,整整两年,而且是同一个问题 最有意思的是最后一个回复:500)this.width=500'> rivalhw NewbieJoined: 11 Mar 2005Posts: 5Location: ZhongShan,China10 credits (What's this?) 500)this.width=500'> 500)this.width=500'>Posted: Wed Oct 26, 2005 8:18 am    Post subject: you can try it as following. 500)this.width=500'>   when you finally shutdown the Connection,you can add these code as following: if (connection != null) { connection.close(); ProxoolFacade pf= new ProxoolFacade(); pf.shutdown(1); } Post rating: This posting has not been rated so far. 500)this.width=500'> --> billhorsman NewbieJoined: 15 Dec 2003Posts: 4Location: Scotland10 credits (What's this?) 500)this.width=500'> 500)this.width=500'> 500)this.width=500'>Posted: Wed Oct 26, 2005 8:27 am    Post subject: Clarification 500)this.width=500'>   To be clear, you should only call shutdown() when you application is closing, not everytime you close a connection. Also, because shutdown() is a static method, you don't need to instantiate ProxoolFacade. Just call ProxoolFacade.shutdown(). Cheers, Bill P.S. I notice that this conversation is nearly two years old! We still haven't made a new release of Proxool but have made a lot of changes in CVS and a release is well overdue. I would recommend that most people check out the latest code from CVS and take advantage of its many fixes. As ever, this is at your own risk. We've done lots of testing on it and whilst we can't say it is a stable release until we have done a formal release there are no known problems.[/quote] Post rating: This posting has not been rated so far.  


阅读全文(10313) | 回复(4) | 编辑 | 精华
 


回复:郁闷,Proxool
随笔,  心得体会

bzzzz(游客)发表评论于2006/3/23 10:06:23

现在都有0.9版了。


个人主页 | 引用回复 | 主人回复 | 返回 | 编辑 | 删除
 


回复:郁闷,Proxool
随笔,  心得体会

jacky(游客)发表评论于2006/2/28 21:02:03

你好 我的也是这个错误 请给我一份 谢谢  libo-jacky@163.com

个人主页 | 引用回复 | 主人回复 | 返回 | 编辑 | 删除
 


回复:郁闷,Proxool
随笔,  心得体会

cc(游客)发表评论于2006/1/10 17:45:04

哥们,把源码,版本为Proxool 0.8.9b5,发一分给我, 我在线上DOWN不到。谢谢了 wangch@holdfastgroup.com

个人主页 | 引用回复 | 主人回复 | 返回 | 编辑 | 删除
 


回复:郁闷,Proxool
随笔,  心得体会

SixSun发表评论于2005/11/9 21:00:24

从CVS上下载了新的源码,版本为Proxool 0.8.9b5,问题已经解决。 cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/proxool login  cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/proxool co -P modulename  

个人主页 | 引用回复 | 主人回复 | 返回 | 编辑 | 删除
 


» 1 »

发表评论:
昵称:
密码:
主页:
标题:
验证码:  (不区分大小写,请仔细填写,输错需重写评论内容!)



站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 0.234 second(s), page refreshed 144786457 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号