[jira] [Comment Edited] (FOP-2569) Exception in thread "main" java.lang.StackOverflowError at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)

2017-06-20 Thread onkelpax-fop (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-2569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16055703#comment-16055703
 ] 

onkelpax-fop edited comment on FOP-2569 at 6/20/17 1:02 PM:


I'm using FOP for hyphenation functionality in my software. Since the last 
hyphenation resources update (and conversion into FOP format) I get this 
StackOverflowError. I got the resources from here: 
https://extensions.openoffice.org/en/project/german-de-de-frami-dictionaries

Compared with the previous resource file, the number of pattern entries 
increased by factor 10.

It's no option for me to increase the stack size in all scenarios. I hope you 
plan a different solution for the future?

Even -Xss1024m doesn't do the trick!


was (Author: onkelpax-...@yahoo.de):
I'm using FOP for hyphenation functionality in my software. Since the last 
hyphenation resources update (and conversion into FOP format) I get this 
StackOverflowError. I got the resources from here: 
https://extensions.openoffice.org/en/project/german-de-de-frami-dictionaries

Compared with the previous resource file, the number of pattern entries 
increased by factor 10.

It's no option for me to increase the stack size in all scenarios. I hope you 
plan a different solution for the future?

> Exception in thread "main" java.lang.StackOverflowError at 
> org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)
> --
>
> Key: FOP-2569
> URL: https://issues.apache.org/jira/browse/FOP-2569
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.0
>Reporter: Mathieu Malaterre
> Fix For: 1.1
>
>
> fop + offo is broken since release 2.0 (and 2.1). It used to be possible to 
> build fop-hyph.jar using fop 1.1. Please resurrect a working hyph building 
> mechanism.
> Here is what it states:
> $ /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java -Xss512k -classpath
> /home/mathieu/debian/fop/fop-2.1/build/classes
> org.apache.fop.hyphenation.SerializeHyphPattern
> /home/mathieu/debian/fop/fop-2.1/hyph
> /home/mathieu/debian/fop/fop-2.1/build/classes/hyph
> Processing /home/mathieu/debian/fop/fop-2.1/hyph/sa.xml
> Exception in thread "main" java.lang.StackOverflowError
> at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)
> at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)
> at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)
> at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)
> [...]
> at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)
> See thread:
> http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/201602.mbox/%3CCA%2B7wUszWN2PdZY_t_Kgn0E4eatL7CUQswOWj9XC%3Dg9GDdgsyXw%40mail.gmail.com%3E



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Comment Edited] (FOP-2569) Exception in thread "main" java.lang.StackOverflowError at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)

2016-02-03 Thread Mathieu Malaterre (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-2569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15130016#comment-15130016
 ] 

Mathieu Malaterre edited comment on FOP-2569 at 2/3/16 8:29 AM:


It would be nice it ant jar-hyphenation would return a non-zero return code, so 
that this issue does not come back later on.

{{{
$ CLASSPATH=/usr/share/java/xmlgraphics-commons-2.1.jar ant jar-hyphenation
[...]
 [java] at 
org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)
 [java] at 
org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)
 [java] at org.apache.f
 [java] Java Result: 1
 [echo] Hyphenation failed

uptodate-jar-hyphenation:

jar-hyphenation:

BUILD SUCCESSFUL
Total time: 45 seconds
}}}


was (Author: malaterre):
It would be nice it ant jar-hyphenation would return a non-zero return code, so 
that this issue does not come back later on.

```
$ CLASSPATH=/usr/share/java/xmlgraphics-commons-2.1.jar ant jar-hyphenation
[...]
 [java] at 
org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)
 [java] at 
org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)
 [java] at org.apache.f
 [java] Java Result: 1
 [echo] Hyphenation failed

uptodate-jar-hyphenation:

jar-hyphenation:

BUILD SUCCESSFUL
Total time: 45 seconds
```

> Exception in thread "main" java.lang.StackOverflowError at 
> org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)
> --
>
> Key: FOP-2569
> URL: https://issues.apache.org/jira/browse/FOP-2569
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.0
>Reporter: Mathieu Malaterre
> Fix For: 1.1
>
>
> fop + offo is broken since release 2.0 (and 2.1). It used to be possible to 
> build fop-hyph.jar using fop 1.1. Please resurrect a working hyph building 
> mechanism.
> Here is what it states:
> $ /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java -Xss512k -classpath
> /home/mathieu/debian/fop/fop-2.1/build/classes
> org.apache.fop.hyphenation.SerializeHyphPattern
> /home/mathieu/debian/fop/fop-2.1/hyph
> /home/mathieu/debian/fop/fop-2.1/build/classes/hyph
> Processing /home/mathieu/debian/fop/fop-2.1/hyph/sa.xml
> Exception in thread "main" java.lang.StackOverflowError
> at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)
> at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)
> at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)
> at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)
> [...]
> at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)
> See thread:
> http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/201602.mbox/%3CCA%2B7wUszWN2PdZY_t_Kgn0E4eatL7CUQswOWj9XC%3Dg9GDdgsyXw%40mail.gmail.com%3E



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)