users@glassfish.java.net

[gf-users] Re: IllegalStateException while creating JDBC Connection Pool on GF Admin Console

From: Arindam Bandyopadhyay <arindam.bandyopadhyay_at_oracle.com>
Date: Thu, 11 Feb 2016 23:45:18 +0530

This is a known issue for GF 4.1 . Please refer GLASSFISH-21314
<https://java.net/jira/browse/GLASSFISH-21314> . We have fixed the issue
in trunk/main . The nightly build contains the fix. You can download the
nightly build from http://download.oracle.com/glassfish/5.0/nightly/

Thanks,
Arindam

On Thursday 11 February 2016 11:35 PM, Rahman USTA wrote:
> There is no problem with GF 4.1, here is detailed stack trace of the
> exception:
>
> P.S. Tried again with new GF domain, the result is same.
>
> [2016-02-11T19:28:18.847+0200] [glassfish 4.1] [WARNING] []
> [javax.enterprise.web] [tid: _ThreadID=46
> _ThreadName=admin-listener(3)] [timeMillis: 1455211698847]
> [levelValue: 900] [[
> StandardWrapperValve[FacesServlet]: Servlet.service() for servlet
> FacesServlet threw exception
> java.lang.IllegalStateException: getOutputStream() has already been
> called for this response
> at org.apache.catalina.connector.Response.getWriter(Response.java:777)
> at
> org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:224)
> at
> com.sun.faces.context.ExternalContextImpl.getResponseOutputWriter(ExternalContextImpl.java:851)
> at
> com.sun.faces.context.PartialViewContextImpl.createPartialResponseWriter(PartialViewContextImpl.java:504)
> at
> com.sun.faces.context.PartialViewContextImpl.access$300(PartialViewContextImpl.java:79)
> at
> com.sun.faces.context.PartialViewContextImpl$DelayedInitPartialResponseWriter.getWrapped(PartialViewContextImpl.java:642)
> at
> javax.faces.context.PartialResponseWriter.startDocument(PartialResponseWriter.java:120)
> at
> com.sun.faces.context.AjaxExceptionHandlerImpl.handlePartialResponseError(AjaxExceptionHandlerImpl.java:202)
> at
> com.sun.faces.context.AjaxExceptionHandlerImpl.handle(AjaxExceptionHandlerImpl.java:127)
> at
> javax.faces.context.ExceptionHandlerWrapper.handle(ExceptionHandlerWrapper.java:100)
> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:119)
> at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:659)
> at
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:344)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
> at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:233)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:316)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
> at
> org.apache.catalina.core.StandardPipeline.doChainInvoke(StandardPipeline.java:678)
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
> at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:416)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:283)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)
> at
> org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206)
> at
> org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180)
> at
> org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)
> at
> org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111)
> at
> org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
> at
> org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:536)
> at
> org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
> 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(Thread.java:745)
> ]]
>
> 2016-02-11 19:58 GMT+02:00 Steven Siebert <smsiebe_at_gmail.com
> <mailto:smsiebe_at_gmail.com>>:
>
> I'm using GF 4.1.1 and haven't experienced this problem.
>
> Can you provide the entire stack trace from
> domains/domain1/logs/server.log?
>
> Can you reproduce the problem if you first create a new domain
> (asadmin create-domain jdbctest) and then start that one (asadmin
> start-domain jdbctest)?
>
> S
>
>
>
> On Thu, Feb 11, 2016 at 12:44 PM, Rahman USTA
> <rahman.usta.88_at_gmail.com <mailto:rahman.usta.88_at_gmail.com>> wrote:
>
> While creating a JDBC Connection Pool on GF Admin Console I'm
> getting the following output on the Admin Console;
>
> java.lang.IllegalStateException: getOutputStream() has already been called for this response
>
> GF version: 4.1.1
> Java version: build 1.8.0_66-b18
> OS: Win 8 x64
>
> There is a short video for that https://youtu.be/6lZ2zQqb29s
>
> Is it a bug ?
>
> Thanks.
>
> --
> Rahman USTA
> Istanbul JUG
> https://github.com/rahmanusta <http://www.kodcu.com/>
>
>
>
>
>
> --
> Rahman USTA
> Istanbul JUG
> https://github.com/rahmanusta <http://www.kodcu.com/>