Application Loader - An error occurred on the Apple server while trying to authenticate the package

gak picture gak · Jan 8, 2011 · Viewed 7.1k times · Source

The following message comes up on Application Loader while trying to submit a new binary:

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

I have previously submitted this application to the Mac App Store successfully with the same scripts/settings.

A potential difference I can think of is that I'm now using OS X 10.6.6.

The system log shows more details and a Java exception:

[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 protected] -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 protected]
[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

Any ideas?

Answer

geo picture geo · Feb 11, 2011

Same sort of workaround but I loaded an old version of AppLoader (from a link in the UsingApplicationLoader.pdf - http://itunesconnect.apple.com/apploader/ApplicationLoader_ 1.3.dmg) onto a mac with NO Xcode and it worked fine when my dev' machine with Xcode 3.2.5 and AppLoader 1.4(92) showed the same error as above. I have made no restores or anything special since Decemember (apart from Xcode update).