Package net.sf.jasperreports.engine

Examples of net.sf.jasperreports.engine.JRRuntimeException


    size += len;
  }

  public void checkClosed() {
    if (closed) {
      throw new JRRuntimeException("Output stream already closed.");
    }
  }
View Full Code Here


    if (markupProcessor == null)
    {
      String factoryClass = JRProperties.getProperty(MarkupProcessorFactory.PROPERTY_MARKUP_PROCESSOR_FACTORY_PREFIX + markup);
      if (factoryClass == null)
      {
        throw new JRRuntimeException("No markup processor factory specifyed for '" + markup + "' markup.");
      }

      MarkupProcessorFactory factory = null;
      try
      {
        factory = (MarkupProcessorFactory) markupProcessorFactoryCache.getCachedInstance(factoryClass);
      }
      catch (JRException e)
      {
        throw new JRRuntimeException(e);
      }
     
      markupProcessor = factory.createMarkupProcessor();
      markupProcessors.put(markup, markupProcessor);
    }
View Full Code Here

    if (keepAllText)
    {
      //assert getTextStart() == 0
      if (startIndex != 0)
      {
        throw new JRRuntimeException("Text start index != 0 on keep all text.");
      }
     
      if (!JRCommonText.MARKUP_NONE.equals(getMarkup()))
      {
        //rewrite as styled text
View Full Code Here

    {
      osw = new BufferedWriter(new OutputStreamWriter(fbos, "UTF-8"));
    }
    catch (UnsupportedEncodingException e)
    {
      throw new JRRuntimeException(e);
    }
  }
View Full Code Here

      writer.flush();
    }
    catch(IOException e)
    {
      throw new JRRuntimeException(e);
    }
    finally
    {
      if (reader != null)
      {
View Full Code Here

          resources.add(url);
        }
      }
      catch (IOException e)
      {
        throw new JRRuntimeException(e);
      }
    }
  }
View Full Code Here

          }
        }
      }
    } catch (IOException e)
    {
      throw new JRRuntimeException(e);
    }
  }
View Full Code Here

    {
      clone = (JRBaseQuery)super.clone();
    }
    catch (CloneNotSupportedException e)
    {
      throw new JRRuntimeException(e);
    }
   
    if (chunks != null)
    {
      clone.chunks = new JRQueryChunk[chunks.length];
View Full Code Here

        xmlWriter.addEncodedAttribute(JRXmlConstants.ATTRIBUTE_style, style.getStyle().getName());
      }
      else
      {
        throw
          new JRRuntimeException(
            "Referenced report style not found : "
            + style.getStyle().getName()
            );
      }
    }
View Full Code Here

          xmlWriter.addEncodedAttribute(JRXmlConstants.ATTRIBUTE_reportFont, font.getReportFont().getName());
        }
        else
        {
          throw
            new JRRuntimeException(
              "Referenced report font not found : "
              + font.getReportFont().getName()
              );
        }
      }
View Full Code Here

TOP

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

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.