Modify

Opened 4 months ago

Closed 4 months ago

#14301 closed defect (othersoftware)

JOSM freeze / opensuse 14.2 / NegativeArraySizeException at sun.security.ec.ECKeyPairGenerator.generateECKeyPair

Reported by: jca@… Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: template_report https ssl javabug nss linux fedora Cc:

Description (last modified by Don-vip)

What steps will reproduce the problem?

  1. Exe the program

What is the expected result?

Program running

What happens instead?

Program freezez

Please provide any additional information below. Attach a screenshot if possible.

jca@opensuse-142:/usr/share/java> java -jar josm-tested.jar
2017-01-27 17:36:17.407 INFO: Log niveau er på INFO (INFO, 800)
2017-01-27 17:36:18.796 INFO: GET https://josm.openstreetmap.de/wiki/Da:StartupPage -> !!!
2017-01-27 17:36:18.797 WARNING: javax.net.ssl.SSLException: java.security.ProviderException: java.lang.NegativeArraySizeException. Årsag: java.security.ProviderException: java.lang.NegativeArraySizeException. Årsag: java.lang.NegativeArraySizeException
javax.net.ssl.SSLException: java.security.ProviderException: java.lang.NegativeArraySizeException
        at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
        at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)
        at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1906)
        at sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1889)
        at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1410)
        at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
        at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)
        at org.openstreetmap.josm.tools.HttpClient.connect(HttpClient.java:124)
        at org.openstreetmap.josm.tools.HttpClient.connect(HttpClient.java:74)
        at org.openstreetmap.josm.tools.WikiReader.readLang(WikiReader.java:100)
        at org.openstreetmap.josm.tools.WikiReader.readLang(WikiReader.java:75)
        at org.openstreetmap.josm.gui.GettingStarted$MotdContent.updateData(GettingStarted.java:88)
        at org.openstreetmap.josm.io.CacheCustomContent.updateForce(CacheCustomContent.java:137)
        at org.openstreetmap.josm.io.CacheCustomContent.updateForceString(CacheCustomContent.java:149)
        at org.openstreetmap.josm.io.CacheCustomContent.updateIfRequiredString(CacheCustomContent.java:127)
        at org.openstreetmap.josm.gui.GettingStarted.lambda$getMOTD$1(GettingStarted.java:143)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.security.ProviderException: java.lang.NegativeArraySizeException
        at sun.security.ec.ECKeyPairGenerator.generateKeyPair(ECKeyPairGenerator.java:147)
        at java.security.KeyPairGenerator$Delegate.generateKeyPair(KeyPairGenerator.java:703)
        at sun.security.ssl.ECDHCrypt.<init>(ECDHCrypt.java:77)
        at sun.security.ssl.ClientHandshaker.serverKeyExchange(ClientHandshaker.java:721)
        at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:281)
        at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
        at sun.security.ssl.Handshaker.process_record(Handshaker.java:914)
        at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)
        at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
        at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
        ... 14 more
Caused by: java.lang.NegativeArraySizeException
        at sun.security.ec.ECKeyPairGenerator.generateECKeyPair(Native Method)
        at sun.security.ec.ECKeyPairGenerator.generateKeyPair(ECKeyPairGenerator.java:128)
        ... 23 more

Attachments (3)

out.txt (27.3 KB) - added by jca@… 4 months ago.
output from console
Screenshot_27.01.2017.png (131.6 KB) - added by jca@… 4 months ago.
screenshot
Screenshot_27.01.2017-1.png (76.0 KB) - added by jca@… 4 months ago.
screenshot

Download all attachments as: .zip

Change History (7)

Changed 4 months ago by jca@…

Attachment: out.txt added

output from console

Changed 4 months ago by jca@…

Attachment: Screenshot_27.01.2017.png added

screenshot

Changed 4 months ago by jca@…

Attachment: Screenshot_27.01.2017-1.png added

screenshot

comment:1 Changed 4 months ago by Don-vip

Description: modified (diff)
Keywords: https ssl javabug added
Summary: JOSM freeze when executed on opensuse 14.2JOSM freeze / opensuse 14.2 / NegativeArraySizeException at sun.security.ec.ECKeyPairGenerator.generateECKeyPair

comment:2 Changed 4 months ago by Don-vip

can you please attach your status report?

comment:3 Changed 4 months ago by Don-vip

Keywords: nss linux fedora added

Also please post the versions of the NSS packages currently installed on your system. Appears to be caused by latest NSS upgrade on Fedora, see https://bugzilla.redhat.com/show_bug.cgi?id=1415137

comment:4 Changed 4 months ago by Don-vip

Resolution: othersoftware
Status: newclosed

Fix seems to have been released in java-1.8.0-openjdk-1.8.0.121-1.b14.fc24 / java-1.8.0-openjdk-1.8.0.121-1.b14.fc25 packages.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.