[JBoss-user] [EJB 3.0] - Re: SerializationException, not sure about the source

2006-05-23 Thread [EMAIL PROTECTED]
Ok, ok... I forgot about timezone conversion. But putting a hat of a customer I was once, on a system I was writting, simply using Calendars to do such conversions were much faster than using SimpleDateFormat. There is a lot of expression parser and compilations as you said, and if you don't n

[JBoss-user] [EJB 3.0] - Re: SerializationException, not sure about the source

2006-05-23 Thread elkner
"[EMAIL PROTECTED]" wrote : | - I actually (as a programmer) would recommend to not use SimpleDateFormat unless your formatting is stored in a database field since its performance is pretty bad. Hmmm, would say, that depends. Its probably not as fast as Integer.toString(), but IMHO its stil

[JBoss-user] [EJB 3.0] - Re: SerializationException, not sure about the source

2006-05-23 Thread hlfsousa
I guess we posted at the same time :) I'm using JBoss 4.0.4.CR2 (can't upgrade to GA right now because of some bad collection mapping; not my fault). Thanks for the tips, they are certainly very useful. I'm using that DateFormat just for debugging and intend to remove it soon -- as soon as every

[JBoss-user] [EJB 3.0] - Re: SerializationException, not sure about the source

2006-05-23 Thread [EMAIL PROTECTED]
You could have added the word transient on the field declaratio, this way JBossSerialization wont have used it. I asked you about the version because there were some problems with JBossSerialization used on JBoss 4.0.4 RCLatest. I created a testcase serializing a SimpleDateFormat, and it works

[JBoss-user] [EJB 3.0] - Re: SerializationException, not sure about the source

2006-05-23 Thread hlfsousa
Since I cannot delete this topic, let me just say that I solved the problem. The thing is, as the error suggests, that I had a SimpleDateFormat that was not serializable. I declared it in a class as '"DateFormat fmt", and assigned a value to it as DateFormat.getDateInstance(). It was used to for

[JBoss-user] [EJB 3.0] - Re: SerializationException, not sure about the source

2006-05-23 Thread [EMAIL PROTECTED]
What version of JBoss are you using? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3945827#3945827 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945827 --- All the