Hello:
I've followed the straightforward instructions for implementing URL encoding
that are available here:
https://cwiki.apache.org/WICKET/url-coding-strategies.html
When my page renders, I get the following ClassCastException. I haven't
been able to find others having this particular problem. I noticed in the
instructions that Wicket "uses the CryptFactory registered with the
application to encode and decode the URL." Could I perhaps have something
crypto-related misconfigured elsewhere?
Caused by: java.lang.ClassCastException:
com.sun.crypto.provider.PBEKeyFactory$PBEWithMD5AndDES cannot be cast to
javax.crypto.SecretKeyFactorySpi
at javax.crypto.SecretKeyFactory.getInstance(Unknown Source)
at
org.apache.wicket.util.crypt.SunJceCrypt.generateSecretKey(SunJceCrypt.java:119)
at org.apache.wicket.util.crypt.SunJceCrypt.crypt(SunJceCrypt.java:96)
at
org.apache.wicket.util.crypt.AbstractCrypt.encryptStringToByteArray(AbstractCrypt.java:163)
at
org.apache.wicket.util.crypt.AbstractCrypt.encryptUrlSafe(AbstractCrypt.java:86)
at
org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.encodeURL(CryptedUrlWebRequestCodingStrategy.java:201)
at
org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.encode(CryptedUrlWebRequestCodingStrategy.java:121)
at org.apache.wicket.RequestCycle.encodeUrlFor(RequestCycle.java:793)
Thanks for any suggestions or hints!
L. Burlap
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/wicket-url-encoding-ClassCastException-using-SunJceCrypt-tp4090613p4090613.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]