the method call getObject(...) on a previous version throws an
IncorrectPersistentClassException
------------------------------------------------------------------------------------------------
Key: JCR-1426
URL: https://issues.apache.org/jira/browse/JCR-1426
Project: Jackrabbit
Issue Type: Bug
Components: jackrabbit-ocm
Affects Versions: core 1.4.1, 1.4, 1.4.1, 1.5
Reporter: Christophe Lombart
The method call getObject(...) on a previous version of an persistent object
throws the exepction
"IncorrectPersistentClassException : type: nt:unstructured has no descriptor".
This issue was dectected when a pojo is mapped into the nt:unstructured node
type. In this case, the mixin type ocm:discriminator has to be applied but it
seems that is not present in the previous version node.
Here is a exemple of a persistent class that can cause this issue :
@Node(jcrType="nt:unstructured",
jcrMixinTypes = "mix:versionable,mix:referenceable,mix:lockable")
public class Content {
/** Node path in the CR */
@Field(path=true)
private String path;
@Field(uuid=true)
private String uuid;
@Field(jcrName = "test:lastModified")
private Calendar lastModified;
/** content title */
@Field(jcrName = "test:title")
private String title = null;
@Field(jcrName = "test:mimeType")
private String mimeType;
@Field(jcrName = "test:data")
private byte[] data;
... getters + setters....
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.