Jackson 2.4.2+ fails on Appengine

24 views
Skip to first unread message

husayt via StackOverflow

unread,
Nov 29, 2014, 7:51:22 PM11/29/14
to google-appengin...@googlegroups.com

I have upgraded from Jackson 2.4.2 to 2.4.4 and started getting WstxParsingException.

This seems like a woodstox exception. I am not sure if WoodStox works on appengine at all. Anyway I have been using Aalto. (by having it in pom.xml) <dependency> <groupId>com.fasterxml</groupId> <artifactId>aalto-xml</artifactId> <version>0.9.9</version> </dependency>

But it seems since Jackson 2.4.2+ it ignores Aalto and uses woodstoxby default.

Here is the exception i am getting:

java.io.IOException: com.ctc.wstx.exc.WstxParsingException: (was java.io.FileNotFoundException) /base/data/home/apps/..../template-schema.dtd (No such file or directory) at [row,col {unknown-source}]: [1,55] at com.fasterxml.jackson.dataformat.xml.util.StaxUtil.throwXmlAsIOException(StaxUtil.java:24) at com.fasterxml.jackson.dataformat.xml.XmlFactory._createParser(XmlFactory.java:526) at com.fasterxml.jackson.dataformat.xml.XmlFactory._createParser(XmlFactory.java:28) at com.fasterxml.jackson.core.JsonFactory.createParser(JsonFactory.java:709) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2100)

I am surprised no one else reported this issue. Maybe I am missing something.



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/27208837/jackson-2-4-2-fails-on-appengine

husayt via StackOverflow

unread,
Nov 29, 2014, 8:41:20 PM11/29/14
to google-appengin...@googlegroups.com

I have upgraded from Jackson 2.4.2 to 2.4.4 and started getting WstxParsingException.

This seems like a woodstox exception. I am not sure if WoodStox works on appengine at all. Anyway I have been using Aalto. (by having it in pom.xml) <dependency> <groupId>com.fasterxml</groupId> <artifactId>aalto-xml</artifactId> <version>0.9.9</version> </dependency>

But it seems since Jackson 2.4.2+ it ignores Aalto and uses woodstoxby default.

Here is the exception i am getting:

java.io.IOException: com.ctc.wstx.exc.WstxParsingException: (was java.io.FileNotFoundException) /base/data/home/apps/..../template-schema.dtd (No such file or directory) at [row,col {unknown-source}]: [1,55] at com.fasterxml.jackson.dataformat.xml.util.StaxUtil.throwXmlAsIOException(StaxUtil.java:24) at com.fasterxml.jackson.dataformat.xml.XmlFactory._createParser(XmlFactory.java:526) at com.fasterxml.jackson.dataformat.xml.XmlFactory._createParser(XmlFactory.java:28) at com.fasterxml.jackson.core.JsonFactory.createParser(JsonFactory.java:709) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2100)

I am surprised no one else reported this issue. Maybe I am missing something.

UPDATE:

It seems the issue is with woodstox-core-asl ver 4.4, as I managed to get this config working

``` org.codehaus.woodstox woodstox-core-asl ${woodstox.version}

    <dependency>
        <groupId>org.codehaus.woodstox</groupId>
        <artifactId>stax2-api</artifactId>
        <version>3.1.4</version>
    </dependency>

    <dependency>
       <groupId>com.fasterxml</groupId>
       <artifactId>aalto-xml</artifactId>
       <version>0.9.9</version>
    </dependency>

```

Reply all
Reply to author
Forward
0 new messages