Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

java.lang.IllegalStateException: Already connected	at sun.net.www.protocol.http.HttpURLConnection.setRequestProperty(Unknown Source)	at org.glassfish.jersey.client.internal.HttpUrlConnector.setOutboundHeaders(HttpUrlConnector.java:421)	at org.glassfish.jersey.client.internal.HttpUrlConnector.access$100(HttpUrlConnector.java:96)	at org.glassfish.jersey.client.internal.HttpUrlConnector$4.getOutputStream(HttpUrlConnector.java:384)	at org.glassfish.jersey.message.internal.CommittingOutputStream.commitStream(CommittingOutputStream.java:200)	at org.glassfish.jersey.message.internal.CommittingOutputStream.commitStream(CommittingOutputStream.java:194)	at org.glassfish.jersey.message.internal.CommittingOutputStream.commit(CommittingOutputStream.java:262)	at org.glassfish.jersey.message.internal.OutboundMessageContext.commitStream(OutboundMessageContext.java:816)	at org.glassfish.jersey.client.ClientRequest.writeEntity(ClientRequest.java:545)	at org.glassfish.jersey.client.internal.HttpUrlConnector._apply(HttpUrlConnector.java:388)	at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:285)	at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:255)	at org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:684)	at org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:681)	at org.glassfish.jersey.internal.Errors.process(Errors.java:315)	at org.glassfish.jersey.internal.Errors.process(Errors.java:297)	at org.glassfish.jersey.internal.Errors.process(Errors.java:228)	at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:444)	at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:681)	at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:437)	at org.glassfish.jersey.client.JerseyInvocation$Builder.put(JerseyInvocation.java:326)	at eu.arrowhead.common.Utility.sendRequest(Utility.java:32)	at eu.arrowhead.core.gatekeeper.GatekeeperResource.GSDPoll(GatekeeperResource.java:146)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)	at java.lang.reflect.Method.invoke(Unknown Source)	at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)	at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)	at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)	at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160)	at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)	at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)	at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)	at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)	at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326)	at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)	at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)	at org.glassfish.jersey.internal.Errors.process(Errors.java:315)	at org.glassfish.jersey.internal.Errors.process(Errors.java:297)	at org.glassfish.jersey.internal.Errors.process(Errors.java:267)	at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)	at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)	at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)	at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:384)	at org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:224)	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591)	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571)	at java.lang.Thread.run(Unknown Source)