Results 1 to 5 of 5

Thread: mongo:options auto-connect-retry is unavailable

  1. #1
    Join Date
    Aug 2010
    Location
    BeiJing
    Posts
    13

    Exclamation 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. #2

    Default

    which schema and which spring data version are you using?

  3. #3
    Join Date
    Aug 2010
    Location
    BeiJing
    Posts
    13

    Default

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

  4. #4
    Join Date
    Aug 2010
    Location
    BeiJing
    Posts
    13

    Default

    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.

  5. #5

    Default

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •