Got this error

Syahreza Pahlevi Ginting rezaginting at gmail.com
Fri Mar 26 03:23:17 EDT 2010


I have fixed this problem by setting just like Lee suggest on
http://gleamynode.net/articles/1557/
Thank you again Lee.
Regard

Reza Ginting

On Fri, Mar 26, 2010 at 9:42 AM, Syahreza Pahlevi Ginting <
rezaginting at gmail.com> wrote:

> Got this error:
> Exception in thread "pool-2-thread-1" java.lang.InternalError
>         at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
>         at sun.misc.URLClassPath.getResource(Unknown Source)
>         at java.net.URLClassLoader$1.run(Unknown Source)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(Unknown Source)
>         at sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at java.util.ResourceBundle$RBClassLoader.loadClass(Unknown Source)
>         at java.util.ResourceBundle$Control.newBundle(Unknown Source)
>         at java.util.ResourceBundle.loadBundle(Unknown Source)
>         at java.util.ResourceBundle.findBundle(Unknown Source)
>         at java.util.ResourceBundle.findBundle(Unknown Source)
>         at java.util.ResourceBundle.getBundleImpl(Unknown Source)
>         at java.util.ResourceBundle.getBundle(Unknown Source)
>         at java.util.logging.Level.getLocalizedName(Unknown Source)
>         at java.util.logging.SimpleFormatter.format(Unknown Source)
>         at java.util.logging.StreamHandler.publish(Unknown Source)
>         at java.util.logging.ConsoleHandler.publish(Unknown Source)
>         at java.util.logging.Logger.log(Unknown Source)
>         at java.util.logging.Logger.doLog(Unknown Source)
>         at java.util.logging.Logger.logp(Unknown Source)
>         at org.jboss.netty.logging.JdkLogger.warn(JdkLogger.java:86)
>         at
> org.jboss.netty.logging.InternalLoggerFactory$1.warn(InternalLoggerFactory.java:133)
>         at
> org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink$Boss.run(NioServerSocketPipelineSink.java:242)
>         at
> org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:101)
>         at
> org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:46)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
> Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> Source)
>         at java.lang.Thread.run(Unknown Source)
> Caused by: java.util.zip.ZipException: error in opening zip file
>         at java.util.zip.ZipFile.open(Native Method)
>         at java.util.zip.ZipFile.<init>(Unknown Source)
>         at java.util.jar.JarFile.<init>(Unknown Source)
>         at java.util.jar.JarFile.<init>(Unknown Source)
>         at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
>         at sun.misc.URLClassPath$JarLoader.access$600(Unknown Source)
>         at sun.misc.URLClassPath$JarLoader$1.run(Unknown Source)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at sun.misc.URLClassPath$JarLoader.ensureOpen(Unknown Source)
>         ... 32 more
>
>
> I am using
> Linux Red Hat 5
> Netty *3.1.5.GA* <http://www.jboss.org/netty/downloads.html> version
> This is coding when binding.
>             ChannelFactory factory =  new
> NioServerSocketChannelFactory(Executors.newCachedThreadPool(),
>
> Executors.newCachedThreadPool());//,200);
>             ServerBootstrap bootstrap = new ServerBootstrap(factory);
>             log.info("Start listening on " + ip + ":" + port);
>             bootstrap.setPipelineFactory(new ConnPipelineFactory(this));
>
>             bootstrap.setOption("child.tcpNoDelay", true);
>             bootstrap.setOption("child.keepAlive", true);
>             bootstrap.setOption("child.reuseAddress", true);
>             bootstrap.setOption("child.connectTimeoutMillis", 10000);
>
>             conData.setBootstrapSvr(bootstrap);
>             // Bind and start to accept incoming connections.
>             InetAddress inet = InetAddress.getByName(ip);
>
>             Channel chn = bootstrap.bind(new InetSocketAddress(inet,port));
>
> I have set maximum open file to
> [root at localhost ~]# cat /proc/sys/fs/file-max
> 1000000
> When this error happen, server can't get any event in Channel Handler.
> Client can connect but all data sent to server will not responded.
> Thank you for you kindness to answer this Question.
>
> Regard
> Reza Ginting
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20100326/3844447a/attachment-0001.html 


More information about the netty-users mailing list