Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

authenticate fails #3

Open
ernestoongaro opened this issue Jul 17, 2012 · 3 comments
Open

authenticate fails #3

ernestoongaro opened this issue Jul 17, 2012 · 3 comments

Comments

@ernestoongaro
Copy link

There's a bug if you try to authenticate against a server:
"The method authenticate(String, char[]) in the type DB is not applicable for the argument (String, String)"

According to this javadoc authenticate wants a charArray not string
http://api.mongodb.org/java/2.6.3/com/mongodb/DB.html#DB(com.mongodb.Mongo, java.lang.String)

In the file tMongoDBConnection_begin.javajet - change the last part to


db_<%=cid%>.authenticate(<%=dbuser%>, <%=dbpass%>.toCharArray());
@willemmulder
Copy link

Thanks for that!

We had the same issue and your solution solved it :-)

However, it seems that Talend does not authenticate anyway. We get an error on every collection saying that we are not authorized. While if we use a different tool (e.g. Robomongo) with the same credentials, everything works fine...

Did you succesfully connect to a collection, in the end?

@ernestoongaro
Copy link
Author

@willemmulder - haha, casually reply to a 5 year old post 👍 Unfortunately I haven't used this project in some time

@willemmulder
Copy link

Too bad :-)

Thanks anyway!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants