GlassFish 管理控制台上的运行时异常
Runtimeexception on admin console of GlassFish
我下载了最新版本 (4.1.1) 的 GlassFish,解压到本地文件夹,从 bin 目录使用命令 asadmin start-domain
启动域。
我在 Web 浏览器上打开了服务器的管理控制台并单击了 resources-> jms resources -> connection factories
上的新按钮,这导致了运行时异常。
然后我在 resources->JDBC Resources
上单击了新按钮,这也导致了运行时异常。简而言之,单击任何 'new' 按钮都会导致运行时异常。
我没有在网上找到这个问题的任何答案。如果有人知道原因,请告诉我。
这是日志:
2015-12-10T23:03:25.558-0500] [glassfish 4.1] [INFO] [] [org.glassfish.admingui] [tid: _ThreadID=51 _ThreadName=admin-listener(1)] [timeMillis: 1449806605558] [levelValue: 800] [[
Redirecting to /index.jsf]]
[2015-12-10T23:03:26.392-0500] [glassfish 4.1] [INFO] [] [org.glassfish.admingui] [tid: _ThreadID=53 _ThreadName=admin-listener(3)] [timeMillis: 1449806606392] [levelValue: 800] [[
Admin Console: Initializing Session Attributes...]]
[2015-12-10T23:03:36.527-0500] [glassfish 4.1] [INFO] [] [javax.enterprise.resource.webcontainer.jsf.context] [tid: _ThreadID=53 _ThreadName=admin-listener(3)] [timeMillis: 1449806616527] [levelValue: 800] [[
Exception when handling error trying to reset the response.
java.io.IOException: Connection is closed
at org.glassfish.grizzly.nio.NIOConnection.assertOpen(NIOConnection.java:432)
at org.glassfish.grizzly.http.io.OutputBuffer.write(OutputBuffer.java:653)
at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:355)
at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:342)
at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:161)
at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:282)
at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:125)
at java.io.OutputStreamWriter.write(OutputStreamWriter.java:207)
at com.sun.faces.renderkit.html_basic.HtmlResponseWriter.flushAttributes(HtmlResponseWriter.java:1211)
at com.sun.faces.renderkit.html_basic.HtmlResponseWriter.endElement(HtmlResponseWriter.java:582)
Glassfish 仅允许通过 v4.1.1 的 asadmin 控制台创建资源
Eg :
asadmin> create-jms-resource --restype javax.jms.ConnectionFactory
--description "connection factory for durable subscriptions" --property
ClientId=MyID jms/DurableConnectionFactory
asadmin> create-jms-resource --restype javax.jms.Queue --property
Name=MyQueue jms/MyQueue
虽然可以通过管理 Web 控制台进行更新和删除,但禁止创建。或者,也可以通过在 glassfish/domain-name/config
下的 domain.xml 文件中手动添加它们来创建这些资源
<resources><connector-connection-pool max-pool-size="250" resource-adapter-name="jmsra" steady-pool-size="1" name="jms/MyConnectionFactory-Connection-Pool" description="MyConnectionFactory" connection-definition-name="javax.jms.ConnectionFactory" transaction-support=""></connector-connection-pool>
<connector-resource pool-name="jms/MyConnectionFactory-Connection-Pool" jndi-name="jms/MyConnectionFactory"></connector-resource>
<admin-object-resource res-adapter="jmsra" description="myQueue" res-type="javax.jms.Queue" jndi-name="jms/myQueue">
<property name="Name" value="myQueue"></property>
</admin-object-resource> </resources>
我下载了最新版本 (4.1.1) 的 GlassFish,解压到本地文件夹,从 bin 目录使用命令 asadmin start-domain
启动域。
我在 Web 浏览器上打开了服务器的管理控制台并单击了 resources-> jms resources -> connection factories
上的新按钮,这导致了运行时异常。
然后我在 resources->JDBC Resources
上单击了新按钮,这也导致了运行时异常。简而言之,单击任何 'new' 按钮都会导致运行时异常。
我没有在网上找到这个问题的任何答案。如果有人知道原因,请告诉我。
这是日志:
2015-12-10T23:03:25.558-0500] [glassfish 4.1] [INFO] [] [org.glassfish.admingui] [tid: _ThreadID=51 _ThreadName=admin-listener(1)] [timeMillis: 1449806605558] [levelValue: 800] [[
Redirecting to /index.jsf]]
[2015-12-10T23:03:26.392-0500] [glassfish 4.1] [INFO] [] [org.glassfish.admingui] [tid: _ThreadID=53 _ThreadName=admin-listener(3)] [timeMillis: 1449806606392] [levelValue: 800] [[
Admin Console: Initializing Session Attributes...]]
[2015-12-10T23:03:36.527-0500] [glassfish 4.1] [INFO] [] [javax.enterprise.resource.webcontainer.jsf.context] [tid: _ThreadID=53 _ThreadName=admin-listener(3)] [timeMillis: 1449806616527] [levelValue: 800] [[
Exception when handling error trying to reset the response.
java.io.IOException: Connection is closed
at org.glassfish.grizzly.nio.NIOConnection.assertOpen(NIOConnection.java:432)
at org.glassfish.grizzly.http.io.OutputBuffer.write(OutputBuffer.java:653)
at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:355)
at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:342)
at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:161)
at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:282)
at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:125)
at java.io.OutputStreamWriter.write(OutputStreamWriter.java:207)
at com.sun.faces.renderkit.html_basic.HtmlResponseWriter.flushAttributes(HtmlResponseWriter.java:1211)
at com.sun.faces.renderkit.html_basic.HtmlResponseWriter.endElement(HtmlResponseWriter.java:582)
Glassfish 仅允许通过 v4.1.1 的 asadmin 控制台创建资源
Eg :
asadmin> create-jms-resource --restype javax.jms.ConnectionFactory
--description "connection factory for durable subscriptions" --property
ClientId=MyID jms/DurableConnectionFactory
asadmin> create-jms-resource --restype javax.jms.Queue --property
Name=MyQueue jms/MyQueue
虽然可以通过管理 Web 控制台进行更新和删除,但禁止创建。或者,也可以通过在 glassfish/domain-name/config
下的 domain.xml 文件中手动添加它们来创建这些资源<resources><connector-connection-pool max-pool-size="250" resource-adapter-name="jmsra" steady-pool-size="1" name="jms/MyConnectionFactory-Connection-Pool" description="MyConnectionFactory" connection-definition-name="javax.jms.ConnectionFactory" transaction-support=""></connector-connection-pool>
<connector-resource pool-name="jms/MyConnectionFactory-Connection-Pool" jndi-name="jms/MyConnectionFactory"></connector-resource>
<admin-object-resource res-adapter="jmsra" description="myQueue" res-type="javax.jms.Queue" jndi-name="jms/myQueue">
<property name="Name" value="myQueue"></property>
</admin-object-resource> </resources>