« | September 2025 | » | 日 | 一 | 二 | 三 | 四 | 五 | 六 | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | | | | | |
| 公告 |
关注电子政务、大型企业应用开发、Web、Workflow、MOM、MDA、RCP、GEF email:gmluyang@gmail.com
|
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.
|
|
回复:郁闷,Proxool 随笔, 心得体会
bzzzz(游客)发表评论于2006/3/23 10:06:23 |
|
回复:郁闷,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 »
|