3 Replies Latest reply on May 12, 2003 7:14 AM by Harald Gliebe

    JBoss4.0alpha, testsuite problem

    rmaier12 Newbie

      Hello,

      after clean checkout of JBoss4.0 today (2003-05-10) and successful build with JDK1.4.1 on WIN2000 i get the following exception when starting the aop-testsuite. It seems to be a parsing problem: The string "--" is not permitted within comments). Anyway, i checked the file and it appears to be okay.

      Since i am new to JBoss 4 i have no clue where to start searching for a solution.

      Any help would be great.

      Reinhard Maier
      ----------------------------------------------
      [junit] Running org.jboss.test.aop.test.SimpleBeanUnitTestCase
      [junit] 18:56:54,678 FATAL [DTXAResourceInterceptor] Could not set up mbean
      server or mbeans in client
      [junit] MBeanException: org.jboss.mx.modelmbean.XMBean constructor has throw
      n an exception: org.jboss.mx.util.JBossNotCompliantMBeanException: Error parsing
      the XML file, from XMLMetaData:
      [junit] Cause: org.jboss.mx.util.JBossNotCompliantMBeanException: Error pars
      ing the XML file, from XMLMetaData:
      [junit] at org.jboss.mx.server.MBeanServerImpl.handleInstantiateExceptio
      ns(MBeanServerImpl.java:955)
      [junit] at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerIm
      pl.java:913)
      [junit] at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerIm
      pl.java:269)
      [junit] at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerIm
      pl.java:310)
      [junit] at org.jboss.system.client.Client.registerXMBean(Client.java:104
      )
      [junit] at org.jboss.tm.DTXAResourceInterceptor.internalSetup(DTXAResour
      ceInterceptor.java:152)
      [junit] at org.jboss.system.client.ClientServiceMBeanSupport.internalRea
      dResolve(ClientServiceMBeanSupport.java:71)
      [junit] at org.jboss.tm.DTXAResourceInterceptor.readResolve(DTXAResource
      Interceptor.java:137)
      [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
      sorImpl.java:39)
      [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
      hodAccessorImpl.java:25)
      [junit] at java.lang.reflect.Method.invoke(Method.java:324)
      [junit] at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass
      .java:911)
      [junit] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStrea
      m.java:1655)
      [junit] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:
      1274)
      [junit] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream
      .java:1845)
      [junit] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.ja
      va:1769)
      [junit] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStrea
      m.java:1646)
      [junit] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:
      1274)
      [junit] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream
      .java:1845)
      [junit] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.ja
      va:1769)
      [junit] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStrea
      m.java:1646)
      [junit] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:
      1274)
      [junit] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:3
      24)
      [junit] at java.util.HashMap.readObject(HashMap.java:986)
      [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
      sorImpl.java:39)
      [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
      hodAccessorImpl.java:25)
      [junit] at java.lang.reflect.Method.invoke(Method.java:324)
      [junit] at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.
      java:824)
      [junit] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.ja
      va:1746)
      [junit] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStrea
      m.java:1646)
      [junit] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:
      1274)
      [junit] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream
      .java:1845)
      [junit] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.ja
      va:1769)
      [junit] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStrea
      m.java:1646)
      [junit] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:
      1274)
      [junit] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:3
      24)
      [junit] at org.jboss.proxy.ClientContainer.readExternal(ClientContainer.
      java:113)
      [junit] at java.io.ObjectInputStream.readExternalData(ObjectInputStream.
      java:1686)
      [junit] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStrea
      m.java:1644)
      [junit] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:
      1274)
      [junit] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream
      .java:1845)
      [junit] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.ja
      va:1769)
      [junit] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStrea
      m.java:1646)
      [junit] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:
      1274)
      [junit] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:3
      24)
      [junit] at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
      [junit] at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePai
      r.java:30)
      [junit] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:52
      2)
      [junit] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:47
      9)
      [junit] at javax.naming.InitialContext.lookup(InitialContext.java:347)
      [junit] at org.jboss.test.aop.test.SimpleBeanUnitTestCase.testEjbCall(Si
      mpleBeanUnitTestCase.java:38)
      ...
      [junit] Caused by: org.dom4j.DocumentException: Error on line 74 of document
      jar:file:/H:/Java/jboss-all/transaction/output/lib/testsuite-support.jar!/org/j
      boss/tm/DTXAResourceInterceptor.xml : The string "--" is not permitted within co
      mments. Nested exception: The string "--" is not permitted within comments.
      [junit] at org.dom4j.io.SAXReader.read(SAXReader.java:339)
      [junit] at org.dom4j.io.SAXReader.read(SAXReader.java:218)
      [junit] at org.jboss.mx.metadata.XMLMetaData.build(XMLMetaData.java:245)

      [junit] ... 86 more

        • 1. Re: JBoss4.0alpha, testsuite problem
          Harald Gliebe Novice

          This is caused by a bug in Xerces 2.2 that is used by ant (in jboss-head/tools/lib). See
          http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13282
          As a workaround you can replace jboss-head/tools/lib/xercesImpl.jar by a newer version (>2.3).

          Regards,
          Harald

          • 2. Re: JBoss4.0alpha, testsuite problem
            rmaier12 Newbie

            Your tip concerning the bug in xerces was very helpful and took me a great step further.

            Now i run into another problem with the configuration. Apparently the CachedConnectionManager seems unavailable for the client.

            Thank you very much for giving me some help.

            Reinhard Maier

            ------------------------------------------------------------------
            [junit] Running org.jboss.test.bank.test.BankEJB20StressTestCase
            [junit] 22:30:11,701 FATAL [DTXAResourceInterceptor] Could not set up mbean
            server or mbeans in client
            [junit] MBeanException: javax.management.InstanceNotFoundException: jboss.jc
            a:service=CachedConnectionManager is not registered.
            [junit] Cause: javax.management.InstanceNotFoundException: jboss.jca:service
            =CachedConnectionManager is not registered.
            [junit] at org.jboss.mx.server.ReflectedDispatcher.handleInvocationExcep
            tions(ReflectedDispatcher.java:205)
            [junit] at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDis
            patcher.java:151)
            [junit] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:89)
            [junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:139)
            [junit] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBean
            Invoker.java:155)
            [junit] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.ja
            va:544)
            [junit] at org.jboss.tm.DTXAResourceInterceptor.internalSetup(DTXAResour
            ceInterceptor.java:215)
            [junit] at org.jboss.system.client.ClientServiceMBeanSupport.internalRea
            dResolve(ClientServiceMBeanSupport.java:71)
            [junit] at org.jboss.tm.DTXAResourceInterceptor.readResolve(DTXAResource
            Interceptor.java:137)
            [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
            sorImpl.java:39)
            [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
            hodAccessorImpl.java:25)
            [junit] at java.lang.reflect.Method.invoke(Method.java:324)
            [junit] at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass
            .java:911)
            [junit] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStrea
            m.java:1655)
            [junit] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:
            1274)
            [junit] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream
            .java:1845)
            [junit] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.ja
            va:1769)
            [junit] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStrea
            m.java:1646)
            [junit] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:
            1274)
            [junit] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:3
            24)
            [junit] at java.util.HashMap.readObject(HashMap.java:986)
            [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
            sorImpl.java:39)
            [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
            hodAccessorImpl.java:25)
            [junit] at java.lang.reflect.Method.invoke(Method.java:324)
            [junit] at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.
            java:824)
            [junit] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.ja
            va:1746)
            [junit] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStrea
            m.java:1646)
            [junit] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:
            1274)
            [junit] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream
            .java:1845)
            [junit] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.ja
            va:1769)
            [junit] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStrea
            m.java:1646)
            [junit] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:
            1274)
            [junit] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:3
            24)
            [junit] at org.jboss.proxy.ClientContainer.readExternal(ClientContainer.
            java:113)
            [junit] at java.io.ObjectInputStream.readExternalData(ObjectInputStream.
            java:1686)
            [junit] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStrea
            m.java:1644)
            [junit] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:
            1274)
            [junit] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream
            .java:1845)
            [junit] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.ja
            va:1769)
            [junit] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStrea
            m.java:1646)
            [junit] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:
            1274)
            [junit] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:3
            24)
            [junit] at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
            [junit] at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePai
            r.java:30)
            [junit] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:52
            2)
            [junit] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:47
            9)
            [junit] at javax.naming.InitialContext.lookup(InitialContext.java:347)
            [junit] at org.jboss.test.bank.test.BankStressTestCase.setUp(BankStressT
            estCase.java:452)



            • 3. Re: JBoss4.0alpha, testsuite problem
              Harald Gliebe Novice

              Hi Reinhard,

              what are you trying to do?
              JBoss 4 is under development right now, so don't expect the testsuite to run without errors. You can see the results of the daily builds and tests at
              http://jboss1.kimptoc.net/

              Regards,
              Harald