This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 157444 - Self Signed Jar: keytool error: java.lang.Exception: Key pair not generated
Summary: Self Signed Jar: keytool error: java.lang.Exception: Key pair not generated
Status: RESOLVED WONTFIX
Alias: None
Product: javafx
Classification: Unclassified
Component: Deployment (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Adam Sotona
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-26 14:15 UTC by Alexandr Scherbatiy
Modified: 2011-05-16 13:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2009-01-26 14:15:02 UTC
JavaFX_NB_Plugin_Franca_NB_65_fixes_promoted_SDK_installer: #16 24-Jan-2009 01:21:44

  Product Version         = NetBeans IDE 6.5 (Build 200901231801)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_12-ea; Java HotSpot(TM) Client VM 11.2-b01; Sun Microsystems Inc.


Steps to reproduce:

- Create a JavaFX Script project
- Go to the project properties
- Select Run-> Run in Browser
- Select Application -> Self Signed Jar
- Run the project
- Run the project the send time

There is a message in the output file:

init:
deps-jar:
keytool error: java.lang.Exception: Key pair not generated, alias <key1> already exists
Comment 1 Adam Sotona 2009-01-26 17:02:35 UTC
does it fail ?
Comment 2 Alexandr Scherbatiy 2009-01-27 07:40:24 UTC
No, it does not.


init:
deps-jar:
keytool error: java.lang.Exception: Key pair not generated, alias <key1> already exists

Warning: 
The signer certificate will expire within six months.
compile:
jar:
standard-run:
browser-run:
Browsing:
http://localhost:8082/servlet/org.netbeans.modules.javafx.project.JnlpDownloadServlet/C%3A/Documents+and+Settings/andromeda/My+Documents/NetBeansProjects/temp/07/JavaFXApplication7/dist//JavaFXApplication7.html
jws-run:
midp-run:
run:
BUILD SUCCESSFUL (total time: 2 seconds)
Comment 3 Adam Sotona 2009-01-27 09:32:49 UTC
The message is from the keytool, it is valid as the key already exists and cannot be easily filtered out.
Detection for of the already existing key would require several subsequent executions of the keytool and that would
cause performance regression.
Comment 4 Adam Sotona 2009-10-01 14:29:58 UTC
This is not message from JavaFx Project build system but rather JavaFX Pacakger.
Comment 5 Alexandr Scherbatiy 2009-10-02 12:51:30 UTC
See JIRA issue: keytool error: java.lang.Exception: Key pair not generated, alias <key1> already exists
http://javafx-jira.kenai.com/browse/APP-2674
Comment 6 Alexandr Scherbatiy 2010-02-10 01:33:52 UTC
There is the comment from the JIRA issue APP-2674
http://javafx-jira.kenai.com/browse/APP-2674
-------------------------------------------------------

The bug was not reproducible outside of Netbeans. Further study revealed that this is a bug filed on the Netbeans issue tracker. The URL for the "key-pair" issue is pasted below. 
-------------------------------------------------------
Comment 7 Adam Sotona 2010-02-10 02:57:02 UTC
We are not checking if the keypair already exists. It is pretty complicated to do the check during the build time.

If it does not cause build to fail then it is just annoying message in the log.
Comment 8 David Strupl 2011-05-16 13:49:07 UTC
Closing all bugs filed against JavaFX 1.x as wontfix. We will support JavaFX 2.0 - please keep opened only bugs against the new release. Thanks.