lizongbo at 618119.com 工作,生活,Android,前端,Linode,Ubuntu,nginx,java,apache,tomcat,Resin,mina,Hessian,XMPP,RPC

2009年02月26日

又遇到一个jdk1.6的bug

Filed under: Java — 标签:, , — lizongbo @ 22:15

下午上线一个新功能,突然其中一台服务器出现问题,然后找到异常信息,如下:
[code]
[2009-02-26 17:27:40] java.io.IOException: Operation not permitted
[2009-02-26 17:27:40] at sun..ch.EPollArrayWrapper.epollCtl(Native Method)
[2009-02-26 17:27:40] at sun.nio.ch.EPollArrayWrapper.updateRegistrations(EPollArrayWrapper.java:202)
[2009-02-26 17:27:40] at sun.nio.ch.EPollArrayWrapper.poll(EPollArrayWrapper.java:183)
[2009-02-26 17:27:40] at sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:65)
[2009-02-26 17:27:40] at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
[2009-02-26 17:27:40] at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
[2009-02-26 17:27:40] at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:84)

[/code]
结果google一搜索,发现是jdk的bug:
(se) epoll based Selector throws java.io.IOException: Operation not permitted during load
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6481709

再看一看服务器上的jdk版本:
lizongbo@618119_com:~> java -version
java version “1.6.0”
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0-b105, mixed mode)

于是先重启resin,然后升级jdk。

上次遇到的问题,也是jdk的bug,参考:
服务器从jdk1.6.0升级到1.6.0_12的过程记录

http://618119.com/archives/2009/02/21/136.html

升级之后:

lizongbo@618119_com:~> java -version
java version “1.6.0_12”
Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
Java HotSpot(TM) 64-Bit Server VM (build 11.2-b01, mixed mode)

没有评论 »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress