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

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

    at java.util.StringTokenizer.(
    at java.util.StringTokenizer.
    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?


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


    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);

    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.