Olá Pessoal, estou tentando fazer o encoder de um objeto persistente do Hibernate:
Object bean = ...
XMLEncoder xmlEncoder = new XMLEncoder(new FileOutputStream(new File("arquivo.xml")));
xmlEncoder.writeObject(bean);
mas acontece o seguinte erro:
java.lang.InstantiationException: org.hibernate.persister.collection.OneToManyPersister
Continuing ...
java.lang.RuntimeException: failed to evaluate: <unbound>=Class.new();
Continuing ...
Alguém sabe como resolver isto?
Obrigado.