Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-17-2008, 10:27 AM
Member
 
Join Date: Jul 2008
Posts: 1
Rep Power: 0
dinesh.1.sharma is on a distinguished road
Default Encryption-Decryption Problem
Hi all,

I am working on encrypting XML file on client-side and Decrypting same file on server-side.
Encryption is working fine on client side, but during the decryption on server-side I am facing some problem.

Exception Occured:

PM org.apache.xml.security.encryption.XMLCipher decryptToByteArray
SEVERE: XMLCipher::decryptElement called without a key and unable to resolve
org.apache.xml.security.encryption.XMLEncryptionEx ception: No Key Encryption Key loaded and cannot determine using key resolvers
at org.apache.xml.security.encryption.XMLCipher.decry ptToByteArray(Unknown Source)
at org.apache.xml.security.encryption.XMLCipher.decry ptElement(Unknown Source)
at org.apache.xml.security.encryption.XMLCipher.doFin al(Unknown Source)
at RequestDecryption.decryptRequest(RequestDecryption .java:220)

Please help me to come out from this problem.

Thanks,
Dinesh
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 07-17-2008, 11:03 PM
fishtoprecords's Avatar
Senior Member
 
Join Date: Jun 2008
Posts: 571
Rep Power: 2
fishtoprecords is on a distinguished road
Default
Basic debugging technique for all crypto code: make sure you can encipher and decihper some trivial text before you do anything else.

From the traceback, looks like you are not setting the key.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Encryption/Decryption Echilon New To Java 2 03-24-2009 12:58 PM
encryption Joe2003 Advanced Java 2 02-06-2008 11:27 AM
Encryption/Decryption Through AOP SirRawlins Advanced Java 0 12-19-2007 04:22 PM
Java encryption soul_krasty Advanced Java 3 08-14-2007 03:44 PM
Encryption in java Ed Advanced Java 1 07-09-2007 02:47 AM


All times are GMT +2. The time now is 03:08 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org