3 Replies Latest reply on May 21, 2010 11:42 AM by James Schappet

    teiid 7.0.0.M3 build failure.

    James Schappet Newbie

      When attempting to build teiid on Osx, I get the following error.  The log points to out of memory, but I am executing the mvn install command with:

       

      export MAVEN_OPTS="-Xmx2g -Xms512m"

       

      -------------------------------------------------------
      T E S T S
      -------------------------------------------------------
      Running com.metamatrix.connector.xml.TestElementCollector
      Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 15.221 sec <<< FAILURE!

       

      Is there some other place to adjust the memory for this test?

        • 1. Re: teiid 7.0.0.M3 build failure.
          Steven Hawkins Master

          Hi James,

           

          Are you still getting that error with latest?  I haven't seen that problem even running with the default launch, which should be a max of 512 on my system.  With release builds I was occasionally seeing pergen out of memory errors, but that doesn't seem to be what you're facing.

           

          Steve

          • 2. Re: teiid 7.0.0.M3 build failure.
            James Schappet Newbie

            yep, same problem with the lastest from SVN.

             

             

            <testcase time="13.937" classname="org.teiid.translator.xml.TestElementCollector" name="testGetRoot">
                <error message="Java heap space" type="java.lang.OutOfMemoryError">java.lang.OutOfMemoryError: Java heap space
                    at java.util.AbstractList.iterator(AbstractList.java:273)
                    at org.teiid.translator.xml.IDGeneratingXmlFilter.getIdFromPath(IDGeneratingXmlFilter.java:110)
                    at org.teiid.translator.xml.IDGeneratingXmlFilter.startElement(IDGeneratingXmlFilter.java:135)
                    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
                    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)
                    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747)
                    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
                    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
                    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
                    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
                    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
                    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
                    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
                    at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333)
                    at nu.xom.Builder.build(Builder.java:1160)
                    at nu.xom.Builder.build(Builder.java:599)
                    at org.teiid.translator.xml.streaming.StreamingRowCollector.getElements(StreamingRowCollector.java:60)
                    at org.teiid.translator.xml.TestElementCollector.testGetRoot(TestElementCollector.java:68)
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                    at java.lang.reflect.Method.invoke(Method.java:597)
                    at junit.framework.TestCase.runTest(TestCase.java:168)
                    at junit.framework.TestCase.runBare(TestCase.java:134)
                    at junit.framework.TestResult$1.protect(TestResult.java:110)
                    at junit.framework.TestResult.runProtected(TestResult.java:128)
                    at junit.framework.TestResult.run(TestResult.java:113)
                    at junit.framework.TestCase.run(TestCase.java:124)
                    at junit.framework.TestSuite.runTest(TestSuite.java:232)
                    at junit.framework.TestSuite.run(TestSuite.java:227)
                    at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
                    at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
            </error>
              </testcase>

            • 3. Re: teiid 7.0.0.M3 build failure.
              James Schappet Newbie

              Moved over to a linux box and the build completed sucessfully.

               

              [INFO] BUILD SUCCESSFUL
              [INFO] ------------------------------------------------------------------------
              [INFO] Total time: 5 minutes 46 seconds
              [INFO] Finished at: Fri May 21 10:23:48 CDT 2010
              [INFO] Final Memory: 168M/456M
              [INFO] ------------------------------------------------------------------------