Sunday, June 08, 2014

Couchbase and couchbase-client


If you got this when starting Couchbase,

Port server memcached on node 'babysitter_of_ns_1@127.0.0.1' exited with status 71. Restarting. Messages: Thu Oct 3 14:13:51.448736 EST 3: failed to ensure corefile creation

make below changes in /etc/security/limits.conf
couchbase hard nofile 10240
couchbase hard core unlimited

See http://www.couchbase.com/issues/browse/MB-4727

If you got exception about XML datatype like this, exclude org.codehaus.jettison:jettison from couchbase:couchbase-client will solve it.

13:50:00,995 ERROR [[resteasy-servlet]] Servlet.service() for servlet resteasy-servlet threw exception
java.lang.LinkageError: loader constraint violation: when resolving field "DATETIME" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the referring class, javax/xml/datatype/DatatypeConstants, and the class loader (instance of ) for the field's resolved type, javax/xml/namespace/QName, have different Class objects for that type
 at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl.(RuntimeBuiltinLeafInfoImpl.java:267)
 at com.sun.xml.bind.v2.model.impl.RuntimeTypeInfoSetImpl.(RuntimeTypeInfoSetImpl.java:65)
 at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:133)
 at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:85)
 at com.sun.xml.bind.v2.model.impl.ModelBuilder.(ModelBuilder.java:156)
 at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.(RuntimeModelBuilder.java:93)
 at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:450)
 at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:298)
 at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:141)
 at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1157)
 at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:145)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

No comments:

Post a Comment