Grails: HTTPBuilder stopped working suddenly

回眸只為那壹抹淺笑 提交于 2019-12-12 02:57:57

问题


Did not upgrade anything, nothing should have changed, but I may have a silly problem I describe here: Grails: refresh dependencies

HTTPBuilder now gives this error when I try to

def http = new HTTPBuilder( 'http://google.com/' )

UPDATE: I had the wrong error before, this is the error I'm getting when calling that code above in bootstrap.groovy.

| Error 2012-03-25 22:50:03,433 [Thread-11] ERROR context.GrailsContextLoader  - Error executing bootstraps: java.lang.NoSuchMethodError: org.apache.xml.resolver.CatalogManager.setIgnoreMissingProperties(Z)V
Message: java.lang.NoSuchMethodError: org.apache.xml.resolver.CatalogManager.setIgnoreMissingProperties(Z)V
Line | Method
->>  290 | evaluateEnvironmentSpecificBlock in grails.util.Environment
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    283 | executeForEnvironment            in     ''
|    259 | executeForCurrentEnvironment . . in     ''
|    334 | innerRun                         in java.util.concurrent.FutureTask$Sync
|    166 | run . . . . . . . . . . . . . .  in java.util.concurrent.FutureTask
|   1110 | runWorker                        in java.util.concurrent.ThreadPoolExecutor
|    603 | run . . . . . . . . . . . . . .  in java.util.concurrent.ThreadPoolExecutor$Worker
^    722 | run                              in java.lang.Thread

Caused by NoSuchMethodError: org.apache.xml.resolver.CatalogManager.setIgnoreMissingProperties(Z)V
->>  107 | <clinit>                         in groovyx.net.http.ParserRegistr
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    182 | <init>                           in groovyx.net.http.HTTPBuilder
|    204 | <init> . . . . . . . . . . . . . in     ''
|     15 | determineConversionFactor        in myproject.AskGoogle
|     14 | doCall . . . . . . . . . . . . . in BootStrap$_closure1
|    290 | evaluateEnvironmentSpecificBlock in grails.util.Environment
|    283 | executeForEnvironment . . . . .  in     ''
|    259 | executeForCurrentEnvironment     in     ''
|    334 | innerRun . . . . . . . . . . . . in java.util.concurrent.FutureTask$Sync
|    166 | run                              in java.util.concurrent.FutureTask
|   1110 | runWorker . . . . . . . . . . .  in java.util.concurrent.ThreadPoolExecutor
|    603 | run                              in java.util.concurrent.ThreadPoolExecutor$Worker
^    722 | run . . . . . . . . . . . . . .  in java.lang.Thread

回答1:


Removed a jar that was carelessly added to fix dependencies. It was jaxb-something.



来源:https://stackoverflow.com/questions/9797692/grails-httpbuilder-stopped-working-suddenly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!