You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Prakash Reddy (JIRA)" <ji...@apache.org> on 2008/01/29 13:16:34 UTC

[jira] Created: (JCR-1351) PropertyImpl.getValue() throws null pointer exception when trying to retrieve "InputStream" property

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
            Priority: Critical


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.


[jira] Commented: (JCR-1351) PropertyImpl.getValue() throws null pointer exception when trying to retrieve "InputStream" property

Posted by "Thomas Mueller (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-1351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12564696#action_12564696 ] 

Thomas Mueller commented on JCR-1351:
-------------------------------------

Merged to the 1.4 branch in revision 617383 (see also JCR-1351)

> 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.


[jira] Updated: (JCR-1351) PropertyImpl.getValue() throws null pointer exception when trying to retrieve "InputStream" property

Posted by "Thomas Mueller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-1351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Mueller updated JCR-1351:
--------------------------------

    Fix Version/s: 1.4.1

> 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
>             Fix For: 1.4.1
>
>         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.


[jira] Updated: (JCR-1351) PropertyImpl.getValue() throws null pointer exception when trying to retrieve "InputStream" property

Posted by "Prakash Reddy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-1351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Prakash Reddy updated JCR-1351:
-------------------------------

    Attachment: repository-xml.xml

Attached the repository config file.

> 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
>            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.


[jira] Commented: (JCR-1351) PropertyImpl.getValue() throws null pointer exception when trying to retrieve "InputStream" property

Posted by "Thomas Mueller (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-1351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12564069#action_12564069 ] 

Thomas Mueller commented on JCR-1351:
-------------------------------------

Hi Prakash,

The bug https://issues.apache.org/jira/browse/JCR-1346 is fixed now, the changes are committed to the trunk. Is it possible for you to compile the Jackrabbit trunk and try if the problem you saw is fixed? If not, I can send you a jar file with the newest code.

Thanks a lot,
Thomas


> 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.


[jira] Assigned: (JCR-1351) PropertyImpl.getValue() throws null pointer exception when trying to retrieve "InputStream" property

Posted by "Thomas Mueller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-1351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Mueller reassigned JCR-1351:
-----------------------------------

    Assignee: Thomas Mueller

> 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.


[jira] Commented: (JCR-1351) PropertyImpl.getValue() throws null pointer exception when trying to retrieve "InputStream" property

Posted by "Prakash Reddy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-1351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563503#action_12563503 ] 

Prakash Reddy commented on JCR-1351:
------------------------------------

Thomas,

Your work around did work for me.
Thank you very much.

It still is a workaround right? Will this bug be fixed???


Cheers.....
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.


[jira] Commented: (JCR-1351) PropertyImpl.getValue() throws null pointer exception when trying to retrieve "InputStream" property

Posted by "Prakash Reddy (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Commented: (JCR-1351) PropertyImpl.getValue() throws null pointer exception when trying to retrieve "InputStream" property

Posted by "Thomas Mueller (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-1351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563508#action_12563508 ] 

Thomas Mueller commented on JCR-1351:
-------------------------------------

Hi,

Sure, this is just a workaround. What it does is: it disable the changes that were required for the data store feature. Using the data store will not be possible when this system property is disabled.

I am working on a test case right now. I think I found the main problem, and will commit my change in a day or so to the trunk. It would be great if you have time to try out the changes as soon as it is ready. I will then commit the bugfix to the 1.4.1 branch, so it will be included in the next release.

Regards,
Thomas

> 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.


[jira] Resolved: (JCR-1351) PropertyImpl.getValue() throws null pointer exception when trying to retrieve "InputStream" property

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-1351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting resolved JCR-1351.
--------------------------------

       Resolution: Duplicate
    Fix Version/s:     (was: 1.4.1)

Resolving this as a duplicate of JCR-1346.

> 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.


[jira] Commented: (JCR-1351) PropertyImpl.getValue() throws null pointer exception when trying to retrieve "InputStream" property

Posted by "Prakash Reddy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-1351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563519#action_12563519 ] 

Prakash Reddy commented on JCR-1351:
------------------------------------

Hi Thomas,

Sure I will test the fix once it is ready.

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.


[jira] Commented: (JCR-1351) PropertyImpl.getValue() throws null pointer exception when trying to retrieve "InputStream" property

Posted by "Thomas Mueller (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-1351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563491#action_12563491 ] 

Thomas Mueller commented on JCR-1351:
-------------------------------------

I think it is related to https://issues.apache.org/jira/browse/JCR-1346.
Could you set the system property "org.jackrabbit.useDataStore" to "false" before opening the repository, and try again?

> 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.