Examples of printStackTrace()


Examples of org.apache.any23.extractor.ExtractionException.printStackTrace()

        er.notifyIssue(IssueReport.IssueLevel.Error  , "Fake error."      , 3, 4);
        er.notifyIssue(IssueReport.IssueLevel.Warning, "Fake warning."    , 5, 6);

        ExtractionException ee = new ExtractionException("Fake message.", new RuntimeException("Fake cause"), er);
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        ee.printStackTrace(new PrintWriter(baos));
        final String bufferContent = baos.toString();
        Assert.assertTrue("Unexpected message content.", bufferContent.contains(FAKE_EXTRACTOR_NAME));
        Assert.assertTrue("Unexpected message content.", bufferContent.contains("http://fake.document.uri"));
        Assert.assertTrue("Unexpected message content.", bufferContent.contains(
            ExtractionContext.ROOT_EXTRACTION_RESULT_ID
View Full Code Here

Examples of org.apache.avalon.repository.RepositoryException.printStackTrace()

        {
            final String error =
              "Internal error. "
              + "Unable to locate the standard repository implementation directive.";
            RepositoryException re = new RepositoryException( error, e );
            re.printStackTrace( System.err );
            return null;
        }
    }

    private static Artifact getDefaultImplementation()
View Full Code Here

Examples of org.apache.axiom.om.OMElement.printStackTrace()

            // Important - free up resources used running the query
            qe.close();
            return resultString;
        } catch (Exception e) {
            e.printStackTrace();
            throw e;
        }
    }

    public static Object jsFunction_getDataFromSparqlEndPoint(Context cx, Scriptable thisObj, Object[] args, Function funObj)
View Full Code Here

Examples of org.apache.cocoon.portal.layout.Item.printStackTrace()

        nObj.setParent(ni);
        ni.setLayout(nObj);
      }
     
    } catch (ProcessingException e) {
      e.printStackTrace();
    }
    }
   
    /**
     * Adds a new Tab
View Full Code Here

Examples of org.apache.cocoon.portal.layout.NamedItem.printStackTrace()

          ((CompositeLayout) lay).addItem(m);
          m.setLayout(tab);
        }
       
      } catch (ProcessingException e) {
        e.printStackTrace();
      }
    }
    }
   
    public Collection getSelectedCoplets(Repeater r, Collection lets, String parent) {
View Full Code Here

Examples of org.apache.commons.jexl.Expression.printStackTrace()

      Expression e = ExpressionFactory.createExpression("a+b");
      Object o = e.evaluate(jc);
      assertEquals(o, Long.valueOf(13));
      System.out.println("JEXL library test ok");
    } catch (Exception e) {
      e.printStackTrace();
      throw (e);
    }
  }

  private static void measureSpeed(String expr, int times, Expression eval, JexlContext input, Object output) throws Exception {
View Full Code Here

Examples of org.apache.derby.client.am.SqlException.printStackTrace()

                 public void run()
                 {
                     try {
                         rollback();
                         close();
                     } catch (SQLException se) { se.printStackTrace( agent_.getLogWriter() ); }
                 }
             }
             );
    }
View Full Code Here

Examples of org.apache.directory.api.ldap.model.exception.LdapSchemaViolationException.printStackTrace()

        {
            throw le;
        }
        catch ( Exception e )
        {
            e.printStackTrace();
            throw new LdapException( e );
        }
    }

View Full Code Here

Examples of org.apache.directory.shared.ldap.model.exception.LdapSchemaViolationException.printStackTrace()

        {
            throw le;
        }
        catch ( Exception e )
        {
            e.printStackTrace();
            throw new LdapException( e );
        }
    }

View Full Code Here

Examples of org.apache.geronimo.common.DeploymentException.printStackTrace()

    protected void doDeploy(ObjectName deployer, Target target, boolean finished) throws Exception {
        Object[] args = {moduleArchive, deploymentPlan};
        List objectNames = (List) kernel.invoke(deployer, "deploy", args, DEPLOY_SIG);
        if (objectNames == null || objectNames.isEmpty()) {
            DeploymentException deploymentException = new DeploymentException("Got empty list");
            deploymentException.printStackTrace();
            throw deploymentException;
        }
        String parentName = (String) objectNames.get(0);
        String[] childIDs = new String[objectNames.size()-1];
        for (int j=0; j < childIDs.length; j++) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.