Package net.sf.jasperreports.engine

Examples of net.sf.jasperreports.engine.JRException


        Node node = nlist.item(i);
        namespaces.put(node.getNodeName().substring("xmlns:".length()),
            node.getNodeValue());
      }
    } catch (XPathExpressionException ex) {
      throw new JRException("getNamespaces", ex);
    }

    return namespaces;
  }
View Full Code Here


       
        dataSource = new JRResultSetDataSource(resultSet);
      }
      catch (SQLException e)
      {
        throw new JRException("Error executing SQL statement for : " + dataset.getName(), e);
      }
    }
   
    return dataSource;
  }
View Full Code Here

          }
        }
      }
      catch (SQLException e)
      {
        throw new JRException("Error preparing statement for executing the report query : " + "\n\n" + queryString + "\n\n", e);
      }
    }
  }
View Full Code Here

        statement.cancel();
        return true;
      }
      catch (Exception e)
      {
        throw new JRException("Error cancelling SQL statement", e);
      }
    }
   
    return false;
  }
View Full Code Here

   */
  public void addScriptlet(int index, JRScriptlet scriptlet) throws JRException
  {
    if (scriptletsMap.containsKey(scriptlet.getName()))
    {
      throw new JRException("Duplicate declaration of scriptlet : " + scriptlet.getName());
    }

    JRDesignParameter scriptletParameter = new JRDesignParameter();
    scriptletParameter.setName(scriptlet.getName()
        + JRScriptlet.SCRIPTLET_PARAMETER_NAME_SUFFIX);
View Full Code Here

   */
  public void addParameter(int index, JRParameter parameter) throws JRException
  {
    if (parametersMap.containsKey(parameter.getName()))
    {
      throw new JRException("Duplicate declaration of parameter : " + parameter.getName());
    }

    parametersList.add(index, parameter);
    parametersMap.put(parameter.getName(), parameter);
   
View Full Code Here

   */
  public void addField(int index, JRField field) throws JRException
  {
    if (fieldsMap.containsKey(field.getName()))
    {
      throw new JRException("Duplicate declaration of field : " + field.getName());
    }

    fieldsList.add(index, field);
    fieldsMap.put(field.getName(), field);
   
View Full Code Here

   */
  public void addSortField(int index, JRSortField sortField) throws JRException
  {
    if (sortFieldsMap.containsKey(sortField.getName()))
    {
      throw new JRException("Duplicate declaration of sort field : " + sortField.getName());
    }

    sortFieldsList.add(index, sortField);
    sortFieldsMap.put(sortField.getName(), sortField);
   
View Full Code Here

      settings.setUseTemporaryFileDuringWrite(useTempFile);
      workbook = Workbook.createWorkbook(os, settings);
    }
    catch (IOException e)
    {
      throw new JRException("Error generating XLS report : " + jasperPrint.getName(), e);
    }
  }
View Full Code Here

   */
  protected void addVariable(int index, JRDesignVariable variable, boolean system) throws JRException
  {
    if (variablesMap.containsKey(variable.getName()))
    {
      throw new JRException("Duplicate declaration of variable : " + variable.getName());
    }

    if (system)
    {
      // add the variable before the first non-system variable
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.