|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Exception handling improvemnt for InstantiationExceptionHello,
when I try to deserialize XML which has an element with a time format that can't be converted to a Calendar Object, I get this exception: --------------------- java.lang.InstantiationException at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.simpleframework.xml.core.Instantiator.getObject(Instantiator.java:100) at org.simpleframework.xml.core.ClassInstance.getInstance(ClassInstance.java:71) at org.simpleframework.xml.core.ObjectInstance.getInstance(ObjectInstance.java:97) at org.simpleframework.xml.core.ObjectInstance.getInstance(ObjectInstance.java:78) --------------------- It would be nice if Simple could print out some more information, for example which Element has the wrong format. Thanks! Best regards, Timo Rumland ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Simple-support mailing list Simple-support@... https://lists.sourceforge.net/lists/listinfo/simple-support |
|
|
Re: Exception handling improvemnt for InstantiationExceptionHi,
I will take a look at this shortly, thank you for the feedback. Niall Niall Gallagher RBS Global Banking & Markets Office: +44 7879498724 -----Original Message----- From: Timo Rumland [mailto:cr@...] Sent: 23 September 2009 09:35 To: simple-support@... Subject: [Simple-support] Exception handling improvemnt for InstantiationException Hello, when I try to deserialize XML which has an element with a time format that can't be converted to a Calendar Object, I get this exception: --------------------- java.lang.InstantiationException at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.simpleframework.xml.core.Instantiator.getObject(Instantiator.java:100) at org.simpleframework.xml.core.ClassInstance.getInstance(ClassInstance.java:71) at org.simpleframework.xml.core.ObjectInstance.getInstance(ObjectInstance.java:97) at org.simpleframework.xml.core.ObjectInstance.getInstance(ObjectInstance.java:78) --------------------- It would be nice if Simple could print out some more information, for example which Element has the wrong format. Thanks! Best regards, Timo Rumland ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Simple-support mailing list Simple-support@... https://lists.sourceforge.net/lists/listinfo/simple-support *********************************************************************************** The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. Authorised and regulated by the Financial Services Authority. This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer. Internet e-mails are not necessarily secure. The Royal Bank of Scotland plc does not accept responsibility for changes made to this message after it was sent. Whilst all reasonable care has been taken to avoid the transmission of viruses, it is the responsibility of the recipient to ensure that the onward transmission, opening or use of this message and any attachments will not adversely affect its systems or data. No responsibility is accepted by The Royal Bank of Scotland plc in this regard and the recipient should carry out such virus and other checks as it considers appropriate. Visit our website at www.rbs.com *********************************************************************************** ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Simple-support mailing list Simple-support@... https://lists.sourceforge.net/lists/listinfo/simple-support |
|
|
Re: Exception handling improvemnt for InstantiationExceptionHi,
How exactly did you get this error. What annotations were used and what was your XML source? Thanks, Niall Niall Gallagher RBS Global Banking & Markets Office: +44 7879498724 -----Original Message----- From: Timo Rumland [mailto:cr@...] Sent: 23 September 2009 09:35 To: simple-support@... Subject: [Simple-support] Exception handling improvemnt for InstantiationException Hello, when I try to deserialize XML which has an element with a time format that can't be converted to a Calendar Object, I get this exception: --------------------- java.lang.InstantiationException at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.simpleframework.xml.core.Instantiator.getObject(Instantiator.java:100) at org.simpleframework.xml.core.ClassInstance.getInstance(ClassInstance.java:71) at org.simpleframework.xml.core.ObjectInstance.getInstance(ObjectInstance.java:97) at org.simpleframework.xml.core.ObjectInstance.getInstance(ObjectInstance.java:78) --------------------- It would be nice if Simple could print out some more information, for example which Element has the wrong format. Thanks! Best regards, Timo Rumland ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Simple-support mailing list Simple-support@... https://lists.sourceforge.net/lists/listinfo/simple-support *********************************************************************************** The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. Authorised and regulated by the Financial Services Authority. This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer. Internet e-mails are not necessarily secure. The Royal Bank of Scotland plc does not accept responsibility for changes made to this message after it was sent. Whilst all reasonable care has been taken to avoid the transmission of viruses, it is the responsibility of the recipient to ensure that the onward transmission, opening or use of this message and any attachments will not adversely affect its systems or data. No responsibility is accepted by The Royal Bank of Scotland plc in this regard and the recipient should carry out such virus and other checks as it considers appropriate. Visit our website at www.rbs.com *********************************************************************************** ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Simple-support mailing list Simple-support@... https://lists.sourceforge.net/lists/listinfo/simple-support |
|
|
Re: Exception handling improvemnt for InstantiationExceptionHello Niall,
> How exactly did you get this error. What annotations were used and > what was your XML source? sadly, my work continued and I do not have the original code... but I will try to reproduce it the next days and post the code here. Best regards, Timo Rumland ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Simple-support mailing list Simple-support@... https://lists.sourceforge.net/lists/listinfo/simple-support |
| Free embeddable forum powered by Nabble | Forum Help |