Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6545

NPE in WebClient post / response.readEntity

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      I seem to be having the same problem as this person:
      http://mail-archives.apache.org/mod_mbox/cxf-users/201408.mbox/%3C53E9D5DD.7060602@gmail.com%3E

      For whatever reason CXF cxf-rt-rs-client 3.0.3 works fine in Tika-Server (our JAX-RS rest App); however when I run it in tika-app i get a failure very similar to that described above:

      [chipotle:~/src/tika-app] mattmann% java -classpath $HOME/git/grobidparser-resources/:target/tika-app-1.11-SNAPSHOT.jar org.apache.tika.cli.TikaCLI --config=$HOME/git/grobidparser-resources/tika-config.xml -J $HOME/git/grobid/papers/ICSE06.pdf
      REST URL STRING IS http://localhost:8080
      java.lang.NullPointerException
      	at org.apache.cxf.jaxrs.client.AbstractClient.setupOutInterceptorChain(AbstractClient.java:847)
      	at org.apache.cxf.jaxrs.client.AbstractClient.createMessage(AbstractClient.java:924)
      	at org.apache.cxf.jaxrs.client.WebClient.finalizeMessage(WebClient.java:1109)
      	at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:1082)
      	at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:883)
      	at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:854)
      	at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:320)
      	at org.apache.cxf.jaxrs.client.WebClient.post(WebClient.java:329)
      	at org.apache.tika.parser.journal.GrobidRESTParser.parse(GrobidRESTParser.java:69)
      	at org.apache.tika.parser.journal.JournalParser.parse(JournalParser.java:67)
      	at org.apache.tika.parser.ParserDecorator.parse(ParserDecorator.java:177)
      	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
      	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
      	at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120)
      	at org.apache.tika.parser.RecursiveParserWrapper.parse(RecursiveParserWrapper.java:158)
      	at org.apache.tika.cli.TikaCLI.handleRecursiveJson(TikaCLI.java:504)
      	at org.apache.tika.cli.TikaCLI.process(TikaCLI.java:484)
      	at org.apache.tika.cli.TikaCLI.main(TikaCLI.java:139)
      java.lang.NullPointerException
      	at org.apache.tika.parser.journal.GrobidRESTParser.parse(GrobidRESTParser.java:76)
      	at org.apache.tika.parser.journal.JournalParser.parse(JournalParser.java:67)
      	at org.apache.tika.parser.ParserDecorator.parse(ParserDecorator.java:177)
      	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
      	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
      	at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120)
      	at org.apache.tika.parser.RecursiveParserWrapper.parse(RecursiveParserWrapper.java:158)
      	at org.apache.tika.cli.TikaCLI.handleRecursiveJson(TikaCLI.java:504)
      	at org.apache.tika.cli.TikaCLI.process(TikaCLI.java:484)
      	at org.apache.tika.cli.TikaCLI.main(TikaCLI.java:139)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sergey_beryozkin Sergey Beryozkin
                Reporter:
                chrismattmann Chris A. Mattmann
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: