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

java.lang.UnsupportedOperationException #1

Closed
giabao opened this issue Dec 21, 2013 · 1 comment
Closed

java.lang.UnsupportedOperationException #1

giabao opened this issue Dec 21, 2013 · 1 comment
Assignees
Labels

Comments

@giabao
Copy link
Owner

giabao commented Dec 21, 2013

java.lang.UnsupportedOperationException
        at java.util.AbstractList.set(AbstractList.java:132)
        at java.util.Collections.swap(Collections.java:532)
        at java.util.Collections.shuffle(Collections.java:500)
        at java.util.Collections.shuffle(Collections.java:469)
        at com.couchbase.client.CouchbaseConnectionFactory.potentiallyRandomizeNodeList(CouchbaseConnectionFactory.java:529)
        at com.couchbase.client.CouchbaseConnectionFactory.initialize(CouchbaseConnectionFactory.java:189)
        at com.couchbase.client.CouchbaseConnectionFactory.<init>(CouchbaseConnectionFactory.java:185)
        at akka.contrib.couchbase.CBExtension.akka$contrib$couchbase$CBExtension$$bucketEntry(CBExtension.scala:19)
@giabao
Copy link
Owner Author

giabao commented Dec 21, 2013

error is caused by:

val baseList = cfg.getString("nodes").split(';').toList.map(URI.create).asJava
val cf = new CouchbaseConnectionFactory(baseList, bucket, password)

=> baseList will be a scala.collection.convert.Wrappers.SeqWrapper that not has set method.

We need change to:

val baseList = cfg.getString("nodes").split(';').toBuffer.map(URI.create).asJava

@ghost ghost assigned giabao Dec 21, 2013
@giabao giabao closed this as completed Dec 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant