Hi all,
I am using jackrabbit 1.4 as my content repository and the underlying
database is derby.
I am using jackrabbit-jca-1.4.rar connector to connect to respository
from my web-app.
I am trying to store a file as one of the property of a node and then
retrieving it.
The problem is the property is being created but I am getting an
exception while retrieving the property.
Strangely when I restart my appserver where the jackrabbit-jca is
deployed, I will be able to get the property without any exception being
thrown.
It may not be completely reproducible but definitely in my case it is
failing most of the time.
I think this is similar to the bug :
http://www.mail-archive.com/[EMAIL PROTECTED]/msg09384.html
Any ideas why this is failing??
Regards,
Prakash
Here is the stacktrace :(*Value3* is the property set to a inputstream)
javax.jcr.RepositoryException: Internal error while retrieving value of
/SecondTest/nb/field/*Value3*: name can't be null: name can't be null
at
org.apache.jackrabbit.core.PropertyImpl.getValue(PropertyImpl.java:470)
at
org.apache.jackrabbit.core.PropertyImpl.getStream(PropertyImpl.java:479)
at
com.sun.portal.cms.mirage.service.custom.impl.ContentServiceImpl.getFieldValue(ContentServiceImpl.java:677)
at
com.sun.portal.cms.mirage.service.custom.impl.ContentServiceImpl.getContentFromNode(ContentServiceImpl.java:393)
at
com.sun.portal.cms.mirage.service.custom.impl.ContentServiceImpl.getContentByNameAndType(ContentServiceImpl.java:351)
at
com.sun.portal.cms.mirage.service.custom.impl.ContentServiceImpl.getContentsByType(ContentServiceImpl.java:434)
at
com.sun.portal.cms.portlet.ccd.beans.ContentCreationBean.changeContentType(ContentCreationBean.java:220)
Caused by: java.lang.NullPointerException: name can't be null
at java.io.FilePermission.init(FilePermission.java:171)
at java.io.FilePermission.<init>(FilePermission.java:264)
at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
at java.io.FileInputStream.<init>(FileInputStream.java:100)
at
org.apache.jackrabbit.core.value.BLOBInTempFile.getStream(BLOBInTempFile.java:145)
at
org.apache.jackrabbit.core.value.InternalValue.toJCRValue(InternalValue.java:366)
at
org.apache.jackrabbit.core.PropertyImpl.getValue(PropertyImpl.java:466)
... 97 more
java.lang.NullPointerException: name can't be null
at java.io.FilePermission.init(FilePermission.java:171)
at java.io.FilePermission.<init>(FilePermission.java:264)
at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
at java.io.FileInputStream.<init>(FileInputStream.java:100)
at
org.apache.jackrabbit.core.value.BLOBInTempFile.getStream(BLOBInTempFile.java:145)
at
org.apache.jackrabbit.core.value.InternalValue.toJCRValue(InternalValue.java:366)
at
org.apache.jackrabbit.core.PropertyImpl.getValue(PropertyImpl.java:466)
at
org.apache.jackrabbit.core.PropertyImpl.getStream(PropertyImpl.java:479)
at
com.sun.portal.cms.mirage.service.custom.impl.ContentServiceImpl.getFieldValue(ContentServiceImpl.java:677)