Modify

Opened 4 years ago

Closed 3 years ago

#19844 closed defect (worksforme)

macOS - SecurityException: The jurisdiction policy files are not signed by the expected signer

Reported by: Alf Owned by: Stereo
Priority: normal Milestone:
Component: Core Version:
Keywords: macosx security jurisdiction policy signature Cc: Stereo, Alf

Description

URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-09-06 16:54:59 +0200 (Sun, 06 Sep 2020)
Build-Date:2020-09-07 01:30:48
Revision:17013
Relative:URL: ^/trunk

Identification: JOSM/1.5 (17013 en_AU) Mac OS X 10.13.6
OS Build number: Mac OS X 10.13.6 (17G9016)
Memory Usage: 245 MB / 1820 MB (212 MB allocated, but free)
Java version: 1.8.0_261-b12, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Look and Feel: com.apple.laf.AquaLookAndFeel
Screen: Display 69973580 2560x1440 (scaling 1.0x1.0)
Maximum Screen Size: 2560x1440
Best cursor sizes: 16x16 -> 16x16, 32x32 -> 32x32
VM arguments: [-Djava.library.path=/Applications/JOSM.app/Contents/MacOS, -DLibraryDirectory=${HOME}/Library, -DDocumentsDirectory=${HOME}/Documents, -DApplicationSupportDirectory=${HOME}/Library/Application Support, -DCachesDirectory=${HOME}/Library/Caches, -DApplicationDirectory=${HOME}/Applications, -DAutosavedInformationDirectory=${HOME}/Library/Autosave Information, -DDesktopDirectory=${HOME}/Desktop, -DDownloadsDirectory=${HOME}/Downloads, -DMoviesDirectory=${HOME}/Movies, -DMusicDirectory=${HOME}/Music, -DPicturesDirectory=${HOME}/Pictures, -DSharedPublicDirectory=${HOME}/Public, -DSystemLibraryDirectory=/Library, -DSystemApplicationSupportDirectory=/Library/Application Support, -DSystemCachesDirectory=/Library/Caches, -DSystemApplicationDirectory=/Applications, -DSystemUserDirectory=/Users, -DUserHome=${HOME}, -DSandboxEnabled=true, -DLaunchModifierFlags=1048576, -DLaunchModifierFlagCapsLock=false, -DLaunchModifierFlagShift=false, -DLaunchModifierFlagControl=false, -DLaunchModifierFlagOption=false, -DLaunchModifierFlagCommand=true, -DLaunchModifierFlagNumericPad=false, -DLaunchModifierFlagHelp=false, -DLaunchModifierFlagFunction=false, -Dapple.laf.useScreenMenuBar=true, -Dcom.apple.macos.use-file-dialog-packages=true, -Dcom.apple.macos.useScreenMenuBar=true, -Dcom.apple.mrj.application.apple.menu.about.name=JOSM, -Dcom.apple.smallTabs=true]

Plugins:
+ InfoMode
+ PicLayer
+ SimplifyArea
+ apache-commons
+ buildings_tools
+ ejml
+ geotools
+ importvec
+ jaxb
+ jts
+ measurement
+ opendata
+ print
+ splinex
+ terracer
+ undelete
+ utilsplugin2
+ wms-turbo-challenge2

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/AddressValidator&zip=1
- https://github.com/bastik/mapcss-tools/raw/osm/mapnik2mapcss/osm-results/mapnik.zip

Last errors/warnings:
- 00003.220 E: Handled by bug report queue: java.lang.ExceptionInInitializerError. Cause: java.lang.SecurityException: Can not initialize cryptographic mechanism. Cause: java.lang.SecurityException: The jurisdiction policy files are not signed by the expected signer! (Policy files are specific per major JDK release.Ensure the correct version is installed.)


=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: main (1)
java.lang.ExceptionInInitializerError
	at javax.crypto.Cipher.getInstance(Cipher.java:518)
	at sun.security.ssl.JsseJce.getCipher(JsseJce.java:189)
	at sun.security.ssl.SSLCipher.isTransformationAvailable(SSLCipher.java:483)
	at sun.security.ssl.SSLCipher.<init>(SSLCipher.java:472)
	at sun.security.ssl.SSLCipher.<clinit>(SSLCipher.java:81)
	at sun.security.ssl.CipherSuite.<clinit>(CipherSuite.java:67)
	at sun.security.ssl.SSLContextImpl.getApplicableSupportedCipherSuites(SSLContextImpl.java:345)
	at sun.security.ssl.SSLContextImpl.access$100(SSLContextImpl.java:46)
	at sun.security.ssl.SSLContextImpl$AbstractTLSContext.<clinit>(SSLContextImpl.java:577)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at java.security.Provider$Service.getImplClass(Provider.java:1701)
	at java.security.Provider$Service.newInstance(Provider.java:1659)
	at sun.security.jca.GetInstance.getInstance(GetInstance.java:236)
	at sun.security.jca.GetInstance.getInstance(GetInstance.java:164)
	at javax.net.ssl.SSLContext.getInstance(SSLContext.java:156)
	at org.openstreetmap.josm.io.CertificateAmendment.addMissingCertificates(CertificateAmendment.java:252)
	at org.openstreetmap.josm.gui.MainApplication.mainJOSM(MainApplication.java:846)
	at org.openstreetmap.josm.gui.MainApplication$3.processArguments(MainApplication.java:277)
	at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:714)
Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism
	at javax.crypto.JceSecurity.<clinit>(JceSecurity.java:93)
	... 20 more
Caused by: java.lang.SecurityException: The jurisdiction policy files are not signed by the expected signer! (Policy files are specific per major JDK release.Ensure the correct version is installed.)
	at javax.crypto.JarVerifier.verifyPolicySigned(JarVerifier.java:336)
	at javax.crypto.JceSecurity.loadPolicies(JceSecurity.java:378)
	at javax.crypto.JceSecurity.setupJurisdictionPolicies(JceSecurity.java:323)
	at javax.crypto.JceSecurity.access$000(JceSecurity.java:50)
	at javax.crypto.JceSecurity$1.run(JceSecurity.java:85)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.crypto.JceSecurity.<clinit>(JceSecurity.java:82)
	... 20 more

Attachments (0)

Change History (15)

comment:1 by Don-vip, 4 years ago

Cc: Stereo added
Keywords: macosx added
Summary: This shit has been happening since I updated Java on my MacmacOS - SecurityException: The jurisdiction policy files are not signed by the expected signer

@Stereo, any idea what's going on here?

comment:2 by Don-vip, 4 years ago

In 17079/josm:

see #19844 - don't let certificate amendment errors prevent JOSM to start

comment:3 by Don-vip, 4 years ago

Keywords: security jurisdiction policy signature added

comment:4 by Stereo, 4 years ago

@Alf can you please try the beta build at https://github.com/thomersch/josm/suites/1273850788/artifacts/19650389 and see if it works?

@Don-vip no idea!

comment:5 by skyper, 4 years ago

Ticket #19882 has been marked as a duplicate of this ticket.

in reply to:  4 comment:6 by skyper, 4 years ago

Replying to Stereo:

@Alf can you please try the beta build at https://github.com/thomersch/josm/suites/1273850788/artifacts/19650389 and see if it works?

"File not found".

comment:7 by Stereo, 4 years ago

Yeah, those links expire after a bit. Try the link where it says "JOSM.app revision 17084" at https://github.com/thomersch/josm/actions/runs/289727349

comment:8 by Don-vip, 4 years ago

Owner: changed from team to Alf
Status: newneedinfo

Can you please try with Java 15?

comment:9 by simon04, 4 years ago

Ticket #19927 has been marked as a duplicate of this ticket.

comment:10 by simon04, 4 years ago

Cc: Alf added

comment:11 by Stereo, 4 years ago

Owner: changed from Alf to Stereo
Status: needinfonew

comment:12 by Stereo, 4 years ago

You can try the new pre-releases at https://github.com/thomersch/josm/releases

comment:13 by Stereo, 4 years ago

Status: newassigned

comment:14 by Stereo, 4 years ago

Please test the official macOS pre-releases at https://github.com/openstreetmap/josm/releases.

comment:15 by Stereo, 3 years ago

Resolution: worksforme
Status: assignedclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Stereo.
as The resolution will be set.
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.