Examples of JRException


Examples of dori.jasper.engine.JRException

            if (task == null)
                return null;
           return acceptor;
        }

        throw new JRException("Unexpected field name '" + fieldName + "'");
    }
View Full Code Here

Examples of net.sf.jasperreports.engine.JRException

      !LANGUAGE_BSH.equals(language)
      && !JRReport.LANGUAGE_JAVA.equals(language)
      )
    {
      throw
        new JRException(
          "Language \"" + language
          + "\" not supported by this report compiler.\n"
          + "Expecting \"bsh\" or \"java\" instead."
          );
    }
View Full Code Here

Examples of net.sf.jasperreports.engine.JRException

    {
      unit.compile(Phases.CLASS_GENERATION);
    }
    catch (CompilationFailedException e)
    {
      throw new JRException(
        "Errors were encountered when compiling report expressions class file:\n"
        + e.toString(),
        e
        );
    }

    if (collector.classes.size() < units.length)
    {
      throw new JRException("Too few groovy class were generated.");
    }
    else if (collector.classCount > units.length)
    {
      throw new JRException(
        "Too many groovy classes were generated.\n"
        + "Please make sure that you don't use Groovy features such as closures that are not supported by this report compiler.\n"
        );
    }
   
View Full Code Here

Examples of net.sf.jasperreports.engine.JRException

      !JRReport.LANGUAGE_GROOVY.equals(language)
      && !JRReport.LANGUAGE_JAVA.equals(language)
      )
    {
      throw
        new JRException(
          "Language \"" + language
          + "\" not supported by this report compiler.\n"
          + "Expecting \"groovy\" or \"java\" instead."
          );
    }
View Full Code Here

Examples of net.sf.jasperreports.engine.JRException

    {
      interpreter.eval(new StringReader(bshScript));
    }
    catch(EvalError e)
    {
      throw new JRException(
        "Error evaluating report expressions BeanShell script."
        + "\nMessage : " + e.getMessage()
        + "\nLine " + e.getErrorLineNumber() + " : " + extractLineContent(e)
        );
    }
View Full Code Here

Examples of net.sf.jasperreports.engine.JRException

    {
      //ignore
    }
    catch(EvalError e)
    {
      throw new JRException(
        "Error testing report expressions BeanShell script."
        + "\nMessage : " + e.getMessage()
        + "\nLine " + e.getErrorLineNumber() + " : " + extractLineContent(e)
        );
    }
View Full Code Here

Examples of net.sf.jasperreports.engine.JRException

      interpreter.eval("bshEvaluator = createBshEvaluator()");
      interpreter.eval("bshEvaluator.init(calculator, parsm, fldsm, varsm)");
    }
    catch(EvalError e)
    {
      throw new JRException("Error initializing report BeanShell calculator.", e);
    }
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.JRException

 
  public Object evaluate(JRExpression expression, byte evaluationType) throws JRException
  {
    if (evaluationType != JRExpression.EVALUATION_DEFAULT)
    {
      throw new JRException("The crosstab evaluator doesn't support old or estimated expression evaluation.");
    }
   
    return evaluator.evaluate(expression);
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.JRException

  protected JREvaluator loadEvaluator(Serializable compileData,
      String unitName) throws JRException
  {
    if (!(compileData instanceof JavaScriptCompileData))
    {
      throw new JRException("Invalid compile data, should be an instance of "
          + JavaScriptCompileData.class.getName());
    }
   
    JavaScriptCompileData jsCompileData = (JavaScriptCompileData) compileData;
    return new JavaScriptEvaluator(jsCompileData);
View Full Code Here

Examples of net.sf.jasperreports.engine.JRException

      Class scriptletClass = JRClassLoader.loadClassForName(scriptletClassName)
      scriptlet = (JRAbstractScriptlet) scriptletClass.newInstance();
    }
    catch (ClassNotFoundException e)
    {
      throw new JRException("Error loading scriptlet class : " + scriptletClassName, e);
    }
    catch (Exception e)
    {
      throw new JRException("Error creating scriptlet class instance : " + scriptletClassName, e);
    }
   
    return scriptlet;
  }
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.