Open GoogleCodeExporter opened 9 years ago
Note there are two separate issues -- I'm not seeing the WorkRejectedException
every time, strangely enough.
Original comment by jweissma...@gmail.com
on 21 Jun 2011 at 5:58
I am trying to more closely mirror the socket settings in the example. Some
improvement but I'm still seeing periodic timeouts on accepts. Will try to
update here when I have more data points.
Original comment by jweissma...@gmail.com
on 21 Jun 2011 at 7:10
probably should've checked this first, but it works great with the example
onMessage setup. i'll have to refactor my receive methodology. basically, i'm
not interesting in line-oriented protocols, and i want to use data input/output
streams -- but this seems to be triggering the issues i'm seeing. at any rate,
you can probably mark this closed.
Original comment by jweissma...@gmail.com
on 21 Jun 2011 at 7:41
i'm still unable to get this working, even under GF2. i'm apparently seeing the
issue even with the provided socket-ejb. the basic issue is that i'll see
'endpoint allocated' but it doesn't seem to trigger onMessage.
this definitely is still a problem for me.
Original comment by jweissma...@gmail.com
on 22 Jun 2011 at 7:16
i'm also seeing this exception in my logs, occasionally:
Error while accepting a socket request and scheduling work on the request. See
linked exception
javax.resource.spi.work.WorkRejectedException: error code: 1
at com.sun.enterprise.connectors.work.WorkCoordinator.workTimedOut(WorkCoordinator.java:255)
at com.sun.enterprise.connectors.work.WorkCoordinator.preInvoke(WorkCoordinator.java:153)
at com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:73)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
Original comment by jweissma...@gmail.com
on 22 Jun 2011 at 7:18
I was having an almost identical problem, my clients would hang occasionally
and I did get the listed exception a few times.
Problem seems to be that when work is rejected the client socket isn't cleaned
up. I made the following modifications and the hanging stopped. It doesn't
resolve why the work was rejected but at least it recovers.
SocketProcessor.java: Added a cancelWork method which calls closeSocket to
forcibly end the client's connection.
EndpointPool.java: In workRejected() modified to get the SocketProcessor and
call the cancelWork method and add release the messageEndpoint.
Original comment by jsol...@gmail.com
on 20 Jul 2011 at 8:40
I found this project lately and had the same issue on Weblogic 12c.
The WorkRejectedException is thrown by the WorkManager when it fails to start
the job within the specified time limit (WorkManager.IMMEDIATE = 0 in this
case). Allowing 100ms to start the job resolved the issue.
Also, you can resubmit a job if it is rejected with WorkRejectedException and
error code 1. (Error code -1 means the WorkManage is suspended or stopped, so
don't retry it in this case).
Original comment by balazsv...@gmail.com
on 27 Jun 2014 at 11:08
Original issue reported on code.google.com by
jweissma...@gmail.com
on 21 Jun 2011 at 5:57