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 dk...@apache.org http://dankulp.com/blog Talend - http://www.talend.com