apns服务问题
我在我的应用程序中使用 apns 插件,它运行良好,但是当生成一个 war 文件并在我的 QA 环境中发布时,我收到以下错误“
org.springframework.beans.factory.BeanCreationException:创建 bean 时出错名称为“apnsService”:bean 初始化失败;嵌套异常为 org.springframework.beans.ConversionNotSupportedException:无法将“groovy.util.ConfigObject”类型的属性值转换为属性“password”所需的类型“java.lang.String” '; 嵌套异常是 java.lang.IllegalStateException:无法将属性“password”的类型 [groovy.util.ConfigObject] 的值转换为所需类型 [java.lang.String]:找不到匹配的编辑器或转换策略
我不知道发生了什么事?!
干杯!
I am using the apns plugin in my app, it is running fine, but when a generate a war file and publish in my QA env, I`m getting the follow error"
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'apnsService': Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'groovy.util.ConfigObject' to required type 'java.lang.String' for property 'password'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [groovy.util.ConfigObject] to required type [java.lang.String] for property 'password': no matching editors or conversion strategy found
I have NO idea what is going on?! any idea?!
cheers!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看来您没有按照插件文档中的描述配置密码和其他必需属性: http://grails.org /plugin/apns
当从配置中检索到缺少的属性时,就会发生该错误。由于它是一个
ConfigObject
,缺少的属性会返回一个新的ConfigObject
。这是为了支持语法config.foo.bar.baz = 'wahoo'
- 每个点属性访问都会访问现有的ConfigObject
或创建并存储一个新的(如果不存在) 't。Looks like you didn't configure the password and other required attributes as described in the plugin docs: http://grails.org/plugin/apns
That error will happen when a missing attribute is retrieved from the config. Since it's a
ConfigObject
, missing attributes return a newConfigObject
. This is to support the syntaxconfig.foo.bar.baz = 'wahoo'
- each dotted property access accesses the existingConfigObject
or creates and stores a new one if it doesn't.