jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phukan, Anit" <Anit_Phu...@intuit.com>
Subject Class Cast exception
Date Tue, 06 Oct 2009 17:38:43 GMT
Hi,

Could someone help me out with this?

I get this exception while trying to set property value for a node to an
object

 java.lang.ClassCastException: package.objectClassname cannot be cast to
javax.jcr.Value

In my code, I am trying to set the property value this way:

patientRecords.setProperty("PatientObject", (Value)
persistedObject.getObject());


where patientRecords is a node, and persistedObject is the object


Any suggestions would be appreciated.

Thanks
Anit 

Mime
View raw message