File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes Transfomer blocks when generating Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Transfomer blocks when generating" Watch "Transfomer blocks when generating" New topic
Author

Transfomer blocks when generating

Adrien Ruffie
Ranch Hand

Joined: Jan 14, 2009
Posts: 90
Hello all,

I have a problem with transform I have the WordML model with a size of 1245ko (I cannot provide it in attachment because downloading doesn't work ... not accept .zip, .txt, .xml extension file) and I tried to convert it into pdf thank to FOP apache library.
FOP work correctly, but when I try to convert the result with transformer, it blocks when generating and blocks indefinitely ... below my code:



Do you know this problem, a work around exist ? How I can avoid this blocking process ... ?

Thank you and best regards.

Adrien


SCJP 5, SCDJWS 5
http://adrien-ruffie.blogspot.com
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12803
    
    5
What is the CPU doing while the "Transformer blocks"?? Is there any disk activity? Is there any output at all?

Bill
Adrien Ruffie
Ranch Hand

Joined: Jan 14, 2009
Posts: 90
nothing ... no output produced, not very big cpu I/O activity, just blocking ... my FOP version i 1.1
g tsuji
Ranch Hand

Joined: Jan 18, 2011
Posts: 535
    
    3
You would consider allocating more memory to the application when you launch it (java -Xmx). Just in case you need the syntax, see doc.
http://docs.oracle.com/javase/7/docs/technotes/tools/windows/java.html
Adrien Ruffie
Ranch Hand

Joined: Jan 14, 2009
Posts: 90
I think you don't understand my problem, I haven't out of memory, therefore increase the memory will not help very well ...
g tsuji
Ranch Hand

Joined: Jan 18, 2011
Posts: 535
    
    3
With 1MB+ source, usually it takes more memory than default to work with fop.

If you've DTD in your xml, and that you do not need it for xslt, an EntityResolver to bypass its download would be a sensible approach to try. But this is not a specific issue to WordML.
http://stackoverflow.com/questions/4799136/extremely-slow-xslt-transformation-in-java
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Transfomer blocks when generating