Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #26351

    Hi i am evaluating your product and found a very strange issue.

    I have an HTML with an image in it called logo.jpg. when ever i render, it throws an exception, then hangs until I get an out of memory exception. I broke it down to the simplest HTML and get the same issue:

    <HTML><BODY><IMG SRC="logo.jpg"></BODY></HTML>

    This occurs whether the image exists or not in my basedir. If i rename the file and the reference to the file in the html, it sometimes works. Here is the rename attempts and the results:

    logo.jpg – fails
    logo.png – fails
    alogo.jpg – fails
    a_logo.jpg – succeeds
    logoa.jpg – fails
    logo_a.jpg – succeeds

    I know the obvious solution is to rename the files and the references in the HTML, but that is not a feasible option in my circumstances. Please help as your library is perfect for my needs.

    This is the exception i get when running against the simple HTML example above as well as my production HTML:

    BlockElement(body) {margin-right=8, line-height=1.2000000476837158, font-size=16, margin-left=8, margin-bottom=8, display=block, font-family=[Ljava.lang.String;@14835fb, margin-top=8}<br /> ContentElement(pd4content) [ ] {line-height=1.2000000476837158, font-family=[Ljava.lang.String;@14835fb, display=block, font-size=16}<br /> <br /> java.lang.StringIndexOutOfBoundsException: String index out of range: 10<br /> at java.lang.String.substring(String.java:1935)<br /> at org.zefer.html.doc.n.Öõ0000(Unknown Source)<br /> at org.zefer.html.doc.n.Õõ0000(Unknown Source)<br /> at org.zefer.html.doc.n.ö00000(Unknown Source)<br /> at org.zefer.html.doc.b.b.o00000(Unknown Source)<br /> at org.zefer.html.doc.ab.o00000(Unknown Source)<br /> at org.zefer.html.doc.b.d.o00000(Unknown Source)<br /> at org.zefer.html.doc.ab.o00000(Unknown Source)<br /> at org.zefer.html.doc.Document.layout(Unknown Source)<br /> at org.zefer.pd4ml.PD4ML.super(Unknown Source)<br /> at org.zefer.pd4ml.PD4ML.render(Unknown Source)<br /> at org.zefer.pd4ml.PD4ML.render(Unknown Source)<br /> at Main.transform(Main.java:51)<br /> at Main.main(Main.java:23)<br /> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br /> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br /> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br /> at java.lang.reflect.Method.invoke(Method.java:597)<br /> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

    Then it runs away and I get this after awhile:

    Exception in thread "main" java.lang.OutOfMemoryError: Java heap space<br /> at java.util.Arrays.copyOf(Arrays.java:2882)<br /> at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)<br /> at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)<br /> at java.lang.StringBuffer.append(StringBuffer.java:224)<br /> at org.zefer.pd4ml.pdf.g.o00000(Unknown Source)<br /> at org.zefer.pd4ml.pdf.PD4Device.printHeaderAndFooter(Unknown Source)<br /> at org.zefer.pd4ml.PD4ML.super(Unknown Source)<br /> at org.zefer.pd4ml.PD4ML.render(Unknown Source)<br /> at org.zefer.pd4ml.PD4ML.render(Unknown Source)<br /> at Main.transform(Main.java:51)<br /> at Main.main(Main.java:23)<br /> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br /> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br /> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br /> at java.lang.reflect.Method.invoke(Method.java:597)<br /> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

    #27913

    Please give a try to the most recent beta, available for download from our site (v360fx1b1). It should resolve the issue.

    #27914

    Yes the beta did the trick. Thank you for the prompt response.

    #27915

    Use longer file names than 9 characters. It’ll help.

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘General questions / FAQ’ is closed to new topics and replies.