You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by sgomez <sa...@gmail.com> on 2008/03/19 17:22:03 UTC
OCM: InstantiationException: plz help
Hi.
I'm using XMLBeans to pass from XSD schemas to Java classes. I then persist
these XMLBeans into the OCM repository, but when I try to get them out, I
get an InstantiationException. My guess is that OCM is trying to instantiate
my classes using a constructor without parameters, but all XMLBean classes
have one parameter constructors like the following:
public XXXImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
How could I solve this problem? It's quite critical in my project. Hope
someone can help.
Best regards.
Sebastian Gomez.
--
View this message in context: http://www.nabble.com/OCM%3A-InstantiationException%3A-plz-help-tp16145966p16145966.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
Re: OCM: InstantiationException: plz help
Posted by Christophe Lombart <ch...@gmail.com>.
Hi,
That's right, you have to defined a constructor without argument.
It is quite difficult to give you some advises without knowing the
application design but
it is not possible to build a help class to convert the ocm pojo into
your desired classes ?
Christophe
On Wed, Mar 19, 2008 at 5:22 PM, sgomez <sa...@gmail.com> wrote:
>
> Hi.
>
> I'm using XMLBeans to pass from XSD schemas to Java classes. I then persist
> these XMLBeans into the OCM repository, but when I try to get them out, I
> get an InstantiationException. My guess is that OCM is trying to instantiate
> my classes using a constructor without parameters, but all XMLBean classes
> have one parameter constructors like the following:
>
> public XXXImpl(org.apache.xmlbeans.SchemaType sType)
> {
> super(sType);
> }
>
> How could I solve this problem? It's quite critical in my project. Hope
> someone can help.
>
> Best regards.
>
> Sebastian Gomez.
>
> --
> View this message in context: http://www.nabble.com/OCM%3A-InstantiationException%3A-plz-help-tp16145966p16145966.html
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>
>