Running org.kaazing.gateway.transport.http.HttpConnectorFollowRedirectIT responseMustBeARedirect(org.kaazing.gateway.transport.http.HttpConnectorFollowRedirectIT) starting the Mockery is not thread-safe: use a Synchroniser to ensure thread safety the Mockery is not thread-safe: use a Synchroniser to ensure thread safety the Mockery is not thread-safe: use a Synchroniser to ensure thread safety the Mockery is not thread-safe: use a Synchroniser to ensure thread safety the Mockery is not thread-safe: use a Synchroniser to ensure thread safety the Mockery is not thread-safe: use a Synchroniser to ensure thread safety the Mockery is not thread-safe: use a Synchroniser to ensure thread safety HttpConnectorFollowRedirectIT.responseMustBeARedirect FAILED with exception java.lang.AssertionError: Values should be different. Actual: [tcp://127.0.0.1:43156 (tcp://127.0.0.1:43156) http/1.1] (0.33 secs) java.lang.AssertionError: Values should be different. Actual: [tcp://127.0.0.1:43156 (tcp://127.0.0.1:43156) http/1.1] at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failEquals(Assert.java:185) at org.junit.Assert.assertNotEquals(Assert.java:161) at org.junit.Assert.assertNotEquals(Assert.java:175) at org.kaazing.gateway.transport.http.HttpConnectorFollowRedirectIT.responseMustBeARedirect(HttpConnectorFollowRedirectIT.java:64) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298) at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.lang.Thread.run(Thread.java:745) =================== BEGIN STORED LOG MESSAGES =========================== Printing last 27 of 27 log messages 102238 transport.http.connect [Time-limited test] DEBUG connect - Cache miss - NO cached persistent connection: server = http://localhost:8080/jms 102238 transport.tcp.connect [Time-limited test] TRACE connect - AbstractNioConnector.init() 102238 transport.tcp.connect [Time-limited test] DEBUG connect - TCP connector: worker count = 2 102239 transport.tcp.connect [Time-limited test] TRACE connect - AbstractNioConnector.connectInternal(), resource: tcp://127.0.0.1:8080 102239 transport.tcp.accept [Time-limited test] DEBUG accept - nextWorker: returning worker #1 of 2 102240 transport.tcp.connect [New I/O worker #1384] TRACE connect - AbstractNioConnector.connectInternal()$initializeSession(), session: (#00001271: kaazing niosocketchannel, client, /127.0.0.1:55760 => /127.0.0.1:8080), resource: tcp://127.0.0.1:8080 102240 transport.tcp.connect [New I/O worker #1384] INFO connect - [tcp#1271 127.0.0.1:55760] OPENED: (#00001271: kaazing niosocketchannel, client, /127.0.0.1:55760 => /127.0.0.1:8080) 102241 transport.tcp.connect [New I/O worker #1384] TRACE connect - [tcp#1271 127.0.0.1:55760] WRITE: REQUEST: HTTP/1.1 GET /jms HEADERS: {User-Agent=[Kaazing Gateway], Upgrade=[websocket], Sec-WebSocket-Version=[13], Sec-WebSocket-Key=[dGhlIHNhbXBsZSBub25jZQ==], Host=[localhost:8080], Connection=[Upgrade]} null 102242 transport.http.connect [New I/O worker #1384] WARN connect - [http#1272 127.0.0.1:55760] EXCEPTION: java.util.ConcurrentModificationException: the Mockery is not thread-safe: use a Synchroniser to ensure thread safety java.util.ConcurrentModificationException: the Mockery is not thread-safe: use a Synchroniser to ensure thread safety at org.jmock.internal.SingleThreadedPolicy.reportError(SingleThreadedPolicy.java:35) at org.jmock.internal.SingleThreadedPolicy.checkRunningOnTestThread(SingleThreadedPolicy.java:28) at org.jmock.internal.SingleThreadedPolicy.access$000(SingleThreadedPolicy.java:10) at org.jmock.internal.SingleThreadedPolicy$1.invoke(SingleThreadedPolicy.java:20) at org.jmock.lib.JavaReflectionImposteriser$1.invoke(JavaReflectionImposteriser.java:33) at com.sun.proxy.$Proxy10.sessionCreated(Unknown Source) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$TailFilter.sessionCreated(DefaultIoFilterChain.java:684) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionCreated(DefaultIoFilterChain.java:393) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionCreated(DefaultIoFilterChainEx.java:55) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionCreated(DefaultIoFilterChain.java:813) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionCreated(IoFilterAdapter.java:75) at org.kaazing.gateway.transport.LoggingFilter.sessionCreated(LoggingFilter.java:161) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionCreated(DefaultIoFilterChain.java:393) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionCreated(DefaultIoFilterChainEx.java:55) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionCreated(DefaultIoFilterChain.java:813) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionCreated(IoFilterAdapter.java:75) at org.kaazing.mina.core.filterchain.AssertAlignedFilter.sessionCreated(AssertAlignedFilter.java:116) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionCreated(DefaultIoFilterChain.java:393) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionCreated(DefaultIoFilterChainEx.java:55) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionCreated(DefaultIoFilterChain.java:813) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionCreated(IoFilterAdapter.java:75) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionCreated(DefaultIoFilterChain.java:393) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionCreated(DefaultIoFilterChainEx.java:55) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.fireSessionCreated(DefaultIoFilterChain.java:386) at org.apache.mina.core.service.IoServiceListenerSupport.fireSessionCreated(IoServiceListenerSupport.java:177) at org.kaazing.gateway.transport.AbstractBridgeService.newSession(AbstractBridgeService.java:99) at org.kaazing.gateway.transport.http.HttpConnector.access$1000(HttpConnector.java:91) at org.kaazing.gateway.transport.http.HttpConnector$DefaultHttpConnectSessionFactory.get(HttpConnector.java:630) at org.kaazing.gateway.transport.http.HttpConnector$1.doSessionOpened(HttpConnector.java:295) at org.kaazing.gateway.transport.http.HttpConnector$1.doSessionOpened(HttpConnector.java:286) at org.kaazing.gateway.transport.IoHandlerAdapter.sessionOpened(IoHandlerAdapter.java:90) at org.kaazing.gateway.transport.AbstractBridgeHandler.sessionOpened(AbstractBridgeHandler.java:97) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$TailFilter.sessionOpened(DefaultIoFilterChain.java:698) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionOpened(DefaultIoFilterChain.java:409) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionOpened(DefaultIoFilterChainEx.java:71) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionOpened(DefaultIoFilterChain.java:819) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionOpened(IoFilterAdapter.java:83) at org.kaazing.gateway.transport.LoggingFilter.sessionOpened(LoggingFilter.java:182) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionOpened(DefaultIoFilterChain.java:409) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionOpened(DefaultIoFilterChainEx.java:71) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionOpened(DefaultIoFilterChain.java:819) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionOpened(IoFilterAdapter.java:83) at org.kaazing.mina.core.filterchain.AssertAlignedFilter.sessionOpened(AssertAlignedFilter.java:129) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionOpened(DefaultIoFilterChain.java:409) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionOpened(DefaultIoFilterChainEx.java:71) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionOpened(DefaultIoFilterChain.java:819) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionOpened(IoFilterAdapter.java:83) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionOpened(DefaultIoFilterChain.java:409) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionOpened(DefaultIoFilterChainEx.java:71) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.fireSessionOpened(DefaultIoFilterChain.java:402) at org.apache.mina.core.service.IoServiceListenerSupport.fireSessionCreated(IoServiceListenerSupport.java:178) at org.kaazing.mina.netty.ChannelIoProcessor.addNow(ChannelIoProcessor.java:132) at org.kaazing.mina.netty.ChannelIoProcessor.add0(ChannelIoProcessor.java:77) at org.kaazing.mina.netty.ChannelIoProcessor.add0(ChannelIoProcessor.java:50) at org.kaazing.mina.core.service.AbstractIoProcessor.add(AbstractIoProcessor.java:42) at org.kaazing.mina.core.service.AbstractIoProcessor.add(AbstractIoProcessor.java:30) at org.kaazing.mina.netty.IoSessionChannelHandler.channelConnected(IoSessionChannelHandler.java:62) at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:118) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.kaazing.mina.netty.IoSessionFactoryChannelHandler.channelConnected(IoSessionFactoryChannelHandler.java:67) at org.kaazing.mina.netty.IoConnectorChannelHandler.channelConnected(IoConnectorChannelHandler.java:52) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:100) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireChannelConnected(Channels.java:227) at org.jboss.netty.channel.socket.nio.NioWorker$TcpChannelRegisterTask.run(NioWorker.java:237) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:441) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:358) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:135) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:253) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) 102242 org.kaazing.mina.core.filterchain.DefaultIoFilterChain [New I/O worker #1384] WARN DefaultIoFilterChain - Unexpected exception from exceptionCaught handler. java.util.ConcurrentModificationException: the Mockery is not thread-safe: use a Synchroniser to ensure thread safety at org.jmock.internal.SingleThreadedPolicy.reportError(SingleThreadedPolicy.java:35) at org.jmock.internal.SingleThreadedPolicy.checkRunningOnTestThread(SingleThreadedPolicy.java:28) at org.jmock.internal.SingleThreadedPolicy.access$000(SingleThreadedPolicy.java:10) at org.jmock.internal.SingleThreadedPolicy$1.invoke(SingleThreadedPolicy.java:20) at org.jmock.lib.JavaReflectionImposteriser$1.invoke(JavaReflectionImposteriser.java:33) at com.sun.proxy.$Proxy10.exceptionCaught(Unknown Source) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$TailFilter.exceptionCaught(DefaultIoFilterChain.java:738) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:520) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextExceptionCaught(DefaultIoFilterChainEx.java:156) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:837) at org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapter.java:107) at org.kaazing.gateway.transport.LoggingFilter.exceptionCaught(LoggingFilter.java:234) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:520) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextExceptionCaught(DefaultIoFilterChainEx.java:156) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:837) at org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapter.java:107) at org.kaazing.mina.core.filterchain.AssertAlignedFilter.exceptionCaught(AssertAlignedFilter.java:88) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:520) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextExceptionCaught(DefaultIoFilterChainEx.java:156) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:837) at org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapter.java:107) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:520) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextExceptionCaught(DefaultIoFilterChainEx.java:156) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.fireExceptionCaught(DefaultIoFilterChain.java:508) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionCreated(DefaultIoFilterChain.java:395) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionCreated(DefaultIoFilterChainEx.java:55) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionCreated(DefaultIoFilterChain.java:813) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionCreated(IoFilterAdapter.java:75) at org.kaazing.gateway.transport.LoggingFilter.sessionCreated(LoggingFilter.java:161) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionCreated(DefaultIoFilterChain.java:393) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionCreated(DefaultIoFilterChainEx.java:55) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionCreated(DefaultIoFilterChain.java:813) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionCreated(IoFilterAdapter.java:75) at org.kaazing.mina.core.filterchain.AssertAlignedFilter.sessionCreated(AssertAlignedFilter.java:116) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionCreated(DefaultIoFilterChain.java:393) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionCreated(DefaultIoFilterChainEx.java:55) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionCreated(DefaultIoFilterChain.java:813) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionCreated(IoFilterAdapter.java:75) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionCreated(DefaultIoFilterChain.java:393) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionCreated(DefaultIoFilterChainEx.java:55) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.fireSessionCreated(DefaultIoFilterChain.java:386) at org.apache.mina.core.service.IoServiceListenerSupport.fireSessionCreated(IoServiceListenerSupport.java:177) at org.kaazing.gateway.transport.AbstractBridgeService.newSession(AbstractBridgeService.java:99) at org.kaazing.gateway.transport.http.HttpConnector.access$1000(HttpConnector.java:91) at org.kaazing.gateway.transport.http.HttpConnector$DefaultHttpConnectSessionFactory.get(HttpConnector.java:630) at org.kaazing.gateway.transport.http.HttpConnector$1.doSessionOpened(HttpConnector.java:295) at org.kaazing.gateway.transport.http.HttpConnector$1.doSessionOpened(HttpConnector.java:286) at org.kaazing.gateway.transport.IoHandlerAdapter.sessionOpened(IoHandlerAdapter.java:90) at org.kaazing.gateway.transport.AbstractBridgeHandler.sessionOpened(AbstractBridgeHandler.java:97) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$TailFilter.sessionOpened(DefaultIoFilterChain.java:698) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionOpened(DefaultIoFilterChain.java:409) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionOpened(DefaultIoFilterChainEx.java:71) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionOpened(DefaultIoFilterChain.java:819) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionOpened(IoFilterAdapter.java:83) at org.kaazing.gateway.transport.LoggingFilter.sessionOpened(LoggingFilter.java:182) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionOpened(DefaultIoFilterChain.java:409) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionOpened(DefaultIoFilterChainEx.java:71) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionOpened(DefaultIoFilterChain.java:819) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionOpened(IoFilterAdapter.java:83) at org.kaazing.mina.core.filterchain.AssertAlignedFilter.sessionOpened(AssertAlignedFilter.java:129) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionOpened(DefaultIoFilterChain.java:409) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionOpened(DefaultIoFilterChainEx.java:71) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionOpened(DefaultIoFilterChain.java:819) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionOpened(IoFilterAdapter.java:83) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionOpened(DefaultIoFilterChain.java:409) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionOpened(DefaultIoFilterChainEx.java:71) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.fireSessionOpened(DefaultIoFilterChain.java:402) at org.apache.mina.core.service.IoServiceListenerSupport.fireSessionCreated(IoServiceListenerSupport.java:178) at org.kaazing.mina.netty.ChannelIoProcessor.addNow(ChannelIoProcessor.java:132) at org.kaazing.mina.netty.ChannelIoProcessor.add0(ChannelIoProcessor.java:77) at org.kaazing.mina.netty.ChannelIoProcessor.add0(ChannelIoProcessor.java:50) at org.kaazing.mina.core.service.AbstractIoProcessor.add(AbstractIoProcessor.java:42) at org.kaazing.mina.core.service.AbstractIoProcessor.add(AbstractIoProcessor.java:30) at org.kaazing.mina.netty.IoSessionChannelHandler.channelConnected(IoSessionChannelHandler.java:62) at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:118) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.kaazing.mina.netty.IoSessionFactoryChannelHandler.channelConnected(IoSessionFactoryChannelHandler.java:67) at org.kaazing.mina.netty.IoConnectorChannelHandler.channelConnected(IoConnectorChannelHandler.java:52) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:100) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireChannelConnected(Channels.java:227) at org.jboss.netty.channel.socket.nio.NioWorker$TcpChannelRegisterTask.run(NioWorker.java:237) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:441) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:358) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:135) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:253) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) 102242 transport.http.connect [New I/O worker #1384] INFO connect - [http#1272 127.0.0.1:55760] OPENED: (#00001272: kzg http, client, http://localhost:8080/jms => http://localhost:8080/jms) 102242 transport.http.connect [New I/O worker #1384] WARN connect - [http#1272 127.0.0.1:55760] EXCEPTION: java.util.ConcurrentModificationException: the Mockery is not thread-safe: use a Synchroniser to ensure thread safety java.util.ConcurrentModificationException: the Mockery is not thread-safe: use a Synchroniser to ensure thread safety at org.jmock.internal.SingleThreadedPolicy.reportError(SingleThreadedPolicy.java:35) at org.jmock.internal.SingleThreadedPolicy.checkRunningOnTestThread(SingleThreadedPolicy.java:28) at org.jmock.internal.SingleThreadedPolicy.access$000(SingleThreadedPolicy.java:10) at org.jmock.internal.SingleThreadedPolicy$1.invoke(SingleThreadedPolicy.java:20) at org.jmock.lib.JavaReflectionImposteriser$1.invoke(JavaReflectionImposteriser.java:33) at com.sun.proxy.$Proxy10.sessionOpened(Unknown Source) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$TailFilter.sessionOpened(DefaultIoFilterChain.java:698) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionOpened(DefaultIoFilterChain.java:409) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionOpened(DefaultIoFilterChainEx.java:71) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionOpened(DefaultIoFilterChain.java:819) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionOpened(IoFilterAdapter.java:83) at org.kaazing.gateway.transport.LoggingFilter.sessionOpened(LoggingFilter.java:182) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionOpened(DefaultIoFilterChain.java:409) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionOpened(DefaultIoFilterChainEx.java:71) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionOpened(DefaultIoFilterChain.java:819) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionOpened(IoFilterAdapter.java:83) at org.kaazing.mina.core.filterchain.AssertAlignedFilter.sessionOpened(AssertAlignedFilter.java:129) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionOpened(DefaultIoFilterChain.java:409) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionOpened(DefaultIoFilterChainEx.java:71) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionOpened(DefaultIoFilterChain.java:819) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionOpened(IoFilterAdapter.java:83) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionOpened(DefaultIoFilterChain.java:409) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionOpened(DefaultIoFilterChainEx.java:71) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.fireSessionOpened(DefaultIoFilterChain.java:402) at org.apache.mina.core.service.IoServiceListenerSupport.fireSessionCreated(IoServiceListenerSupport.java:178) at org.kaazing.gateway.transport.AbstractBridgeService.newSession(AbstractBridgeService.java:99) at org.kaazing.gateway.transport.http.HttpConnector.access$1000(HttpConnector.java:91) at org.kaazing.gateway.transport.http.HttpConnector$DefaultHttpConnectSessionFactory.get(HttpConnector.java:630) at org.kaazing.gateway.transport.http.HttpConnector$1.doSessionOpened(HttpConnector.java:295) at org.kaazing.gateway.transport.http.HttpConnector$1.doSessionOpened(HttpConnector.java:286) at org.kaazing.gateway.transport.IoHandlerAdapter.sessionOpened(IoHandlerAdapter.java:90) at org.kaazing.gateway.transport.AbstractBridgeHandler.sessionOpened(AbstractBridgeHandler.java:97) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$TailFilter.sessionOpened(DefaultIoFilterChain.java:698) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionOpened(DefaultIoFilterChain.java:409) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionOpened(DefaultIoFilterChainEx.java:71) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionOpened(DefaultIoFilterChain.java:819) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionOpened(IoFilterAdapter.java:83) at org.kaazing.gateway.transport.LoggingFilter.sessionOpened(LoggingFilter.java:182) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionOpened(DefaultIoFilterChain.java:409) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionOpened(DefaultIoFilterChainEx.java:71) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionOpened(DefaultIoFilterChain.java:819) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionOpened(IoFilterAdapter.java:83) at org.kaazing.mina.core.filterchain.AssertAlignedFilter.sessionOpened(AssertAlignedFilter.java:129) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionOpened(DefaultIoFilterChain.java:409) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionOpened(DefaultIoFilterChainEx.java:71) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionOpened(DefaultIoFilterChain.java:819) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionOpened(IoFilterAdapter.java:83) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionOpened(DefaultIoFilterChain.java:409) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionOpened(DefaultIoFilterChainEx.java:71) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.fireSessionOpened(DefaultIoFilterChain.java:402) at org.apache.mina.core.service.IoServiceListenerSupport.fireSessionCreated(IoServiceListenerSupport.java:178) at org.kaazing.mina.netty.ChannelIoProcessor.addNow(ChannelIoProcessor.java:132) at org.kaazing.mina.netty.ChannelIoProcessor.add0(ChannelIoProcessor.java:77) at org.kaazing.mina.netty.ChannelIoProcessor.add0(ChannelIoProcessor.java:50) at org.kaazing.mina.core.service.AbstractIoProcessor.add(AbstractIoProcessor.java:42) at org.kaazing.mina.core.service.AbstractIoProcessor.add(AbstractIoProcessor.java:30) at org.kaazing.mina.netty.IoSessionChannelHandler.channelConnected(IoSessionChannelHandler.java:62) at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:118) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.kaazing.mina.netty.IoSessionFactoryChannelHandler.channelConnected(IoSessionFactoryChannelHandler.java:67) at org.kaazing.mina.netty.IoConnectorChannelHandler.channelConnected(IoConnectorChannelHandler.java:52) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:100) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireChannelConnected(Channels.java:227) at org.jboss.netty.channel.socket.nio.NioWorker$TcpChannelRegisterTask.run(NioWorker.java:237) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:441) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:358) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:135) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:253) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) 102242 org.kaazing.mina.core.filterchain.DefaultIoFilterChain [New I/O worker #1384] WARN DefaultIoFilterChain - Unexpected exception from exceptionCaught handler. java.util.ConcurrentModificationException: the Mockery is not thread-safe: use a Synchroniser to ensure thread safety at org.jmock.internal.SingleThreadedPolicy.reportError(SingleThreadedPolicy.java:35) at org.jmock.internal.SingleThreadedPolicy.checkRunningOnTestThread(SingleThreadedPolicy.java:28) at org.jmock.internal.SingleThreadedPolicy.access$000(SingleThreadedPolicy.java:10) at org.jmock.internal.SingleThreadedPolicy$1.invoke(SingleThreadedPolicy.java:20) at org.jmock.lib.JavaReflectionImposteriser$1.invoke(JavaReflectionImposteriser.java:33) at com.sun.proxy.$Proxy10.exceptionCaught(Unknown Source) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$TailFilter.exceptionCaught(DefaultIoFilterChain.java:738) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:520) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextExceptionCaught(DefaultIoFilterChainEx.java:156) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:837) at org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapter.java:107) at org.kaazing.gateway.transport.LoggingFilter.exceptionCaught(LoggingFilter.java:234) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:520) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextExceptionCaught(DefaultIoFilterChainEx.java:156) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:837) at org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapter.java:107) at org.kaazing.mina.core.filterchain.AssertAlignedFilter.exceptionCaught(AssertAlignedFilter.java:88) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:520) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextExceptionCaught(DefaultIoFilterChainEx.java:156) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:837) at org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapter.java:107) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:520) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextExceptionCaught(DefaultIoFilterChainEx.java:156) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.fireExceptionCaught(DefaultIoFilterChain.java:508) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionOpened(DefaultIoFilterChain.java:411) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionOpened(DefaultIoFilterChainEx.java:71) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionOpened(DefaultIoFilterChain.java:819) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionOpened(IoFilterAdapter.java:83) at org.kaazing.gateway.transport.LoggingFilter.sessionOpened(LoggingFilter.java:182) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionOpened(DefaultIoFilterChain.java:409) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionOpened(DefaultIoFilterChainEx.java:71) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionOpened(DefaultIoFilterChain.java:819) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionOpened(IoFilterAdapter.java:83) at org.kaazing.mina.core.filterchain.AssertAlignedFilter.sessionOpened(AssertAlignedFilter.java:129) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionOpened(DefaultIoFilterChain.java:409) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionOpened(DefaultIoFilterChainEx.java:71) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionOpened(DefaultIoFilterChain.java:819) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionOpened(IoFilterAdapter.java:83) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionOpened(DefaultIoFilterChain.java:409) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionOpened(DefaultIoFilterChainEx.java:71) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.fireSessionOpened(DefaultIoFilterChain.java:402) at org.apache.mina.core.service.IoServiceListenerSupport.fireSessionCreated(IoServiceListenerSupport.java:178) at org.kaazing.gateway.transport.AbstractBridgeService.newSession(AbstractBridgeService.java:99) at org.kaazing.gateway.transport.http.HttpConnector.access$1000(HttpConnector.java:91) at org.kaazing.gateway.transport.http.HttpConnector$DefaultHttpConnectSessionFactory.get(HttpConnector.java:630) at org.kaazing.gateway.transport.http.HttpConnector$1.doSessionOpened(HttpConnector.java:295) at org.kaazing.gateway.transport.http.HttpConnector$1.doSessionOpened(HttpConnector.java:286) at org.kaazing.gateway.transport.IoHandlerAdapter.sessionOpened(IoHandlerAdapter.java:90) at org.kaazing.gateway.transport.AbstractBridgeHandler.sessionOpened(AbstractBridgeHandler.java:97) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$TailFilter.sessionOpened(DefaultIoFilterChain.java:698) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionOpened(DefaultIoFilterChain.java:409) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionOpened(DefaultIoFilterChainEx.java:71) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionOpened(DefaultIoFilterChain.java:819) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionOpened(IoFilterAdapter.java:83) at org.kaazing.gateway.transport.LoggingFilter.sessionOpened(LoggingFilter.java:182) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionOpened(DefaultIoFilterChain.java:409) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionOpened(DefaultIoFilterChainEx.java:71) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionOpened(DefaultIoFilterChain.java:819) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionOpened(IoFilterAdapter.java:83) at org.kaazing.mina.core.filterchain.AssertAlignedFilter.sessionOpened(AssertAlignedFilter.java:129) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionOpened(DefaultIoFilterChain.java:409) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionOpened(DefaultIoFilterChainEx.java:71) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionOpened(DefaultIoFilterChain.java:819) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionOpened(IoFilterAdapter.java:83) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionOpened(DefaultIoFilterChain.java:409) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionOpened(DefaultIoFilterChainEx.java:71) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.fireSessionOpened(DefaultIoFilterChain.java:402) at org.apache.mina.core.service.IoServiceListenerSupport.fireSessionCreated(IoServiceListenerSupport.java:178) at org.kaazing.mina.netty.ChannelIoProcessor.addNow(ChannelIoProcessor.java:132) at org.kaazing.mina.netty.ChannelIoProcessor.add0(ChannelIoProcessor.java:77) at org.kaazing.mina.netty.ChannelIoProcessor.add0(ChannelIoProcessor.java:50) at org.kaazing.mina.core.service.AbstractIoProcessor.add(AbstractIoProcessor.java:42) at org.kaazing.mina.core.service.AbstractIoProcessor.add(AbstractIoProcessor.java:30) at org.kaazing.mina.netty.IoSessionChannelHandler.channelConnected(IoSessionChannelHandler.java:62) at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:118) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.kaazing.mina.netty.IoSessionFactoryChannelHandler.channelConnected(IoSessionFactoryChannelHandler.java:67) at org.kaazing.mina.netty.IoConnectorChannelHandler.channelConnected(IoConnectorChannelHandler.java:52) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:100) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireChannelConnected(Channels.java:227) at org.jboss.netty.channel.socket.nio.NioWorker$TcpChannelRegisterTask.run(NioWorker.java:237) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:441) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:358) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:135) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:253) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) 102242 org.kaazing.mina.filter.codec.ProtocolCodecFilter [New I/O worker #1384] DEBUG ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 1271 102242 org.kaazing.gateway.transport.http.bridge.filter.HttpResponseDecodingState [New I/O worker #1384] DEBUG HttpResponseDecodingState - "302 Found HTTP/1.1" 102242 transport.tcp.connect [New I/O worker #1384] TRACE connect - [tcp#1271 127.0.0.1:55760] RECEIVED: RESPONSE: 302 Found HTTP/1.1 HEADERS: {Content-Length=[0], Location=[http://localhost:8081/jms]} null 102243 transport.http.connect [New I/O worker #1384] DEBUG connect - Cache miss - NO cached persistent connection: server = http://localhost:8081/jms 102243 transport.tcp.connect [New I/O worker #1384] TRACE connect - AbstractNioConnector.connectInternal(), resource: tcp://127.0.0.1:8081 102244 transport.tcp.connect [New I/O worker #1384] TRACE connect - AbstractNioConnector.connectInternal()$initializeSession(), session: (#00001273: kaazing niosocketchannel, client, /127.0.0.1:43156 => /127.0.0.1:8081), resource: tcp://127.0.0.1:8081 102244 transport.tcp.connect [New I/O worker #1384] INFO connect - [tcp#1273 127.0.0.1:43156] OPENED: (#00001273: kaazing niosocketchannel, client, /127.0.0.1:43156 => /127.0.0.1:8081) 102244 transport.tcp.connect [New I/O worker #1384] TRACE connect - [tcp#1273 127.0.0.1:43156] WRITE: REQUEST: HTTP/1.1 GET /jms HEADERS: {User-Agent=[Kaazing Gateway], Upgrade=[websocket], Sec-WebSocket-Version=[13], Sec-WebSocket-Key=[dGhlIHNhbXBsZSBub25jZQ==], Host=[localhost:8081], Connection=[Upgrade]} null 102246 transport.tcp.connect [New I/O worker #1384] INFO connect - [tcp#1271 127.0.0.1:55760] CLOSED: (#00001271: kaazing niosocketchannel, client, /127.0.0.1:55760 => /127.0.0.1:8080) 102286 transport.tcp.connect [New I/O worker #1384] INFO connect - [tcp#1273 127.0.0.1:43156] CLOSED: (#00001273: kaazing niosocketchannel, client, /127.0.0.1:43156 => /127.0.0.1:8081) 102287 transport.http.connect [New I/O worker #1384] INFO connect - [http#1272 127.0.0.1:55760] EXCEPTION: java.io.IOException: Early termination of IO session 102287 org.kaazing.mina.core.filterchain.DefaultIoFilterChain [New I/O worker #1384] WARN DefaultIoFilterChain - Unexpected exception from exceptionCaught handler. java.util.ConcurrentModificationException: the Mockery is not thread-safe: use a Synchroniser to ensure thread safety at org.jmock.internal.SingleThreadedPolicy.reportError(SingleThreadedPolicy.java:35) at org.jmock.internal.SingleThreadedPolicy.checkRunningOnTestThread(SingleThreadedPolicy.java:28) at org.jmock.internal.SingleThreadedPolicy.access$000(SingleThreadedPolicy.java:10) at org.jmock.internal.SingleThreadedPolicy$1.invoke(SingleThreadedPolicy.java:20) at org.jmock.lib.JavaReflectionImposteriser$1.invoke(JavaReflectionImposteriser.java:33) at com.sun.proxy.$Proxy10.exceptionCaught(Unknown Source) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$TailFilter.exceptionCaught(DefaultIoFilterChain.java:738) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:520) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextExceptionCaught(DefaultIoFilterChainEx.java:156) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:837) at org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapter.java:107) at org.kaazing.gateway.transport.LoggingFilter.exceptionCaught(LoggingFilter.java:234) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:520) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextExceptionCaught(DefaultIoFilterChainEx.java:156) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:837) at org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapter.java:107) at org.kaazing.mina.core.filterchain.AssertAlignedFilter.exceptionCaught(AssertAlignedFilter.java:88) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:520) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextExceptionCaught(DefaultIoFilterChainEx.java:156) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:837) at org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapter.java:107) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:520) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextExceptionCaught(DefaultIoFilterChainEx.java:156) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.fireExceptionCaught(DefaultIoFilterChain.java:508) at org.kaazing.gateway.transport.AbstractBridgeSession.reset0(AbstractBridgeSession.java:274) at org.kaazing.gateway.transport.AbstractBridgeSession.reset(AbstractBridgeSession.java:221) at org.kaazing.gateway.transport.http.HttpConnector$1.doSessionClosed(HttpConnector.java:312) at org.kaazing.gateway.transport.http.HttpConnector$1.doSessionClosed(HttpConnector.java:286) at org.kaazing.gateway.transport.IoHandlerAdapter.sessionClosed(IoHandlerAdapter.java:63) at org.kaazing.gateway.transport.AbstractBridgeHandler.sessionClosed(AbstractBridgeHandler.java:79) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$TailFilter.sessionClosed(DefaultIoFilterChain.java:706) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:433) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionClosed(DefaultIoFilterChainEx.java:87) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:825) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionClosed(IoFilterAdapter.java:91) at org.kaazing.gateway.transport.LoggingFilter.sessionClosed(LoggingFilter.java:243) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:433) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionClosed(DefaultIoFilterChainEx.java:87) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:825) at org.kaazing.mina.filter.codec.ProtocolCodecFilter.sessionClosed(ProtocolCodecFilter.java:366) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:433) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionClosed(DefaultIoFilterChainEx.java:87) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:825) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionClosed(IoFilterAdapter.java:91) at org.kaazing.mina.core.filterchain.AssertAlignedFilter.sessionClosed(AssertAlignedFilter.java:109) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:433) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionClosed(DefaultIoFilterChainEx.java:87) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:825) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionClosed(IoFilterAdapter.java:91) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:433) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionClosed(DefaultIoFilterChainEx.java:87) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.fireSessionClosed(DefaultIoFilterChain.java:426) at org.apache.mina.core.service.IoServiceListenerSupport.fireSessionDestroyed(IoServiceListenerSupport.java:206) at org.kaazing.mina.netty.ChannelIoProcessor.removeNow(ChannelIoProcessor.java:156) at org.kaazing.mina.netty.ChannelIoProcessor.remove0(ChannelIoProcessor.java:82) at org.kaazing.mina.netty.ChannelIoProcessor.remove0(ChannelIoProcessor.java:50) at org.kaazing.mina.core.service.AbstractIoProcessor.remove(AbstractIoProcessor.java:62) at org.kaazing.mina.core.service.AbstractIoProcessor.remove(AbstractIoProcessor.java:30) at org.kaazing.mina.netty.IoSessionChannelHandler.channelClosed(IoSessionChannelHandler.java:72) at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:106) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireChannelClosed(Channels.java:468) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.close(AbstractNioWorker.java:440) at org.jboss.netty.channel.socket.nio.NioWorker.readTcp(NioWorker.java:154) at org.jboss.netty.channel.socket.nio.NioWorker.access$000(NioWorker.java:66) at org.jboss.netty.channel.socket.nio.NioWorker$TcpReadDispatcher.dispatch(NioWorker.java:559) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:109) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:160) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:385) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:135) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:253) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) 102287 transport.http.connect [New I/O worker #1384] INFO connect - [http#1272 127.0.0.1:55760] CLOSED: (#00001272: kzg http, client, tcp://127.0.0.1:43156 => http://localhost:8081/jms) 102287 org.kaazing.mina.core.filterchain.DefaultIoFilterChain [New I/O worker #1384] WARN DefaultIoFilterChain - Unexpected exception from exceptionCaught handler. java.util.ConcurrentModificationException: the Mockery is not thread-safe: use a Synchroniser to ensure thread safety at org.jmock.internal.SingleThreadedPolicy.reportError(SingleThreadedPolicy.java:35) at org.jmock.internal.SingleThreadedPolicy.checkRunningOnTestThread(SingleThreadedPolicy.java:28) at org.jmock.internal.SingleThreadedPolicy.access$000(SingleThreadedPolicy.java:10) at org.jmock.internal.SingleThreadedPolicy$1.invoke(SingleThreadedPolicy.java:20) at org.jmock.lib.JavaReflectionImposteriser$1.invoke(JavaReflectionImposteriser.java:33) at com.sun.proxy.$Proxy10.exceptionCaught(Unknown Source) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$TailFilter.exceptionCaught(DefaultIoFilterChain.java:738) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:520) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextExceptionCaught(DefaultIoFilterChainEx.java:156) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:837) at org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapter.java:107) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:520) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextExceptionCaught(DefaultIoFilterChainEx.java:156) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.fireExceptionCaught(DefaultIoFilterChain.java:508) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:435) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionClosed(DefaultIoFilterChainEx.java:87) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:825) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionClosed(IoFilterAdapter.java:91) at org.kaazing.gateway.transport.LoggingFilter.sessionClosed(LoggingFilter.java:243) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:433) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionClosed(DefaultIoFilterChainEx.java:87) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:825) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionClosed(IoFilterAdapter.java:91) at org.kaazing.mina.core.filterchain.AssertAlignedFilter.sessionClosed(AssertAlignedFilter.java:109) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:433) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionClosed(DefaultIoFilterChainEx.java:87) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:825) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionClosed(IoFilterAdapter.java:91) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:433) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionClosed(DefaultIoFilterChainEx.java:87) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.fireSessionClosed(DefaultIoFilterChain.java:426) at org.apache.mina.core.service.IoServiceListenerSupport.fireSessionDestroyed(IoServiceListenerSupport.java:206) at org.kaazing.gateway.transport.AbstractBridgeProcessor.doFireSessionDestroyed(AbstractBridgeProcessor.java:82) at org.kaazing.gateway.transport.http.HttpConnectProcessor.doFireSessionDestroyed(HttpConnectProcessor.java:194) at org.kaazing.gateway.transport.http.HttpConnectProcessor.doFireSessionDestroyed(HttpConnectProcessor.java:52) at org.kaazing.gateway.transport.AbstractBridgeProcessor.remove0(AbstractBridgeProcessor.java:74) at org.kaazing.gateway.transport.AbstractBridgeProcessor.remove0(AbstractBridgeProcessor.java:39) at org.kaazing.mina.core.service.AbstractIoProcessor.remove(AbstractIoProcessor.java:62) at org.kaazing.mina.core.service.AbstractIoProcessor.remove(AbstractIoProcessor.java:30) at org.kaazing.gateway.transport.AbstractBridgeSession.reset0(AbstractBridgeSession.java:278) at org.kaazing.gateway.transport.AbstractBridgeSession.reset(AbstractBridgeSession.java:221) at org.kaazing.gateway.transport.http.HttpConnector$1.doSessionClosed(HttpConnector.java:312) at org.kaazing.gateway.transport.http.HttpConnector$1.doSessionClosed(HttpConnector.java:286) at org.kaazing.gateway.transport.IoHandlerAdapter.sessionClosed(IoHandlerAdapter.java:63) at org.kaazing.gateway.transport.AbstractBridgeHandler.sessionClosed(AbstractBridgeHandler.java:79) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$TailFilter.sessionClosed(DefaultIoFilterChain.java:706) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:433) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionClosed(DefaultIoFilterChainEx.java:87) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:825) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionClosed(IoFilterAdapter.java:91) at org.kaazing.gateway.transport.LoggingFilter.sessionClosed(LoggingFilter.java:243) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:433) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionClosed(DefaultIoFilterChainEx.java:87) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:825) at org.kaazing.mina.filter.codec.ProtocolCodecFilter.sessionClosed(ProtocolCodecFilter.java:366) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:433) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionClosed(DefaultIoFilterChainEx.java:87) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:825) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionClosed(IoFilterAdapter.java:91) at org.kaazing.mina.core.filterchain.AssertAlignedFilter.sessionClosed(AssertAlignedFilter.java:109) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:433) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionClosed(DefaultIoFilterChainEx.java:87) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:825) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionClosed(IoFilterAdapter.java:91) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:433) at org.kaazing.mina.core.filterchain.DefaultIoFilterChainEx.callNextSessionClosed(DefaultIoFilterChainEx.java:87) at org.kaazing.mina.core.filterchain.DefaultIoFilterChain.fireSessionClosed(DefaultIoFilterChain.java:426) at org.apache.mina.core.service.IoServiceListenerSupport.fireSessionDestroyed(IoServiceListenerSupport.java:206) at org.kaazing.mina.netty.ChannelIoProcessor.removeNow(ChannelIoProcessor.java:156) at org.kaazing.mina.netty.ChannelIoProcessor.remove0(ChannelIoProcessor.java:82) at org.kaazing.mina.netty.ChannelIoProcessor.remove0(ChannelIoProcessor.java:50) at org.kaazing.mina.core.service.AbstractIoProcessor.remove(AbstractIoProcessor.java:62) at org.kaazing.mina.core.service.AbstractIoProcessor.remove(AbstractIoProcessor.java:30) at org.kaazing.mina.netty.IoSessionChannelHandler.channelClosed(IoSessionChannelHandler.java:72) at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:106) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireChannelClosed(Channels.java:468) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.close(AbstractNioWorker.java:440) at org.jboss.netty.channel.socket.nio.NioWorker.readTcp(NioWorker.java:154) at org.jboss.netty.channel.socket.nio.NioWorker.access$000(NioWorker.java:66) at org.jboss.netty.channel.socket.nio.NioWorker$TcpReadDispatcher.dispatch(NioWorker.java:559) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:109) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:160) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:385) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:135) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:253) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) =================== END STORED LOG MESSAGES =========================== Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.35 sec <<< FAILURE! - in org.kaazing.gateway.transport.http.HttpConnectorFollowRedirectIT responseMustBeARedirect(org.kaazing.gateway.transport.http.HttpConnectorFollowRedirectIT) Time elapsed: 0.35 sec <<< FAILURE! java.lang.AssertionError: Values should be different. Actual: [tcp://127.0.0.1:43156 (tcp://127.0.0.1:43156) http/1.1] at org.kaazing.gateway.transport.http.HttpConnectorFollowRedirectIT.responseMustBeARedirect(HttpConnectorFollowRedirectIT.java:64) Results : Failed tests: HttpConnectorFollowRedirectIT.responseMustBeARedirect:64 Values should be different. Actual: [tcp://127.0.0.1:43156 (tcp://127.0.0.1:43156) http/1.1] Tests run: 481, Failures: 1, Errors: 0, Skipped: 19