Codota Logo
ResourceException.printStackTrace
Code IndexAdd Codota 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)

  • Common ways to obtain ResourceException
private void myMethod () {
ResourceException r =
  • Codota IconThrowable cause;new ResourceException(cause)
  • Codota IconString message;new ResourceException(message)
  • Codota IconString message;Throwable cause;new ResourceException(message, cause)
  • Smart code suggestions by Codota
}
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

  • Parsing JSON documents to java classes using gson
  • findViewById (Activity)
  • setContentView (Activity)
  • onRequestPermissionsResult (Fragment)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now