Grails:HTTPBuilder突然停止工作

时间:2012-03-21 02:05:01

标签: grails httpbuilder

没有升级任何东西,没有什么应该改变,但我可能有一个我在这里描述的愚蠢问题: Grails: refresh dependencies

当我尝试

时,HTTPBuilder现在会出现此错误
def http = new HTTPBuilder( 'http://google.com/' )

更新:我之前有错误的错误,这是我在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 个答案:

答案 0 :(得分:0)

删除了一个不小心添加以修复依赖项的jar。这是jaxb-something。