5 Replies Latest reply on Oct 3, 2011 7:51 AM by tomjenkinson

    Migration - Taking Very Long Time




      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

        • 1. Re: Migration - Taking Very Long Time

          Hi Raja,


          You should be using the following tag:  https://svn.jboss.org/repos/mass/MAT/tags/1.0


          Please can you confirm that you are using that version?




          • 2. Re: Migration - Taking Very Long Time

            Thanks for your reply Tom.


            The above reports are taken from trunk. I will be working on tags/1.0 from now onwards as per your reply.


            But, I had initially tested this on Tag 1.0 and the issue still remain same.




            • 3. Re: Migration - Taking Very Long Time

              Hi Raja,


              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 JAVA_HOME=<JAVA_HOME>

              set DEPENDENCYFINDER_HOME=<MAT_HOME>\tools\depfinder

              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,


              • 4. Re: Migration - Taking Very Long Time

                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

                        at com.sun.org.apache.xalan.internal.xslt.Process.doExit(Process.java:1185)

                        at com.sun.org.apache.xalan.internal.xslt.Process._main(Process.java:1158)

                        at com.jeantessier.dependencyfinder.cli.XSLTProcess.main(XSLTProcess.java:37)


                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




                • 5. Re: Migration - Taking Very Long Time

                  Thanks for confirming the issue Raja, I have Jirad this:  https://issues.jboss.org/browse/MASS-7