congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
REXPMismatchException.printStackTrace
Code IndexAdd Tabnine to your IDE (free)

How to use
printStackTrace
method
in
org.rosuda.REngine.REXPMismatchException

Best Java code snippets using org.rosuda.REngine.REXPMismatchException.printStackTrace (Showing top 3 results out of 315)

origin: IQSS/dataverse

ex.printStackTrace();
LOG.fine(String.format("Could not process variable %d of the data frame.", k));
origin: net.rforge/Rserve

REXP parseEvalResponse(RPacket rp) throws RserveException {
  int rxo=0;
  byte[] pc=rp.getCont();
  if (rsrvVersion>100) { /* since 0101 eval responds correctly by using DT_SEXP type/len header which is 4 bytes long */
    rxo=4;
    /* we should check parameter type (should be DT_SEXP) and fail if it's not */
    if (pc[0]!=RTalk.DT_SEXP && pc[0]!=(RTalk.DT_SEXP|RTalk.DT_LARGE))
      throw new RserveException(this,"Error while processing eval output: SEXP (type "+RTalk.DT_SEXP+") expected but found result type "+pc[0]+".");
    if (pc[0]==(RTalk.DT_SEXP|RTalk.DT_LARGE))
      rxo=8; // large data need skip of 8 bytes
    /* warning: we are not checking or using the length - we assume that only the one SEXP is returned. This is true for the current CMD_eval implementation, but may not be in the future. */
  }
  if (pc.length>rxo) {
    try {
      REXPFactory rx=new REXPFactory();
      rx.parseREXP(pc, rxo);
      return rx.getREXP();
    } catch (REXPMismatchException me) {
      me.printStackTrace();
      throw new RserveException(this, "Error when parsing response: "+me.getMessage());
    }
  }
  return null;
}
origin: org.rosuda.REngine/Rserve

REXP parseEvalResponse(RPacket rp) throws RserveException {
  int rxo=0;
  byte[] pc=rp.getCont();
  if (rsrvVersion>100) { /* since 0101 eval responds correctly by using DT_SEXP type/len header which is 4 bytes long */
    rxo=4;
    /* we should check parameter type (should be DT_SEXP) and fail if it's not */
    if (pc[0]!=RTalk.DT_SEXP && pc[0]!=(RTalk.DT_SEXP|RTalk.DT_LARGE))
      throw new RserveException(this,"Error while processing eval output: SEXP (type "+RTalk.DT_SEXP+") expected but found result type "+pc[0]+".");
    if (pc[0]==(RTalk.DT_SEXP|RTalk.DT_LARGE))
      rxo=8; // large data need skip of 8 bytes
    /* warning: we are not checking or using the length - we assume that only the one SEXP is returned. This is true for the current CMD_eval implementation, but may not be in the future. */
  }
  if (pc.length>rxo) {
    try {
      REXPFactory rx=new REXPFactory();
      rx.parseREXP(pc, rxo);
      return rx.getREXP();
    } catch (REXPMismatchException me) {
      me.printStackTrace();
      throw new RserveException(this, "Error when parsing response: " + me.getMessage(), me);
    }
  }
  return null;
}
org.rosuda.REngineREXPMismatchExceptionprintStackTrace

Popular methods of REXPMismatchException

    Popular in Java

    • Creating JSON documents from java classes using gson
    • scheduleAtFixedRate (Timer)
    • getApplicationContext (Context)
    • scheduleAtFixedRate (ScheduledExecutorService)
    • Point (java.awt)
      A point representing a location in (x,y) coordinate space, specified in integer precision.
    • FileReader (java.io)
      A specialized Reader that reads from a file in the file system. All read requests made by calling me
    • Time (java.sql)
      Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
    • StringTokenizer (java.util)
      Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
    • TreeSet (java.util)
      TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
    • JTextField (javax.swing)
    • 14 Best Plugins for Eclipse
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

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