Skip to main content
Participant
Oct 6, 2016 3:55 PM UTC
Question

Packaging error: Could not generate timestamp

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 is closed to new replies. Start a new post to keep the conversation going.

48 replies

Participating Frequently
Apr 25, 2017 10:25 PM UTC

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?

Translate
RamsesMoreno
Participating Frequently
Apr 25, 2017 5:01 PM UTC

For me, I just unchecked the Timestamp checkbox

Translate
Participant
May 11, 2017 2:18 PM UTC

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!

Translate
Participant
Apr 20, 2017 10:28 PM UTC

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>

Translate
Participant
Apr 21, 2017 7:08 AM UTC

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///

Translate
Participant
Apr 20, 2017 9:25 PM UTC

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.

Translate
gmarkowski
Participating Frequently
Mar 29, 2017 12:36 PM UTC
Inspiring
Apr 15, 2017 3:48 PM UTC

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?

Translate
rogerc96594825
Known Participant
Nov 10, 2016 5:05 AM UTC

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.

Translate
Participant
Oct 19, 2016 3:15 PM UTC

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

Translate
Participant
Oct 24, 2016 8:21 AM UTC

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)

Translate
Participant
Oct 13, 2016 5:10 PM UTC

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

Thanks

Translate
Participant
Oct 9, 2016 1:47 PM UTC

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!

Translate
Participating Frequently
Oct 9, 2016 5:01 PM UTC

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.

Translate
Participant
Oct 9, 2016 12:09 PM UTC

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

Translate