Tabnine Logo
ResourceException.printStackTrace
Code IndexAdd Tabnine to your IDE (free)

How to use
printStackTrace
method
in
javax.resource.ResourceException

Best Java code snippets using javax.resource.ResourceException.printStackTrace (Showing top 13 results out of 315)

origin: apache/geode

/**
 * Creates a new connection for the managed connection pool.
 *
 * @return the managed connection from the EIS as ManagedConnection object.
 */
@Override
public Object getNewPoolConnection() throws PoolException {
 ManagedConnection manConn = null;
 try {
  manConn = connFactory.createManagedConnection(sub, connReqInfo);
 } catch (ResourceException rex) {
  rex.printStackTrace();
  throw new PoolException(
    "ManagedPoolCacheImpl::getNewConnection: Exception in creating new Managed PooledConnection",
    rex);
 }
 manConn
   .addConnectionEventListener((javax.resource.spi.ConnectionEventListener) connEventListner);
 return manConn;
}
origin: com.mockrunner/mockrunner-jca

  private void handleException(Exception exc, LocalTransaction transaction)
  {
    if(null != transaction)
    {
      try
      {
        transaction.rollback();
      } 
      catch(ResourceException txExc)
      {
        txExc.printStackTrace();
      }
    }
  }
}
origin: org.firebirdsql.jdbc/jaybird-jdk17

/**
 * Print the stack trace of this exception to a given {@code PrintStream}
 *
 * @param s
 *         The {@code PrintStream} to which to write the stack trace
 */
public void printStackTrace(PrintStream s) {
  super.printStackTrace(s);
  if (getLinkedException() != null) {
    s.print("at ");
    getLinkedException().printStackTrace(s);
  }
}
origin: org.firebirdsql.jdbc/jaybird-jdk18

/**
 * Print the stack trace of this exception to a given {@code PrintStream}
 *
 * @param s
 *         The {@code PrintStream} to which to write the stack trace
 */
public void printStackTrace(PrintStream s) {
  super.printStackTrace(s);
  if (getLinkedException() != null) {
    s.print("at ");
    getLinkedException().printStackTrace(s);
  }
}
origin: org.firebirdsql.jdbc/jaybird-jdk17

  /**
   * Print the stack trace of this exception to a given {@code PrintWriter}
   *
   * @param s
   *         The {@code PrintWriter} to which to write the stack trace
   */
  public void printStackTrace(PrintWriter s) {
    super.printStackTrace(s);
    if (getLinkedException() != null) {
      s.print("at ");
      getLinkedException().printStackTrace(s);
    }
  }
}
origin: org.firebirdsql.jdbc/jaybird-jdk18

  /**
   * Print the stack trace of this exception to a given {@code PrintWriter}
   *
   * @param s
   *         The {@code PrintWriter} to which to write the stack trace
   */
  public void printStackTrace(PrintWriter s) {
    super.printStackTrace(s);
    if (getLinkedException() != null) {
      s.print("at ");
      getLinkedException().printStackTrace(s);
    }
  }
}
origin: org.jboss.jbossas/jboss-as-connector

/**
* Prints the composite message and the embedded stack trace to the
* specified print stream.
*
* @param stream  Stream to print to.
*/
public void printStackTrace(final PrintStream stream)
{
 Exception linked = getLinkedException();
 if (linked == null || NestedThrowable.PARENT_TRACE_ENABLED)
 {
   super.printStackTrace(stream);
 }
 NestedThrowable.Util.print(linked, stream);
}
origin: org.jboss.jbossas/jboss-as-connector

/**
* Prints the composite message and the embedded stack trace to the
* specified print writer.
*
* @param writer  Writer to print to.
*/
public void printStackTrace(final PrintWriter writer)
{
 Exception linked = getLinkedException();
 if (linked == null || NestedThrowable.PARENT_TRACE_ENABLED)
 {
   super.printStackTrace(writer);
 }
 NestedThrowable.Util.print(linked, writer);
}
origin: org.apache.geode/gemfire-core

/**
 * Creates a new connection for the managed connection pool.
 * 
 * @return the managed connection from the EIS as ManagedConnection object.
 * @throws PoolException
 */
@Override
public Object getNewPoolConnection() throws PoolException {
 ManagedConnection manConn = null;
 try {
  manConn = connFactory.createManagedConnection(sub, connReqInfo);
 }
 catch (ResourceException rex) {
  rex.printStackTrace();
  throw new PoolException(LocalizedStrings.ManagedPoolCacheImpl_MANAGEDPOOLCACHEIMPLGETNEWCONNECTION_EXCEPTION_IN_CREATING_NEW_MANAGED_POOLEDCONNECTION.toLocalizedString(), rex);
 }
 manConn
   .addConnectionEventListener((javax.resource.spi.ConnectionEventListener) connEventListner);
 return manConn;
}
origin: io.snappydata/gemfire-core

/**
 * Creates a new connection for the managed connection pool.
 * 
 * @return the managed connection from the EIS as ManagedConnection object.
 * @throws PoolException
 */
@Override
public Object getNewPoolConnection() throws PoolException {
 ManagedConnection manConn = null;
 try {
  manConn = connFactory.createManagedConnection(sub, connReqInfo);
 }
 catch (ResourceException rex) {
  rex.printStackTrace();
  throw new PoolException(LocalizedStrings.ManagedPoolCacheImpl_MANAGEDPOOLCACHEIMPLGETNEWCONNECTION_EXCEPTION_IN_CREATING_NEW_MANAGED_POOLEDCONNECTION.toLocalizedString(), rex);
 }
 manConn
   .addConnectionEventListener((javax.resource.spi.ConnectionEventListener) connEventListner);
 return manConn;
}
origin: com.mockrunner/mockrunner-jca

exc.printStackTrace();
  exc.printStackTrace();
origin: com.mockrunner/mockrunner-jca

exc.printStackTrace();
origin: jboss-switchyard/components

JCALogger.ROOT_LOGGER.failedToCloseInteractionConnection(e.getMessage());
if (_logger.isDebugEnabled()) {
  e.printStackTrace();
javax.resourceResourceExceptionprintStackTrace

Popular methods of ResourceException

  • <init>
    Constructs a new throwable with the specified cause.
  • getMessage
    Returns a detailed message string describing this exception.
  • getErrorCode
    Get the error code.
  • getCause
  • getLinkedException
    Get the exception linked to this ResourceException
  • initCause
  • setLinkedException
    Add a linked Exception to this ResourceException.
  • toString
  • getHttpStatus
  • getStatus
  • setErrorCode
    Set the error code.
  • setErrorCode

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (Timer)
  • compareTo (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • ImageIO (javax.imageio)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top PhpStorm 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