camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "vincent.wong" <vincent.wongsosapu...@lumoenergy.com.au>
Subject Camel 2.13.0 PGP encryption issue
Date Mon, 10 Nov 2014 02:35:11 GMT
Hello, I am trying to transfer file from one folder to another using camel
with PGP encryption(using Camel-Crypto extension).

It compiles fine but unfortunately when I run it as a service, it keeps
producing the following error:

Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------
org.bouncycastle.openpgp.PGPException: Exception creating cipher
	at org.bouncycastle.openpgp.PGPEncryptedDataGenerator.open(Unknown Source)
~[xxxx/:na]
	at org.bouncycastle.openpgp.PGPEncryptedDataGenerator.open(Unknown Source)
~[xxxx/:na]
	at
org.apache.camel.converter.crypto.PGPKeyAccessDataFormat.marshal(PGPKeyAccessDataFormat.java:223)
~[xxxx/:na]
	at
org.apache.camel.processor.MarshalProcessor.process(MarshalProcessor.java:81)
~[xxxx/:na]
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
[xxxx/:na]
	at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:398)
[xxxx/:na]
	at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
[xxxx/:na]
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)
[xxxx/:na]
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:80) [xxxx/:na]
	at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
[xxxx/:na]
	at
org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:51)
[xxxx/:na]
	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:120)
[xxxx/:na]
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
[xxxx/:na]
	at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:398)
[xxxx/:na]
	at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
[xxxx/:na]
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)
[xxxx/:na]
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:80) [xxxx/:na]
	at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
[xxxx/:na]
	at
org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:423)
[xxxx/:na]
	at
org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:211)
[xxxx/:na]
	at
org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:175)
[xxxx/:na]
	at
org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:187)
[xxxx/:na]
	at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:114)
[xxxx/:na]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[na:1.8.0]
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
[na:1.8.0]
	at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
[na:1.8.0]
	at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
[na:1.8.0]
	at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[na:1.8.0]
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[na:1.8.0]
	at java.lang.Thread.run(Thread.java:744) [na:1.8.0]
Caused by: java.lang.SecurityException: JCE cannot authenticate the provider
BC
	at javax.crypto.Cipher.getInstance(Cipher.java:652) ~[na:1.8.0]
	at javax.crypto.Cipher.getInstance(Cipher.java:591) ~[na:1.8.0]
	at org.bouncycastle.jcajce.NamedJcaJceHelper.createCipher(Unknown Source)
~[xxxx/:na]
	at
org.bouncycastle.openpgp.operator.jcajce.OperatorHelper.createCipher(Unknown
Source) ~[xxxx/:na]
	at
org.bouncycastle.openpgp.operator.jcajce.OperatorHelper.createStreamCipher(Unknown
Source) ~[xxxx/:na]
	at
org.bouncycastle.openpgp.operator.jcajce.JcePGPDataEncryptorBuilder$MyPGPDataEncryptor.<init>(Unknown
Source) ~[xxxx/:na]
	at
org.bouncycastle.openpgp.operator.jcajce.JcePGPDataEncryptorBuilder.build(Unknown
Source) ~[xxxx/:na]
	... 30 common frames omitted
Caused by: java.lang.SecurityException: Cannot verify jar:file:/D:/xxxx/!/
	at javax.crypto.JarVerifier.verifySingleJar(JarVerifier.java:407)
~[na:1.8.0]
	at javax.crypto.JarVerifier.verifyJars(JarVerifier.java:322) ~[na:1.8.0]
	at javax.crypto.JarVerifier.verify(JarVerifier.java:250) ~[na:1.8.0]
	at javax.crypto.JceSecurity.verifyProviderJar(JceSecurity.java:160)
~[na:1.8.0]
	at javax.crypto.JceSecurity.getVerificationResult(JceSecurity.java:186)
~[na:1.8.0]
	at javax.crypto.Cipher.getInstance(Cipher.java:648) ~[na:1.8.0]
	... 36 common frames omitted
Caused by: java.security.PrivilegedActionException: null
	at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0]
	at javax.crypto.JarVerifier.verifySingleJar(JarVerifier.java:385)
~[na:1.8.0]
	... 41 common frames omitted
Caused by: java.io.FileNotFoundException: D:\xxxx (Access is denied)
	at java.util.zip.ZipFile.open(Native Method) ~[na:1.8.0]
	at java.util.zip.ZipFile.<init>(ZipFile.java:220) ~[na:1.8.0]
	at java.util.zip.ZipFile.<init>(ZipFile.java:150) ~[na:1.8.0]
	at java.util.jar.JarFile.<init>(JarFile.java:166) ~[na:1.8.0]
	at java.util.jar.JarFile.<init>(JarFile.java:103) ~[na:1.8.0]
	at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:93)
~[na:1.8.0]
	at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:69)
~[na:1.8.0]
	at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:109)
~[na:1.8.0]
	at
sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122)
~[na:1.8.0]
	at
sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:89)
~[na:1.8.0]
	at javax.crypto.JarVerifier$2.run(JarVerifier.java:399) ~[na:1.8.0]
	at javax.crypto.JarVerifier$2.run(JarVerifier.java:386) ~[na:1.8.0]
	... 43 common frames omitted


I have checked all the permission access to the folder and everything seems
to be alright. 

Any ideas what might possibly causing the error above?


Cheers,
Vincent



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-2-13-0-PGP-encryption-issue-tp5758803.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message