[ 
https://issues.apache.org/jira/browse/NIFI-3767?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pierre Villard resolved NIFI-3767.
----------------------------------
    Resolution: Feedback Received

Apache NiFi 1.x is no longer maintained and no new release is planned on the 
1.x release line. Marking as resolved as part of a cleanup operation. Please 
open a new one with an updated description if this is still relevant for NiFi 
2.x.

> improve error message when using ConfigEncryptionTool and unlimited strenght 
> jce is not present
> -----------------------------------------------------------------------------------------------
>
>                 Key: NIFI-3767
>                 URL: https://issues.apache.org/jira/browse/NIFI-3767
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.2.0
>            Reporter: Arpit Gupta
>            Priority: Minor
>
> If the user has not setup unlimited strength jce and uses the 
> ConfigEncryptionTool they get the following error.
> {code}
> 2017/04/27 21:43:15 ERROR [main] 
> org.apache.nifi.properties.ConfigEncryptionTool: Encountered an error
> java.security.InvalidKeyException: Illegal key size
>       at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1039)
>       at javax.crypto.Cipher.init(Cipher.java:1393)
>       at javax.crypto.Cipher.init(Cipher.java:1327)
>       at javax.crypto.Cipher$init$1.call(Unknown Source)
>       at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
>       at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
>       at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:141)
>       at 
> org.apache.nifi.properties.ConfigEncryptionTool.generateFlowEncryptionCipher(ConfigEncryptionTool.groovy:680)
>       at 
> org.apache.nifi.properties.ConfigEncryptionTool.migrateFlowXmlContent(ConfigEncryptionTool.groovy:630)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:498)
>       at 
> org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:210)
>       at 
> org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMetaMethodSite.java:71)
>       at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
>       at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
>       at 
> org.apache.nifi.properties.ConfigEncryptionTool.main(ConfigEncryptionTool.groovy:1184)
> Illegal key size
> {code}
> If the error can be improved to point the user in the direction of unlimited 
> strength jce that would be great.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to