Skip to main content
Participant
October 6, 2016
Question

Packaging error: Could not generate timestamp

  • October 6, 2016
  • 13 replies
  • 20152 views

I am getting an error while trying to build an AIR for desktop app. The build worked fine on Tuesday, but trying to build again on Wednesday without any project changes gives me the following error:

Packaging failed!

Packaging error:

Could not generate timestamp: Remote host closed connection during handshake

I have verified that the project certificate has not expired. I've tried this via both a wired and wifi connection to our office network, and then over a different network altogether to no avail. Is there an issue with the timestamp server?

This topic has been closed for replies.

13 replies

Participating Frequently
April 25, 2017

Sadly I use use Package Assistant Pro to build my native application release builds so I have no way of excluding the timestamp feature from the release. Previously when I had this issue in the past I upgraded my JRE to version 8 and it solved the issue. Does anyone know if there is a JRE version I can use that will allow me to continue packaging my AIR apps?

RamsesMoreno
Participating Frequently
April 25, 2017

For me, I just unchecked the Timestamp checkbox

Participant
May 11, 2017

I have to admit that I never paid any attention to the "timestamp" checkbox until those timestamp server problems in October 2016 and now in April/May 2017 popped up ;-)  Can you briefly explain how desktop apps differ with and without the "timestamp" checkbox checked? Thanks!

Participant
April 20, 2017

And you don't need to create an AIRI file you just need to change where the timestamp location is: for me it is written in ant.

<target name="AIRDevelopment" description="Create the AIR package" depends="Projectx">

  <exec executable="${AIR_HOME}/bin/adt" failonerror="true" dir="${DEPLOY_DIR}">

  <arg line="-package" />

  <arg line="-storetype pkcs12" />

  <arg line="-keystore ${KEY_HOME}/certificate.p12" />

  <arg line="-storepass 5555" />

  <arg line="-tsa http://sha256timestamp.ws.symantec.com/sha256/timestamp" />

  <arg line="${DEPLOY_DIR}/Projectx.air" />

  <arg line="${SRC_DIR}/Projectx-app.xml" />

  <arg line="Projectx.swf" />

  </exec>

  </target>

Participant
April 21, 2017

Oh, thanks, this - "-tsa http://sha256timestamp.ws.symantec.com/sha256/timestamp" - just saved my day.

using Flash Develop + Java 1.8 and still has error mentioned at this topic///

Participant
April 20, 2017

I am getting this issue using ant scripts in jenkins and using 1.8.0_121-b13 java. I used the java control panel to disabled tls 1.0 and 1.1. I don't think this a java problem, i think it is the timestamp website.

gmarkowski
Participating Frequently
March 29, 2017
Inspiring
April 15, 2017

I'm running Flash Builder 4.6 on Windows 7, and followed the instructions as above, but now get this when trying to package:

Unable to initialize, java.io.IOException: DerInputStream.getLength(): Redundant length bytes found

Ideas?

rogerc96594825
Known Participant
November 10, 2016

Is there a fix for this on Flash CS6

I've updated my version of Java,

java version "1.8.0_111"

Java(TM) SE Runtime Environment (build 1.8.0_111-b14)

Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)

restarted Flash but I still get the same problem.

Do I need to copy one of the Java JAR files somewhere in with the CS6 installation ?

Note. I do have CC2015.2 but I also need to run CS6 on Windows for legacy file format support with contractors.

Participant
October 19, 2016

Ok finally managed to make it work on Flash Builder 64bit on windows 10

1- install Java JDK 1.8

2- Copy the jre folder inside the sdk and replace the jre folder with the copied one inside flash builder installation folder

3- Add this line without the quote "-Djava.util.Arrays.useLegacyMergeSort=true" in the flashbuilder.ini file in the installation directory of flash builder

Now work like a charm to sign application directly in Flash Builder

Participant
October 24, 2016

Thanks a lot, that fixed it for me! On Windows 7 with 32-bit Flash Builder and 32-bit Java SDK (jdk1.8.0_112)

Participant
October 13, 2016

Hi Vivek, any information for who uses Flash Professional CS5?

Thanks

Participant
October 9, 2016

Oops I found out I had accidentally used 32 bit java (so fails to load), so copied correct latest jdk1.8.0_101 into Flashbuilder/jre and found nasty errors in logs.

So tried more elegant solution by setting window/preferences/installed JRE to jdk1.8.0_101 then attempted to re-export my Release AIR file and now have exact some Certificate timeout issue as original error stated above!

It seems FB4.7/64Bit with java 1.8 64bit does not seem to solve the problem.

My current work around is to turn off Timestamp checkbox in Export Release/Certificate and now exports release fine, but will need to find out more about implications of turning timestamp off are!

I am sure this issue can be sorted out better!

Participating Frequently
October 9, 2016

Used 32 bit jre for Flash Builder 4.6

Used 64 bit jre for Flash Builder 4.7

Implemented at 2 different locations and all now work properly

Hope you manage to sort yours out

Would probably be better if Flash Builder used the installed java packages instead of having its own copy, but I guess Adobe are not going to do any changes now.

Participant
October 9, 2016

I also tried this copy jre directory solution, it worked for others but for me when I run Flashbuilder 4.7/64Bit (Windows 10/64) I get:

Failed to load the JNI shred library c:\Program Files\Adobe\Adobe Flash Builder 4.7 (64Bit)\jre\bin\client\jvm.dll

Any ideas why JNI shared library fails to load?

Thanks