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

MongoDB: invalid ip address and port number

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 8.9.1
    • Fix Version/s: 8.10
    • Component/s: Misc. Connectors
    • Labels:
    • Environment:

      MongoDB with Teiid 8.9.1

    • Steps to Reproduce:
      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

      Description

      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

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                rareddy Ramesh Reddy
                Reporter:
                ichanjasper Ivan Chan
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: