Issue2207
Created on 2014-09-12.01:18:58 by dieterv, last changed 2014-10-05.16:33:22 by zyasoft.
msg8992 (view) |
Author: Dieter Vandenbussche (dieterv) |
Date: 2014-09-12.01:18:57 |
|
Hi, thanks very much to those of you working on Jython, i find it incredibly useful.
I believe i may have run into an issue with Jython 2.7b3. I run the following very simple Cherrypy (3.5.0) webservice using jython:
import cherrypy
class QuickTest:
@cherrypy.expose
def hello(self, name=None):
return name
cherrypy.config.update({'server.socket_host': '0.0.0.0', 'server.socket_port': 8080})
cherrypy.quickstart(QuickTest())
The service starts up fine, but when i make a simple connection, i get the following stack trace (and no response):
Sep 11, 2014 9:10:31 PM org.python.netty.channel.AbstractChannel$AbstractUnsafe register
WARNING: Force-closing a channel whose registration task was not accepted by an event loop: [id: 0xabfd12e0, /0:0:0:0:0:0:0:1:53547 => /0:0:0:0:0:0:0:1:8080]
java.util.concurrent.RejectedExecutionException: event executor terminated
at org.python.netty.util.concurrent.SingleThreadEventExecutor.reject(SingleThreadEventExecutor.java:735)
at org.python.netty.util.concurrent.SingleThreadEventExecutor.addTask(SingleThreadEventExecutor.java:312)
at org.python.netty.util.concurrent.SingleThreadEventExecutor.execute(SingleThreadEventExecutor.java:718)
at org.python.netty.channel.AbstractChannel$AbstractUnsafe.register(AbstractChannel.java:416)
at org.python.netty.channel.SingleThreadEventLoop.register(SingleThreadEventLoop.java:60)
at org.python.netty.channel.SingleThreadEventLoop.register(SingleThreadEventLoop.java:48)
at org.python.netty.channel.MultithreadEventLoopGroup.register(MultithreadEventLoopGroup.java:64)
at org.python.netty.bootstrap.ServerBootstrap$ServerBootstrapAcceptor.channelRead(ServerBootstrap.java:252)
at org.python.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:332)
at org.python.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:318)
at org.python.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787)
at org.python.netty.channel.nio.AbstractNioMessageChannel$NioMessageUnsafe.read(AbstractNioMessageChannel.java:92)
at org.python.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:507)
at org.python.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:464)
at org.python.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:378)
at org.python.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:350)
at org.python.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
at java.lang.Thread.run(Thread.java:744)
I did not have this problem with previous versions of jython. Any thoughts or suggestions?
Thanks very much!
|
msg8993 (view) |
Author: Jim Baker (zyasoft) |
Date: 2014-09-12.03:09:35 |
|
Thanks, we have recent similar reports from Django. I will take a look!
Likely a duplicate of http://bugs.jython.org/issue2201
|
msg9011 (view) |
Author: Jim Baker (zyasoft) |
Date: 2014-09-22.20:28:33 |
|
Verified this problem occurs. Given the much easier setup - and smaller codebase - for CherryPy, I'm going to debug with this example.
|
msg9012 (view) |
Author: Jim Baker (zyasoft) |
Date: 2014-09-22.22:16:03 |
|
Should be fixed as of https://hg.python.org/jython/rev/a33353c0ac25
|
|
Date |
User |
Action |
Args |
2014-10-05 16:33:22 | zyasoft | set | status: pending -> closed |
2014-09-22 22:16:11 | zyasoft | set | status: open -> pending resolution: accepted -> fixed |
2014-09-22 22:16:04 | zyasoft | set | messages:
+ msg9012 |
2014-09-22 20:28:33 | zyasoft | set | resolution: accepted messages:
+ msg9011 |
2014-09-12 03:09:36 | zyasoft | set | assignee: zyasoft messages:
+ msg8993 nosy:
+ zyasoft title: Cherrpy crash -> CherryPy crash |
2014-09-12 01:18:58 | dieterv | create | |
|