尝试提交新二进制文件时,Application Loader会显示以下消息:
尝试对软件包进行身份验证时,Apple服务器上发生错误:411594302.itmsp
发生了异常:调用操作时出错:
java.lang.ClassCastException:org.apache.axis.attachments.AttachmentsImpl无法强制转换为org.apache.axis.attachments.Attachments:尝试调用操作的异常:validateMetadata
无法连接到Apple的网络服务。
无法验证包:411594302.itmsp
我之前已使用相同的脚本/设置成功将此应用程序提交到Mac App Store。
我能想到的一个潜在差异是我现在正在使用OS X 10.6.6。
系统日志显示更多详细信息和Java异常:
[2011-01-08 11:54:07 EST] <main> DBG-X: Using authenticate operation named: validateMetadata
[2011-01-08 11:54:07 EST] <main> DBG-X: Apple's web service operation input parameters:
[2011-01-08 11:54:07 EST] <main> DBG-X: parameter Application = iTMSTransporter
[2011-01-08 11:54:07 EST] <main> DBG-X: parameter Client = Application Loader
[2011-01-08 11:54:07 EST] <main> DBG-X: parameter ClientVersion = 1.4 (92)
[2011-01-08 11:54:07 EST] <main> DBG-X: parameter Files = [Gravit.pkg, metadata.xml]
[2011-01-08 11:54:07 EST] <main> DBG-X: parameter Host = (null)
[2011-01-08 11:54:07 EST] <main> DBG-X: parameter Metadata = <?xml version="1.0" encoding="UTF-8"?>
<package version="software4.5" xmlns="http://apple.com/itunes/importer">
<software_assets apple_id="411594302">
<asset type="product-archive">
<data_file>
<file_name>Gravit.pkg</file_name>
<checksum type="md5">7948b5357d8730219fe277e2c145d642</checksum>
<size>1372906</size>
</data_file>
</asset>
</software_assets>
</package>
[2011-01-08 11:54:07 EST] <main> DBG-X: parameter MetadataChecksum = dcd612c7eb2258071d0a690f8c3a420a
[2011-01-08 11:54:07 EST] <main> DBG-X: parameter MetadataCompressed = (suppressed)
[2011-01-08 11:54:07 EST] <main> DBG-X: parameter Mount = (null)
[2011-01-08 11:54:07 EST] <main> DBG-X: parameter OSIdentifier = Mac OS X 10.6.6 (x86_64); jvm=17.1-b03-307; jre=1.6.0_22-b04-307-10M3261
[2011-01-08 11:54:07 EST] <main> DBG-X: parameter PackageName = 411594302.itmsp
[2011-01-08 11:54:07 EST] <main> DBG-X: parameter PackageSize = 1373368
[2011-01-08 11:54:07 EST] <main> DBG-X: parameter Password = **hidden value**
[2011-01-08 11:54:07 EST] <main> DBG-X: parameter Pod = (null)
[2011-01-08 11:54:07 EST] <main> DBG-X: parameter ProviderName = (null)
[2011-01-08 11:54:07 EST] <main> DBG-X: parameter Transport = Signiant
[2011-01-08 11:54:07 EST] <main> DBG-X: parameter UploadArguments = -m upload -u email@removed.com -p **hidden value** -f /var/folders/ah/ahoYZjqcEYyNBgIq0+5SGU+++TI/-Tmp-/411594302.itmsp -checksumValidation false -indicator true -v eXtreme -Dtransporter.client=Application Loader -Dtransporter.client.version=1.4 (92)
[2011-01-08 11:54:07 EST] <main> DBG-X: parameter Username = email@removed.com
[2011-01-08 11:54:07 EST] <main> DBG-X: parameter Version = 1.6.5
[2011-01-08 11:54:07 EST] <main> ERROR: An error occurred on the Apple server while trying to authenticate the package: 411594302.itmsp
[2011-01-08 11:54:07 EST] <main> ERROR: An exception has occurred: Error invoking operation:
java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl cannot be cast to org.apache.axis.attachments.Attachments: Exception trying to invoke operation: validateMetadata
[2011-01-08 11:54:07 EST] <main> DEBUG: com.webobjects.foundation.NSForwardException for AxisFault
faultCode: {http://xml.apache.org/axis/}Server.generalException
faultString: Error invoking operation:
java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl cannot be cast to org.apache.axis.attachments.Attachments
faultActor: null
faultDetail:
stackTrace: AxisFault
faultCode: {http://xml.apache.org/axis/}Server.generalException
faultString: Error invoking operation:
java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl cannot be cast to org.apache.axis.attachments.Attachments
faultActor: null
faultDetail:
Error invoking operation:
java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl cannot be cast to org.apache.axis.attachments.Attachments
at org.apache.axis.client.Call.invoke(Call.java:1329)
at com.apple.transporter.webobjects.webservices.client.WOWebServiceClient.invoke(WOWebServiceClient.java:498)
at com.apple.transporter.SOAPService.authenticateOperation(SOAPService.java:273)
at com.apple.transporter.SOAPService.authenticateOperation(SOAPService.java:164)
at com.apple.transporter.operation.Upload$1.invoke(Upload.java:487)
at com.apple.transporter.operation.Upload$1.invoke(Upload.java:485)
at com.apple.transporter.SOAPServiceInvoker.invokeWithRetry(SOAPServiceInvoker.java:28)
at com.apple.transporter.operation.Upload.performAuthenticateOperationForUpload(Upload.java:485)
at com.apple.transporter.operation.Upload.performUploadRequestForPackageFile(Upload.java:341)
at com.apple.transporter.operation.Upload.performUploadRequest(Upload.java:211)
at com.apple.transporter.operation.Upload.performUploadRequest(Upload.java:114)
at com.apple.transporter.operation.Upload.execute(Upload.java:1464)
at com.apple.transporter.Application.begin(Application.java:147)
at com.apple.transporter.osgi.TransporterService.run(TransporterService.java:46)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.apple.transporter.osgi.OSGiBootstrapper.runTransporter(OSGiBootstrapper.java:270)
at com.apple.transporter.osgi.OSGiBootstrapper.bootstrap(OSGiBootstrapper.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.apple.transporter.FrameworkLoader.start(FrameworkLoader.java:98)
at com.apple.transporter.Application.main(Application.java:71)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:71)
Error invoking operation:
java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl cannot be cast to org.apache.axis.attachments.Attachments
at org.apache.axis.client.Call.invoke(Call.java:1329)
at com.apple.transporter.webobjects.webservices.client.WOWebServiceClient.invoke(WOWebServiceClient.java:498)
at com.apple.transporter.SOAPService.authenticateOperation(SOAPService.java:273)
at com.apple.transporter.SOAPService.authenticateOperation(SOAPService.java:164)
at com.apple.transporter.operation.Upload$1.invoke(Upload.java:487)
at com.apple.transporter.operation.Upload$1.invoke(Upload.java:485)
at com.apple.transporter.SOAPServiceInvoker.invokeWithRetry(SOAPServiceInvoker.java:28)
at com.apple.transporter.operation.Upload.performAuthenticateOperationForUpload(Upload.java:485)
at com.apple.transporter.operation.Upload.performUploadRequestForPackageFile(Upload.java:341)
at com.apple.transporter.operation.Upload.performUploadRequest(Upload.java:211)
at com.apple.transporter.operation.Upload.performUploadRequest(Upload.java:114)
at com.apple.transporter.operation.Upload.execute(Upload.java:1464)
at com.apple.transporter.Application.begin(Application.java:147)
at com.apple.transporter.osgi.TransporterService.run(TransporterService.java:46)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.apple.transporter.osgi.OSGiBootstrapper.runTransporter(OSGiBootstrapper.java:270)
at com.apple.transporter.osgi.OSGiBootstrapper.bootstrap(OSGiBootstrapper.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.apple.transporter.FrameworkLoader.start(FrameworkLoader.java:98)
at com.apple.transporter.Application.main(Application.java:71)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:71)
[2011-01-08 11:54:07 EST] <main> ERROR: Could not connect to Apple's web service.
[2011-01-08 11:54:07 EST] <main> ERROR: Unable to authenticate the package: 411594302.itmsp
[2011-01-08 11:54:07 EST] <main> INFO: Done performing authentication.
[2011-01-08 11:54:07 EST] <main> DBG-X: Returning 1
Jan 8 11:54:07 raptop Application Loader[25059]: Out:
Package Summary:
1 package(s) were not uploaded because they had problems:
/var/folders/ah/ahoYZjqcEYyNBgIq0+5SGU+++TI/-Tmp-/411594302.itmsp - Error Messages:
An error occurred on the Apple server while trying to authenticate the package: 411594302.itmsp
An exception has occurred: Error invoking operation:
java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl cannot be cast to org.apache.axis.attachments.Attachments: Exception trying to invoke operation: validateMetadata
Could not connect to Apple's web service.
Unable to authenticate the package: 411594302.itmsp
有什么想法吗?
答案 0 :(得分:3)
同样的解决方法,但我加载了旧版本的AppLoader(来自UsingApplicationLoader.pdf中的链接 - http://itunesconnect.apple.com/apploader/ApplicationLoader_ 1.3.dmg)到没有Xcode的Mac上,当我的开发机器与Xcode 3.2.5和AppLoader 1.4(92)显示与上面相同的错误时,它工作正常。自Decemember之后我没有恢复或任何特殊的东西(除了Xcode更新)。
答案 1 :(得分:2)
通过从Xcode 4.4安装命令行工具然后再次尝试来管理解决此问题。
我首先安装了Xcode 4.5 beta的命令行工具,似乎Application Loader以及Xcode使用最后安装的命令行工具。因此,如果您将测试版与命令行工具结合使用,官方Xcode仍将使用beta命令行工具,这将导致无法上传二进制文件。
结论:安装最新的官方命令行工具(通过Xcode&gt; Preferences&gt; Downloads&gt; Components&gt; Command Line Tools)再试一次。
答案 2 :(得分:0)
这可能不是“正确”的答案,但这是一个有效的答案......我在以下情况下成功克服了这个问题......
使用XCode 3.2.5在我的MacBook Pro上照常构建和存档我的应用程序。 将该存档(在Organizer实用程序中)保存到我的桌面 将该存档复制到安装了XCode 3.2.4的Mac Mini。 在Mac Mini上,我使用Application Loader(版本1.3.1)成功提交存档。
我不知道我的MacBook上的3.2.5安装有什么改变或有什么问题,我正在下载一个新的dmg来重新安装它,但至少,在不同的机器上稍微旧的Application Loader工作得很好。
答案 3 :(得分:0)
与@Greg Comb上面的经验类似,我设法使用相同版本的Application Loader上传完全相同的存档但是在不同的机器上?
如果您尝试通过管理器提交相同的错误,则其他人想知道同样的错误。
[编辑说两台机器上的AppLoader版本是1.4(92)]