Bug with DependecyFinder XSLT

24 views
Skip to first unread message

dbt23

unread,
May 18, 2008, 11:51:47 AM5/18/08
to glean-code-users
Hi Everybody,

have a problem while transforming a feedback.xml with DependencyFinder
\etc\DependencyGraphToHTML.xsl. I receive a this Message:
com.sun.org.apache.xml.internal.utils.WrappedRuntimeException:
depfind.sourceforge.net

When I transform the xml seperatly for eg. via Oxygen no error occurs.

Here the log:

[xslt] Using class
org.apache.tools.ant.taskdefs.optional.TraXLiaison
[xslt] Processing c:\01_Data\02_QSQM\glean\anas\org\gako
\1.0.0\reports\depfind\Gako_1.0.0-depfind-feedback.xml to c:\01_Data
\02_QSQM\glean\anas\org\gako\1.0.0\reports\depfind\index.html
[xslt] Loading stylesheet C:\Program Files\01_DevEdge\02_QSQM
\DependencyFinder\etc\DependencyGraphToHTML.xsl
Apache resolver library not found, internal resolver will be used
[xslt] : Error! depfind.sourceforge.net
[xslt] : Error!
com.sun.org.apache.xml.internal.utils.WrappedRuntimeException:
depfind.sourceforge.net
[xslt] Failed to process c:\01_Data\02_QSQM\glean\anas\org\gako
\1.0.0\reports\depfind\Gako_1.0.0-depfind-feedback.xml
[subant] Exiting C:\Program Files\01_DevEdge\02_QSQM\glean\tool
\depfind\build.xml.
[subant] Failure for target '' of: C:\Program Files\01_DevEdge
\02_QSQM\glean\tool\depfind\build.xml
[subant] The following error occurred while executing this line:
[subant] C:\Program Files\01_DevEdge\02_QSQM\glean\tools-common.xml:
121: The following error occurred while executing this line:
[subant] C:\Program Files\01_DevEdge\02_QSQM\glean\tools-common.xml:
171: javax.xml.transform.TransformerException:
javax.xml.transform.TransformerException:
com.sun.org.apache.xml.internal.utils.WrappedRuntimeException:
depfind.sourceforge.net
[echo] Finished gathering feedback. Running collector tools

Anybody an Idea what happened, or how I can debug more in depth?

thx-a-lot

John Brugge

unread,
May 19, 2008, 1:57:18 PM5/19/08
to glean-co...@googlegroups.com
From a brief googling of this error, it looks like it could be related to firewall issues when trying to resolve a DTD in the XML file. (http://forum.java.sun.com/thread.jspa?threadID=5205420&messageID=9821706)

To confirm that you could edit the Gako_1.0.0-depfind-feedback.xml file and remove the DOCTYPE entry at the top and try processing that....hmm, but you say the problem doesn't happen outside of the build script. You could try putting something like this in to the tools/depfind/build.xml:

    <target name="depfind">
        <dependencyextractor
            destfile="${gen.report.dir}/${report.name}.xml"
            xml="yes"
            minimize="yes">
            <path>
                <pathelement location="${bin.dir}"/>
            </path>
        </dependencyextractor>

        <replace file="${gen.report.dir}/${report.name}.xml"
            value=""
            token="<!DOCTYPE dependencies SYSTEM "http://depfind.sourceforge.net/dtd/dependencies.dtd">"
            summary="true" />
    </target>

(you probably have to escape some of the values in the token value; I haven't tried it yet, but that's the idea)

Hope that helps,
John
Reply all
Reply to author
Forward
0 new messages