Cannot upload build to appstore - Process is halted by java NullReferenceException

Hello there!

I am trying to upload an .ipa to AppCenter, but every time the process is interrupted. In particular:
  • On XCode (version 11.6) the process of uploading starts normally, but then an error pops up, saying that there was an error uploading the file

  • Using Tranporter (version 1.1.1) the process gets interrupted by an error, with the following log:

Error: [2020-08-17 14:52:06 CEST] <main> INFO: ParseError at [row,col]:[1,1]
Message: Unexpected end of file. Exception's name: javax.xml.stream.XMLStreamException, Exception's message: ParseError at [row,col]:[1,1]
Message: Unexpected end of file.
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.apple.transporter.launcher.Application.start(Application.java:220)
at com.apple.transporter.launcher.Application.main(Application.java:658)
Caused by: java.lang.NullPointerException
at java.io.File.<init>(File.java:360)
at com.apple.transporter.misc.RemoteBundleRepository.downloadResource(RemoteBundleRepository.java:153)
at com.apple.transporter.bootstrap.BootstrapperPhase1.downloadNeededBundles(BootstrapperPhase1.java:267)
at com.apple.transporter.bootstrap.BootstrapperPhase1.bootstrap(BootstrapperPhase1.java:97)
at com.apple.transporter.bootstrap.BootstrapperPhase1.bootstrap(BootstrapperPhase1.java:59)
at com.apple.transporter.launcher.Launcher.launchBootstrapper(Launcher.java:37)
... 6 more

  • Using altool, the same error as above appears in the console

  • using fastlane, when executing the uploadtoappcenter phase of the lane, the same error as above appears in the console

I already tried the following things:
  • renaming the .itmstransporter folder

  • reinstalling java

  • reinstalling xcode

  • running xcrun altool with the -verbose flag. It showed that the path of the iTMSTranporter executable is in /Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/Versions/A/itms/bin/iTMSTransporter. Running that tool directly in the terminal produces the same errror as above

  • running the iTMSTransporter tool in the /Applications/Transporter.app/Contents/itms/bin/iTMSTransporter path produces the same error as above

  • checking the permissions on my developer account

Weirdly enough, if I give the app file to my colleague, he is able to upload it without problems, so the cause must be in my machine, non in the app itself.

Any pointers to the root cause of this? Or a possible solution?

My machine is an 2017 iMac with Catalina 10.15.6, Xcode is updated to the last version (11.6), and the Xcode build tools are installed.

Thanks :)





Answered by Paoulus in 628676022
Nevermind, I found a solution. I deleted the folder in ~/Library/Caches/com.apple.amp.itmstransporter. The Default.properties file was corrupted, so when Transporter tried to read it, it crashed. Now is fixes, but I would like if Transported had a better way to handle those situations instead of returning a NullPointerException....
Accepted Answer
Nevermind, I found a solution. I deleted the folder in ~/Library/Caches/com.apple.amp.itmstransporter. The Default.properties file was corrupted, so when Transporter tried to read it, it crashed. Now is fixes, but I would like if Transported had a better way to handle those situations instead of returning a NullPointerException....
Cannot upload build to appstore - Process is halted by java NullReferenceException
 
 
Q