为什么执行激活器给出ExceptionInInitializerError引起的:java.security.NoSuchAlgorithmException:SHA1 MessageDigest不可用? [英] Why does executing activator give ExceptionInInitializerError caused by: java.security.NoSuchAlgorithmException: SHA1 MessageDigest not available?

查看:791
本文介绍了为什么执行激活器给出ExceptionInInitializerError引起的:java.security.NoSuchAlgorithmException:SHA1 MessageDigest不可用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

执行启动器 > Typesafe Activator 1.2.12 在Windows上使用Java 8我遇到以下异常:

Upon executing activator from Typesafe Activator 1.2.12 on cygwin on Windows with Java 8 I'm getting the following exception:

java.lang.ExceptionInInitializerError                                                                                                                         
        at xsbt.boot.Update.settings$lzycompute(Update.scala:79)                                                                                              
        at xsbt.boot.Update.settings(Update.scala:74)                                                                                                         
        at xsbt.boot.Update.ivyLockFile$lzycompute(Update.scala:96)                                                                                           
        at xsbt.boot.Update.apply(Update.scala:103)                                                                                                           
        at xsbt.boot.Launch.update(Launch.scala:355)                                                                                                          
        at xsbt.boot.Launch.xsbt$boot$Launch$$retrieve$1(Launch.scala:210)                                                                                    
        at xsbt.boot.Launch$$anonfun$3.apply(Launch.scala:218)                                                                                                
        at scala.Option.getOrElse(Option.scala:120)                                                                                                           
        at xsbt.boot.Launch.xsbt$boot$Launch$$getAppProvider0(Launch.scala:218)                                                                               
        at xsbt.boot.Launch$$anon$2.call(Launch.scala:198)                                                                                                    
        at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:98)                                                                                           
        at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:81)                                                        
        at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:102)                                                                          
        at xsbt.boot.Using$.withResource(Using.scala:11)                                                                                                      
        at xsbt.boot.Using$.apply(Using.scala:10)                                                                                                             
        at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:62)                                                                                 
        at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:52)                                                                                                
        at xsbt.boot.Locks$.apply0(Locks.scala:31)                                                                                                            
        at xsbt.boot.Locks$.apply(Locks.scala:28)                                                                                                             
        at xsbt.boot.Launch.locked(Launch.scala:240)                                                                                                          
        at xsbt.boot.Launch.app(Launch.scala:149)                                                                                                             
        at xsbt.boot.Launch.app(Launch.scala:147)                                                                                                             
        at xsbt.boot.Launch$.run(Launch.scala:102)                                                                                                            
        at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:36)                                                                                           
        at xsbt.boot.Launch$.launch(Launch.scala:117)                                                                                                         
        at xsbt.boot.Launch$.apply(Launch.scala:19)                                                                                                           
        at xsbt.boot.Boot$.runImpl(Boot.scala:44)                                                                                                             
        at xsbt.boot.Boot$.main(Boot.scala:20)                                                                                                                
        at xsbt.boot.Boot.main(Boot.scala)                                                                                                                    
Caused by: java.lang.RuntimeException: The SHA1 algorithm is not available in your classpath                                                                  
        at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.<clinit>(DefaultRepositoryCacheManager.java:86)                                            
        ... 29 more                                                                                                                                           
Caused by: java.security.NoSuchAlgorithmException: SHA1 MessageDigest not available                                                                           
        at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)                                                                                     
        at java.security.Security.getImpl(Security.java:695)                                                                                                  
        at java.security.MessageDigest.getInstance(MessageDigest.java:159)                                                                                    
        at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.<clinit>(DefaultRepositoryCacheManager.java:84)                                            
        ... 29 more                                                                                                                                           
Error during sbt execution: java.lang.ExceptionInInitializerError 

sbt

解决方案是什么?

推荐答案

类似的错误有一天,在我的情况下,我不得不手工解开一些Java *。pack 文件。

I had similar error one day and in my case I had to unpack some Java *.pack files by hand.

$ find . -type f -name '*.pack'  
./jre/lib/charsets.pack          
./jre/lib/deploy.pack            
./jre/lib/ext/jfxrt.pack         
./jre/lib/ext/localedata.pack    
./jre/lib/javaws.pack            
./jre/lib/jsse.pack              
./jre/lib/plugin.pack            
./jre/lib/rt.pack                
./lib/tools.pack

每个文件必须解压缩,如 unpack200.exe jsse.pack jsse.jar ,然后问题SHA1算法不可用类路径。

Each file had to be unpacked like unpack200.exe jsse.pack jsse.jar and then problem with "The SHA1 algorithm is not available in your classpath" was solved.

这篇关于为什么执行激活器给出ExceptionInInitializerError引起的:java.security.NoSuchAlgorithmException:SHA1 MessageDigest不可用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆