Dynamics - Can't create file /../tmp.xml

Help
2009-11-04
2013-06-04
  • I setup xradar and I have it working the statics without any issue with two different releases of the same project. But now I'm having problems to run the dynamics, projects are Web1 and Web2 (current), here it is the log I've got:

    > brey@brey-laptop:~/xradar/iGrid-Web$
    > ant dynamics_all Buildfile: build.xml
    >       Encoding UTF-8
    >
    > dynamics_all:  Nov 4,
    > 2009 2:11:51 PM
    > org.sourceforge.xradar.AbstractProcess
    > initializedXmlCatalog
    >  WARNING: Offline
    > mode, using inner XML Catalog from
    > path  Nov 4, 2009
    > 2:11:51 PM
    > org.sourceforge.xradar.dynamics.Dynamics
    > executeMerge  INFO:
    > Merging previous version
    > file,xradar://resources/etc/config/dynamics/dynamics-master-base.xml,
    > with
    > Web1/docs/xml/radar_report_normalized.xml
    > file, using
    > /home/brey/xradar/iGrid-Web/dynamics/docs//tmp.xml
    > as a temporary buffer
    >  Nov 4, 2009 2:12:00
    > PM
    > org.sourceforge.xradar.dynamics.Dynamics
    > postProcess  INFO:
    > Post processsing file
    > /home/brey/xradar/iGrid-Web/dynamics/docs//xml/dynamics-master-final.xml
    >  Nov 4, 2009 2:12:04
    > PM
    > org.sourceforge.xradar.dynamics.Dynamics
    > dynamicsStyleReport
    > INFO: Generating website from file
    > /home/brey/xradar/iGrid-Web/dynamics/docs/empty.html
    >  FATAL ERROR:  '[ERR
    > 0194] The
    > javax.xml.transform.stream.StreamResult
    > associated with the
    > xsl:result-document with href
    > '/home/brey/xradar/iGrid-Web/dynamics/docs//packages/package-design-details-popup-com.tid.igri.controlador.admin.web.acciones.motivosBtp.html'
    > and base output URI
    > 'file:///home/brey/xradar/iGrid-Web/'
    > has neither its Writer nor its
    > OutputStream set.'
    > FATAL ERROR:  ' A redirect
    > instruction failed to create a file.'
    >             :[ERR
    > 0629] A redirect instruction failed to
    > create a file.  Nov
    > 4, 2009 2:12:20 PM
    > org.sourceforge.xradar.dynamics.Dynamics
    > executeMerge  INFO:
    > Merging previous version
    > file,/home/brey/xradar/iGrid-Web/dynamics/docs//xml/dynamics-master-final.xml,
    > with
    > Web2/docs/xml/radar_report_normalized.xml
    > file, using
    > /home/brey/xradar/iGrid-Web/dynamics/docs//tmp.xml
    > as a temporary buffer
    >
    > BUILD FAILED
    > org.sourceforge.xradar.XRadarException:
    > Can't create file
    > /home/brey/xradar/iGrid-Web/dynamics/docs//tmp.xml
    > at
    > org.sourceforge.xradar.util.StreamUtils.createFileWriter(StreamUtils.java:115)
    > at
    > org.sourceforge.xradar.dynamics.Dynamics.executeMerge(Dynamics.java:104)
    > at
    > org.sourceforge.xradar.ant.DynamicsTask.execute(DynamicsTask.java:102)
    > at
    > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    > at
    > sun.reflect.GeneratedMethodAccessor3.invoke(Unknown
    > Source) at
    > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    > at
    > java.lang.reflect.Method.invoke(Method.java:599)
    > at
    > org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    > at
    > org.apache.tools.ant.Task.perform(Task.java:348)
    > at
    > org.apache.tools.ant.Target.execute(Target.java:357)
    > at
    > org.apache.tools.ant.Target.performTasks(Target.java:385)
    > at
    > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    > at
    > org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    > at
    > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    > at
    > org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    > at
    > org.apache.tools.ant.Main.runBuild(Main.java:758)
    > at
    > org.apache.tools.ant.Main.startAnt(Main.java:217)
    > at
    > org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    > at
    > org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    > Caused by:
    > java.io.FileNotFoundException:
    > /home/brey/xradar/iGrid-Web/dynamics/docs/tmp.xml
    > (Too many open files) at
    > java.io.FileOutputStream.<init>(FileOutputStream.java:179)
    > at
    > java.io.FileOutputStream.<init>(FileOutputStream.java:131)
    > at
    > java.io.FileWriter.<init>(FileWriter.java:84)
    > at
    > org.sourceforge.xradar.util.StreamUtils.createFileWriter(StreamUtils.java:113)
    > … 18 more
    >
    > Total time: 30 seconds

    This is the build.xml dynamic sections:

        <target name="dynamics_all" description="Merges all historic and the current versions, and produces a report for all historic versions">
    <property name="docs.home" value="${basedir}/dynamics/docs/"/>
    <xradar-dynamics debug="false" config="etc/radar-config.xml" target="${docs.home}" staticsConfigured="true"> <!-  false will render staticsRoot attributes optionnal ->
    <!- If orderId == 1, 'previousReport' is not required as it is the first version of the project
    Xradar will use the etc/config/dynamics/dynamics-master-base.xml
    embedded in the jar distribution.
    ->
    <input reportToMerge="Web1/docs/xml/radar_report_normalized.xml" qualityReportPath="Web1/docs/xml/reports/" versionId="1" daysSinceLast="1" staticsRoot="Web1/docs" masterFinal="${docs.home}/xml/dynamics-master-final.xml"/>

    <input previousReport="${docs.home}/xml/dynamics-master-final.xml" reportToMerge="Web2/docs/xml/radar_report_normalized.xml" qualityReportPath="Web2/docs/xml/reports/" versionId="2" daysSinceLast="2" staticsRoot="Web2/docs" masterFinal="${docs.home}/xml/dynamics-master-final2.xml"/>

    </xradar-dynamics>

        </target>

        <target name="dynamics_first" description="Merges only the current version, and produces a report for all historic versions">

           <xradar-dynamics debug="false" config="etc/radar-config.xml" target="dynamics/docs/" staticsConfigured="true">
    <!-  false will render staticsRoot attributes optionnal ->
    <!- If orderId == 1, 'previousReport' is not required as it is the first version of the project
    Xradar will use the etc/config/dynamics/dynamics-master-base.xml
    embedded in the jar distribution.
    ->
    <input reportToMerge="Web1/docs/xml/radar_report_normalized.xml" qualityReportPath="Web1/docs/xml/reports/" versionId="1" daysSinceLast="1" staticsRoot="Web1/docs" masterFinal="dynamics/docs/xml/dynamics-master-final.xml"/>
    </xradar-dynamics>
        </target>

    This is the project.properties:

    version.prefix=Web

    I'm not sure why it is getting this error, I'm sure I'm doing something wring, but after two days, I can't find the solution. Anybody had the same issue?

    version.current=2
    version.list=1,2

     
  • Sorry, the error log was not ok formatted here it is again:

        brey@brey-laptop:~/xradar/iGrid-Web$ ant dynamics_all
        Buildfile: build.xml
              Encoding UTF-8
       
        dynamics_all:
         Nov 4, 2009 2:11:51 PM org.sourceforge.xradar.AbstractProcess initializedXmlCatalog
         WARNING: Offline mode, using inner XML Catalog from path
         Nov 4, 2009 2:11:51 PM org.sourceforge.xradar.dynamics.Dynamics executeMerge
         INFO: Merging previous version file,xradar://resources/etc/config/dynamics/dynamics-master-base.xml, with Web1/docs/xml/radar_report_normalized.xml file, using /home/brey/xradar/iGrid-Web/dynamics/docs//tmp.xml as a temporary buffer
         Nov 4, 2009 2:12:00 PM org.sourceforge.xradar.dynamics.Dynamics postProcess
         INFO: Post processsing file /home/brey/xradar/iGrid-Web/dynamics/docs//xml/dynamics-master-final.xml
         Nov 4, 2009 2:12:04 PM org.sourceforge.xradar.dynamics.Dynamics dynamicsStyleReport
         INFO: Generating website from file /home/brey/xradar/iGrid-Web/dynamics/docs/empty.html
         FATAL ERROR:  ' The javax.xml.transform.stream.StreamResult associated with the xsl:result-document with href '/home/brey/xradar/iGrid-Web/dynamics/docs//packages/package-design-details-popup-com.tid.igri.controlador.admin.web.acciones.motivosBtp.html' and base output URI 'file:///home/brey/xradar/iGrid-Web/' has neither its Writer nor its OutputStream set.'
         FATAL ERROR:  ' A redirect instruction failed to create a file.'
                    : A redirect instruction failed to create a file.
         Nov 4, 2009 2:12:20 PM org.sourceforge.xradar.dynamics.Dynamics executeMerge
         INFO: Merging previous version file,/home/brey/xradar/iGrid-Web/dynamics/docs//xml/dynamics-master-final.xml, with Web2/docs/xml/radar_report_normalized.xml file, using /home/brey/xradar/iGrid-Web/dynamics/docs//tmp.xml as a temporary buffer
       
        BUILD FAILED
        org.sourceforge.xradar.XRadarException: Can't create file /home/brey/xradar/iGrid-Web/dynamics/docs//tmp.xml
        at org.sourceforge.xradar.util.StreamUtils.createFileWriter(StreamUtils.java:115)
        at org.sourceforge.xradar.dynamics.Dynamics.executeMerge(Dynamics.java:104)
        at org.sourceforge.xradar.ant.DynamicsTask.execute(DynamicsTask.java:102)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
        at java.lang.reflect.Method.invoke(Method.java:599)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.Main.runBuild(Main.java:758)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
        Caused by: java.io.FileNotFoundException: /home/brey/xradar/iGrid-Web/dynamics/docs/tmp.xml (Too many open files)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
        at java.io.FileWriter.<init>(FileWriter.java:84)
        at org.sourceforge.xradar.util.StreamUtils.createFileWriter(StreamUtils.java:113)
        … 18 more
       
        Total time: 30 seconds