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

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

  • May 31, 2017
  • 5 replies
  • 3128 views

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.
Best answer by MC_Stuff

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

smacdonald2008
Level 10
May 31, 2017

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

MC_Stuff
MC_StuffAccepted solution
Level 10
June 1, 2017

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,

kautuk_sahni
Community Manager
Community Manager
June 6, 2017

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

~kautuk

Kautuk Sahni
June 8, 2017

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.

June 8, 2017

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