4 Replies Latest reply on Nov 9, 2004 12:54 PM by mrostan

    Jboss 3.2.5 Error in

    hughallen

      Following file in JBoss 3.2.5 is NOT valid XML:
      /usr/local/jboss-3.2.5/server/default/conf/xmdesc/TransactionManagerService-xmbean.xml

      Parsing error is:
      XML Parsing Error: undefined entity
      Location: http://www.xxx.com:10000/file/show.cgi/usr/local/jboss-3.2.5/server/default/conf/xmdesc/TransactionManagerService-xmbean.xml?rand=999999999&trust=
      Line Number 10, Column 3: &defaultAttributes;
      --^

      ***SEE LINE BELOW containing "&defaultAttributes;":

      <!-- $Id: TransactionManagerService-xmbean.xml,v 1.1.2.3 2003/12/20 20:59:45 pilhuhn Exp $ -->
      <mbean>
       <description>TransactionManager Service.</description>
       <class>org.jboss.tm.TransactionManagerService</class>
       &defaultAttributes;
       <attribute access="read-write" getMethod="getTransactionTimeout" setMethod="setTransactionTimeout">
       <description>The transaction timeout in seconds</description>
       <name>TransactionTimeout</name>
       <type>int</type>
       </attribute>


      WHAT SHOULD THIS LINE CONTAIN???

      Further, I believe this error is causing the following Exception:

      2004-07-09 22:19:18,716 DEBUG [org.jboss.metadata.MetaData] Ignoring transaction-timeout 'null'
      java.lang.NumberFormatException: null
      at java.lang.Integer.parseInt(Integer.java:436)
      at java.lang.Integer.parseInt(Integer.java:518)
      at org.jboss.metadata.BeanMetaData.importJbossXml(BeanMetaData.java:789)
      at org.jboss.metadata.EntityMetaData.importJbossXml(EntityMetaData.java:341)
      at org.jboss.metadata.ApplicationMetaData.importJbossXml(ApplicationMetaData.java:729)
      at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:175)
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:462)
      .
      .
      .

      Thanks, Hugh


        • 1. Re: Jboss 3.2.5 Error in
          hughallen

          Sorry - that Subject line should have been:

          Jboss 3.2.5 Error in TransactionManagerService-xmbean.xml

          Hugh

          • 2. Re: Jboss 3.2.5 Error in
            starksm64

            The entities are defined in the jboss_xmbean_1_1.dtd referenced by the DOCTYPE of the TransactionManagerService-xmbean.xml.

            • 3. Re: Jboss 3.2.5 Error in
              colin_daly

               

              2004-07-09 22:19:18,716 DEBUG [org.jboss.metadata.MetaData] Ignoring transaction-timeout 'null'
              
              
              


              If you have any method which has method-attibutes and
              has an invalid transaction-timeout OR NO TRANSACTION-TIMEOUT attribute you will get this debug message.

              I.E if you have a method whose only method-attibute is read-only, you will get this debug message because you
              don't have transaction-timeout set.

              I don't think jboss should be giving this message unless the
              transaction-timout is set with an invalid timeout value - not
              if the attribute isn't there at all which is perfectly valid.



              • 4. Re: Jboss 3.2.5 Error in
                mrostan

                I've modified the class BeanMetaData to avoid this debug message when specifying a "method" element without a "transaction-timeout" child.

                DEBUG [org.jboss.metadata.MetaData] Ignoring transaction-timeout 'null'


                The modification is simply:
                 if (txTimeout != null) {
                 try
                 {
                 ma.txTimeout = Integer.parseInt(txTimeout);
                 }
                 catch (Exception ignore)
                 {
                 log.debug("Ignoring transaction-timeout '" + txTimeout + "'", ignore);
                 }
                 }
                


                in the importJbossXml method.
                It can be commited to the CVS server if somebody believe it's useful.