Announcement Announcement Module
Collapse
No announcement yet.
mongo:options auto-connect-retry is unavailable Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • mongo:options auto-connect-retry is unavailable

    when specify mongo:options 's property auto-connect-retry, the exception is thrown as following:
    Caused by: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'auto-connect-retry' is not allowed to appear in element 'mongo:options'.

    <mongo:mongo id="mongo" >
    <mongo:options auto-connect-retry="true"/>
    </mongo:mongo>

  • #2
    which schema and which spring data version are you using?

    Comment


    • #3
      I meet the same trouble too.
      If specify any property of mongodb options,the exception is thrown.
      Last edited by wangyin; Aug 28th, 2011, 10:27 PM.

      Comment


      • #4
        Hi, Matthias,I have tested spring-data-mongodb-1.0.0.M3 and it worked!
        It seems that this is a issue of spring-data-mongodb-1.0.0.M2.

        Comment


        • #5
          in M2 it was camelCase
          with M3 it changed to dash-notation

          Comment

          Working...
          X