Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-5215

Error after saving user prefs

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 3.7, 3.9
    • None
    • None

    Description

      After saving some FO user prefs, unable to display the user prefs

      Caused by: org.ametys.runtime.plugins.core.userpref.UserPreferencesException: Error parsing the preferences of user 'laurence.aumeunier@anyware-services.com' in context '/sites/www'.
      	at org.ametys.runtime.plugins.core.userpref.JdbcXmlUserPreferencesStorage.getUnTypedUserPrefs(JdbcXmlUserPreferencesStorage.java:139)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.ametys.runtime.plugin.component.PluginsComponentManager$ComponentInvocationHandler.invoke(PluginsComponentManager.java:159)
      	at $Proxy23.getUnTypedUserPrefs(Unknown Source)
      	at org.ametys.runtime.plugins.core.userpref.UserPreferencesManager.getUnTypedUserPrefs(UserPreferencesManager.java:100)
      	at org.ametys.runtime.plugins.core.userpref.UserPreferencesGenerator._saxPreferences(UserPreferencesGenerator.java:126)
      	at org.ametys.web.userpref.FOUserPreferencesGenerator._saxPreferences(FOUserPreferencesGenerator.java:96)
      	at org.ametys.runtime.plugins.core.userpref.UserPreferencesGenerator.generate(UserPreferencesGenerator.java:82)
      	... 88 more
      Caused by: org.xml.sax.SAXParseException: Element or attribute do not match QName production: QName::=(NCName':')?NCName. 
      	at org.apache.excalibur.xml.impl.JaxpParser.fatalError(JaxpParser.java:463)
      	at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
      	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
      	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
      	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
      	at org.apache.xerces.impl.XMLEntityScanner.scanQName(Unknown Source)
      	at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
      	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
      	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      	at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
      	at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:315)
      	at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:334)
      	at org.ametys.runtime.plugins.core.userpref.JdbcXmlUserPreferencesStorage.getUnTypedUserPrefs(JdbcXmlUserPreferencesStorage.java:124)
      	... 98 more
      Caused by: org.xml.sax.SAXParseException: Element or attribute do not match QName production: QName::=(NCName':')?NCName. 
      	at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
      

      The stored XML user prefs are:

      <?xml version="1.0" encoding="UTF-8"?>
      <UserPreferences>
        <category://fa7c9ae6-0cc4-4e23-8fc5-9baf5a0c701d>true</category://fa7c9ae6-0cc4-4e23-8fc5-9baf5a0c701d>
        <second_hobby>sport</second_hobby>
        <first_hobby>movies</first_hobby>
        <others_hobbies/>
      </UserPreferences>
      

      Newsletter category should not be stored here

      Attachments

        Activity

          People

            ngavalda Nicolas Gavalda (Inactive)
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: