[Jsdsi-devel] Sexp threading issue?
Status: Pre-Alpha
Brought to you by:
sajma
From: Sean R. <sra...@ae...> - 2004-08-24 10:16:04
|
Guys, Need some help here... I have an application that works a dream when one user is using it, but as soon as two are I repeatedly get the stack trace below. Caused by: java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Long.parseLong(Long.java:415) at java.lang.Long.parseLong(Long.java:452) at java.text.DigitList.getLong(DigitList.java:149) at java.text.DecimalFormat.parse(DecimalFormat.java:1068) at java.text.SimpleDateFormat.subParse(SimpleDateFormat.java:1705) at java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1156) at java.text.DateFormat.parse(DateFormat.java:333) at jsdsi.sexp.SexpUtil.parseDate(SexpUtil.java:104) at jsdsi.Validity.parseValidity(Validity.java:253) at jsdsi.Cert.parseCert(Cert.java:240) at jsdsi.Element$Default.parseElement(Element.java:37) at jsdsi.Sequence.parseSequence(Sequence.java:107) at jsdsi.Obj.parseObj(Obj.java:206) at jsdsi.Obj.parseObj(Obj.java:191) at jsdsi.sexp.ObjInputStream.readObj(ObjInputStream.java:52) at jsdsi.sexp.CertificateFactory.readObj(CertificateFactory.java:43) at jsdsi.sexp.CertificateFactory.readCertificate(CertificateFactory.java:48) at jsdsi.sexp.CertificateFactory.engineGenerateCertificate(CertificateFactory.java:59) ... 228 more Here's some extra logging info to help show the certificate that it is trying to parse: 2004-08-24 10:47:49,109 ERROR [com.aegeus.spki.store.CertificateDAO] ***** Original byte[] as a java.lang.String ***** 2004-08-24 10:47:49,110 ERROR [com.aegeus.spki.store.CertificateDAO] (8:sequence(4:cert(7:display10:text/plain)(6:issuer(4:name(10:public-key(3:rsa(1:e3:^A^@^A)(1:n65:^@ÆÊ©4¬qC IÄ)G^VW¬òY^TÉk%Y* XqRûÚw tsÿÿÖ¶/C^\Äm^@^QB6<Ðz5àu5A:èI))(3:uri27:http://secure.aegeus.co.uk/))13:clairerussell))(7:subject(10:public-key(3:rsa(1:e3:^A^@^A)(1:n65:^@´ D^XO¡^Zù|¸F7X£A%j^Z^Lòz^?Tϯ ûOrn^XºS0z^ðz¬0aG}þ^W{-ð¹^EÝd1ùÄà^U))(3:uri27:http://secure.aegeus.co.uk/)))(5:valid(10:not-before19:2004-08-17_15:34:56)(9:not-after19:2014-08-17_15:34:56))(7:comment24:Shared Workspace NameCert))(9:signature(4:hash3:md516:^@·^R]^\^Zñ^KÓ:^Zë)(10:public-key(3:rsa(1:e3:^A^@^A)(1:n65:^@ÆÊ©4¬qCIÄ)G^VW¬òY^TÉk%Y* XqRûÚw tsÿÿÖ¶/C^\Äm^@^QB6<Ðz5àu5A:èI))(3:uri27:http://secure.aegeus.co.uk/))(13:rsa-pkcs1-md564:¶:¤^_©WÜ6sÖåô¸¶¨c2 D^P"xéB°)]Óù&á¾W1yÙmæîÛ^Ookõ^XØ^RÉsíT))) 2004-08-24 10:47:49,111 ERROR [com.aegeus.spki.store.CertificateDAO] ********** The certificate(s) are fine and as said all works well for one user/thread, but consistenly breaks with 2 or more... I guess it is a multi-threading issue with Sexpression parsing. Has anyone seen such a thing before? And as I'm about to try to write a unit test to duplicate the error (and then hopefully fix it), does anyone have any ideas on its cause? Regards, Sean -- Dr. Sean Radford, MBBS, MSc sra...@ae... http://www.aegeus-technology.com/ |