You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Benson Margulies <be...@basistech.com> on 2016/04/21 18:36:29 UTC

Many pax-exam test classes -> misery

Karaf 4.0.4. pax-exam 4.8.0.

I need to test a Karaf application with a number of different
configurations (as specified in cfg files). So, I have about 10 pax
exam classes, each with per-class pax exam strategy.

The number recently doubled (it used to be more like 5). Ever since
then, we see sporadic failures in which the container never finishes
initializing, and then other dumb things go wrong (stack trace of dumb
thing below).

Does this suggest anything to anyone? I have the failsafe forkCount
set to 1, so it can't (or shouldn't) be tests running in parallel.

Exception in thread "Thread-22" Exception in thread "Thread-27"
Exception in thread "Thread-26" java.lang.NoClassDefFoundError:
org/apache/commons/io/IOUtils
Exception in thread "Thread-25" at
com.basistech.ws.itest.AbstractIT.lambda$doExecute$2(AbstractIT.java:226)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:222)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:164)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:139)
at com.basistech.ws.itest.AbstractIT.doExecute(AbstractIT.java:222)
at com.basistech.ws.itest.AbstractIT.doRequestExpectSuccess(AbstractIT.java:190)

Re: Many pax-exam test classes -> misery

Posted by Benson Margulies <be...@basistech.com>.
Another variation on the theme is jetty rejecting a resume of an
asynchronous call.

2016-04-21 12:38:42,537 | ERROR | rosapi-worker-1  | WorkerService
               | 56 - com.basistech.ws.rosapi-worker-service -
1.1.2.v20160421042819 | Exception not handled in Worker.process,
something is very wrong.
java.util.concurrent.RejectedExecutionException:
HttpChannelOverHttp@5ff78927{r=1,c=false,a=ASYNC_WOKEN,uri=/rest/worker/process}
at org.eclipse.jetty.util.thread.QueuedThreadPool.execute(QueuedThreadPool.java:362)
at org.eclipse.jetty.server.HttpChannel.execute(HttpChannel.java:806)
at org.eclipse.jetty.server.HttpChannelState.scheduleDispatch(HttpChannelState.java:573)
at org.eclipse.jetty.server.HttpChannelState.dispatch(HttpChannelState.java:380)
at org.eclipse.jetty.server.AsyncContextState.dispatch(AsyncContextState.java:114)
at org.apache.cxf.transport.http.Servlet3ContinuationProvider$Servlet3Continuation.redispatch(Servlet3ContinuationProvider.java:125)
at org.apache.cxf.transport.http.Servlet3ContinuationProvider$Servlet3Continuation.resume(Servlet3ContinuationProvider.java:131)
at org.apache.cxf.jaxrs.impl.AsyncResponseImpl.doResumeFinal(AsyncResponseImpl.java:96)
at org.apache.cxf.jaxrs.impl.AsyncResponseImpl.doResume(AsyncResponseImpl.java:89)
at org.apache.cxf.jaxrs.impl.AsyncResponseImpl.resume(AsyncResponseImpl.java:73)
at com.basistech.ws.worker.service.WorkerService.performProcess(WorkerService.java:268)[56:com.basistech.ws.rosapi-worker-service:1.1.2.v20160421042819]


On Thu, Apr 21, 2016 at 12:36 PM, Benson Margulies <be...@basistech.com> wrote:
> Karaf 4.0.4. pax-exam 4.8.0.
>
> I need to test a Karaf application with a number of different
> configurations (as specified in cfg files). So, I have about 10 pax
> exam classes, each with per-class pax exam strategy.
>
> The number recently doubled (it used to be more like 5). Ever since
> then, we see sporadic failures in which the container never finishes
> initializing, and then other dumb things go wrong (stack trace of dumb
> thing below).
>
> Does this suggest anything to anyone? I have the failsafe forkCount
> set to 1, so it can't (or shouldn't) be tests running in parallel.
>
> Exception in thread "Thread-22" Exception in thread "Thread-27"
> Exception in thread "Thread-26" java.lang.NoClassDefFoundError:
> org/apache/commons/io/IOUtils
> Exception in thread "Thread-25" at
> com.basistech.ws.itest.AbstractIT.lambda$doExecute$2(AbstractIT.java:226)
> at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:222)
> at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:164)
> at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:139)
> at com.basistech.ws.itest.AbstractIT.doExecute(AbstractIT.java:222)
> at com.basistech.ws.itest.AbstractIT.doRequestExpectSuccess(AbstractIT.java:190)