Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-3334

MongoDB: invalid ip address and port number

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.10
    • 8.9.1
    • Misc. Connectors
    • Hide

      try to connect to mongodb://jasper:jasper@ds041671.mongolab.com:41671/domain

      Got this exception:

      Caused by: java.lang.NumberFormatException: For input string: "jasper@ds041671.mongolab.com:41671"
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      at java.lang.Integer.parseInt(Integer.java:492)
      at java.lang.Integer.valueOf(Integer.java:582)
      at org.teiid.resource.adapter.mongodb.MongoDBManagedConnectionFactory.getServers(MongoDBManagedConnectionFactory.java:129

      Show
      try to connect to mongodb://jasper:jasper@ds041671.mongolab.com:41671/domain Got this exception: Caused by: java.lang.NumberFormatException: For input string: "jasper@ds041671.mongolab.com:41671" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:492) at java.lang.Integer.valueOf(Integer.java:582) at org.teiid.resource.adapter.mongodb.MongoDBManagedConnectionFactory.getServers(MongoDBManagedConnectionFactory.java:129

      I got invalid IP address/ port number error when I have ":" in IP address.

      Caused by: java.lang.NumberFormatException: For input string: "jasper@ds041671.mongolab.com:41671"
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      at java.lang.Integer.parseInt(Integer.java:492)
      at java.lang.Integer.valueOf(Integer.java:582)
      at org.teiid.resource.adapter.mongodb.MongoDBManagedConnectionFactory.getServers(MongoDBManagedConnectionFactory.java:129

              rhn-engineering-rareddy Ramesh Reddy
              mchantibco Ivan Chan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: