Re: [Simple-support] NoSuchMethodException on deserializing XML
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2007-11-11 23:38:25
|
Hi Wessam, Yes, the object you are trying to instantiate is either a non-static inner class or you have not declared the default no argument constructor. Niall --- Wessam Abd Rabo <wes...@gm...> wrote: > Hi, > I get the following exception when i try to > deserialize: > > java.lang.NoSuchMethodException: > org.netbeans.erdcore.datamodel.database.<init>() > at java.lang.Class.getConstructor0(Class.java:2706) > at > java.lang.Class.getDeclaredConstructor(Class.java:1985) > at > org.simpleframework.xml.load.ClassType.getInstance(ClassType.java:88) > at > org.simpleframework.xml.load.ClassType.getInstance(ClassType.java:72) > at > org.simpleframework.xml.load.Composite.read(Composite.java:107) > at > org.simpleframework.xml.load.Traverser.read(Traverser.java:72) > at > org.simpleframework.xml.load.Persister.read(Persister.java:392) > at > org.simpleframework.xml.load.Persister.read(Persister.java:374) > at > org.simpleframework.xml.load.Persister.read(Persister.java:355) > at > org.simpleframework.xml.load.Persister.read(Persister.java:337) > at > org.simpleframework.xml.load.Persister.read(Persister.java:319) > at > org.simpleframework.xml.load.Persister.read(Persister.java:300) > at > org.simpleframework.xml.load.Persister.read(Persister.java:279) > at > org.netbeans.erdcore.GraphSceneImpl.Deserialize(GraphSceneImpl.java:248) > > any idea what could be causing it not to see the > constructor? > > Thanks in advance, > Wessam > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |