[
https://issues.apache.org/jira/browse/JCR-1351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12564303#action_12564303
]
Prakash Reddy commented on JCR-1351:
------------------------------------
Hi Thomas,
I would appreciate if you could send me a link to download the new
jackrabbit-jca.rar . I will test using the connector.
Regards,
Prakash
> PropertyImpl.getValue() throws null pointer exception when trying to retrieve
> "InputStream" property
> ----------------------------------------------------------------------------------------------------
>
> Key: JCR-1351
> URL: https://issues.apache.org/jira/browse/JCR-1351
> Project: Jackrabbit
> Issue Type: Bug
> Components: jackrabbit-core, jackrabbit-jca
> Affects Versions: 1.4
> Environment: Solaris 10, windows XP
> Reporter: Prakash Reddy
> Assignee: Thomas Mueller
> Priority: Critical
> Attachments: repository-xml.xml
>
>
> 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.
> The problem does not occur when creating and retrieving small files but
> occurs when storing and retrieving large files(like 18KB).
> Note: This problem exists only when jackrabbit-jca connector is used to
> connect to the repository.
> node.getProperty("file").getStream() results in the following :
> javax.jcr.RepositoryException: Internal error while retrieving value of
> /SecondTest/nb/field/file: 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)
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.