org.jvnet.mimepull.MIMEParsingException: java.io.IOException: java.util.concurrent.TimeoutException

Java.net JIRA | pdudits | 2 years ago
  1. 0

    remote deploy over asadmin fails with error {code} remote failure: Request failed. {code} Server logs the following (we redirect j.u.l to logback, therefore different formatting): {code} [2014-09-02 15:02:16,280] [admin-listener(4)] [INFO] [javax.enterprise.admin.rest]: An error occurred while processing the request. Please see the server logs for details. org.jvnet.mimepull.MIMEParsingException: java.io.IOException: java.util.concurrent.TimeoutException at org.jvnet.mimepull.MIMEParser.fillBuf(MIMEParser.java:442) ~[na:na] at org.jvnet.mimepull.MIMEParser.skipPreamble(MIMEParser.java:307) ~[na:na] at org.jvnet.mimepull.MIMEParser.access$300(MIMEParser.java:68) ~[na:na] at org.jvnet.mimepull.MIMEParser$MIMEEventIterator.next(MIMEParser.java:149) ~[na:na] at org.jvnet.mimepull.MIMEParser$MIMEEventIterator.next(MIMEParser.java:132) ~[na:na] at org.jvnet.mimepull.MIMEMessage.makeProgress(MIMEMessage.java:198) ~[na:na] at org.jvnet.mimepull.MIMEMessage.parseAll(MIMEMessage.java:181) ~[na:na] at org.jvnet.mimepull.MIMEMessage.getAttachments(MIMEMessage.java:106) ~[na:na] at com.sun.enterprise.admin.remote.reader.MultipartProprietaryReader.readFrom(MultipartProprietaryReader.java:98) ~[na:na] at org.glassfish.admin.rest.readers.MultipartFDPayloadReader.readFrom(MultipartFDPayloadReader.java:72) ~[na:na] at org.glassfish.admin.rest.readers.MultipartFDPayloadReader.readFrom(MultipartFDPayloadReader.java:59) ~[na:na] at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$TerminalReaderInterceptor.invokeReadFrom(ReaderInterceptorExecutor.java:251) ~[na:na] at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$TerminalReaderInterceptor.aroundReadFrom(ReaderInterceptorExecutor.java:229) ~[na:na] at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor.proceed(ReaderInterceptorExecutor.java:149) ~[na:na] at org.glassfish.jersey.server.internal.MappableExceptionWrapperInterceptor.aroundReadFrom(MappableExceptionWrapperInterceptor.java:73) ~[na:na] at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor.proceed(ReaderInterceptorExecutor.java:149) ~[na:na] at org.glassfish.jersey.message.internal.MessageBodyFactory.readFrom(MessageBodyFactory.java:1124) ~[na:na] at org.glassfish.jersey.message.internal.InboundMessageContext.readEntity(InboundMessageContext.java:851) ~[na:na] at org.glassfish.jersey.server.ContainerRequest.readEntity(ContainerRequest.java:270) ~[na:na] at org.glassfish.jersey.server.internal.inject.EntityParamValueFactoryProvider$EntityValueFactory.provide(EntityParamValueFactoryProvider.java:96) ~[na:na] at org.glassfish.jersey.server.spi.internal.ParameterValueHelper.getParameterValues(ParameterValueHelper.java:81) ~[na:na] at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$AbstractMethodParamInvoker.getParamValues(JavaResourceMethodDispatcherProvider.java:121) ~[na:na] at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:152) ~[na:na] at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:104) ~[na:na] at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:387) ~[na:na] at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:331) ~[na:na] at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:103) ~[na:na] at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:271) ~[na:na] at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) ~[na:na] at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) ~[na:na] at org.glassfish.jersey.internal.Errors.process(Errors.java:315) ~[na:na] at org.glassfish.jersey.internal.Errors.process(Errors.java:297) ~[na:na] at org.glassfish.jersey.internal.Errors.process(Errors.java:267) ~[na:na] at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:297) ~[na:na] at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:254) ~[na:na] at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1028) ~[na:na] at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:365) ~[na:na] at org.glassfish.admin.rest.adapter.JerseyContainerCommandService$3.service(JerseyContainerCommandService.java:173) ~[na:na] at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:179) ~[na:na] at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459) ~[kernel.jar:na] at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167) ~[kernel.jar:na] at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:201) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.portunif.PUFilter.handleRead(PUFilter.java:231) ~[na:na] at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.portunif.PUFilter.handleRead(PUFilter.java:231) ~[na:na] at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:561) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545) ~[nucleus-grizzly-all.jar:na] at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0_25] Caused by: java.io.IOException: java.util.concurrent.TimeoutException at org.glassfish.grizzly.nio.transport.TCPNIOTransportFilter.handleRead(TCPNIOTransportFilter.java:90) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.TransportFilter.handleRead(TransportFilter.java:173) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.read(DefaultFilterChain.java:351) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.FilterChainContext.read(FilterChainContext.java:695) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.portunif.BackChannelFilter.handleRead(BackChannelFilter.java:80) ~[na:na] at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.read(DefaultFilterChain.java:351) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.FilterChainContext.read(FilterChainContext.java:695) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.portunif.BackChannelFilter.handleRead(BackChannelFilter.java:80) ~[na:na] at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.read(DefaultFilterChain.java:351) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.FilterChainContext.read(FilterChainContext.java:695) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.http.io.InputBuffer.blockingRead(InputBuffer.java:1119) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.http.server.io.ServerInputBuffer.blockingRead(ServerInputBuffer.java:95) ~[na:na] at org.glassfish.grizzly.http.io.InputBuffer.fill(InputBuffer.java:1143) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.http.io.InputBuffer.read(InputBuffer.java:353) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.http.server.NIOInputStreamImpl.read(NIOInputStreamImpl.java:83) ~[nucleus-grizzly-all.jar:na] at org.glassfish.jersey.message.internal.EntityInputStream.read(EntityInputStream.java:101) ~[na:na] at org.jvnet.mimepull.MIMEParser.fillBuf(MIMEParser.java:440) ~[na:na] ... 71 common frames omitted Caused by: java.util.concurrent.TimeoutException: null at org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorReader.read(TemporarySelectorReader.java:126) ~[na:na] at org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorReader.read(TemporarySelectorReader.java:75) ~[na:na] at org.glassfish.grizzly.AbstractReader.read(AbstractReader.java:72) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.nio.transport.TCPNIOTransportFilter.handleRead(TCPNIOTransportFilter.java:77) ~[nucleus-grizzly-all.jar:na] ... 96 common frames omitted [2014-09-02 15:02:16,296] [admin-listener(4)] [WARN] [javax.enterprise.system.core]: Internal Server error: /command/deploy java.lang.RuntimeException: java.lang.IllegalStateException: Illegal attempt to call getOutputStream() after getWriter() has already been called. at org.glassfish.admin.rest.adapter.RestAdapter.reportError(RestAdapter.java:346) ~[na:na] at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:209) ~[na:na] at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459) ~[kernel.jar:na] at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167) ~[kernel.jar:na] at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:201) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.portunif.PUFilter.handleRead(PUFilter.java:231) ~[na:na] at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.portunif.PUFilter.handleRead(PUFilter.java:231) ~[na:na] at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:561) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545) ~[nucleus-grizzly-all.jar:na] at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0_25] Caused by: java.lang.IllegalStateException: Illegal attempt to call getOutputStream() after getWriter() has already been called. at org.glassfish.grizzly.http.server.Response.getNIOOutputStream(Response.java:624) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.http.server.Response.getOutputStream(Response.java:649) ~[nucleus-grizzly-all.jar:na] at org.glassfish.admin.rest.adapter.RestAdapter.reportError(RestAdapter.java:342) ~[na:na] ... 34 common frames omitted {code} There are no issues with deployment over admin gui or via localhost, timeouts are left at default values. From another client, we see different behaviour when launching deploy - admin thread hangs around this stacktrace. {code} "admin-listener(4)" daemon prio=6 tid=0x000000000d276000 nid=0x21dc runnable [0x000000001056d000] java.lang.Thread.State: RUNNABLE at org.glassfish.grizzly.ssl.SSLBaseFilter.doHandshakeStep(SSLBaseFilter.java:571) at org.glassfish.grizzly.ssl.SSLBaseFilter.doHandshakeSync(SSLBaseFilter.java:538) at org.glassfish.grizzly.ssl.SSLBaseFilter.rehandshake(SSLBaseFilter.java:751) at org.glassfish.grizzly.ssl.SSLBaseFilter.renegotiate(SSLBaseFilter.java:736) at org.glassfish.grizzly.ssl.SSLBaseFilter.getPeerCertificateChain(SSLBaseFilter.java:793) at org.glassfish.grizzly.ssl.SSLBaseFilter.handleEvent(SSLBaseFilter.java:243) at org.glassfish.grizzly.filterchain.ExecutorResolver$6.execute(ExecutorResolver.java:94) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) at org.glassfish.grizzly.filterchain.FilterChainContext.notifyDownstream(FilterChainContext.java:907) at org.glassfish.grizzly.filterchain.FilterChainContext.notifyDownstream(FilterChainContext.java:890) at org.glassfish.grizzly.portunif.BackChannelFilter.handleEvent(BackChannelFilter.java:131) at org.glassfish.grizzly.filterchain.ExecutorResolver$6.execute(ExecutorResolver.java:94) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) at org.glassfish.grizzly.filterchain.FilterChainContext.notifyDownstream(FilterChainContext.java:907) at org.glassfish.grizzly.filterchain.FilterChainContext.notifyDownstream(FilterChainContext.java:890) at org.glassfish.grizzly.http.server.util.RequestUtils.populateCertificateAttribute(RequestUtils.java:75) at org.glassfish.grizzly.http.server.Request.getAttribute(Request.java:873) at org.glassfish.grizzly.http.server.Request.getUserPrincipal(Request.java:1859) at com.sun.enterprise.admin.util.AdminCallbackHandler.<init>(AdminCallbackHandler.java:110) at com.sun.enterprise.admin.util.GenericAdminAuthenticator.authenticate(GenericAdminAuthenticator.java:254) at com.sun.enterprise.admin.util.GenericAdminAuthenticator.loginAsAdmin(GenericAdminAuthenticator.java:219) at com.sun.enterprise.admin.util.GenericAdminAuthenticator.loginAsAdmin(GenericAdminAuthenticator.java:202) at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:168) at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459) {code}

    Java.net JIRA | 2 years ago | pdudits
    org.jvnet.mimepull.MIMEParsingException: java.io.IOException: java.util.concurrent.TimeoutException
  2. 0

    remote deploy over asadmin fails with error {code} remote failure: Request failed. {code} Server logs the following (we redirect j.u.l to logback, therefore different formatting): {code} [2014-09-02 15:02:16,280] [admin-listener(4)] [INFO] [javax.enterprise.admin.rest]: An error occurred while processing the request. Please see the server logs for details. org.jvnet.mimepull.MIMEParsingException: java.io.IOException: java.util.concurrent.TimeoutException at org.jvnet.mimepull.MIMEParser.fillBuf(MIMEParser.java:442) ~[na:na] at org.jvnet.mimepull.MIMEParser.skipPreamble(MIMEParser.java:307) ~[na:na] at org.jvnet.mimepull.MIMEParser.access$300(MIMEParser.java:68) ~[na:na] at org.jvnet.mimepull.MIMEParser$MIMEEventIterator.next(MIMEParser.java:149) ~[na:na] at org.jvnet.mimepull.MIMEParser$MIMEEventIterator.next(MIMEParser.java:132) ~[na:na] at org.jvnet.mimepull.MIMEMessage.makeProgress(MIMEMessage.java:198) ~[na:na] at org.jvnet.mimepull.MIMEMessage.parseAll(MIMEMessage.java:181) ~[na:na] at org.jvnet.mimepull.MIMEMessage.getAttachments(MIMEMessage.java:106) ~[na:na] at com.sun.enterprise.admin.remote.reader.MultipartProprietaryReader.readFrom(MultipartProprietaryReader.java:98) ~[na:na] at org.glassfish.admin.rest.readers.MultipartFDPayloadReader.readFrom(MultipartFDPayloadReader.java:72) ~[na:na] at org.glassfish.admin.rest.readers.MultipartFDPayloadReader.readFrom(MultipartFDPayloadReader.java:59) ~[na:na] at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$TerminalReaderInterceptor.invokeReadFrom(ReaderInterceptorExecutor.java:251) ~[na:na] at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$TerminalReaderInterceptor.aroundReadFrom(ReaderInterceptorExecutor.java:229) ~[na:na] at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor.proceed(ReaderInterceptorExecutor.java:149) ~[na:na] at org.glassfish.jersey.server.internal.MappableExceptionWrapperInterceptor.aroundReadFrom(MappableExceptionWrapperInterceptor.java:73) ~[na:na] at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor.proceed(ReaderInterceptorExecutor.java:149) ~[na:na] at org.glassfish.jersey.message.internal.MessageBodyFactory.readFrom(MessageBodyFactory.java:1124) ~[na:na] at org.glassfish.jersey.message.internal.InboundMessageContext.readEntity(InboundMessageContext.java:851) ~[na:na] at org.glassfish.jersey.server.ContainerRequest.readEntity(ContainerRequest.java:270) ~[na:na] at org.glassfish.jersey.server.internal.inject.EntityParamValueFactoryProvider$EntityValueFactory.provide(EntityParamValueFactoryProvider.java:96) ~[na:na] at org.glassfish.jersey.server.spi.internal.ParameterValueHelper.getParameterValues(ParameterValueHelper.java:81) ~[na:na] at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$AbstractMethodParamInvoker.getParamValues(JavaResourceMethodDispatcherProvider.java:121) ~[na:na] at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:152) ~[na:na] at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:104) ~[na:na] at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:387) ~[na:na] at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:331) ~[na:na] at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:103) ~[na:na] at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:271) ~[na:na] at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) ~[na:na] at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) ~[na:na] at org.glassfish.jersey.internal.Errors.process(Errors.java:315) ~[na:na] at org.glassfish.jersey.internal.Errors.process(Errors.java:297) ~[na:na] at org.glassfish.jersey.internal.Errors.process(Errors.java:267) ~[na:na] at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:297) ~[na:na] at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:254) ~[na:na] at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1028) ~[na:na] at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:365) ~[na:na] at org.glassfish.admin.rest.adapter.JerseyContainerCommandService$3.service(JerseyContainerCommandService.java:173) ~[na:na] at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:179) ~[na:na] at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459) ~[kernel.jar:na] at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167) ~[kernel.jar:na] at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:201) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.portunif.PUFilter.handleRead(PUFilter.java:231) ~[na:na] at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.portunif.PUFilter.handleRead(PUFilter.java:231) ~[na:na] at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:561) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545) ~[nucleus-grizzly-all.jar:na] at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0_25] Caused by: java.io.IOException: java.util.concurrent.TimeoutException at org.glassfish.grizzly.nio.transport.TCPNIOTransportFilter.handleRead(TCPNIOTransportFilter.java:90) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.TransportFilter.handleRead(TransportFilter.java:173) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.read(DefaultFilterChain.java:351) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.FilterChainContext.read(FilterChainContext.java:695) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.portunif.BackChannelFilter.handleRead(BackChannelFilter.java:80) ~[na:na] at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.read(DefaultFilterChain.java:351) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.FilterChainContext.read(FilterChainContext.java:695) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.portunif.BackChannelFilter.handleRead(BackChannelFilter.java:80) ~[na:na] at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.read(DefaultFilterChain.java:351) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.FilterChainContext.read(FilterChainContext.java:695) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.http.io.InputBuffer.blockingRead(InputBuffer.java:1119) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.http.server.io.ServerInputBuffer.blockingRead(ServerInputBuffer.java:95) ~[na:na] at org.glassfish.grizzly.http.io.InputBuffer.fill(InputBuffer.java:1143) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.http.io.InputBuffer.read(InputBuffer.java:353) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.http.server.NIOInputStreamImpl.read(NIOInputStreamImpl.java:83) ~[nucleus-grizzly-all.jar:na] at org.glassfish.jersey.message.internal.EntityInputStream.read(EntityInputStream.java:101) ~[na:na] at org.jvnet.mimepull.MIMEParser.fillBuf(MIMEParser.java:440) ~[na:na] ... 71 common frames omitted Caused by: java.util.concurrent.TimeoutException: null at org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorReader.read(TemporarySelectorReader.java:126) ~[na:na] at org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorReader.read(TemporarySelectorReader.java:75) ~[na:na] at org.glassfish.grizzly.AbstractReader.read(AbstractReader.java:72) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.nio.transport.TCPNIOTransportFilter.handleRead(TCPNIOTransportFilter.java:77) ~[nucleus-grizzly-all.jar:na] ... 96 common frames omitted [2014-09-02 15:02:16,296] [admin-listener(4)] [WARN] [javax.enterprise.system.core]: Internal Server error: /command/deploy java.lang.RuntimeException: java.lang.IllegalStateException: Illegal attempt to call getOutputStream() after getWriter() has already been called. at org.glassfish.admin.rest.adapter.RestAdapter.reportError(RestAdapter.java:346) ~[na:na] at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:209) ~[na:na] at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459) ~[kernel.jar:na] at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167) ~[kernel.jar:na] at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:201) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.portunif.PUFilter.handleRead(PUFilter.java:231) ~[na:na] at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.portunif.PUFilter.handleRead(PUFilter.java:231) ~[na:na] at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:561) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545) ~[nucleus-grizzly-all.jar:na] at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0_25] Caused by: java.lang.IllegalStateException: Illegal attempt to call getOutputStream() after getWriter() has already been called. at org.glassfish.grizzly.http.server.Response.getNIOOutputStream(Response.java:624) ~[nucleus-grizzly-all.jar:na] at org.glassfish.grizzly.http.server.Response.getOutputStream(Response.java:649) ~[nucleus-grizzly-all.jar:na] at org.glassfish.admin.rest.adapter.RestAdapter.reportError(RestAdapter.java:342) ~[na:na] ... 34 common frames omitted {code} There are no issues with deployment over admin gui or via localhost, timeouts are left at default values. From another client, we see different behaviour when launching deploy - admin thread hangs around this stacktrace. {code} "admin-listener(4)" daemon prio=6 tid=0x000000000d276000 nid=0x21dc runnable [0x000000001056d000] java.lang.Thread.State: RUNNABLE at org.glassfish.grizzly.ssl.SSLBaseFilter.doHandshakeStep(SSLBaseFilter.java:571) at org.glassfish.grizzly.ssl.SSLBaseFilter.doHandshakeSync(SSLBaseFilter.java:538) at org.glassfish.grizzly.ssl.SSLBaseFilter.rehandshake(SSLBaseFilter.java:751) at org.glassfish.grizzly.ssl.SSLBaseFilter.renegotiate(SSLBaseFilter.java:736) at org.glassfish.grizzly.ssl.SSLBaseFilter.getPeerCertificateChain(SSLBaseFilter.java:793) at org.glassfish.grizzly.ssl.SSLBaseFilter.handleEvent(SSLBaseFilter.java:243) at org.glassfish.grizzly.filterchain.ExecutorResolver$6.execute(ExecutorResolver.java:94) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) at org.glassfish.grizzly.filterchain.FilterChainContext.notifyDownstream(FilterChainContext.java:907) at org.glassfish.grizzly.filterchain.FilterChainContext.notifyDownstream(FilterChainContext.java:890) at org.glassfish.grizzly.portunif.BackChannelFilter.handleEvent(BackChannelFilter.java:131) at org.glassfish.grizzly.filterchain.ExecutorResolver$6.execute(ExecutorResolver.java:94) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) at org.glassfish.grizzly.filterchain.FilterChainContext.notifyDownstream(FilterChainContext.java:907) at org.glassfish.grizzly.filterchain.FilterChainContext.notifyDownstream(FilterChainContext.java:890) at org.glassfish.grizzly.http.server.util.RequestUtils.populateCertificateAttribute(RequestUtils.java:75) at org.glassfish.grizzly.http.server.Request.getAttribute(Request.java:873) at org.glassfish.grizzly.http.server.Request.getUserPrincipal(Request.java:1859) at com.sun.enterprise.admin.util.AdminCallbackHandler.<init>(AdminCallbackHandler.java:110) at com.sun.enterprise.admin.util.GenericAdminAuthenticator.authenticate(GenericAdminAuthenticator.java:254) at com.sun.enterprise.admin.util.GenericAdminAuthenticator.loginAsAdmin(GenericAdminAuthenticator.java:219) at com.sun.enterprise.admin.util.GenericAdminAuthenticator.loginAsAdmin(GenericAdminAuthenticator.java:202) at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:168) at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459) {code}

    Java.net JIRA | 2 years ago | pdudits
    org.jvnet.mimepull.MIMEParsingException: java.io.IOException: java.util.concurrent.TimeoutException
  3. 0

    TimeoutException on remote Glassfish v4.1 deployment

    Stack Overflow | 2 years ago | Radzikowski
    org.jvnet.mimepull.MIMEParsingException: java.io.IOException: java.util.concurrent.TimeoutException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    visual-studio-2012: Arquillian integration tests fail with Glassfish container but work with Wildfly container

    blogspot.com | 1 year ago
    org.glassfish.jersey.server.ContainerException: java.io.IOException: java.util.concurrent.TimeoutException
  6. 0

    Arquillian integration tests fail on Glassfish 4.1 container with secure admin (HTTPS) enabled

    Stack Overflow | 1 year ago | Paul H
    org.glassfish.jersey.server.ContainerException: java.io.IOException: java.util.concurrent.TimeoutException

    3 unregistered visitors
    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.util.concurrent.TimeoutException

      null

      at org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorReader.read()
    2. Grizzly
      FilterChainContext.read
      1. org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorReader.read(TemporarySelectorReader.java:126)[na:na]
      2. org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorReader.read(TemporarySelectorReader.java:75)[na:na]
      3. org.glassfish.grizzly.AbstractReader.read(AbstractReader.java:72)[nucleus-grizzly-all.jar:na]
      4. org.glassfish.grizzly.nio.transport.TCPNIOTransportFilter.handleRead(TCPNIOTransportFilter.java:77)[nucleus-grizzly-all.jar:na]
      5. org.glassfish.grizzly.filterchain.TransportFilter.handleRead(TransportFilter.java:173)[nucleus-grizzly-all.jar:na]
      6. org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)[nucleus-grizzly-all.jar:na]
      7. org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)[nucleus-grizzly-all.jar:na]
      8. org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)[nucleus-grizzly-all.jar:na]
      9. org.glassfish.grizzly.filterchain.DefaultFilterChain.read(DefaultFilterChain.java:351)[nucleus-grizzly-all.jar:na]
      10. org.glassfish.grizzly.filterchain.FilterChainContext.read(FilterChainContext.java:695)[nucleus-grizzly-all.jar:na]
      10 frames
    3. Nucleus Grizzly jars Combining
      BackChannelFilter.handleRead
      1. org.glassfish.grizzly.portunif.BackChannelFilter.handleRead(BackChannelFilter.java:80)[na:na]
      1 frame
    4. Grizzly
      FilterChainContext.read
      1. org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)[nucleus-grizzly-all.jar:na]
      2. org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)[nucleus-grizzly-all.jar:na]
      3. org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)[nucleus-grizzly-all.jar:na]
      4. org.glassfish.grizzly.filterchain.DefaultFilterChain.read(DefaultFilterChain.java:351)[nucleus-grizzly-all.jar:na]
      5. org.glassfish.grizzly.filterchain.FilterChainContext.read(FilterChainContext.java:695)[nucleus-grizzly-all.jar:na]
      5 frames
    5. Nucleus Grizzly jars Combining
      BackChannelFilter.handleRead
      1. org.glassfish.grizzly.portunif.BackChannelFilter.handleRead(BackChannelFilter.java:80)[na:na]
      1 frame
    6. Grizzly
      FilterChainContext.read
      1. org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)[nucleus-grizzly-all.jar:na]
      2. org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)[nucleus-grizzly-all.jar:na]
      3. org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)[nucleus-grizzly-all.jar:na]
      4. org.glassfish.grizzly.filterchain.DefaultFilterChain.read(DefaultFilterChain.java:351)[nucleus-grizzly-all.jar:na]
      5. org.glassfish.grizzly.filterchain.FilterChainContext.read(FilterChainContext.java:695)[nucleus-grizzly-all.jar:na]
      5 frames
    7. grizzly-http
      InputBuffer.blockingRead
      1. org.glassfish.grizzly.http.io.InputBuffer.blockingRead(InputBuffer.java:1119)[nucleus-grizzly-all.jar:na]
      1 frame
    8. Grizzly Server
      ServerInputBuffer.blockingRead
      1. org.glassfish.grizzly.http.server.io.ServerInputBuffer.blockingRead(ServerInputBuffer.java:95)[na:na]
      1 frame
    9. grizzly-http
      InputBuffer.read
      1. org.glassfish.grizzly.http.io.InputBuffer.fill(InputBuffer.java:1143)[nucleus-grizzly-all.jar:na]
      2. org.glassfish.grizzly.http.io.InputBuffer.read(InputBuffer.java:353)[nucleus-grizzly-all.jar:na]
      2 frames
    10. Grizzly Server
      NIOInputStreamImpl.read
      1. org.glassfish.grizzly.http.server.NIOInputStreamImpl.read(NIOInputStreamImpl.java:83)[nucleus-grizzly-all.jar:na]
      1 frame
    11. Jersey Core
      EntityInputStream.read
      1. org.glassfish.jersey.message.internal.EntityInputStream.read(EntityInputStream.java:101)[na:na]
      1 frame
    12. MIME streaming extension
      MIMEMessage.getAttachments
      1. org.jvnet.mimepull.MIMEParser.fillBuf(MIMEParser.java:440)[na:na]
      2. org.jvnet.mimepull.MIMEParser.skipPreamble(MIMEParser.java:307)[na:na]
      3. org.jvnet.mimepull.MIMEParser.access$300(MIMEParser.java:68)[na:na]
      4. org.jvnet.mimepull.MIMEParser$MIMEEventIterator.next(MIMEParser.java:149)[na:na]
      5. org.jvnet.mimepull.MIMEParser$MIMEEventIterator.next(MIMEParser.java:132)[na:na]
      6. org.jvnet.mimepull.MIMEMessage.makeProgress(MIMEMessage.java:198)[na:na]
      7. org.jvnet.mimepull.MIMEMessage.parseAll(MIMEMessage.java:181)[na:na]
      8. org.jvnet.mimepull.MIMEMessage.getAttachments(MIMEMessage.java:106)[na:na]
      8 frames
    13. admin-util
      MultipartProprietaryReader.readFrom
      1. com.sun.enterprise.admin.remote.reader.MultipartProprietaryReader.readFrom(MultipartProprietaryReader.java:98)[na:na]
      1 frame
    14. GlassFish Admin
      MultipartFDPayloadReader.readFrom
      1. org.glassfish.admin.rest.readers.MultipartFDPayloadReader.readFrom(MultipartFDPayloadReader.java:72)[na:na]
      2. org.glassfish.admin.rest.readers.MultipartFDPayloadReader.readFrom(MultipartFDPayloadReader.java:59)[na:na]
      2 frames
    15. Jersey Core
      ReaderInterceptorExecutor.proceed
      1. org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$TerminalReaderInterceptor.invokeReadFrom(ReaderInterceptorExecutor.java:251)[na:na]
      2. org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$TerminalReaderInterceptor.aroundReadFrom(ReaderInterceptorExecutor.java:229)[na:na]
      3. org.glassfish.jersey.message.internal.ReaderInterceptorExecutor.proceed(ReaderInterceptorExecutor.java:149)[na:na]
      3 frames
    16. jersey-core-server
      MappableExceptionWrapperInterceptor.aroundReadFrom
      1. org.glassfish.jersey.server.internal.MappableExceptionWrapperInterceptor.aroundReadFrom(MappableExceptionWrapperInterceptor.java:73)[na:na]
      1 frame
    17. Jersey Core
      InboundMessageContext.readEntity
      1. org.glassfish.jersey.message.internal.ReaderInterceptorExecutor.proceed(ReaderInterceptorExecutor.java:149)[na:na]
      2. org.glassfish.jersey.message.internal.MessageBodyFactory.readFrom(MessageBodyFactory.java:1124)[na:na]
      3. org.glassfish.jersey.message.internal.InboundMessageContext.readEntity(InboundMessageContext.java:851)[na:na]
      3 frames
    18. jersey-core-server
      ServerRuntime$1.run
      1. org.glassfish.jersey.server.ContainerRequest.readEntity(ContainerRequest.java:270)[na:na]
      2. org.glassfish.jersey.server.internal.inject.EntityParamValueFactoryProvider$EntityValueFactory.provide(EntityParamValueFactoryProvider.java:96)[na:na]
      3. org.glassfish.jersey.server.spi.internal.ParameterValueHelper.getParameterValues(ParameterValueHelper.java:81)[na:na]
      4. org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$AbstractMethodParamInvoker.getParamValues(JavaResourceMethodDispatcherProvider.java:121)[na:na]
      5. org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:152)[na:na]
      6. org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:104)[na:na]
      7. org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:387)[na:na]
      8. org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:331)[na:na]
      9. org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:103)[na:na]
      10. org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:271)[na:na]
      10 frames
    19. Jersey Core
      RequestScope.runInScope
      1. org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)[na:na]
      2. org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)[na:na]
      3. org.glassfish.jersey.internal.Errors.process(Errors.java:315)[na:na]
      4. org.glassfish.jersey.internal.Errors.process(Errors.java:297)[na:na]
      5. org.glassfish.jersey.internal.Errors.process(Errors.java:267)[na:na]
      6. org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:297)[na:na]
      6 frames
    20. jersey-core-server
      ApplicationHandler.handle
      1. org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:254)[na:na]
      2. org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1028)[na:na]
      2 frames
    21. jersey-container-grizzly2-http
      GrizzlyHttpContainer.service
      1. org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:365)[na:na]
      1 frame
    22. GlassFish Admin
      RestAdapter.service
      1. org.glassfish.admin.rest.adapter.JerseyContainerCommandService$3.service(JerseyContainerCommandService.java:173)[na:na]
      2. org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:179)[na:na]
      2 frames
    23. Kernel Classes
      ContainerMapper.service
      1. com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)[kernel.jar:na]
      2. com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)[kernel.jar:na]
      2 frames
    24. Grizzly Server
      HttpServerFilter.handleRead
      1. org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:201)[nucleus-grizzly-all.jar:na]
      2. org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175)[nucleus-grizzly-all.jar:na]
      3. org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)[nucleus-grizzly-all.jar:na]
      3 frames
    25. Grizzly
      ProcessorExecutor.execute
      1. org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)[nucleus-grizzly-all.jar:na]
      2. org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)[nucleus-grizzly-all.jar:na]
      3. org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)[nucleus-grizzly-all.jar:na]
      4. org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)[nucleus-grizzly-all.jar:na]
      5. org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)[nucleus-grizzly-all.jar:na]
      6. org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)[nucleus-grizzly-all.jar:na]
      6 frames
    26. Nucleus Grizzly jars Combining
      PUFilter.handleRead
      1. org.glassfish.grizzly.portunif.PUFilter.handleRead(PUFilter.java:231)[na:na]
      1 frame
    27. Grizzly
      ProcessorExecutor.execute
      1. org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)[nucleus-grizzly-all.jar:na]
      2. org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)[nucleus-grizzly-all.jar:na]
      3. org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)[nucleus-grizzly-all.jar:na]
      4. org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)[nucleus-grizzly-all.jar:na]
      5. org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)[nucleus-grizzly-all.jar:na]
      6. org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)[nucleus-grizzly-all.jar:na]
      6 frames
    28. Nucleus Grizzly jars Combining
      PUFilter.handleRead
      1. org.glassfish.grizzly.portunif.PUFilter.handleRead(PUFilter.java:231)[na:na]
      1 frame
    29. Grizzly
      AbstractThreadPool$Worker.run
      1. org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)[nucleus-grizzly-all.jar:na]
      2. org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)[nucleus-grizzly-all.jar:na]
      3. org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)[nucleus-grizzly-all.jar:na]
      4. org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)[nucleus-grizzly-all.jar:na]
      5. org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)[nucleus-grizzly-all.jar:na]
      6. org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)[nucleus-grizzly-all.jar:na]
      7. org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:561)[nucleus-grizzly-all.jar:na]
      8. org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)[nucleus-grizzly-all.jar:na]
      9. org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)[nucleus-grizzly-all.jar:na]
      10. org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)[nucleus-grizzly-all.jar:na]
      11. org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)[nucleus-grizzly-all.jar:na]
      12. org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)[nucleus-grizzly-all.jar:na]
      13. org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)[nucleus-grizzly-all.jar:na]
      13 frames
    30. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:724)[na:1.7.0_25]
      1 frame