Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

[Release] Java SDK 1.1-dp4 released

8 replies [Last post]
  • Login or register to post comments
Wed, 11/07/2012 - 02:07
daschl
Offline
Joined: 05/19/2012
Groups: None

Hi Community,

I'm pleased to announce the immediate availability of the next developer preview for the 1.1-branch of the Java SDK.

This is a preview release with functionality designed to work with the upcoming Couchbase Server 2.0 and its view capabilities. It is tested against Couchbase Server 2.0 Beta and later, though it should be compatible with previous 2.0 developer preview releases.

The 1.1-dp4 release addresses important issues and brings major enhancements when it comes to view querying and bucket manipulation.

- The new ComplexKey class makes it possible to define view query params out of java objects, which get casted to their appropriate JSON representations automatically.

- It is now possible to define ReplicateTo constraints without defining a PersistTo constraint. This allows for better performance (because the caller does not have to wait until the data is persisted) while still making sure to have it replicated to the number of nodes given.

- Through the newly added ClusterManager, it is now possible to create, fetch and delete buckets directly from the Client and without the need to do it either manually through the UI or use the REST API directly.

See the Release Notes (http://www.couchbase.com/docs/couchbase-sdk-java-1.1/couchbase-sdk-java-...) for more information and code samples!

If you have questions and/or problems with this release, feel free to post on the forums (or file a bug report).

Michael

Top
  • Login or register to post comments
Sun, 11/11/2012 - 01:24
cb
Offline
Joined: 08/10/2012
Groups: None

Just upgraded to 1.1-dp4.

I'm getting the following exception:

java.lang.NoSuchMethodError: com.couchbase.client.protocol.views.Query.setReduce(Z)Lcom/couchbase/client/protocol/views/Query;

Although my code compiles just fine.

Any clue?

Did you break some of the interfaces / methods in this release? I reviewed the release notes and did not find anything.

Top
  • Login or register to post comments
Sun, 11/11/2012 - 01:36
daschl
Offline
Joined: 05/19/2012
Groups: None

Hi cb,

we changed the Query class a bit, but the setReduce() should be there as always. Can you show me the part of your code which breaks?

Top
  • Login or register to post comments
Sun, 11/11/2012 - 02:25
cb
Offline
Joined: 08/10/2012
Groups: None

It is very simple:

	Query query = new Query();
    	query.setReduce(false);

The second line throws the exception as mentioned before.

Top
  • Login or register to post comments
Sun, 11/11/2012 - 02:36
daschl
Offline
Joined: 05/19/2012
Groups: None

Hm, setReduce is used multiple times in the tests and everything works as expected (at least for me and the tests).

You can also find it on github: https://github.com/couchbase/couchbase-java-client/blob/master/src/main/...

Are you sure that your application completely picked up the new jar and there are no "leftovers"?

Top
  • Login or register to post comments
Sun, 11/11/2012 - 02:46
cb
Offline
Joined: 08/10/2012
Groups: None

resolved. not sure how.

other than adding the ComplexKey - is there any other change that we should be aware of in the Query / View objects?

Top
  • Login or register to post comments
Sun, 11/11/2012 - 02:50
daschl
Offline
Joined: 05/19/2012
Groups: None

Good to hear!

There have been some other fixes done as well (mainly behind the scenes), the release notes show all the major ones: http://www.couchbase.com/docs/couchbase-sdk-java-1.1/couchbase-sdk-java-...

Top
  • Login or register to post comments
Sun, 11/11/2012 - 03:00
cb
Offline
Joined: 08/10/2012
Groups: None

another issue:

using couchbase dev prev (before the beta) each document had a "_key" field.

It is now gone.

We also noticed that when exploring a document in the admin console the upper pane is split to two: on the left side is what we expect. On the right side are values that we do not set - we assume they are for internal use. Right? from that list - we would like to access the "id" field in the Map / Reduce. how should we do that ?

also - in non json docs (serialized java objects), there is no right pane. How can we access the key from the map/reduce?

Top
  • Login or register to post comments
Sun, 11/11/2012 - 04:33
cb
Offline
Joined: 08/10/2012
Groups: None

resolved - using meta instead of doc...

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker