Package net.sf.jasperreports.engine

Examples of net.sf.jasperreports.engine.JRException


          cellStyle.setBorder(Border.RIGHT, box.borderStyle[BoxStyle.RIGHT], box.borderColour[BoxStyle.RIGHT]);
        }
      }
      catch (Exception e)
      {
        throw new JRException("Error setting cellFormat-template.", e);
      }

      loadedCellStyles.put(styleKey, cellStyle);
    }
View Full Code Here


    {
      sheet.addCell(cell);
    }
    catch (JXLException e)
    {
      throw new JRException("Can't add cell.", e);
    }
  }
View Full Code Here

        return getDocumentBuilder().parse(inputStream);
      } else if (uri != null) {
        return getDocumentBuilder().parse(uri);
      }
    } catch (SAXException e) {
      throw new JRException("Failed to parse the xml document", e);
    } catch (IOException e) {
      throw new JRException("Failed to parse the xml document", e);
    }
    return null;
  }
View Full Code Here

      } else {
        return JRXmlUtils.createDocumentBuilder();
      }
    } catch (ParserConfigurationException e)
    {
      throw new JRException("Failed to create a document builder", e);
    }
  }
View Full Code Here

        xPath = new DOMXPath(expression);
        addNamespaceContext(contextNode, xPath, expression);
      }
      catch (JaxenException e)
      {
        throw new JRException("XPath compilation failed. Expression: " + expression, e);
      }
      cachedXPaths.put(expression, xPath);
    }
    return xPath;
  }
View Full Code Here

      }
      return new NodeListWrapper(nodes);
    }
    catch (JaxenException e)
    {
      throw new JRException("XPath selection failed. Expression: " + expression, e);
    }   
  }
View Full Code Here

      }
      return value;
    }
    catch (JaxenException e)
    {
      throw new JRException("XPath selection failed. Expression: " + expression, e);
    }
  }
View Full Code Here

                }
            }
           
    } catch (JaxenException e)
    {
      throw new JRException("XPath selection failed. Expression: " + namespaceXPathString, e);
    }
   
        return namespaces;
  }
View Full Code Here

  public NodeList selectNodeList(Node contextNode, String expression) throws JRException
  {
    try {
      return xpathAPI.selectNodeList(contextNode, expression);
    } catch (TransformerException e) {
      throw new JRException("XPath selection failed. Expression: "
          + expression, e);
    }
  }
View Full Code Here

          value = object.str();
          break;
      }
      return value;
    } catch (TransformerException e) {
      throw new JRException("XPath selection failed. Expression: "
          + expression, e);
    }
  }
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.JRException

Copyright © 2018 www.massapicom. 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.