Hye, 

I think I have found a problem when stress testing my application with
JDO/Castor 0.9.5.2.
I have the stacktrace :
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
org.exolab.castor.jdo.engine.SQLTypes$65.convert(SQLTypes.java:941)
        at org.exolab.castor.jdo.engine.SQLEngine.toJava(SQLEngine.java:490)
        at
org.exolab.castor.jdo.engine.SQLEngine.access$500(SQLEngine.java:108)
        at
org.exolab.castor.jdo.engine.SQLEngine$SQLQuery.loadSingleField(SQLEngine.ja
va:1815)
        at
org.exolab.castor.jdo.engine.SQLEngine$SQLQuery.loadRow(SQLEngine.java:1881)
        at
org.exolab.castor.jdo.engine.SQLEngine$SQLQuery.fetchRaw(SQLEngine.java:1954
)
        at
org.exolab.castor.jdo.engine.SQLEngine$SQLQuery.nextIdentity(SQLEngine.java:
1762)
        at
org.exolab.castor.persist.QueryResults.nextIdentity(QueryResults.java:173)
        at
org.exolab.castor.jdo.engine.OQLQueryImpl$OQLEnumeration.hasMore(OQLQueryImp
l.java:638)
        at
org.exolab.castor.jdo.engine.OQLQueryImpl$OQLEnumeration.hasMore(OQLQueryImp
l.java:624)


which seems to be relative to the problem of using SimpleDateFormat or a
DateFormat in a multithread environnement
whereas those classes are not thread-safe.
Can somebody familiar with this part of Castor JDO, confirm this please ?





Ce message et toutes les pi�ces jointes (ci-apr�s le "message") sont �tablis � 
l'intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le d�truire et d'en avertir imm�diatement l'exp�diteur. 
Toute utilisation de ce message non conforme � sa destination, modification, diffusion 
ou toute publication, totale ou partielle, est interdite, sauf autorisation 
expresse.FININFO (et ses filiales) d�cline(nt) toute responsabilit� au titre de ce 
message, dans l'hypoth�se ou il aurait �t� modifi�, alt�r�, falsifi� ou encore �dit� 
ou diffus� sans autorisation.
-----------------------------------------------------
This message and any attachments (the "message") is intended
solely for the addressees and is confidential. If you receive this 
message in error, please delete it and immediately notify the 
sender. Any use not in accord with its purpose, any dissemination 
or disclosure, either whole or partial, is prohibited except formal 
approval. Neither FININFO (nor any of its subsidiaries or affiliates) 
shall be liable for the message if modified, altered, falsified, edited 
or diffused without authorization. 

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to