Jboss AS 4.2.1/ JBM 1.3GA
I am attempting to set the 'MaxSize' of a Queue... such that all messages that
come after the maxSize is reached are dropped.
Using the jmx-console to change this value from -1 to 1000 causes this error :
| .0.0.1-8088-1]: org.jboss.jms.server.destination.QueueService - Cannot change the
value of associated server's ObjectName after initialization!
| 10:24:12,693 ERROR [http-127.0.0.1-8088-1]: STDERR - [Fatal Error] :2:24: XML
document structures must start and end within the same entity.
| 10:24:12,695 ERROR [http-127.0.0.1-8088-1]:
org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jmx-console].[HtmlAdaptor]
- Servlet.service() for servlet HtmlAdaptor threw exception
| org.jboss.util.NestedRuntimeException: XML document structures must start and end
within the same entity.; - nested throwable: (org.xml.sax.SAXParseException: XML document
structures must start and end within the same entity.)
| at
org.jboss.util.propertyeditor.DocumentEditor.getAsDocument(DocumentEditor.java:88)
| at
org.jboss.util.propertyeditor.ElementEditor.setAsText(ElementEditor.java:41)
| at
org.jboss.util.propertyeditor.PropertyEditors.convertValue(PropertyEditors.java:260)
| at org.jboss.jmx.adaptor.control.Server.setAttributes(Server.java:190)
| at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.updateAttributes(HtmlA
|
If i attempt to set this value via the 'attribute' in the destinations xml file
...i get the error :
71 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
| 10:26:19,877 INFO [main]: org.jboss.ejb3.EJB3Deployer - Starting java:comp
multiplexer
| 10:26:20,274 INFO [main]: org.jboss.system.ServiceConfigurator - Problem configuring
service jboss.messaging.destination:service=Queue,name=UniversalResourceProcessingQueue
| org.jboss.deployment.DeploymentException: Exception setting attribute MaxSize = 10000
on mbean jboss.messaging.destination:service=Queue,name=UniversalResourceProcessingQueue;
- nested throwable: (java.lang.NullPointerException)
| at
org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:698)
| at
org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:332)
| at
org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:460)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
| at org.jboss.system.ServiceController.install(ServiceController.java:226)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
My Queue config is as follows :
<mbean code="org.jboss.jms.server.destination.QueueService"
|
name="jboss.messaging.destination:service=Queue,name=UniversalResourceProcessingQueue"
| xmbean-dd="xmdesc/Queue-xmbean.xml">
| <depends
optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
| <depends>jboss.messaging:service=PostOffice</depends>
| <attribute name="MaxSize">10000</attribute>
| <attribute name="SecurityConfig">
| <security>
| <role name="guest" read="true"
write="true"/>
| </security>
| </attribute>
| </mbean>
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095718#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...