Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #26720

    After my application is working for a few hours, I start to get this exception:

    [language=java:2e6pe1av]java.lang.NullPointerException
    at java.util.StringTokenizer.(StringTokenizer.java:199)
    at java.util.StringTokenizer.
    (StringTokenizer.java:221)
    at org.zefer.cache.CookieManager.storeCookies(Unknown Source)
    at org.zefer.cache.e.getResourceAsBytes(Unknown Source)
    at org.zefer.html.doc.PD4MLHtmlParser.parse(Unknown Source)
    at org.zefer.html.doc.PD4MLHtmlParser.buildDocument(Unknown Source)
    at org.zefer.pd4ml.PD4ML.o00000(Unknown Source)
    at org.zefer.pd4ml.PD4ML.render(Unknown Source)
    at org.zefer.pd4ml.PD4ML.render(Unknown Source)[/language:2e6pe1av]

    It seems to be related to CookieManager. I don’t need any cookies in my PDFs, is there a way to turn this off?

    #28991

    I still have not solved this issue. Is there any way I can determine what is causing this exception?

    #28992

    The exception is thrown in the following code (in StringTokenizer constructor)
    [language=java:24yvxgeh]for (int i = 1; (headerName = conn.getHeaderFieldKey(i)) != null; i++) {
    if (headerName.equalsIgnoreCase(SET_COOKIE)) {
    Map cookie = new HashMap();
    StringTokenizer st = new StringTokenizer(conn.getHeaderField(i), COOKIE_VALUE_DELIMITER);
    …[/language:24yvxgeh]

    Where conn is URLConnection.
    It seems, conn.getHeaderField(i) returns null, which should not be possible according to the method specification.

    We added an extra check for the null value to the development build. The fix will be available with the new beta release.

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

The forum ‘Troubleshooting’ is closed to new topics and replies.