Tabnine Logo
MarkLogicBindingException
Code IndexAdd Tabnine to your IDE (free)

How to use
MarkLogicBindingException
in
com.marklogic.client

Best Java code snippets using com.marklogic.client.MarkLogicBindingException (Showing top 15 results out of 315)

origin: com.marklogic/client-api-java

private Element getChildByName(Element element, String ns, String localName) {
  NodeList nl = element.getElementsByTagNameNS(ns, localName);
  if (nl.getLength() == 1) {
    return (Element) nl.item(0);
  } else {
    throw new MarkLogicBindingException(
        "Invalid rule - must have one element only named "
            + localName);
  }
}
origin: marklogic/java-client-api

private Element getChildByName(Element element, String ns, String localName) {
 NodeList nl = element.getElementsByTagNameNS(ns, localName);
 if (nl.getLength() == 1) {
  return (Element) nl.item(0);
 } else {
  throw new MarkLogicBindingException(
   "Invalid rule - must have one element only named "
    + localName);
 }
}
origin: com.marklogic/client-api-java

public TuplesHandle() {
  super();
  super.setFormat(Format.XML);
  try {
    jc = JAXBContext.newInstance(TuplesBuilder.Tuples.class);
    unmarshaller = jc.createUnmarshaller();
  } catch (JAXBException e) {
    throw new MarkLogicBindingException(e);
  }
}
origin: com.marklogic/client-api-java

/**
 * Zero-argument constructor.
 */
public ValuesHandle() {
  super();
  super.setFormat(Format.XML);
  try {
    jc = JAXBContext.newInstance(ValuesBuilder.Values.class);
    unmarshaller = jc.createUnmarshaller();
  } catch (JAXBException e) {
    throw new MarkLogicBindingException(e);
  }
}
origin: com.marklogic/client-api-java

/**
 * The constructor.
 */
public ValuesListHandle() {
  super();
  super.setFormat(Format.XML);
  try {
    jc = JAXBContext.newInstance(ValuesListBuilder.ValuesList.class);
    unmarshaller = jc.createUnmarshaller();
  } catch (JAXBException e) {
    throw new MarkLogicBindingException(e);
  }
}
origin: com.marklogic/client-api-java

/**
 * The constructor.
 */
public QueryOptionsListHandle() {
  super();
  super.setFormat(Format.XML);
  try {
    jc = JAXBContext.newInstance(QueryOptionsListBuilder.OptionsList.class);
    marshaller = jc.createMarshaller();
    marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
    unmarshaller = jc.createUnmarshaller();
  } catch (JAXBException e) {
    throw new MarkLogicBindingException(e);
  }
}
origin: marklogic/java-client-api

private void checkForEmptyBeans(Throwable e) {
 Throwable cause = e.getCause();
 if ( cause != null ) {
  if ( cause instanceof JsonMappingException &&
   cause.getMessage() != null &&
   cause.getMessage().contains("SerializationFeature.FAIL_ON_EMPTY_BEANS") )
  {
   throw new MarkLogicBindingException(
    "Each of your pojo beans and descendent beans must have public fields or paired get/set methods",
    cause);
  } else {
   checkForEmptyBeans(cause);
  }
 }
}
origin: marklogic/java-client-api

public TuplesHandle() {
 super();
 super.setFormat(Format.XML);
 try {
  JAXBContext jc = JaxbContextLoader.CACHED_CONTEXT;
  unmarshaller = jc.createUnmarshaller();
 } catch (JAXBException e) {
  throw new MarkLogicBindingException(e);
 } catch (NoClassDefFoundError ncdfe) {
  throw new MarkLogicBindingException(new JAXBException("JAXB context initialization failed"));
 }
}
origin: com.marklogic/client-api-java

  optionsHolder = (QueryOptions) unmarshaller.unmarshal(in);
} catch (JAXBException e) {
  throw new MarkLogicBindingException(e);
} catch (ParserConfigurationException e) {
  throw new MarkLogicBindingException(e);
} catch (TransformerConfigurationException e) {
  throw new MarkLogicBindingException(e);
} catch (TransformerException e) {
  throw new MarkLogicBindingException(e);
} catch (SAXException e) {
  throw new MarkLogicBindingException(e);
} catch (UnsupportedEncodingException e) {
  throw new MarkLogicBindingException(e);
origin: marklogic/java-client-api

/**
 * Zero-argument constructor.
 */
public ValuesHandle() {
 super();
 super.setFormat(Format.XML);
 try {
  JAXBContext jc = JaxbContextLoader.CACHED_CONTEXT;
  unmarshaller = jc.createUnmarshaller();
 } catch (JAXBException e) {
  throw new MarkLogicBindingException(e);
 } catch (NoClassDefFoundError ncdfe) {
  throw new MarkLogicBindingException(new JAXBException("JAXB context initialization failed"));
 }
}
origin: marklogic/java-client-api

/**
 * The constructor.
 */
public QueryOptionsListHandle() {
 super();
 super.setFormat(Format.XML);
 try {
  JAXBContext jc = JaxbContextLoader.CACHED_CONTEXT;
  marshaller = jc.createMarshaller();
  marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
  unmarshaller = jc.createUnmarshaller();
 } catch (JAXBException e) {
  throw new MarkLogicBindingException(e);
 } catch (NoClassDefFoundError ncdfe) {
  throw new MarkLogicBindingException(new JAXBException("JAXB context initialization failed"));
 }
}
origin: marklogic/java-client-api

/**
 * The constructor.
 */
public ValuesListHandle() {
 super();
 super.setFormat(Format.XML);
 try {
  JAXBContext jc = JaxbContextLoader.CACHED_CONTEXT;
  unmarshaller = jc.createUnmarshaller();
 } catch (JAXBException e) {
  throw new MarkLogicBindingException(e);
 } catch (NoClassDefFoundError ncdfe) {
  throw new MarkLogicBindingException(new JAXBException("JAXB context initialization failed"));
 }
}
origin: com.marklogic/client-api-java

  logger.debug("End write of QueryOptionsHandle");       
} catch (JAXBException e) {
  throw new MarkLogicBindingException(e);
} catch (ParserConfigurationException e) {
  throw new MarkLogicBindingException(e);
} catch (TransformerConfigurationException e) {
  throw new MarkLogicBindingException(e);
} catch (TransformerException e) {
  throw new MarkLogicBindingException(e);
} catch (SAXException e) {
  throw new MarkLogicBindingException(e);
origin: marklogic/java-client-api

 throw new IllegalArgumentException("cannot construct "+columnName+" value as class: "+as.getName());
} catch (InstantiationException e) {
 throw new MarkLogicBindingException("could not construct value as class: "+as.getName(), e);
} catch (IllegalAccessException e) {
 throw new MarkLogicBindingException("could not construct value as class: "+as.getName(), e);
} catch (IllegalArgumentException e) {
 throw new MarkLogicBindingException("could not construct value as class: "+as.getName(), e);
} catch (InvocationTargetException e) {
 throw new MarkLogicBindingException("could not construct value as class: "+as.getName(), e);
origin: com.marklogic/client-api-java

/**
 * Construct a new empty QueryOptionsHandle object.
 */
public QueryOptionsHandle() {
  super.setFormat(Format.XML);
    setResendable(true);
  optionsHolder = new QueryOptions();
  try {
    SAXParser parser = pfactory.newSAXParser();
    XMLReader reader = parser.getXMLReader();
    QueryOptionsTransformExtractNS transform = new QueryOptionsTransformExtractNS();
    transform.setParent(reader);
    jc = JAXBContext.newInstance(QueryOptions.class);
    marshaller = jc.createMarshaller();
    marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
    unmarshaller = jc.createUnmarshaller();
  } catch (JAXBException e) {
    throw new MarkLogicBindingException(e);
  } catch (SAXException e) {
    throw new MarkLogicBindingException(e);
  } catch (ParserConfigurationException e) {
    throw new MarkLogicBindingException(e);
  }
}
com.marklogic.clientMarkLogicBindingException

Javadoc

A Binding Exception indicates a problem converting between a Java object and XML representation of the data. The exception may indicate an internal error. Please contact MarkLogic support.

Most used methods

  • <init>

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (Timer)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now