Examples of printStackTrace()


Examples of org.picocontainer.PicoException.printStackTrace()

        PicoException simpleException = new PicoException("Outer") {
        };
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        PrintStream printStream = new PrintStream(out);
        nestedException.printStackTrace(printStream);
        simpleException.printStackTrace(printStream);
        out.close();
        assertTrue(out.toString().indexOf("Caused by:") > 0);
        out = new ByteArrayOutputStream();
        PrintWriter writer = new PrintWriter(out);
        nestedException.printStackTrace(writer);
View Full Code Here

Examples of org.python.pydev.parser.jython.ParseException.printStackTrace()

            for (int i = 0; i < additionalErrInfo.length; i++) {
                s += additionalErrInfo[i];
            }
            if (err instanceof ParseException) {
                ParseException parseErr = (ParseException) err;
                parseErr.printStackTrace();

                Token token = parseErr.currentToken;
                if (token != null) {
                    fail("Expected no error, received: " + parseErr.getMessage() + "\n" + s + "\nline:"
                            + token.beginLine + "\ncol:" + token.beginColumn);
View Full Code Here

Examples of org.springframework.jms.JmsException.printStackTrace()

    Exception innerEx = new Exception("host not found");
    jmsEx.setLinkedException(innerEx);
    JmsException springJmsEx = JmsUtils.convertJmsAccessException(jmsEx);
    StringWriter sw = new StringWriter();
    PrintWriter out = new PrintWriter(sw);
    springJmsEx.printStackTrace(out);
    String trace = sw.toString();
    assertTrue("inner jms exception not found", trace.indexOf("host not found") > 0);
  }

  public void testProducerCallback() throws Exception {
View Full Code Here

Examples of org.w3c.dom.Document.printStackTrace()

            try {
              v = ((Type)v).getValue(cntx);
            } catch (CalculateException e) {
              v = null;
              // TODO Auto-generated catch block
              e.printStackTrace();
            }
          con.addRequestProperty(n, Strings.getString(v));
          System.out.println(((n == null) ? "" : n + ":") + Strings.getString(v));
        } else
          con.setRequestProperty(n, null);
View Full Code Here

Examples of org.w3c.dom.Element.printStackTrace()

//            serializer.serialize(doc);
            this.XML = strWriter.toString();
            strWriter.close();
        } catch (Exception ex) {
            Debug.output("WMSException Internal Error !\n[");
            ex.printStackTrace();
            Debug.output("]");
            this.XML = INTERNALERROR;
        }

    }
View Full Code Here

Examples of org.xilaew.atg.model.abstractTestCaseGraph.AbstractTCGEdge.printStackTrace()

      if (!currentNode.equals(currentEdge.getFirst().getSource())) {
        try {
          throw new YouShallNotDoThisException("bullshit");
        } catch (YouShallNotDoThisException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        }
      }
      ;
      currentNode = currentEdge.getFirst().getTarget();
      currentPath.getEdges().add(currentEdge.getFirst());
View Full Code Here

Examples of org.xmlBlaster.util.XmlBlasterException.printStackTrace()

         throw XmlBlasterException.tranformCallbackException(e);
      }
      catch (Throwable e) { // e.g. IOException
         String str = "Sending message to " + ((callbackAddress!=null)?callbackAddress.getRawAddress():"?") + " failed: " + e.toString();
         if (log.isLoggable(Level.FINE)) log.fine(str);
         e.printStackTrace();
         throw new XmlBlasterException(glob, ErrorCode.COMMUNICATION_NOCONNECTION, ME, "CallbackFailed", e);
      }
   }

   /**
 
View Full Code Here

Examples of se.sics.mspsim.core.Profiler.printStackTrace()

          Profiler profiler = cpu.getProfiler();
          if (profiler == null) {
            context.err.println("No profiler found.");
            return 1;
          }
          profiler.printStackTrace(context.out);
          return 0;
        }
      });

      ch.registerCommand("stackprof", new BasicCommand("Start stack profiler", "") {
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.core.data.Experiment.printStackTrace()

        requestManager.saveKitDescriptor(kd);
      }
      return JSONUtils.SimpleJSONResponse("Saved kit!");
    }
    catch (IOException e) {
      e.printStackTrace();
      return JSONUtils.SimpleJSONError("Failed to save library kit");
    }
  }

// empcr
View Full Code Here

Examples of xsul.wsif.impl.WSIFMessageElement.printStackTrace()

                    try {
                        System.out.println(Thread.currentThread().getName());
                        WSIFMessageElement e = new WSIFMessageElement(m);
                        this.invoker.setOutputMessage(e);
                    } catch (Throwable e) {
                        e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
                    }
                }
                try {
                    Thread.currentThread().sleep(1000L); //do not overload msg box service ...
                } catch (InterruptedException e) {
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.