[teiid-issues] [JBoss JIRA] (TEIID-3334) MongoDB: invalid ip address and port number
Ramesh Reddy (JIRA)
issues at jboss.org
Mon Feb 16 17:00:49 EST 2015
[ https://issues.jboss.org/browse/TEIID-3334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ramesh Reddy resolved TEIID-3334.
---------------------------------
Labels: CR2 (was: )
Resolution: Done
The URI semantics were defined here [http://docs.mongodb.org/manual/reference/connection-string/]
It happens to be Java driver example always used the server:host semantics and I missed this. Another advantage of using the URL is to define any connection specific options. For more details look at above URL
> MongoDB: invalid ip address and port number
> --------------------------------------------
>
> Key: TEIID-3334
> URL: https://issues.jboss.org/browse/TEIID-3334
> Project: Teiid
> Issue Type: Bug
> Components: Misc. Connectors
> Affects Versions: 8.9.1
> Environment: MongoDB with Teiid 8.9.1
> Reporter: Ivan Chan
> Assignee: Ramesh Reddy
> Labels: CR2
> Fix For: 8.10
>
>
> I got invalid IP address/ port number error when I have ":" in IP address.
> Caused by: java.lang.NumberFormatException: For input string: "jasper at 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
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
More information about the teiid-issues
mailing list