javax.jcr.ValueFormatException after adding new image to the floating image gallery | Community
Skip to main content
Level 2
May 31, 2017 6:27 PM UTC
Solved

javax.jcr.ValueFormatException after adding new image to the floating image gallery

Hi All,

Am trying to add an image to the floating image gallery in the author page and sometimes after adding an image, the page is taken down with an exception:

javax.jcr.ValueFormatException: fileReference =[folder/test/testimage/xyz,]is multi-valued. => Note the comma getting added at the end of image name.

when i try to see the image nodes under the floating image gallery, it has a node saying image$ sometimes and also the image node with filereference name appended with a comma at the end.

Can you please help me on how to resolve this issue:

     1. why the image$ node is getting created?

     2. why the filereference property for some image nodes are appended with a comma?

     3. How to control this behaviour?

Thanks...

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
MC_Stuff
MC_StuffAccepted solution
Level 10
Jun 1, 2017 2:58 AM UTC

Hi Arun,

         Sounds more of custom code issue. May be encoding issue & other scriplet.. getting added.  Can you attach the package to  reproduce on fresh instance.

Thanks,

5 replies

New Participant
Jun 8, 2017 12:08 PM UTC

Ours is not a custom component. Screen shot added for more details of components and $image in CRX de.

Translate
New Participant
Jun 8, 2017 11:59 AM UTC

Can some one help on this we are also having the same issue.

add an image to the floating image gallery in the author page and sometimes after adding an image, the page is taken down with an exception:

javax.jcr.ValueFormatException: fileReference =[/content/dam/ret/truck/f150/2018/3_F150_XLT_Light_Cons_3_4_Front_Pass_02_0049_sd_375.jpg,]is multi-valued. => Note the comma getting added at the end of image name.

       <h3>Exception:</h3>

<pre>

javax.jcr.ValueFormatException: fileReference = [/content/dam/ret/truck/f150/2018/3_F150_XLT_Light_Cons_3_4_Front_Pass_02_0049_sd_375.jpg, ] is multi-valued.

at org.apache.jackrabbit.oak.jcr.delegate.PropertyDelegate.getSingleState(PropertyDelegate.java:112)

at org.apache.jackrabbit.oak.jcr.session.PropertyImpl$5.perform(PropertyImpl.java:251)

Can some one from ADOBE team help on this.

Translate
kautuk_sahni
Employee
Jun 6, 2017 7:33 AM UTC

Can you please share the package to debug and reproduce this issue?

~kautuk

Translate
Kautuk Sahni
MC_Stuff
MC_StuffAccepted solution
Level 10
Jun 1, 2017 2:58 AM UTC

Hi Arun,

         Sounds more of custom code issue. May be encoding issue & other scriplet.. getting added.  Can you attach the package to  reproduce on fresh instance.

Thanks,

Translate
smacdonald2008
Level 10
May 31, 2017 8:15 PM UTC

Can you list the component you are using here - floating gallery component. Is this a custom one or OOTB?

Translate