• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transfomer blocks when generating

 
Adrien Ruffie
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nothing ... no output produced, not very big cpu I/O activity, just blocking ... my FOP version i 1.1
 
g tsuji
Ranch Hand
Posts: 669
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 669
3
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic