Grails:HTTPBuilder突然停止工作 [英] Grails: HTTPBuilder stopped working suddenly

查看:108
本文介绍了Grails:HTTPBuilder突然停止工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

没有升级任何东西,什么都没有改变,但是我可能在这里描述一个愚蠢的问题: Grails:刷新依赖项

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

当我尝试使用HTTPBuilder时,会出现此错误

HTTPBuilder now gives this error when I try to

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

更新:我之前有一个错误,这是我在bootstrap.groovy中调用上面的代码时遇到的错误.

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

推荐答案

删除了为解决依赖关系而粗心添加的jar.就是jaxb之类的东西.

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

这篇关于Grails:HTTPBuilder突然停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆