Thanks for the tip, it brought some hope, but it just didnt worked. The sad thing is that polimorphism doesnt work this way via CXF-DOSGI (as it does in simple CXF).
2011/9/27 Daniel Kulp <[email protected]> > On Tuesday, September 27, 2011 2:45:08 PM András Liter wrote: > > Hey, > > > > I bumped into the following error during a DOSGI consumer-provider call: > > org.apache.cxf.interceptor.Fault: Couldn't instantiate class. null. > Nested > > exception is java.lang.InstantiationException: null > > > > As it turned out, I got this exception, because I use abstract Java > classes > > and inheritance in my Java business objects. > > Is there a workaround for this issue, or the only solution is not using > the > > abstract keyword? > > You MAY be able to do it if you add @XmlSeeAlso annotations in various > places > (like on the abstract base classes) that point to the various subclasses so > that JAXB and such can find the base classes. Not really sure if/how that > would work with DOSGi though.. > > > > > Thanks in advance, > > András Liter > -- > Daniel Kulp > [email protected] > http://dankulp.com/blog > Talend - http://www.talend.com >
