I had checked out the latest MAT from subversion [http://anonsvn.jboss.org/repos/mass/] - Revision 100.
Had done the initial configuration based on JBoss MASS MAT Getting Started guide. I am trying to generate a sample report for MedRec application running on my local WebLogic 10.3 Server.
The run script [MAT\trunk\bin\run.cmd] was running absolutely fine till it reaches DependentsToHTML.cmd. Once it reaches the DependentsToHTML.cmd the operation looks hanged[Please refer to the attached log file]. It is running indefinitely from that point [upto 2-3 days] till i kill the process.
Initially i thought it is because of size of the application based on MAT\trunk\data\MedRec.DependencyExtractor file, but the process hanged even for smaller application. The tool runs fine if i commented DependentsToHTML.cmd execution. I had tested this by commenting the relevant lines from MAT\trunk\src\com\mwc\mat\DependenciesScript.groovy
I am unable to generate a full report without this DependentsToHTML.cmd. Please help me out to fix this issue.
Attached log file and configuration files for your reference. Let me know if you need any more details.
Thanks in Advance.
Raja Babu. P
MAT_Conf.zip 2.5 K
In the reports directory, is there a file ending: dependencyGraph.html If so, what does the content of this look like?
Also, I would suggest trying to run the contents of the DependentsToHTML.cmd file directly:
You will need to:
set DEPENDENCYFINDER_OPTS=-Xms512m -Xmx1024m
"%JAVA_HOME%\bin\java" %DEPENDENCYFINDER_OPTS% -classpath "%DEPENDENCYFINDER_HOME%\classes;%DEPENDENCYFINDER_HOME%\lib\DependencyFinder.jar;%DEPENDENCYFINDER_HOME%\lib\log4j.jar;%DEPENDENCYFINDER_HOME%\lib\jakarta-oro.jar" com.jeantessier.dependencyfinder.cli.XSLTProcess -xsl %DEPENDENCYFINDER_HOME%/etc/DependentsToHTML.xsl -in "D:\StateStreet\migration\MAT\trunk\data\MedRec.DependencyExtractor.xml"
Please let me know how you get on with that,
Thanks for the suggestion Tom. Running the DependentsToHTML.cmd directly helped me to narrow down the issue. I got the below exception during the execution.
Exception in thread "main" java.lang.RuntimeException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: depfind.sourceforge.net
I believe, the application was trying to access some contents over the INTERNET and got blocked by firewall. I applied some proxy settings to by-pass this issue and the MAT tool was working fine for me.. It would be very much helpful if the exception handling was smart enough to report this issue during the initial run itself.
The following changes should be applied to run.cmd, for those who are getting similar firewall issue. Please get the proxy details from your System Admin.
"-Dhttp.proxyHost=<proxy host> -Dhttp.proxyPort=<proxy port>"
set DEPENDENCYFINDER_OPTS=-Xms512m -Xmx1024m -Dhttp.proxyHost=<proxy host> -Dhttp.proxyPort=<proxy port>
java -Xms512m -Xmx1024m -Dhttp.proxyHost=<proxy host> -Dhttp.proxyPort=<proxy port> -cp "%CP%" -Dredhatlogdir="%LOGDIR%" -Dconfig.xml="%CONFIG_XML%" com.mwc.mat.ToolMain