I am using Tridion 2011 SP1 HR2. After deploying the changes for UGC with all its jars and xml changes, arabic text entered from any form on the website returns junk characters. The website worked perfectly uptil the release. We can see all data entered into DB properly but now the form submit returns junk characters In web.xml, I commented this filter-mapping

<filter-name>Ambient Data Framework</filter-name>

After this I can see the arabic text submitted by form in the logs and saved to DB. But I get a nullpointer exception when I call syncUGCUserWithContact at these lines

claimStore.put(URI.create("taf:claim:contentdelivery:webservice:user"), ugcUser.getId());



What should I put in url pattern exception so that I don't get this exception? Also, my UGC content on which I need to add comment doensn't load for logged in users

java.lang.NullPointerException at
com.tridion.ugc.taglib.webservice.WebServiceHelper.getUserId(WebServiceHelper.java:183) at com.tridion.ugc.taglib.ManageCommentsTag.doStartTag(ManageCommentsTag.java:128) at org.apache.jsp.data.pub10.dcp.jsp.dcp12075_005f13053_jsp._jspService(dcp12075_005f13053_jsp.java:359)

UPDATE:11/06/2014 Ok. I will keep the /*. But i don't understand how removing this pattern affected arabic form submission. I read in this article by Eric enter link description here that

Being technology agnostic ADF cannot access to technology specific objects like HttpServletRequest/HttpServletResponse or HttpContext, that is why we need a java filter or a .Net Http Module to start it.

Also I have added this is in cd_ambient_conf.xml. Should I add any other path here?


Please help. This problem is on live website

  • 1
    It could be that your character encoding might not have setup correctly - should be UTF-8 or whatever appropriate. Take a look at : elenaserghie.blogspot.com/2012/01/…
    – Ram G
    Jun 10, 2014 at 14:52
  • If you still have the same problem after following Elena's clues, consider sharing what is in the database and how your web site retrieves the information from the database. Jun 10, 2014 at 15:44
  • I checked the UTF-8 on all xml files. Its there.In the web.xmll file, I commented the below pattern <!--Uncomment the following block to apply the filter for the UGC user. Url-pattern "/*" should be replaced with the adequate one. --> <!--<filter-mapping> <filter-name>Ambient Data Framework</filter-name> <url-pattern>/*</url-pattern></filter-mapping> --> After commenting this I can see that my form submits the arabic text but in my SyncUGCUserWithContact class it throws NPE at claimStore.put(URI.create("taf:claim:contentdelivery:webservice:user"), ugcUser.getId());
    – Rache
    Jun 10, 2014 at 15:45
  • @Rache it is better to edit your question in answer to comments, that way you have decent formatting features available to make your question more readable and clear to everybody. Jun 10, 2014 at 16:06
  • Hi Rache, can you also clarify what version of Tridion you are having this issue on? Jun 10, 2014 at 16:43


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.