On May 24, 2011, at 1:31 AM, michael.peterson wrote: > I was wondering if there's been any progress on this. > > I'm trying to get 2.2.1 (geronimo-tomcat6-javaee5-2.2.1) running on MoacOS. > > Using GERONIMO_HOME: /Applications/geronimo-tomcat6-javaee5-2.2.1 > Using GERONIMO_TMPDIR: var/temp > Using JRE_HOME: > /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home > Booting Geronimo Kernel (in Java 1.6.0_24)... > Starting Geronimo Application Server v2.2.1 > [***** ] 13% 1s Starting > org.apache.ger...2011-05-23 22:17:57,749 ERROR [AbstractEncryption] Unable > to decrypt > java.io.EOFException > at > java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2280) > at > java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2749) > at > java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:780) > > Any thoughts?
Thanks for the nudge. I've posted a debug jar to http://people.apache.org/~kevan/geronimo-crypto-2.2.2-SNAPSHOT.jar Diff of my changes are: http://people.apache.org/~kevan/AbstractEncryption-diff.txt Download geronimo-crypto-2.2.2-SNAPSHOT.jar. artifact_aliases won't work for a lib jar. So, you'll need to: cp $GERONIMO_HOME/lib/geronimo-crypto-2.2.1.jar $GERONIMO_HOME/lib/geronimo-crypto-2.2.1.bak cp geronimo-crypto-2.2.2-SNAPSHOT.jar $GERONIMO_HOME/lib/geronimo-crypto-2.2.1.jar And start/restart geronimo. I expect to see output similar to: 2011-05-24 12:45:06,143 ERROR [AbstractEncryption] decrypt() source = rO0ABXNyABlqYXZheC5jcnlwdG8uU2VhbGVkT2JqZWN0PjY9psO3VHACAARbAA1lbmNvZGVkUGFyYW1zdAACW0JbABBlbmNyeXB0ZWRDb250ZW50cQB+AAFMAAlwYXJhbXNBbGd0ABJMamF2YS9sYW5nL1N0cmluZztMAAdzZWFsQWxncQB+AAJ4cHB1cgACW0Ks8xf4BghU4AIAAHhwAAAAEHnh03EmiNu4VTuWH+xZiRBwdAADQUVT 2011-05-24 12:45:06,145 ERROR [AbstractEncryption] decrypt() base64 decoded data = aced0005737200196a617661782e63727970746f2e5365616c65644f626a6563743e363da6c3b754700200045b000d656e636f646564506172616d737400025b425b0010656e63727970746564436f6e74656e7471007e00014c0009706172616d73416c677400124c6a6176612f6c616e672f537472696e673b4c00077365616c416c6771007e0002787070757200025b42acf317f8060854e002000078700000001079e1d3712688dbb8553b961fec59891070740003414553 2011-05-24 12:45:06,256 ERROR [AbstractEncryption] decrypt() spec algorithm = AES 2011-05-24 12:45:06,256 ERROR [AbstractEncryption] decrypt() cipher = javax.crypto.Cipher@40a16605 2011-05-24 12:45:06,347 ERROR [AbstractEncryption] decrypt() returning manager I suspect the problem is with our Base64 decode. What is your default/native charset? Would be good to create a Jira for this issue (or is there already one, and I've forgotten?). --kevan
