[Jsdsi-devel] Re: Sexp threading issue?
Status: Pre-Alpha
Brought to you by:
sajma
From: Sean R. <sra...@ae...> - 2004-08-24 12:00:00
|
Definately looking like a threading issue to me. I have a junit test that creates 100 certificates and stores them as a List of byte arrays. I then have a number of Threads that iterate through the list and I intermittently get stack traces like the following (the input string varies): java.lang.RuntimeException: Error generating certificate from byte array at jsdsi.sexp.CertificateParsingThreadTest$Runner.run(CertificateParsingThreadTest.java:135) Caused by: java.lang.NumberFormatException: For input string: "20042004200420042004" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Long.parseLong(Long.java:406) 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:1388) 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:254) at jsdsi.Cert.parseCert(Cert.java:240) at jsdsi.Element$Default.parseElement(Element.java:37) at jsdsi.Sequence.parseSequence(Sequence.java:108) 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.CertificateParsingThreadTest$Runner.generateCertificate(CertificateParsingThreadTest.java:154) at jsdsi.sexp.CertificateParsingThreadTest$Runner.run(CertificateParsingThreadTest.java:133) Sean -- Dr. Sean Radford, MBBS, MSc sra...@ae... http://www.aegeus-technology.com/ |