java.lang.IllegalArgumentException: Object has already been built and is self-referencing itself <details>

GitHub | clintongormley | 3 months ago
  1. 0

    GitHub comment 20550#248249107

    GitHub | 3 months ago | clintongormley
    java.lang.IllegalArgumentException: Object has already been built and is self-referencing itself <details>
  2. 0

    Spring Cloud Zookeeper with Netflix Zuul does not work

    GitHub | 12 months ago | sigrist
    org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat
  3. 0

    problema forge 1.7.10 - Aiuti e Questioni Tecniche - Minecraft Italia

    minecraftitalia.net | 5 months ago
    cpw.mods.fml.common.LoaderException: java.lang.IllegalArgumentException: The object } has been registered twice, using the names ModName:FerroroGrezz and TestEnvironmentMod:FerroroGrezz. (Other object at this id is })
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring Batch IllegalArgumentException while executing step with chunk after step with tasklet

    tagwith.com | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'DataEnhancement': Cannot create inner bean '(inner bean)#47634763' of type [org.springframework.batch.core.configuration.xml.SimpleFlowFactoryBean] while setting bean property 'flow'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#47634763': Cannot create inner bean '(inner bean)#27b627b6' of type [org.springframework.batch.core.job.flow.support.StateTransition] while setting bean property 'stateTransitions' with key [2]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#27b627b6': Cannot create inner bean '(inner bean)#7d267d26' of type [org.springframework.batch.core.job.flow.support.state.StepState] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#7d267d26': Cannot resolve reference to bean 'readHeader' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'readHeader': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: Step [readHeader] has both a <chunk/> element and a 'ref' attribute referencing a Tasklet.
  6. 0

    Stacktrace included lots of these repeated: {code} 2015-04-27 14:58:39,291 - ERROR [New I/O worker #21:c.c.h.RequestRouter@141] - Exception caught in channel processing. java.nio.channels.ClosedChannelException: null at org.jboss.netty.channel.socket.nio.AbstractNioWorker.cleanUpWriteBuffer(AbstractNioWorker.java:434) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.socket.nio.AbstractNioWorker.writeFromUserCode(AbstractNioWorker.java:129) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handleAcceptedSocket(NioServerSocketPipelineSink.java:99) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:36) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.codec.http.HttpContentEncoder.writeRequested(HttpContentEncoder.java:167) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.Channels.write(Channels.java:725) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.doEncode(OneToOneEncoder.java:71) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:59) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ExecutionHandler.handleDownstream(ExecutionHandler.java:186) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.Channels.write(Channels.java:704) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.Channels.write(Channels.java:671) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:248) ~[netty-3.6.6.Final.jar:na] at co.cask.http.BasicHttpResponder.sendContent(BasicHttpResponder.java:92) ~[netty-http-0.11.0.jar:na] at co.cask.http.AbstractHttpResponder.sendJson(AbstractHttpResponder.java:65) ~[netty-http-0.11.0.jar:na] at co.cask.http.WrappedHttpResponder.sendJson(WrappedHttpResponder.java:67) ~[netty-http-0.11.0.jar:na] at co.cask.cdap.data2.datafabric.dataset.service.DatasetInstanceHandler.getInfo(DatasetInstanceHandler.java:147) ~[classes/:na] at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_51] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51] at co.cask.http.HttpMethodInfo.invoke(HttpMethodInfo.java:85) ~[netty-http-0.11.0.jar:na] at co.cask.http.HttpDispatcher.messageReceived(HttpDispatcher.java:41) ~[netty-http-0.11.0.jar:na] at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314) ~[netty-3.6.6.Final.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] 2015-04-27 14:58:39,298 - ERROR [worker-ETLWorker-0:c.c.c.i.a.r.w.BasicWorkerContext@231] - Exception occurred running user code. Aborting transaction. java.lang.RuntimeException: co.cask.cdap.data2.dataset2.DatasetManagementException: Error during talking to Dataset Service at http://alvins-mbp-2.attlocal.net:65337/v3/namespaces/system/data/datasets/usage.registry while doing GET with headers null and body null at com.google.common.base.Throwables.propagate(Throwables.java:160) ~[guava-13.0.1.jar:na] at co.cask.cdap.data2.registry.UsageRegistry$1.get(UsageRegistry.java:54) ~[classes/:na] at co.cask.cdap.data2.registry.UsageRegistry$1.get(UsageRegistry.java:47) ~[classes/:na] at co.cask.cdap.data2.dataset2.tx.Transactional.execute(Transactional.java:103) ~[classes/:na] at co.cask.cdap.data2.dataset2.tx.Transactional.executeUnchecked(Transactional.java:77) ~[classes/:na] at co.cask.cdap.data2.registry.UsageRegistry.registerAll(UsageRegistry.java:67) ~[classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.writeToStream(DefaultStreamWriter.java:110) ~[classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.write(DefaultStreamWriter.java:123) ~[classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.write(DefaultStreamWriter.java:133) ~[classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.write(DefaultStreamWriter.java:128) ~[classes/:na] at co.cask.cdap.internal.app.runtime.worker.BasicWorkerContext.write(BasicWorkerContext.java:242) ~[classes/:na] at co.cask.cdap.templates.etl.realtime.DefaultDataWriter.write(DefaultDataWriter.java:57) ~[ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.templates.etl.realtime.sinks.StreamSink.writeString(StreamSink.java:159) ~[na:na] at co.cask.cdap.templates.etl.realtime.sinks.StreamSink.write(StreamSink.java:116) ~[na:na] at co.cask.cdap.templates.etl.realtime.TrackedRealtimeSink.write(TrackedRealtimeSink.java:40) ~[ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.templates.etl.realtime.ETLWorker$4.run(ETLWorker.java:198) ~[ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.internal.app.runtime.worker.BasicWorkerContext.execute(BasicWorkerContext.java:191) ~[classes/:na] at co.cask.cdap.templates.etl.realtime.ETLWorker.run(ETLWorker.java:194) [ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.internal.app.runtime.worker.WorkerDriver.run(WorkerDriver.java:74) [classes/:na] at com.google.common.util.concurrent.AbstractExecutionThreadService$1$1.run(AbstractExecutionThreadService.java:52) [guava-13.0.1.jar:na] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] Caused by: co.cask.cdap.data2.dataset2.DatasetManagementException: Error during talking to Dataset Service at http://alvins-mbp-2.attlocal.net:65337/v3/namespaces/system/data/datasets/usage.registry while doing GET with headers null and body null at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:302) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:318) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doGet(DatasetServiceClient.java:252) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.getInstance(DatasetServiceClient.java:99) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.getInstance(DatasetServiceClient.java:113) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.RemoteDatasetFramework.hasInstance(RemoteDatasetFramework.java:153) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.createIfNotExists(DatasetsUtil.java:65) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.getOrCreateDataset(DatasetsUtil.java:54) ~[classes/:na] at co.cask.cdap.data2.registry.UsageDatasets.get(UsageDatasets.java:54) ~[classes/:na] at co.cask.cdap.data2.registry.UsageDatasets.get(UsageDatasets.java:42) ~[classes/:na] at co.cask.cdap.data2.registry.UsageRegistry$1.get(UsageRegistry.java:51) ~[classes/:na] ... 19 common frames omitted Caused by: java.net.SocketException: Invalid argument at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_51] at java.net.SocketInputStream.read(SocketInputStream.java:152) ~[na:1.7.0_51] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_51] at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) ~[na:1.7.0_51] at java.io.BufferedInputStream.read1(BufferedInputStream.java:275) ~[na:1.7.0_51] at java.io.BufferedInputStream.read(BufferedInputStream.java:334) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:658) ~[na:1.7.0_51] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1323) ~[na:1.7.0_51] at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468) ~[na:1.7.0_51] at co.cask.common.http.HttpRequests.execute(HttpRequests.java:116) ~[common-http-0.6.1.jar:na] at co.cask.common.http.HttpRequests.execute(HttpRequests.java:141) ~[common-http-0.6.1.jar:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:296) ~[classes/:na] ... 29 common frames omitted Apr 27, 2015 2:58:39 PM org.jboss.netty.channel.DefaultChannelPipeline WARNING: An exception was thrown by a user handler while handling an exception event ([id: 0x0034b9f9, /192.168.1.100:49843 :> /192.168.1.100:65337] EXCEPTION: java.nio.channels.ClosedChannelException) java.lang.IllegalArgumentException: Response has been already sent at com.google.common.base.Preconditions.checkArgument(Preconditions.java:92) at co.cask.http.BasicHttpResponder.sendContent(BasicHttpResponder.java:78) at co.cask.http.AbstractHttpResponder.sendString(AbstractHttpResponder.java:84) at co.cask.http.WrappedHttpResponder.sendString(WrappedHttpResponder.java:79) at co.cask.http.HttpMethodInfo.sendError(HttpMethodInfo.java:157) at co.cask.http.RequestRouter.exceptionCaught(RequestRouter.java:142) at org.jboss.netty.handler.codec.frame.FrameDecoder.exceptionCaught(FrameDecoder.java:377) at co.cask.http.NettyHttpService$2.handleUpstream(NettyHttpService.java:222) at org.jboss.netty.channel.Channels.fireExceptionCaught(Channels.java:525) at org.jboss.netty.channel.Channels$7.run(Channels.java:499) at org.jboss.netty.channel.socket.ChannelRunnableWrapper.run(ChannelRunnableWrapper.java:40) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:366) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:290) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Apr 27, 2015 2:58:39 PM org.jboss.netty.channel.DefaultChannelPipeline WARNING: An exception was thrown by a user handler while handling an exception event ([id: 0x433a1fd0, /192.168.1.100:49844 :> /192.168.1.100:65337] EXCEPTION: java.nio.channels.ClosedChannelException) java.lang.IllegalArgumentException: Response has been already sent at com.google.common.base.Preconditions.checkArgument(Preconditions.java:92) at co.cask.http.BasicHttpResponder.sendContent(BasicHttpResponder.java:78) at co.cask.http.AbstractHttpResponder.sendString(AbstractHttpResponder.java:84) at co.cask.http.WrappedHttpResponder.sendString(WrappedHttpResponder.java:79) at co.cask.http.HttpMethodInfo.sendError(HttpMethodInfo.java:157) at co.cask.http.RequestRouter.exceptionCaught(RequestRouter.java:142) at org.jboss.netty.handler.codec.frame.FrameDecoder.exceptionCaught(FrameDecoder.java:377) at co.cask.http.NettyHttpService$2.handleUpstream(NettyHttpService.java:222) at org.jboss.netty.channel.Channels.fireExceptionCaught(Channels.java:525) at org.jboss.netty.channel.Channels$7.run(Channels.java:499) at org.jboss.netty.channel.socket.ChannelRunnableWrapper.run(ChannelRunnableWrapper.java:40) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:366) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:290) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) 2015-04-27 14:58:39,313 - ERROR [worker-ETLWorker-0:c.c.c.d.r.UsageRegistry$1@53] - Failed to access usage table co.cask.cdap.data2.dataset2.DatasetManagementException: Error during talking to Dataset Service at http://alvins-mbp-2.attlocal.net:65337/v3/namespaces/system/data/datasets/usage.registry while doing GET with headers null and body null at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:302) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:318) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doGet(DatasetServiceClient.java:252) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.getInstance(DatasetServiceClient.java:99) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.getInstance(DatasetServiceClient.java:113) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.RemoteDatasetFramework.hasInstance(RemoteDatasetFramework.java:153) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.createIfNotExists(DatasetsUtil.java:65) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.getOrCreateDataset(DatasetsUtil.java:54) ~[classes/:na] at co.cask.cdap.data2.registry.UsageDatasets.get(UsageDatasets.java:54) ~[classes/:na] at co.cask.cdap.data2.registry.UsageDatasets.get(UsageDatasets.java:42) ~[classes/:na] at co.cask.cdap.data2.registry.UsageRegistry$1.get(UsageRegistry.java:51) [classes/:na] at co.cask.cdap.data2.registry.UsageRegistry$1.get(UsageRegistry.java:47) [classes/:na] at co.cask.cdap.data2.dataset2.tx.Transactional.execute(Transactional.java:103) [classes/:na] at co.cask.cdap.data2.dataset2.tx.Transactional.executeUnchecked(Transactional.java:77) [classes/:na] at co.cask.cdap.data2.registry.UsageRegistry.registerAll(UsageRegistry.java:67) [classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.writeToStream(DefaultStreamWriter.java:110) [classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.write(DefaultStreamWriter.java:123) [classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.write(DefaultStreamWriter.java:133) [classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.write(DefaultStreamWriter.java:128) [classes/:na] at co.cask.cdap.internal.app.runtime.worker.BasicWorkerContext.write(BasicWorkerContext.java:242) [classes/:na] at co.cask.cdap.templates.etl.realtime.DefaultDataWriter.write(DefaultDataWriter.java:57) [ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.templates.etl.realtime.sinks.StreamSink.writeString(StreamSink.java:159) [1430171907469-0/:na] at co.cask.cdap.templates.etl.realtime.sinks.StreamSink.write(StreamSink.java:116) [1430171907469-0/:na] at co.cask.cdap.templates.etl.realtime.TrackedRealtimeSink.write(TrackedRealtimeSink.java:40) [ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.templates.etl.realtime.ETLWorker$4.run(ETLWorker.java:198) [ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.internal.app.runtime.worker.BasicWorkerContext.execute(BasicWorkerContext.java:191) [classes/:na] at co.cask.cdap.templates.etl.realtime.ETLWorker.run(ETLWorker.java:194) [ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.internal.app.runtime.worker.WorkerDriver.run(WorkerDriver.java:74) [classes/:na] at com.google.common.util.concurrent.AbstractExecutionThreadService$1$1.run(AbstractExecutionThreadService.java:52) [guava-13.0.1.jar:na] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] Caused by: java.net.SocketException: Invalid argument at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_51] at java.net.SocketInputStream.read(SocketInputStream.java:152) ~[na:1.7.0_51] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_51] at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) ~[na:1.7.0_51] at java.io.BufferedInputStream.read1(BufferedInputStream.java:275) ~[na:1.7.0_51] at java.io.BufferedInputStream.read(BufferedInputStream.java:334) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:658) ~[na:1.7.0_51] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1323) ~[na:1.7.0_51] at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468) ~[na:1.7.0_51] at co.cask.common.http.HttpRequests.execute(HttpRequests.java:116) ~[common-http-0.6.1.jar:na] at co.cask.common.http.HttpRequests.execute(HttpRequests.java:141) ~[common-http-0.6.1.jar:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:296) ~[classes/:na] ... 29 common frames omitted 2015-04-27 14:58:39,313 - ERROR [New I/O worker #22:c.c.h.RequestRouter@141] - Exception caught in channel processing. java.nio.channels.ClosedChannelException: null at org.jboss.netty.channel.socket.nio.AbstractNioWorker.cleanUpWriteBuffer(AbstractNioWorker.java:434) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.socket.nio.AbstractNioWorker.writeFromUserCode(AbstractNioWorker.java:129) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handleAcceptedSocket(NioServerSocketPipelineSink.java:99) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:36) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.codec.http.HttpContentEncoder.writeRequested(HttpContentEncoder.java:167) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.Channels.write(Channels.java:725) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.doEncode(OneToOneEncoder.java:71) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:59) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ExecutionHandler.handleDownstream(ExecutionHandler.java:186) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.Channels.write(Channels.java:704) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.Channels.write(Channels.java:671) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:248) ~[netty-3.6.6.Final.jar:na] at co.cask.http.BasicHttpResponder.sendContent(BasicHttpResponder.java:92) ~[netty-http-0.11.0.jar:na] at co.cask.http.AbstractHttpResponder.sendJson(AbstractHttpResponder.java:65) ~[netty-http-0.11.0.jar:na] at co.cask.http.WrappedHttpResponder.sendJson(WrappedHttpResponder.java:67) ~[netty-http-0.11.0.jar:na] at co.cask.cdap.data2.datafabric.dataset.service.DatasetInstanceHandler.getInfo(DatasetInstanceHandler.java:147) ~[classes/:na] at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_51] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51] at co.cask.http.HttpMethodInfo.invoke(HttpMethodInfo.java:85) ~[netty-http-0.11.0.jar:na] at co.cask.http.HttpDispatcher.messageReceived(HttpDispatcher.java:41) ~[netty-http-0.11.0.jar:na] at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314) ~[netty-3.6.6.Final.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] Apr 27, 2015 2:58:39 PM org.jboss.netty.channel.DefaultChannelPipeline WARNING: An exception was thrown by a user handler while handling an exception event ([id: 0x98361318, /192.168.1.100:49845 :> /192.168.1.100:65337] EXCEPTION: java.nio.channels.ClosedChannelException) java.lang.IllegalArgumentException: Response has been already sent 2015-04-27 14:58:39,316 - ERROR [worker-ETLWorker-0:c.c.c.i.a.r.w.BasicWorkerContext@231] - Exception occurred running user code. Aborting transaction. java.lang.RuntimeException: co.cask.cdap.data2.dataset2.DatasetManagementException: Error during talking to Dataset Service at http://alvins-mbp-2.attlocal.net:65337/v3/namespaces/system/data/datasets/usage.registry while doing GET with headers null and body null at com.google.common.base.Throwables.propagate(Throwables.java:160) ~[guava-13.0.1.jar:na] at co.cask.cdap.data2.registry.UsageRegistry$1.get(UsageRegistry.java:54) ~[classes/:na] at co.cask.cdap.data2.registry.UsageRegistry$1.get(UsageRegistry.java:47) ~[classes/:na] at co.cask.cdap.data2.dataset2.tx.Transactional.execute(Transactional.java:103) ~[classes/:na] at co.cask.cdap.data2.dataset2.tx.Transactional.executeUnchecked(Transactional.java:77) ~[classes/:na] at co.cask.cdap.data2.registry.UsageRegistry.registerAll(UsageRegistry.java:67) ~[classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.writeToStream(DefaultStreamWriter.java:110) ~[classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.write(DefaultStreamWriter.java:123) ~[classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.write(DefaultStreamWriter.java:133) ~[classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.write(DefaultStreamWriter.java:128) ~[classes/:na] at co.cask.cdap.internal.app.runtime.worker.BasicWorkerContext.write(BasicWorkerContext.java:242) ~[classes/:na] at co.cask.cdap.templates.etl.realtime.DefaultDataWriter.write(DefaultDataWriter.java:57) ~[ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.templates.etl.realtime.sinks.StreamSink.writeString(StreamSink.java:159) ~[na:na] at co.cask.cdap.templates.etl.realtime.sinks.StreamSink.write(StreamSink.java:116) ~[na:na] at co.cask.cdap.templates.etl.realtime.TrackedRealtimeSink.write(TrackedRealtimeSink.java:40) ~[ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.templates.etl.realtime.ETLWorker$4.run(ETLWorker.java:198) ~[ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.internal.app.runtime.worker.BasicWorkerContext.execute(BasicWorkerContext.java:191) ~[classes/:na] at co.cask.cdap.templates.etl.realtime.ETLWorker.run(ETLWorker.java:194) [ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.internal.app.runtime.worker.WorkerDriver.run(WorkerDriver.java:74) [classes/:na] at com.google.common.util.concurrent.AbstractExecutionThreadService$1$1.run(AbstractExecutionThreadService.java:52) [guava-13.0.1.jar:na] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] Caused by: co.cask.cdap.data2.dataset2.DatasetManagementException: Error during talking to Dataset Service at http://alvins-mbp-2.attlocal.net:65337/v3/namespaces/system/data/datasets/usage.registry while doing GET with headers null and body null at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:302) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:318) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doGet(DatasetServiceClient.java:252) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.getInstance(DatasetServiceClient.java:99) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.getInstance(DatasetServiceClient.java:113) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.RemoteDatasetFramework.hasInstance(RemoteDatasetFramework.java:153) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.createIfNotExists(DatasetsUtil.java:65) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.getOrCreateDataset(DatasetsUtil.java:54) ~[classes/:na] at co.cask.cdap.data2.registry.UsageDatasets.get(UsageDatasets.java:54) ~[classes/:na] at co.cask.cdap.data2.registry.UsageDatasets.get(UsageDatasets.java:42) ~[classes/:na] at co.cask.cdap.data2.registry.UsageRegistry$1.get(UsageRegistry.java:51) ~[classes/:na] ... 19 common frames omitted Caused by: java.net.SocketException: Invalid argument at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_51] at java.net.SocketInputStream.read(SocketInputStream.java:152) ~[na:1.7.0_51] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_51] at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) ~[na:1.7.0_51] at java.io.BufferedInputStream.read1(BufferedInputStream.java:275) ~[na:1.7.0_51] at java.io.BufferedInputStream.read(BufferedInputStream.java:334) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:658) ~[na:1.7.0_51] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1323) ~[na:1.7.0_51] at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468) ~[na:1.7.0_51] at co.cask.common.http.HttpRequests.execute(HttpRequests.java:116) ~[common-http-0.6.1.jar:na] at co.cask.common.http.HttpRequests.execute(HttpRequests.java:141) ~[common-http-0.6.1.jar:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:296) ~[classes/:na] ... 29 common frames omitted at com.google.common.base.Preconditions.checkArgument(Preconditions.java:92) at co.cask.http.BasicHttpResponder.sendContent(BasicHttpResponder.java:78) at co.cask.http.AbstractHttpResponder.sendString(AbstractHttpResponder.java:84) at co.cask.http.WrappedHttpResponder.sendString(WrappedHttpResponder.java:79) at co.cask.http.HttpMethodInfo.sendError(HttpMethodInfo.java:157) at co.cask.http.RequestRouter.exceptionCaught(RequestRouter.java:142) at org.jboss.netty.handler.codec.frame.FrameDecoder.exceptionCaught(FrameDecoder.java:377) at co.cask.http.NettyHttpService$2.handleUpstream(NettyHttpService.java:222) at org.jboss.netty.channel.Channels.fireExceptionCaught(Channels.java:525) at org.jboss.netty.channel.Channels$7.run(Channels.java:499) at org.jboss.netty.channel.socket.ChannelRunnableWrapper.run(ChannelRunnableWrapper.java:40) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:366) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:290) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) 2015-04-27 14:58:39,325 - ERROR [worker-ETLWorker-0:c.c.c.d.r.UsageRegistry$1@53] - Failed to access usage table co.cask.cdap.data2.dataset2.DatasetManagementException: Error during talking to Dataset Service at http://alvins-mbp-2.attlocal.net:65337/v3/namespaces/system/data/datasets/usage.registry while doing GET with headers null and body null at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:302) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:318) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doGet(DatasetServiceClient.java:252) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.getInstance(DatasetServiceClient.java:99) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.getInstance(DatasetServiceClient.java:113) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.RemoteDatasetFramework.hasInstance(RemoteDatasetFramework.java:153) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.createIfNotExists(DatasetsUtil.java:65) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.getOrCreateDataset(DatasetsUtil.java:54) ~[classes/:na] Apr 27, 2015 2:58:39 PM org.jboss.netty.channel.DefaultChannelPipeline WARNING: An exception was thrown by a user handler while handling an exception event ([id: 0x30dab59e, /192.168.1.100:49847 :> /192.168.1.100:65337] EXCEPTION: java.nio.channels.ClosedChannelException) java.lang.IllegalArgumentException: Response has been already sent at com.google.common.base.Preconditions.checkArgument(Preconditions.java:92) at co.cask.http.BasicHttpResponder.sendContent(BasicHttpResponder.java:78) at co.cask.http.AbstractHttpResponder.sendString(AbstractHttpResponder.java:84) at co.cask.http.WrappedHttpResponder.sendString(WrappedHttpResponder.java:79) at co.cask.http.HttpMethodInfo.sendError(HttpMethodInfo.java:157) at co.cask.http.RequestRouter.exceptionCaught(RequestRouter.java:142) at org.jboss.netty.handler.codec.frame.FrameDecoder.exceptionCaught(FrameDecoder.java:377) at co.cask.http.NettyHttpService$2.handleUpstream(NettyHttpService.java:222) at org.jboss.netty.channel.Channels.fireExceptionCaught(Channels.java:525) at org.jboss.netty.channel.Channels$7.run(Channels.java:499) at org.jboss.netty.channel.socket.ChannelRunnableWrapper.run(ChannelRunnableWrapper.java:40) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:366) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:290) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at co.cask.cdap.data2.registry.UsageDatasets.get(UsageDatasets.java:54) ~[classes/:na] at co.cask.cdap.data2.registry.UsageDatasets.get(UsageDatasets.java:42) ~[classes/:na] at co.cask.cdap.data2.registry.UsageRegistry$1.get(UsageRegistry.java:51) [classes/:na] at co.cask.cdap.data2.registry.UsageRegistry$1.get(UsageRegistry.java:47) [classes/:na] at co.cask.cdap.data2.dataset2.tx.Transactional.execute(Transactional.java:103) [classes/:na] at co.cask.cdap.data2.dataset2.tx.Transactional.executeUnchecked(Transactional.java:77) [classes/:na] at co.cask.cdap.data2.registry.UsageRegistry.registerAll(UsageRegistry.java:67) [classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.writeToStream(DefaultStreamWriter.java:110) [classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.write(DefaultStreamWriter.java:123) [classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.write(DefaultStreamWriter.java:133) [classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.write(DefaultStreamWriter.java:128) [classes/:na] at co.cask.cdap.internal.app.runtime.worker.BasicWorkerContext.write(BasicWorkerContext.java:242) [classes/:na] at co.cask.cdap.templates.etl.realtime.DefaultDataWriter.write(DefaultDataWriter.java:57) [ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.templates.etl.realtime.sinks.StreamSink.writeString(StreamSink.java:159) [1430171907469-0/:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Apr 27, 2015 2:58:39 PM org.jboss.netty.channel.DefaultChannelPipeline at co.cask.cdap.templates.etl.realtime.sinks.StreamSink.write(StreamSink.java:116) [1430171907469-0/:na] at co.cask.cdap.templates.etl.realtime.TrackedRealtimeSink.write(TrackedRealtimeSink.java:40) [ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.templates.etl.realtime.ETLWorker$4.run(ETLWorker.java:198) [ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.internal.app.runtime.worker.BasicWorkerContext.execute(BasicWorkerContext.java:191) [classes/:na] at co.cask.cdap.templates.etl.realtime.ETLWorker.run(ETLWorker.java:194) [ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.internal.app.runtime.worker.WorkerDriver.run(WorkerDriver.java:74) [classes/:na] at com.google.common.util.concurrent.AbstractExecutionThreadService$1$1.run(AbstractExecutionThreadService.java:52) [guava-13.0.1.jar:na] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] Caused by: java.net.SocketException: Invalid argument at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_51] at java.net.SocketInputStream.read(SocketInputStream.java:152) ~[na:1.7.0_51] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_51] at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) ~[na:1.7.0_51] at java.io.BufferedInputStream.read1(BufferedInputStream.java:275) ~[na:1.7.0_51] at java.io.BufferedInputStream.read(BufferedInputStream.java:334) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:658) ~[na:1.7.0_51] WARNING: An exception was thrown by a user handler while handling an exception event ([id: 0x96340345, /192.168.1.100:49848 :> /192.168.1.100:65337] EXCEPTION: java.nio.channels.ClosedChannelException) java.lang.IllegalArgumentException: Response has been already sent at com.google.common.base.Preconditions.checkArgument(Preconditions.java:92) at co.cask.http.BasicHttpResponder.sendContent(BasicHttpResponder.java:78) at co.cask.http.AbstractHttpResponder.sendString(AbstractHttpResponder.java:84) at co.cask.http.WrappedHttpResponder.sendString(WrappedHttpResponder.java:79) at co.cask.http.HttpMethodInfo.sendError(HttpMethodInfo.java:157) at co.cask.http.RequestRouter.exceptionCaught(RequestRouter.java:142) at org.jboss.netty.handler.codec.frame.FrameDecoder.exceptionCaught(FrameDecoder.java:377) at co.cask.http.NettyHttpService$2.handleUpstream(NettyHttpService.java:222) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1323) ~[na:1.7.0_51] at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468) ~[na:1.7.0_51] at co.cask.common.http.HttpRequests.execute(HttpRequests.java:116) ~[common-http-0.6.1.jar:na] at co.cask.common.http.HttpRequests.execute(HttpRequests.java:141) ~[common-http-0.6.1.jar:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:296) ~[classes/:na] ... 29 common frames omitted 2015-04-27 14:58:39,329 - ERROR [New I/O worker #24:c.c.h.RequestRouter@141] - Exception caught in channel processing. java.nio.channels.ClosedChannelException: null at org.jboss.netty.channel.socket.nio.AbstractNioWorker.cleanUpWriteBuffer(AbstractNioWorker.java:434) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.socket.nio.AbstractNioWorker.writeFromUserCode(AbstractNioWorker.java:129) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handleAcceptedSocket(NioServerSocketPipelineSink.java:99) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:36) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.codec.http.HttpContentEncoder.writeRequested(HttpContentEncoder.java:167) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.Channels.write(Channels.java:725) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.doEncode(OneToOneEncoder.java:71) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:59) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.Channels.fireExceptionCaught(Channels.java:525) at org.jboss.netty.channel.Channels$7.run(Channels.java:499) at org.jboss.netty.channel.socket.ChannelRunnableWrapper.run(ChannelRunnableWrapper.java:40) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:366) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:290) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.handler.execution.ExecutionHandler.handleDownstream(ExecutionHandler.java:186) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.Channels.write(Channels.java:704) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.Channels.write(Channels.java:671) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:248) ~[netty-3.6.6.Final.jar:na] at co.cask.http.BasicHttpResponder.sendContent(BasicHttpResponder.java:92) ~[netty-http-0.11.0.jar:na] at co.cask.http.AbstractHttpResponder.sendJson(AbstractHttpResponder.java:65) ~[netty-http-0.11.0.jar:na] at co.cask.http.WrappedHttpResponder.sendJson(WrappedHttpResponder.java:67) ~[netty-http-0.11.0.jar:na] at co.cask.cdap.data2.datafabric.dataset.service.DatasetInstanceHandler.getInfo(DatasetInstanceHandler.java:147) ~[classes/:na] at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_51] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51] at co.cask.http.HttpMethodInfo.invoke(HttpMethodInfo.java:85) ~[netty-http-0.11.0.jar:na] at co.cask.http.HttpDispatcher.messageReceived(HttpDispatcher.java:41) ~[netty-http-0.11.0.jar:na] at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314) ~[netty-3.6.6.Final.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] 2015-04-27 14:58:39,330 - ERROR [New I/O worker #21:c.c.h.RequestRouter@141] - Exception caught in channel processing. java.nio.channels.ClosedChannelException: null at org.jboss.netty.channel.socket.nio.AbstractNioWorker.cleanUpWriteBuffer(AbstractNioWorker.java:434) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.socket.nio.AbstractNioWorker.writeFromUserCode(AbstractNioWorker.java:129) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handleAcceptedSocket(NioServerSocketPipelineSink.java:99) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:36) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.codec.http.HttpContentEncoder.writeRequested(HttpContentEncoder.java:167) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.Channels.write(Channels.java:725) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.doEncode(OneToOneEncoder.java:71) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:59) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ExecutionHandler.handleDownstream(ExecutionHandler.java:186) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.Channels.write(Channels.java:704) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.Channels.write(Channels.java:671) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:248) ~[netty-3.6.6.Final.jar:na] at co.cask.http.BasicHttpResponder.sendContent(BasicHttpResponder.java:92) ~[netty-http-0.11.0.jar:na] at co.cask.http.AbstractHttpResponder.sendJson(AbstractHttpResponder.java:65) ~[netty-http-0.11.0.jar:na] at co.cask.http.WrappedHttpResponder.sendJson(WrappedHttpResponder.java:67) ~[netty-http-0.11.0.jar:na] at co.cask.cdap.data2.datafabric.dataset.service.DatasetInstanceHandler.getInfo(DatasetInstanceHandler.java:147) ~[classes/:na] at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_51] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51] at co.cask.http.HttpMethodInfo.invoke(HttpMethodInfo.java:85) ~[netty-http-0.11.0.jar:na] at co.cask.http.HttpDispatcher.messageReceived(HttpDispatcher.java:41) ~[netty-http-0.11.0.jar:na] at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314) ~[netty-3.6.6.Final.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] 2015-04-27 14:58:39,331 - ERROR [worker-ETLWorker-0:c.c.c.i.a.r.w.BasicWorkerContext@231] - Exception occurred running user code. Aborting transaction. java.lang.RuntimeException: co.cask.cdap.data2.dataset2.DatasetManagementException: Error during talking to Dataset Service at http://alvins-mbp-2.attlocal.net:65337/v3/namespaces/system/data/datasets/usage.registry while doing GET with headers null and body null at com.google.common.base.Throwables.propagate(Throwables.java:160) ~[guava-13.0.1.jar:na] at co.cask.cdap.data2.registry.UsageRegistry$1.get(UsageRegistry.java:54) ~[classes/:na] at co.cask.cdap.data2.registry.UsageRegistry$1.get(UsageRegistry.java:47) ~[classes/:na] at co.cask.cdap.data2.dataset2.tx.Transactional.execute(Transactional.java:103) ~[classes/:na] at co.cask.cdap.data2.dataset2.tx.Transactional.executeUnchecked(Transactional.java:77) ~[classes/:na] at co.cask.cdap.data2.registry.UsageRegistry.registerAll(UsageRegistry.java:67) ~[classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.writeToStream(DefaultStreamWriter.java:110) ~[classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.write(DefaultStreamWriter.java:123) ~[classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.write(DefaultStreamWriter.java:133) ~[classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.write(DefaultStreamWriter.java:128) ~[classes/:na] at co.cask.cdap.internal.app.runtime.worker.BasicWorkerContext.write(BasicWorkerContext.java:242) ~[classes/:na] at co.cask.cdap.templates.etl.realtime.DefaultDataWriter.write(DefaultDataWriter.java:57) ~[ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.templates.etl.realtime.sinks.StreamSink.writeString(StreamSink.java:159) ~[na:na] at co.cask.cdap.templates.etl.realtime.sinks.StreamSink.write(StreamSink.java:116) ~[na:na] at co.cask.cdap.templates.etl.realtime.TrackedRealtimeSink.write(TrackedRealtimeSink.java:40) ~[ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.templates.etl.realtime.ETLWorker$4.run(ETLWorker.java:198) ~[ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.internal.app.runtime.worker.BasicWorkerContext.execute(BasicWorkerContext.java:191) ~[classes/:na] at co.cask.cdap.templates.etl.realtime.ETLWorker.run(ETLWorker.java:194) [ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.internal.app.runtime.worker.WorkerDriver.run(WorkerDriver.java:74) [classes/:na] at com.google.common.util.concurrent.AbstractExecutionThreadService$1$1.run(AbstractExecutionThreadService.java:52) [guava-13.0.1.jar:na] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] Caused by: co.cask.cdap.data2.dataset2.DatasetManagementException: Error during talking to Dataset Service at http://alvins-mbp-2.attlocal.net:65337/v3/namespaces/system/data/datasets/usage.registry while doing GET with headers null and body null at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:302) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:318) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doGet(DatasetServiceClient.java:252) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.getInstance(DatasetServiceClient.java:99) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.getInstance(DatasetServiceClient.java:113) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.RemoteDatasetFramework.hasInstance(RemoteDatasetFramework.java:153) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.createIfNotExists(DatasetsUtil.java:65) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.getOrCreateDataset(DatasetsUtil.java:54) ~[classes/:na] at co.cask.cdap.data2.registry.UsageDatasets.get(UsageDatasets.java:54) ~[classes/:na] at co.cask.cdap.data2.registry.UsageDatasets.get(UsageDatasets.java:42) ~[classes/:na] at co.cask.cdap.data2.registry.UsageRegistry$1.get(UsageRegistry.java:51) ~[classes/:na] ... 19 common frames omitted Caused by: java.net.SocketException: Invalid argument at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_51] at java.net.SocketInputStream.read(SocketInputStream.java:152) ~[na:1.7.0_51] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_51] at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) ~[na:1.7.0_51] at java.io.BufferedInputStream.read1(BufferedInputStream.java:275) ~[na:1.7.0_51] at java.io.BufferedInputStream.read(BufferedInputStream.java:334) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:658) ~[na:1.7.0_51] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1323) ~[na:1.7.0_51] at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468) ~[na:1.7.0_51] at co.cask.common.http.HttpRequests.execute(HttpRequests.java:116) ~[common-http-0.6.1.jar:na] at co.cask.common.http.HttpRequests.execute(HttpRequests.java:141) ~[common-http-0.6.1.jar:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:296) ~[classes/:na] ... 29 common frames omitted Apr 27, 2015 2:58:39 PM org.jboss.netty.channel.DefaultChannelPipeline WARNING: An exception was thrown by a user handler while handling an exception event ([id: 0xfb66e753, /192.168.1.100:49849 :> /192.168.1.100:65337] EXCEPTION: java.nio.channels.ClosedChannelException) java.lang.IllegalArgumentException: Response has been already sent at com.google.common.base.Preconditions.checkArgument(Preconditions.java:92) at co.cask.http.BasicHttpResponder.sendContent(BasicHttpResponder.java:78) at co.cask.http.AbstractHttpResponder.sendString(AbstractHttpResponder.java:84) at co.cask.http.WrappedHttpResponder.sendString(WrappedHttpResponder.java:79) at co.cask.http.HttpMethodInfo.sendError(HttpMethodInfo.java:157) at co.cask.http.RequestRouter.exceptionCaught(RequestRouter.java:142) at org.jboss.netty.handler.codec.frame.FrameDecoder.exceptionCaught(FrameDecoder.java:377) at co.cask.http.NettyHttpService$2.handleUpstream(NettyHttpService.java:222) at org.jboss.netty.channel.Channels.fireExceptionCaught(Channels.java:525) at org.jboss.netty.channel.Channels$7.run(Channels.java:499) at org.jboss.netty.channel.socket.ChannelRunnableWrapper.run(ChannelRunnableWrapper.java:40) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:366) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:290) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Apr 27, 2015 2:58:39 PM org.jboss.netty.channel.DefaultChannelPipeline WARNING: An exception was thrown by a user handler while handling an exception event ([id: 0x79b451ec, /192.168.1.100:49850 :> /192.168.1.100:65337] EXCEPTION: java.nio.channels.ClosedChannelException) java.lang.IllegalArgumentException: Response has been already sent at com.google.common.base.Preconditions.checkArgument(Preconditions.java:92) at co.cask.http.BasicHttpResponder.sendContent(BasicHttpResponder.java:78) at co.cask.http.AbstractHttpResponder.sendString(AbstractHttpResponder.java:84) at co.cask.http.WrappedHttpResponder.sendString(WrappedHttpResponder.java:79) at co.cask.http.HttpMethodInfo.sendError(HttpMethodInfo.java:157) at co.cask.http.RequestRouter.exceptionCaught(RequestRouter.java:142) at org.jboss.netty.handler.codec.frame.FrameDecoder.exceptionCaught(FrameDecoder.java:377) at co.cask.http.NettyHttpService$2.handleUpstream(NettyHttpService.java:222) at org.jboss.netty.channel.Channels.fireExceptionCaught(Channels.java:525) at org.jboss.netty.channel.Channels$7.run(Channels.java:499) at org.jboss.netty.channel.socket.ChannelRunnableWrapper.run(ChannelRunnableWrapper.java:40) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:366) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:290) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) 2015-04-27 14:58:39,341 - ERROR [worker-ETLWorker-0:c.c.c.d.r.UsageRegistry$1@53] - Failed to access usage table co.cask.cdap.data2.dataset2.DatasetManagementException: Error during talking to Dataset Service at http://alvins-mbp-2.attlocal.net:65337/v3/namespaces/system/data/datasets/usage.registry while doing GET with headers null and body null at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:302) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:318) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doGet(DatasetServiceClient.java:252) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.getInstance(DatasetServiceClient.java:99) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.getInstance(DatasetServiceClient.java:113) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.RemoteDatasetFramework.hasInstance(RemoteDatasetFramework.java:153) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.createIfNotExists(DatasetsUtil.java:65) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.getOrCreateDataset(DatasetsUtil.java:54) ~[classes/:na] at co.cask.cdap.data2.registry.UsageDatasets.get(UsageDatasets.java:54) ~[classes/:na] at co.cask.cdap.data2.registry.UsageDatasets.get(UsageDatasets.java:42) ~[classes/:na] at co.cask.cdap.data2.registry.UsageRegistry$1.get(UsageRegistry.java:51) [classes/:na] at co.cask.cdap.data2.registry.UsageRegistry$1.get(UsageRegistry.java:47) [classes/:na] at co.cask.cdap.data2.dataset2.tx.Transactional.execute(Transactional.java:103) [classes/:na] at co.cask.cdap.data2.dataset2.tx.Transactional.executeUnchecked(Transactional.java:77) [classes/:na] at co.cask.cdap.data2.registry.UsageRegistry.registerAll(UsageRegistry.java:67) [classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.writeToStream(DefaultStreamWriter.java:110) [classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.write(DefaultStreamWriter.java:123) [classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.write(DefaultStreamWriter.java:133) [classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.write(DefaultStreamWriter.java:128) [classes/:na] at co.cask.cdap.internal.app.runtime.worker.BasicWorkerContext.write(BasicWorkerContext.java:242) [classes/:na] at co.cask.cdap.templates.etl.realtime.DefaultDataWriter.write(DefaultDataWriter.java:57) [ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.templates.etl.realtime.sinks.StreamSink.writeString(StreamSink.java:159) [1430171907469-0/:na] at co.cask.cdap.templates.etl.realtime.sinks.StreamSink.write(StreamSink.java:116) [1430171907469-0/:na] at co.cask.cdap.templates.etl.realtime.TrackedRealtimeSink.write(TrackedRealtimeSink.java:40) [ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.templates.etl.realtime.ETLWorker$4.run(ETLWorker.java:198) [ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.internal.app.runtime.worker.BasicWorkerContext.execute(BasicWorkerContext.java:191) [classes/:na] at co.cask.cdap.templates.etl.realtime.ETLWorker.run(ETLWorker.java:194) [ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.internal.app.runtime.worker.WorkerDriver.run(WorkerDriver.java:74) [classes/:na] at com.google.common.util.concurrent.AbstractExecutionThreadService$1$1.run(AbstractExecutionThreadService.java:52) [guava-13.0.1.jar:na] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] Caused by: java.net.SocketException: Invalid argument at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_51] at java.net.SocketInputStream.read(SocketInputStream.java:152) ~[na:1.7.0_51] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_51] at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) ~[na:1.7.0_51] at java.io.BufferedInputStream.read1(BufferedInputStream.java:275) ~[na:1.7.0_51] at java.io.BufferedInputStream.read(BufferedInputStream.java:334) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:658) ~[na:1.7.0_51] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1323) ~[na:1.7.0_51] at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468) ~[na:1.7.0_51] at co.cask.common.http.HttpRequests.execute(HttpRequests.java:116) ~[common-http-0.6.1.jar:na] at co.cask.common.http.HttpRequests.execute(HttpRequests.java:141) ~[common-http-0.6.1.jar:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:296) ~[classes/:na] ... 29 common frames omitted 2015-04-27 14:58:39,343 - ERROR [New I/O worker #22:c.c.h.RequestRouter@141] - Exception caught in channel processing. java.nio.channels.ClosedChannelException: null at org.jboss.netty.channel.socket.nio.AbstractNioWorker.cleanUpWriteBuffer(AbstractNioWorker.java:434) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.socket.nio.AbstractNioWorker.writeFromUserCode(AbstractNioWorker.java:129) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handleAcceptedSocket(NioServerSocketPipelineSink.java:99) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:36) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.codec.http.HttpContentEncoder.writeRequested(HttpContentEncoder.java:167) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.Channels.write(Channels.java:725) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.doEncode(OneToOneEncoder.java:71) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:59) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ExecutionHandler.handleDownstream(ExecutionHandler.java:186) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.Channels.write(Channels.java:704) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.Channels.write(Channels.java:671) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:248) ~[netty-3.6.6.Final.jar:na] at co.cask.http.BasicHttpResponder.sendContent(BasicHttpResponder.java:92) ~[netty-http-0.11.0.jar:na] at co.cask.http.AbstractHttpResponder.sendJson(AbstractHttpResponder.java:65) ~[netty-http-0.11.0.jar:na] at co.cask.http.WrappedHttpResponder.sendJson(WrappedHttpResponder.java:67) ~[netty-http-0.11.0.jar:na] at co.cask.cdap.data2.datafabric.dataset.service.DatasetInstanceHandler.getInfo(DatasetInstanceHandler.java:147) ~[classes/:na] at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_51] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51] at co.cask.http.HttpMethodInfo.invoke(HttpMethodInfo.java:85) ~[netty-http-0.11.0.jar:na] at co.cask.http.HttpDispatcher.messageReceived(HttpDispatcher.java:41) ~[netty-http-0.11.0.jar:na] at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314) ~[netty-3.6.6.Final.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] 2015-04-27 14:58:39,345 - ERROR [New I/O worker #23:c.c.h.RequestRouter@141] - Exception caught in channel processing. java.nio.channels.ClosedChannelException: null at org.jboss.netty.channel.socket.nio.AbstractNioWorker.cleanUpWriteBuffer(AbstractNioWorker.java:434) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.socket.nio.AbstractNioWorker.writeFromUserCode(AbstractNioWorker.java:129) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handleAcceptedSocket(NioServerSocketPipelineSink.java:99) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:36) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.codec.http.HttpContentEncoder.writeRequested(HttpContentEncoder.java:167) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.Channels.write(Channels.java:725) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.doEncode(OneToOneEncoder.java:71) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:59) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ExecutionHandler.handleDownstream(ExecutionHandler.java:186) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.Channels.write(Channels.java:704) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.Channels.write(Channels.java:671) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:248) ~[netty-3.6.6.Final.jar:na] at co.cask.http.BasicHttpResponder.sendContent(BasicHttpResponder.java:92) ~[netty-http-0.11.0.jar:na] at co.cask.http.AbstractHttpResponder.sendJson(AbstractHttpResponder.java:65) ~[netty-http-0.11.0.jar:na] at co.cask.http.WrappedHttpResponder.sendJson(WrappedHttpResponder.java:67) ~[netty-http-0.11.0.jar:na] at co.cask.cdap.data2.datafabric.dataset.service.DatasetInstanceHandler.getInfo(DatasetInstanceHandler.java:147) ~[classes/:na] at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_51] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51] at co.cask.http.HttpMethodInfo.invoke(HttpMethodInfo.java:85) ~[netty-http-0.11.0.jar:na] at co.cask.http.HttpDispatcher.messageReceived(HttpDispatcher.java:41) ~[netty-http-0.11.0.jar:na] at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314) ~[netty-3.6.6.Final.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] 2015-04-27 14:58:39,347 - ERROR [worker-ETLWorker-0:c.c.c.i.a.r.w.BasicWorkerContext@231] - Exception occurred running user code. Aborting transaction. java.lang.RuntimeException: co.cask.cdap.data2.dataset2.DatasetManagementException: Error during talking to Dataset Service at http://alvins-mbp-2.attlocal.net:65337/v3/namespaces/system/data/datasets/usage.registry while doing GET with headers null and body null at com.google.common.base.Throwables.propagate(Throwables.java:160) ~[guava-13.0.1.jar:na] at co.cask.cdap.data2.registry.UsageRegistry$1.get(UsageRegistry.java:54) ~[classes/:na] at co.cask.cdap.data2.registry.UsageRegistry$1.get(UsageRegistry.java:47) ~[classes/:na] at co.cask.cdap.data2.dataset2.tx.Transactional.execute(Transactional.java:103) ~[classes/:na] at co.cask.cdap.data2.dataset2.tx.Transactional.executeUnchecked(Transactional.java:77) ~[classes/:na] at co.cask.cdap.data2.registry.UsageRegistry.registerAll(UsageRegistry.java:67) ~[classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.writeToStream(DefaultStreamWriter.java:110) ~[classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.write(DefaultStreamWriter.java:123) ~[classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.write(DefaultStreamWriter.java:133) ~[classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.write(DefaultStreamWriter.java:128) ~[classes/:na] at co.cask.cdap.internal.app.runtime.worker.BasicWorkerContext.write(BasicWorkerContext.java:242) ~[classes/:na] at co.cask.cdap.templates.etl.realtime.DefaultDataWriter.write(DefaultDataWriter.java:57) ~[ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.templates.etl.realtime.sinks.StreamSink.writeString(StreamSink.java:159) ~[na:na] at co.cask.cdap.templates.etl.realtime.sinks.StreamSink.write(StreamSink.java:116) ~[na:na] at co.cask.cdap.templates.etl.realtime.TrackedRealtimeSink.write(TrackedRealtimeSink.java:40) ~[ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.templates.etl.realtime.ETLWorker$4.run(ETLWorker.java:198) ~[ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.internal.app.runtime.worker.BasicWorkerContext.execute(BasicWorkerContext.java:191) ~[classes/:na] at co.cask.cdap.templates.etl.realtime.ETLWorker.run(ETLWorker.java:194) [ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.internal.app.runtime.worker.WorkerDriver.run(WorkerDriver.java:74) [classes/:na] at com.google.common.util.concurrent.AbstractExecutionThreadService$1$1.run(AbstractExecutionThreadService.java:52) [guava-13.0.1.jar:na] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] Caused by: co.cask.cdap.data2.dataset2.DatasetManagementException: Error during talking to Dataset Service at http://alvins-mbp-2.attlocal.net:65337/v3/namespaces/system/data/datasets/usage.registry while doing GET with headers null and body null at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:302) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:318) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doGet(DatasetServiceClient.java:252) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.getInstance(DatasetServiceClient.java:99) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.getInstance(DatasetServiceClient.java:113) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.RemoteDatasetFramework.hasInstance(RemoteDatasetFramework.java:153) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.createIfNotExists(DatasetsUtil.java:65) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.getOrCreateDataset(DatasetsUtil.java:54) ~[classes/:na] at co.cask.cdap.data2.registry.UsageDatasets.get(UsageDatasets.java:54) ~[classes/:na] at co.cask.cdap.data2.registry.UsageDatasets.get(UsageDatasets.java:42) ~[classes/:na] at co.cask.cdap.data2.registry.UsageRegistry$1.get(UsageRegistry.java:51) ~[classes/:na] ... 19 common frames omitted Caused by: java.net.SocketException: Invalid argument at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_51] at java.net.SocketInputStream.read(SocketInputStream.java:152) ~[na:1.7.0_51] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_51] at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) ~[na:1.7.0_51] at java.io.BufferedInputStream.read1(BufferedInputStream.java:275) ~[na:1.7.0_51] at java.io.BufferedInputStream.read(BufferedInputStream.java:334) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:658) ~[na:1.7.0_51] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1323) ~[na:1.7.0_51] at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468) ~[na:1.7.0_51] at co.cask.common.http.HttpRequests.execute(HttpRequests.java:116) ~[common-http-0.6.1.jar:na] at co.cask.common.http.HttpRequests.execute(HttpRequests.java:141) ~[common-http-0.6.1.jar:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:296) ~[classes/:na] ... 29 common frames omitted 2015-04-27 14:58:39,361 - ERROR [New I/O worker #24:c.c.h.RequestRouter@141] - Exception caught in channel processing. java.nio.channels.ClosedChannelException: null at org.jboss.netty.channel.socket.nio.AbstractNioWorker.cleanUpWriteBuffer(AbstractNioWorker.java:434) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.socket.nio.AbstractNioWorker.writeFromUserCode(AbstractNioWorker.java:129) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handleAcceptedSocket(NioServerSocketPipelineSink.java:99) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:36) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.codec.http.HttpContentEncoder.writeRequested(HttpContentEncoder.java:167) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.Channels.write(Channels.java:725) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.doEncode(OneToOneEncoder.java:71) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:59) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ExecutionHandler.handleDownstream(ExecutionHandler.java:186) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.Channels.write(Channels.java:704) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.Channels.write(Channels.java:671) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:248) ~[netty-3.6.6.Final.jar:na] at co.cask.http.BasicHttpResponder.sendContent(BasicHttpResponder.java:92) ~[netty-http-0.11.0.jar:na] at co.cask.http.AbstractHttpResponder.sendJson(AbstractHttpResponder.java:65) ~[netty-http-0.11.0.jar:na] at co.cask.http.WrappedHttpResponder.sendJson(WrappedHttpResponder.java:67) ~[netty-http-0.11.0.jar:na] at co.cask.cdap.data2.datafabric.dataset.service.DatasetInstanceHandler.getInfo(DatasetInstanceHandler.java:147) ~[classes/:na] at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_51] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51] at co.cask.http.HttpMethodInfo.invoke(HttpMethodInfo.java:85) ~[netty-http-0.11.0.jar:na] at co.cask.http.HttpDispatcher.messageReceived(HttpDispatcher.java:41) ~[netty-http-0.11.0.jar:na] at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314) ~[netty-3.6.6.Final.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] 2015-04-27 14:58:39,362 - ERROR [worker-ETLWorker-0:c.c.c.d.r.UsageRegistry$1@53] - Failed to access usage table co.cask.cdap.data2.dataset2.DatasetManagementException: Error during talking to Dataset Service at http://alvins-mbp-2.attlocal.net:65337/v3/namespaces/system/data/datasets/usage.registry while doing GET with headers null and body null at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:302) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:318) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doGet(DatasetServiceClient.java:252) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.getInstance(DatasetServiceClient.java:99) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.getInstance(DatasetServiceClient.java:113) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.RemoteDatasetFramework.hasInstance(RemoteDatasetFramework.java:153) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.createIfNotExists(DatasetsUtil.java:65) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.getOrCreateDataset(DatasetsUtil.java:54) ~[classes/:na] at co.cask.cdap.data2.registry.UsageDatasets.get(UsageDatasets.java:54) ~[classes/:na] at co.cask.cdap.data2.registry.UsageDatasets.get(UsageDatasets.java:42) ~[classes/:na] at co.cask.cdap.data2.registry.UsageRegistry$1.get(UsageRegistry.java:51) [classes/:na] at co.cask.cdap.data2.registry.UsageRegistry$1.get(UsageRegistry.java:47) [classes/:na] at co.cask.cdap.data2.dataset2.tx.Transactional.execute(Transactional.java:103) [classes/:na] at co.cask.cdap.data2.dataset2.tx.Transactional.executeUnchecked(Transactional.java:77) [classes/:na] at co.cask.cdap.data2.registry.UsageRegistry.registerAll(UsageRegistry.java:67) [classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.writeToStream(DefaultStreamWriter.java:110) [classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.write(DefaultStreamWriter.java:123) [classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.write(DefaultStreamWriter.java:133) [classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.write(DefaultStreamWriter.java:128) [classes/:na] at co.cask.cdap.internal.app.runtime.worker.BasicWorkerContext.write(BasicWorkerContext.java:242) [classes/:na] at co.cask.cdap.templates.etl.realtime.DefaultDataWriter.write(DefaultDataWriter.java:57) [ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.templates.etl.realtime.sinks.StreamSink.writeString(StreamSink.java:159) [1430171907469-0/:na] at co.cask.cdap.templates.etl.realtime.sinks.StreamSink.write(StreamSink.java:116) [1430171907469-0/:na] at co.cask.cdap.templates.etl.realtime.TrackedRealtimeSink.write(TrackedRealtimeSink.java:40) [ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.templates.etl.realtime.ETLWorker$4.run(ETLWorker.java:198) [ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.internal.app.runtime.worker.BasicWorkerContext.execute(BasicWorkerContext.java:191) [classes/:na] at co.cask.cdap.templates.etl.realtime.ETLWorker.run(ETLWorker.java:194) [ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.internal.app.runtime.worker.WorkerDriver.run(WorkerDriver.java:74) [classes/:na] at com.google.common.util.concurrent.AbstractExecutionThreadService$1$1.run(AbstractExecutionThreadService.java:52) [guava-13.0.1.jar:na] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] Caused by: java.net.SocketException: Invalid argument at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_51] at java.net.SocketInputStream.read(SocketInputStream.java:152) ~[na:1.7.0_51] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_51] at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) ~[na:1.7.0_51] at java.io.BufferedInputStream.read1(BufferedInputStream.java:275) ~[na:1.7.0_51] at java.io.BufferedInputStream.read(BufferedInputStream.java:334) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:658) ~[na:1.7.0_51] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1323) ~[na:1.7.0_51] at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468) ~[na:1.7.0_51] at co.cask.common.http.HttpRequests.execute(HttpRequests.java:116) ~[common-http-0.6.1.jar:na] at co.cask.common.http.HttpRequests.execute(HttpRequests.java:141) ~[common-http-0.6.1.jar:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:296) ~[classes/:na] ... 29 common frames omitted Apr 27, 2015 2:58:39 PM org.jboss.netty.channel.DefaultChannelPipeline WARNING: An exception was thrown by a user handler while handling an exception event ([id: 0x723a710e, /192.168.1.100:49851 :> /192.168.1.100:65337] EXCEPTION: java.nio.channels.ClosedChannelException) java.lang.IllegalArgumentException: Response has been already sent at com.google.common.base.Preconditions.checkArgument(Preconditions.java:92) at co.cask.http.BasicHttpResponder.sendContent(BasicHttpResponder.java:78) at co.cask.http.AbstractHttpResponder.sendString(AbstractHttpResponder.java:84) at co.cask.http.WrappedHttpResponder.sendString(WrappedHttpResponder.java:79) at co.cask.http.HttpMethodInfo.sendError(HttpMethodInfo.java:157) at co.cask.http.RequestRouter.exceptionCaught(RequestRouter.java:142) at org.jboss.netty.handler.codec.frame.FrameDecoder.exceptionCaught(FrameDecoder.java:377) at co.cask.http.NettyHttpService$2.handleUpstream(NettyHttpService.java:222) at org.jboss.netty.channel.Channels.fireExceptionCaught(Channels.java:525) at org.jboss.netty.channel.Channels$7.run(Channels.java:499) at org.jboss.netty.channel.socket.ChannelRunnableWrapper.run(ChannelRunnableWrapper.java:40) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:366) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:290) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) 2015-04-27 14:58:39,363 - ERROR [New I/O worker #21:c.c.h.RequestRouter@141] - Exception caught in channel processing. java.nio.channels.ClosedChannelException: null at org.jboss.netty.channel.socket.nio.AbstractNioWorker.cleanUpWriteBuffer(AbstractNioWorker.java:434) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.socket.nio.AbstractNioWorker.writeFromUserCode(AbstractNioWorker.java:129) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handleAcceptedSocket(NioServerSocketPipelineSink.java:99) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:36) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.codec.http.HttpContentEncoder.writeRequested(HttpContentEncoder.java:167) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.Channels.write(Channels.java:725) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.doEncode(OneToOneEncoder.java:71) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:59) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ExecutionHandler.handleDownstream(ExecutionHandler.java:186) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.Channels.write(Channels.java:704) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.Channels.write(Channels.java:671) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:248) ~[netty-3.6.6.Final.jar:na] at co.cask.http.BasicHttpResponder.sendContent(BasicHttpResponder.java:92) ~[netty-http-0.11.0.jar:na] at co.cask.http.AbstractHttpResponder.sendJson(AbstractHttpResponder.java:65) ~[netty-http-0.11.0.jar:na] at co.cask.http.WrappedHttpResponder.sendJson(WrappedHttpResponder.java:67) ~[netty-http-0.11.0.jar:na] at co.cask.cdap.data2.datafabric.dataset.service.DatasetInstanceHandler.getInfo(DatasetInstanceHandler.java:147) ~[classes/:na] at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_51] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51] at co.cask.http.HttpMethodInfo.invoke(HttpMethodInfo.java:85) ~[netty-http-0.11.0.jar:na] at co.cask.http.HttpDispatcher.messageReceived(HttpDispatcher.java:41) ~[netty-http-0.11.0.jar:na] at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67) ~[netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314) ~[netty-3.6.6.Final.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] Apr 27, 2015 2:58:39 PM org.jboss.netty.channel.DefaultChannelPipeline WARNING: An exception was thrown by a user handler while handling an exception event ([id: 0x651b6b28, /192.168.1.100:49852 :> /192.168.1.100:65337] EXCEPTION: java.nio.channels.ClosedChannelException) java.lang.IllegalArgumentException: Response has been already sent at com.google.common.base.Preconditions.checkArgument(Preconditions.java:92) at co.cask.http.BasicHttpResponder.sendContent(BasicHttpResponder.java:78) at co.cask.http.AbstractHttpResponder.sendString(AbstractHttpResponder.java:84) at co.cask.http.WrappedHttpResponder.sendString(WrappedHttpResponder.java:79) at co.cask.http.HttpMethodInfo.sendError(HttpMethodInfo.java:157) at co.cask.http.RequestRouter.exceptionCaught(RequestRouter.java:142) at org.jboss.netty.handler.codec.frame.FrameDecoder.exceptionCaught(FrameDecoder.java:377) at co.cask.http.NettyHttpService$2.handleUpstream(NettyHttpService.java:222) at org.jboss.netty.channel.Channels.fireExceptionCaught(Channels.java:525) at org.jboss.netty.channel.Channels$7.run(Channels.java:499) at org.jboss.netty.channel.socket.ChannelRunnableWrapper.run(ChannelRunnableWrapper.java:40) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:366) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:290) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) 2015-04-27 14:58:39,369 - ERROR [worker-ETLWorker-0:c.c.c.i.a.r.w.BasicWorkerContext@231] - Exception occurred running user code. Aborting transaction. java.lang.RuntimeException: co.cask.cdap.data2.dataset2.DatasetManagementException: Error during talking to Dataset Service at http://alvins-mbp-2.attlocal.net:65337/v3/namespaces/system/data/datasets/usage.registry while doing GET with headers null and body null at com.google.common.base.Throwables.propagate(Throwables.java:160) ~[guava-13.0.1.jar:na] at co.cask.cdap.data2.registry.UsageRegistry$1.get(UsageRegistry.java:54) ~[classes/:na] at co.cask.cdap.data2.registry.UsageRegistry$1.get(UsageRegistry.java:47) ~[classes/:na] at co.cask.cdap.data2.dataset2.tx.Transactional.execute(Transactional.java:103) ~[classes/:na] at co.cask.cdap.data2.dataset2.tx.Transactional.executeUnchecked(Transactional.java:77) ~[classes/:na] at co.cask.cdap.data2.registry.UsageRegistry.registerAll(UsageRegistry.java:67) ~[classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.writeToStream(DefaultStreamWriter.java:110) ~[classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.write(DefaultStreamWriter.java:123) ~[classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.write(DefaultStreamWriter.java:133) ~[classes/:na] at co.cask.cdap.app.stream.DefaultStreamWriter.write(DefaultStreamWriter.java:128) ~[classes/:na] at co.cask.cdap.internal.app.runtime.worker.BasicWorkerContext.write(BasicWorkerContext.java:242) ~[classes/:na] at co.cask.cdap.templates.etl.realtime.DefaultDataWriter.write(DefaultDataWriter.java:57) ~[ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.templates.etl.realtime.sinks.StreamSink.writeString(StreamSink.java:159) ~[na:na] at co.cask.cdap.templates.etl.realtime.sinks.StreamSink.write(StreamSink.java:116) ~[na:na] at co.cask.cdap.templates.etl.realtime.TrackedRealtimeSink.write(TrackedRealtimeSink.java:40) ~[ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.templates.etl.realtime.ETLWorker$4.run(ETLWorker.java:198) ~[ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.internal.app.runtime.worker.BasicWorkerContext.execute(BasicWorkerContext.java:191) ~[classes/:na] at co.cask.cdap.templates.etl.realtime.ETLWorker.run(ETLWorker.java:194) [ETLWorker.c09e4465-a924-443d-b691-b20c1dac99b8/:na] at co.cask.cdap.internal.app.runtime.worker.WorkerDriver.run(WorkerDriver.java:74) [classes/:na] at com.google.common.util.concurrent.AbstractExecutionThreadService$1$1.run(AbstractExecutionThreadService.java:52) [guava-13.0.1.jar:na] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] Caused by: co.cask.cdap.data2.dataset2.DatasetManagementException: Error during talking to Dataset Service at http://alvins-mbp-2.attlocal.net:65337/v3/namespaces/system/data/datasets/usage.registry while doing GET with headers null and body null at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:302) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:318) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doGet(DatasetServiceClient.java:252) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.getInstance(DatasetServiceClient.java:99) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.getInstance(DatasetServiceClient.java:113) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.RemoteDatasetFramework.hasInstance(RemoteDatasetFramework.java:153) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.createIfNotExists(DatasetsUtil.java:65) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.getOrCreateDataset(DatasetsUtil.java:54) ~[classes/:na] at co.cask.cdap.data2.registry.UsageDatasets.get(UsageDatasets.java:54) ~[classes/:na] at co.cask.cdap.data2.registry.UsageDatasets.get(UsageDatasets.java:42) ~[classes/:na] at co.cask.cdap.data2.registry.UsageRegistry$1.get(UsageRegistry.java:51) ~[classes/:na] ... 19 common frames omitted Caused by: java.net.SocketException: Invalid argument at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_51] at java.net.SocketInputStream.read(SocketInputStream.java:152) ~[na:1.7.0_51] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_51] at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) ~[na:1.7.0_51] at java.io.BufferedInputStream.read1(BufferedInputStream.java:275) ~[na:1.7.0_51] at java.io.BufferedInputStream.read(BufferedInputStream.java:334) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:658) ~[na:1.7.0_51] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1323) ~[na:1.7.0_51] at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468) ~[na:1.7.0_51] at co.cask.common.http.HttpRequests.execute(HttpRequests.java:116) ~[common-http-0.6.1.jar:na] at co.cask.common.http.HttpRequests.execute(HttpRequests.java:141) ~[common-http-0.6.1.jar:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:296) ~[classes/:na] ... 29 common frames omitted 2015-04-27 14:58:43,707 - ERROR [executor-12:c.c.c.i.a.s.DefaultStore$1@119] - Failed to access app.meta table co.cask.cdap.data2.dataset2.DatasetManagementException: Error during talking to Dataset Service at http://alvins-mbp-2.attlocal.net:65337/v3/namespaces/system/data/datasets/app.meta while doing GET with headers null and body null at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:302) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:318) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doGet(DatasetServiceClient.java:252) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.getInstance(DatasetServiceClient.java:99) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.getInstance(DatasetServiceClient.java:113) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.RemoteDatasetFramework.hasInstance(RemoteDatasetFramework.java:153) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.createIfNotExists(DatasetsUtil.java:65) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.getOrCreateDataset(DatasetsUtil.java:54) ~[classes/:na] at co.cask.cdap.internal.app.store.DefaultStore$1.get(DefaultStore.java:114) [classes/:na] at co.cask.cdap.internal.app.store.DefaultStore$1.get(DefaultStore.java:110) [classes/:na] at co.cask.cdap.data2.dataset2.tx.Transactional.execute(Transactional.java:103) [classes/:na] at co.cask.cdap.data2.dataset2.tx.Transactional.executeUnchecked(Transactional.java:77) [classes/:na] at co.cask.cdap.internal.app.store.DefaultStore.getAdapterStatus(DefaultStore.java:829) [classes/:na] at co.cask.cdap.internal.app.runtime.adapter.AdapterService.getAdapterStatus(AdapterService.java:221) [classes/:na] at co.cask.cdap.internal.app.runtime.adapter.AdapterService.stopAdapter(AdapterService.java:364) [classes/:na] at co.cask.cdap.gateway.handlers.AdapterHttpHandler.startStopAdapter(AdapterHttpHandler.java:168) [classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_51] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51] at co.cask.http.HttpMethodInfo.invoke(HttpMethodInfo.java:85) [netty-http-0.11.0.jar:na] at co.cask.http.HttpDispatcher.messageReceived(HttpDispatcher.java:41) [netty-http-0.11.0.jar:na] at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43) [netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67) [netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314) [netty-3.6.6.Final.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] Caused by: java.net.SocketException: Invalid argument at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_51] at java.net.SocketInputStream.read(SocketInputStream.java:152) ~[na:1.7.0_51] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_51] at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) ~[na:1.7.0_51] at java.io.BufferedInputStream.read1(BufferedInputStream.java:275) ~[na:1.7.0_51] at java.io.BufferedInputStream.read(BufferedInputStream.java:334) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:658) ~[na:1.7.0_51] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1323) ~[na:1.7.0_51] at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468) ~[na:1.7.0_51] at co.cask.common.http.HttpRequests.execute(HttpRequests.java:116) ~[common-http-0.6.1.jar:na] at co.cask.common.http.HttpRequests.execute(HttpRequests.java:141) ~[common-http-0.6.1.jar:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:296) ~[classes/:na] ... 30 common frames omitted 2015-04-27 14:58:43,708 - ERROR [executor-12:c.c.c.g.h.AdapterHttpHandler@184] - Error in namespace 'default' for adapter 'twit' with action 'stop' java.lang.RuntimeException: co.cask.cdap.data2.dataset2.DatasetManagementException: Error during talking to Dataset Service at http://alvins-mbp-2.attlocal.net:65337/v3/namespaces/system/data/datasets/app.meta while doing GET with headers null and body null at com.google.common.base.Throwables.propagate(Throwables.java:160) ~[guava-13.0.1.jar:na] at co.cask.cdap.internal.app.store.DefaultStore$1.get(DefaultStore.java:120) ~[classes/:na] at co.cask.cdap.internal.app.store.DefaultStore$1.get(DefaultStore.java:110) ~[classes/:na] at co.cask.cdap.data2.dataset2.tx.Transactional.execute(Transactional.java:103) ~[classes/:na] at co.cask.cdap.data2.dataset2.tx.Transactional.executeUnchecked(Transactional.java:77) ~[classes/:na] at co.cask.cdap.internal.app.store.DefaultStore.getAdapterStatus(DefaultStore.java:829) ~[classes/:na] at co.cask.cdap.internal.app.runtime.adapter.AdapterService.getAdapterStatus(AdapterService.java:221) ~[classes/:na] at co.cask.cdap.internal.app.runtime.adapter.AdapterService.stopAdapter(AdapterService.java:364) ~[classes/:na] at co.cask.cdap.gateway.handlers.AdapterHttpHandler.startStopAdapter(AdapterHttpHandler.java:168) ~[classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_51] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51] at co.cask.http.HttpMethodInfo.invoke(HttpMethodInfo.java:85) [netty-http-0.11.0.jar:na] at co.cask.http.HttpDispatcher.messageReceived(HttpDispatcher.java:41) [netty-http-0.11.0.jar:na] at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43) [netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67) [netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314) [netty-3.6.6.Final.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] Caused by: co.cask.cdap.data2.dataset2.DatasetManagementException: Error during talking to Dataset Service at http://alvins-mbp-2.attlocal.net:65337/v3/namespaces/system/data/datasets/app.meta while doing GET with headers null and body null at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:302) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:318) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doGet(DatasetServiceClient.java:252) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.getInstance(DatasetServiceClient.java:99) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.getInstance(DatasetServiceClient.java:113) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.RemoteDatasetFramework.hasInstance(RemoteDatasetFramework.java:153) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.createIfNotExists(DatasetsUtil.java:65) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.getOrCreateDataset(DatasetsUtil.java:54) ~[classes/:na] at co.cask.cdap.internal.app.store.DefaultStore$1.get(DefaultStore.java:114) ~[classes/:na] ... 22 common frames omitted Caused by: java.net.SocketException: Invalid argument at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_51] at java.net.SocketInputStream.read(SocketInputStream.java:152) ~[na:1.7.0_51] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_51] at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) ~[na:1.7.0_51] at java.io.BufferedInputStream.read1(BufferedInputStream.java:275) ~[na:1.7.0_51] at java.io.BufferedInputStream.read(BufferedInputStream.java:334) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:658) ~[na:1.7.0_51] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1323) ~[na:1.7.0_51] at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468) ~[na:1.7.0_51] at co.cask.common.http.HttpRequests.execute(HttpRequests.java:116) ~[common-http-0.6.1.jar:na] at co.cask.common.http.HttpRequests.execute(HttpRequests.java:141) ~[common-http-0.6.1.jar:na] at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.doRequest(DatasetServiceClient.java:296) ~[classes/:na] ... 30 common frames omitted {code}

    Cask Community Issue Tracker | 2 years ago | Alvin Wang
    java.lang.IllegalArgumentException: Response has been already sent

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Object has already been built and is self-referencing itself <details>

      at org.elasticsearch.common.xcontent.XContentBuilder.ensureNotSeen()
    2. ElasticSearch
      AbstractRunnable.run
      1. org.elasticsearch.common.xcontent.XContentBuilder.ensureNotSeen(XContentBuilder.java:1021)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      2. org.elasticsearch.common.xcontent.XContentBuilder.value(XContentBuilder.java:890)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      3. org.elasticsearch.common.xcontent.XContentBuilder.field(XContentBuilder.java:883)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      4. org.elasticsearch.script.ScriptException.innerToXContent(ScriptException.java:92)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      5. org.elasticsearch.ElasticsearchException.toXContent(ElasticsearchException.java:243)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      6. org.elasticsearch.ElasticsearchException.toXContent(ElasticsearchException.java:310)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      7. org.elasticsearch.action.search.ShardSearchFailure.toXContent(ShardSearchFailure.java:164)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      8. org.elasticsearch.action.search.SearchPhaseExecutionException.innerToXContent(SearchPhaseExecutionException.java:143)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      9. org.elasticsearch.ElasticsearchException.toXContent(ElasticsearchException.java:243)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      10. org.elasticsearch.ElasticsearchException.toXContent(ElasticsearchException.java:310)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      11. org.elasticsearch.rest.BytesRestResponse.convert(BytesRestResponse.java:146)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      12. org.elasticsearch.rest.BytesRestResponse.<init>(BytesRestResponse.java:92)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      13. org.elasticsearch.rest.BytesRestResponse.<init>(BytesRestResponse.java:83)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      14. org.elasticsearch.rest.action.RestActionListener.onFailure(RestActionListener.java:58)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      15. org.elasticsearch.action.support.TransportAction$1.onFailure(TransportAction.java:97)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      16. org.elasticsearch.action.support.TransportAction$FilteredActionListener.onFailure(TransportAction.java:254)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      17. org.elasticsearch.action.search.AbstractSearchAsyncAction.raiseEarlyFailure(AbstractSearchAsyncAction.java:329)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      18. org.elasticsearch.action.search.AbstractSearchAsyncAction.onFirstPhaseResult(AbstractSearchAsyncAction.java:235)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      19. org.elasticsearch.action.search.AbstractSearchAsyncAction$1.onFailure(AbstractSearchAsyncAction.java:170)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      20. org.elasticsearch.action.ActionListenerResponseHandler.handleException(ActionListenerResponseHandler.java:51)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      21. org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:954)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      22. org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:1055)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      23. org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1033)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      24. org.elasticsearch.transport.TransportService$6.onFailure(TransportService.java:559)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      25. org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.onFailure(ThreadContext.java:490)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      26. org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:39)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      26 frames
    3. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[?:1.8.0_73]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[?:1.8.0_73]
      3. java.lang.Thread.run(Thread.java:745)[?:1.8.0_73]
      3 frames