使用QB Java SDK v3写入Quickbooks的神秘失败 [英] Mysterious failure to write to Quickbooks using QB Java SDK v3

查看:243
本文介绍了使用QB Java SDK v3写入Quickbooks的神秘失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Google App Engine编写Web应用程序,并试图使用Quickbooks Java SDK将一些数据保存在Quickbooks中。我收到一个异常,当我尝试添加一个客户时,我一无所知:

  java.util.MissingResourceException:Can '查找捆绑java.util.PropertyResourceBundle的资源,查找java.util.ResourceBundle.getObject的密钥request.source.header 
(ResourceBundle.java:395)$ java.util.ResourceBundle.getString的
( ResourceBundle.java:355)
at com.intuit.ipp.util.PropertyHelper.init(PropertyHelper.java:60)
at com.intuit.ipp.util.PropertyHelper.getInstance(PropertyHelper.java: 44)
at com.intuit.ipp.interceptors.ConnectionInterceptor.populateRequestHeaders(ConnectionInterceptor.java:187)
at com.intuit.ipp.interceptors.ConnectionInterceptor.execute(ConnectionInterceptor.java:137)
at com.intuit.ipp.interceptors.IntuitInterceptorProvider.executeRequestInterceptors(IntuitInterceptorProvider.java:76)
at com.intuit.ipp.interceptors.IntuitInterceptorProvider.executeInterceptors(IntuitInterceptorProvider.java:62)
at com .intuit.ipp .services.DataService.add(DataService.java:108)

这是部署的版本应用程序。当我在自己的机器上本地运行应用程序时,异常会有所不同:

  java.lang.NullPointerException 
at com .intuit.ipp.interceptors.ConnectionInterceptor.getRetryHandler(ConnectionInterceptor.java:212)
at com.intuit.ipp.interceptors.ConnectionInterceptor.execute(ConnectionInterceptor.java:85)
at com.intuit.ipp .interceptors.IntuitInterceptorProvider.executeRequestInterceptors(IntuitInterceptorProvider.java:76)
at com.intuit.ipp.interceptors.IntuitInterceptorProvider.executeInterceptors(IntuitInterceptorProvider.java:62)
at com.intuit.ipp.services.DataService .add(DataService.java:108)

我还没有发现任何有类似问题的人。请注意,这整件事情都是使用QB SDK v2,没有发生任何异常。



那么,有没有人对我的问题的本质有任何明智的想法?



编辑:我也包含QBHelper JAR,现在问题似乎是com.intuit.ipp.exceptions.FMSException找不到。我正在看它!它在构建路径中。

解决方案

当您在同一个项目中添加多个版本的java devkit时,通常会出现此问题。 [就我而言,我在同一个项目中添加了v2和v3 devkit jar。我只能在v2之前的classpath中添加v3 jar]



请仅使用ipp-java-devkit-2.0.11-jar-with-dependencies.jar [请下载来自docs网站的最新版本。 ]



谢谢

I'm writing a web application using the Google App Engine, and I'm attempting to save some data in Quickbooks, using the Quickbooks Java SDK. I'm getting an exception that I know nothing about when I try to add a customer:

java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key request.source.header
at java.util.ResourceBundle.getObject(ResourceBundle.java:395)
at java.util.ResourceBundle.getString(ResourceBundle.java:355)
at com.intuit.ipp.util.PropertyHelper.init(PropertyHelper.java:60)
at com.intuit.ipp.util.PropertyHelper.getInstance(PropertyHelper.java:44)
at com.intuit.ipp.interceptors.ConnectionInterceptor.populateRequestHeaders(ConnectionInterceptor.java:187)
at com.intuit.ipp.interceptors.ConnectionInterceptor.execute(ConnectionInterceptor.java:137)
at com.intuit.ipp.interceptors.IntuitInterceptorProvider.executeRequestInterceptors(IntuitInterceptorProvider.java:76)
at com.intuit.ipp.interceptors.IntuitInterceptorProvider.executeInterceptors(IntuitInterceptorProvider.java:62)
at com.intuit.ipp.services.DataService.add(DataService.java:108)

This is on the deployed version of the app. When I run the app locally on my own machine, the exception differs:

java.lang.NullPointerException
at com.intuit.ipp.interceptors.ConnectionInterceptor.getRetryHandler(ConnectionInterceptor.java:212)
at com.intuit.ipp.interceptors.ConnectionInterceptor.execute(ConnectionInterceptor.java:85)
at com.intuit.ipp.interceptors.IntuitInterceptorProvider.executeRequestInterceptors(IntuitInterceptorProvider.java:76)
at com.intuit.ipp.interceptors.IntuitInterceptorProvider.executeInterceptors(IntuitInterceptorProvider.java:62)
at com.intuit.ipp.services.DataService.add(DataService.java:108)

I haven't found anyone having similar problems. Mind you, this whole thing worked using QB SDK v2, no exceptions thrown.

So, does anyone have any bright ideas about the nature of my problem?

Edit: I included the QBHelper JAR as well, and now the issue seems to be that com.intuit.ipp.exceptions.FMSException can't be found. I'm looking right at it! It's in the build path.

解决方案

This issue generally comes when you have multiple versions of java devkit added in the same project. [ In my case, I had added v2 and v3 devkit jars in the same project. I had to add v3 jar before v2 in the classpath ]

Please use only ipp-java-devkit-2.0.11-jar-with-dependencies.jar [ Please download the latest version from docs site. ]

Thanks

这篇关于使用QB Java SDK v3写入Quickbooks的神秘失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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