3 Replies Latest reply: Apr 24, 2012 5:37 AM by Jeff Mesnil RSS

HornetQ schema jboss 7-1-1, max-size-bytes is "long", but NumberFormatException is raised if more than 2 Gb is assigned

Yaro Sheng Newbie

Hello,

 

This bug https://issues.jboss.org/browse/HORNETQ-301 is marked as fixed, however when I try to assign value larger than 2Gb I get the following exception

 

(I have checked schemas as well: <xs:element maxOccurs="1" minOccurs="0" name="max-size-bytes" type="xs:long" />):

 

14:48:40,151 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA
14:48:40,265 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA
14:48:40,328 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
14:48:40,329 DEBUG [org.jboss.as.config] Configured system properties:
    [Standalone] = 
    file.encoding = UTF-8
    file.encoding.pkg = sun.io
    file.separator = /
    java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
    java.awt.headless = true
    java.awt.printerjob = sun.print.PSPrinterJob
    java.class.path = /opt/jboss/jboss-modules.jar
    java.class.version = 50.0
    java.endorsed.dirs = /usr/lib/jvm/jdk1.6.0_31/jre/lib/endorsed
    java.ext.dirs = /usr/lib/jvm/jdk1.6.0_31/jre/lib/ext:/usr/java/packages/lib/ext
    java.home = /usr/lib/jvm/jdk1.6.0_31/jre
    java.io.tmpdir = /tmp
    java.library.path = /usr/lib/jvm/jdk1.6.0_31/jre/lib/amd64/server:/usr/lib/jvm/jdk1.6.0_31/jre/lib/amd64:/usr/lib/jvm/jdk1.6.0_31/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
    java.net.preferIPv4Stack = true
    java.runtime.name = Java(TM) SE Runtime Environment
    java.runtime.version = 1.6.0_31-b04
    java.specification.name = Java Platform API Specification
    java.specification.vendor = Sun Microsystems Inc.
    java.specification.version = 1.6
    java.util.logging.manager = org.jboss.logmanager.LogManager
    java.vendor = Sun Microsystems Inc.
    java.vendor.url = http://java.sun.com/
    java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi
    java.version = 1.6.0_31
    java.vm.info = mixed mode
    java.vm.name = Java HotSpot(TM) 64-Bit Server VM
    java.vm.specification.name = Java Virtual Machine Specification
    java.vm.specification.vendor = Sun Microsystems Inc.
    java.vm.specification.version = 1.0
    java.vm.vendor = Sun Microsystems Inc.
    java.vm.version = 20.6-b01
    javax.management.builder.initial = org.jboss.as.jmx.PluggableMBeanServerBuilder
    javax.xml.datatype.DatatypeFactory = __redirected.__DatatypeFactory
    javax.xml.parsers.DocumentBuilderFactory = __redirected.__DocumentBuilderFactory
    javax.xml.parsers.SAXParserFactory = __redirected.__SAXParserFactory
    javax.xml.stream.XMLEventFactory = __redirected.__XMLEventFactory
    javax.xml.stream.XMLInputFactory = __redirected.__XMLInputFactory
    javax.xml.stream.XMLOutputFactory = __redirected.__XMLOutputFactory
    javax.xml.transform.TransformerFactory = __redirected.__TransformerFactory
    javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema = __redirected.__SchemaFactory
    javax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom = __redirected.__XPathFactory
    jboss.home.dir = /opt/jboss
    jboss.host.name = srv-jms-jb7
    jboss.modules.dir = /opt/jboss/modules
    jboss.modules.system.pkgs = org.jboss.byteman
    jboss.node.name = srv-jms-jb7
    jboss.qualified.host.name = srv-jms-jb7.men.gov.local
    jboss.server.base.dir = /opt/jboss/standalone
    jboss.server.config.dir = /opt/jboss/standalone/configuration
    jboss.server.data.dir = /opt/jboss/standalone/data
    jboss.server.default.config = standalone.xml
    jboss.server.deploy.dir = /opt/jboss/standalone/data/content
    jboss.server.log.dir = /opt/jboss/standalone/log
    jboss.server.name = srv-jms-jb7
    jboss.server.temp.dir = /opt/jboss/standalone/tmp
    line.separator = 

    logging.configuration = file:/opt/jboss/standalone/configuration/logging.properties
    module.path = /opt/jboss/modules
    org.jboss.boot.log.file = /opt/jboss/standalone/log/boot.log
    org.jboss.resolver.warning = true
    org.xml.sax.driver = __redirected.__XMLReaderFactory
    os.arch = amd64
    os.name = Linux
    os.version = 2.6.32-33-server
    path.separator = :
    sun.arch.data.model = 64
    sun.boot.class.path = /usr/lib/jvm/jdk1.6.0_31/jre/lib/resources.jar:/usr/lib/jvm/jdk1.6.0_31/jre/lib/rt.jar:/usr/lib/jvm/jdk1.6.0_31/jre/lib/sunrsasign.jar:/usr/lib/jvm/jdk1.6.0_31/jre/lib/jsse.jar:/usr/lib/jvm/jdk1.6.0_31/jre/lib/jce.jar:/usr/lib/jvm/jdk1.6.0_31/jre/lib/charsets.jar:/usr/lib/jvm/jdk1.6.0_31/jre/lib/modules/jdk.boot.jar:/usr/lib/jvm/jdk1.6.0_31/jre/classes
    sun.boot.library.path = /usr/lib/jvm/jdk1.6.0_31/jre/lib/amd64
    sun.cpu.endian = little
    sun.cpu.isalist = 
    sun.io.unicode.encoding = UnicodeLittle
    sun.java.command = /opt/jboss/jboss-modules.jar -mp /opt/jboss/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -Djboss.home.dir=/opt/jboss -c standalone.xml
    sun.java.launcher = SUN_STANDARD
    sun.jnu.encoding = UTF-8
    sun.management.compiler = HotSpot 64-Bit Tiered Compilers
    sun.os.patch.level = unknown
    sun.rmi.dgc.client.gcInterval = 3600000
    sun.rmi.dgc.server.gcInterval = 3600000
    user.country = DE
    user.dir = /home/jboss
    user.home = /home/jboss
    user.language = de
    user.name = jboss
    user.timezone = Europe/Berlin
14:48:40,335 DEBUG [org.jboss.as.config] VM Arguments: -D[Standalone] -XX:+UseCompressedOops -XX:+TieredCompilation -Xms12192m -Xmx12192m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml -Dorg.jboss.boot.log.file=/opt/jboss/standalone/log/boot.log -Dlogging.configuration=file:/opt/jboss/standalone/configuration/logging.properties 
14:48:40,584 ERROR [org.jboss.as.server] JBAS015956: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed to parse configuration
    at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:141) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
    at org.jboss.as.server.ServerService.boot(ServerService.java:266) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
    at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:155) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
    at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]
Caused by: java.lang.NumberFormatException: For input string: "8485760000"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) [rt.jar:1.6.0_31]
    at java.lang.Integer.parseInt(Integer.java:461) [rt.jar:1.6.0_31]
    at java.lang.Integer.parseInt(Integer.java:499) [rt.jar:1.6.0_31]
    at org.jboss.dmr.StringModelValue.asInt(StringModelValue.java:61) [jboss-dmr-1.1.1.Final.jar:1.1.1.Final]
    at org.jboss.dmr.ModelNode.asInt(ModelNode.java:226) [jboss-dmr-1.1.1.Final.jar:1.1.1.Final]
    at org.jboss.as.controller.SimpleAttributeDefinition.parse(SimpleAttributeDefinition.java:328) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
    at org.jboss.as.controller.SimpleAttributeDefinition.parse(SimpleAttributeDefinition.java:152) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
    at org.jboss.as.controller.SimpleAttributeDefinition.parseAndSetParameter(SimpleAttributeDefinition.java:207) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
    at org.jboss.as.messaging.MessagingSubsystemParser.handleElementText(MessagingSubsystemParser.java:1327)
    at org.jboss.as.messaging.MessagingSubsystemParser.handleElementText(MessagingSubsystemParser.java:1319)
    at org.jboss.as.messaging.MessagingSubsystemParser.parseAddressSettings(MessagingSubsystemParser.java:1162)
    at org.jboss.as.messaging.MessagingSubsystemParser.processAddressSettings(MessagingSubsystemParser.java:1128)
    at org.jboss.as.messaging.MessagingSubsystemParser.processHornetQServer(MessagingSubsystemParser.java:238)
    at org.jboss.as.messaging.MessagingSubsystemParser.processHornetQServers(MessagingSubsystemParser.java:178)
    at org.jboss.as.messaging.MessagingSubsystemParser.readElement(MessagingSubsystemParser.java:159)
    at org.jboss.as.messaging.MessagingSubsystemParser.readElement(MessagingSubsystemParser.java:119)
    at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
    at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.handleAny(XMLExtendedStreamReaderImpl.java:69) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
    at org.jboss.as.server.parsing.StandaloneXml.parseServerProfile(StandaloneXml.java:894) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
    at org.jboss.as.server.parsing.StandaloneXml.readServerElement_1_1(StandaloneXml.java:330) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
    at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:127) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
    at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:100) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
    at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
    at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
    at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:133) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
    ... 3 more

 

 

Has anyone experienced this situation? How can it be remedied?