Package net.sf.jasperreports.engine

Examples of net.sf.jasperreports.engine.JRRuntimeException


          // first overflow
          overflowStartPage = pageCount;
        }
        else if (pageCount >= overflowStartPage + 2)
        {
          throw new JRRuntimeException("List row overflowed on 3 consecutive pages, "
              + "likely infinite loop");
        }
       
        // set the filling flag so that we know that we are continuing
        filling = true;
       
        // set the index of the column that overflowed
        // this is actually the index + 1
        overflowColumnIndex = columnIndex;

        return FillPrepareResult.printStretch(availableHeight, overflow);
      }
      else
      {
        // list has completed;
       
        // fill last row, if not filled
        if (columnIndex > 0)
        {
          fillRow(columnIndex);
         
          // reset overflow column index
          overflowColumnIndex = 0;
        }
       
        if (log.isDebugEnabled())
        {
          log.debug("List has completed rendering");
        }
       
        filling = false;
        datasetRun.end();
       
        if (!hadData)
        {
          //if no data, set as no print
          return FillPrepareResult.NO_PRINT_NO_OVERFLOW;
        }

        return FillPrepareResult.printStretch(printFrame.getHeight(), false);
      }
    }
    catch (JRException e)
    {
      throw new JRRuntimeException(e);
    }
  }
View Full Code Here


        return FillPrepareResult.printStretch(printFrame.getHeight(), false);
      }
    }
    catch (JRException e)
    {
      throw new JRRuntimeException(e);
    }
  }
View Full Code Here

      return clone;
    }
    catch (CloneNotSupportedException e)
    {
      // never
      throw new JRRuntimeException(e);
    }
  }
View Full Code Here

        jasperPrint.addStyle(style);
      }
    }
    catch (JRException e)
    {
      throw new JRRuntimeException(e);
    }

    JRStyle reportDefault = report.getDefaultStyle();
    JRStyle printDefault = null;
    if (reportDefault == null)
View Full Code Here

  protected void loadTemplateStyles(String location, Set loadedLocations, Set parentLocations)
  {
    if (!parentLocations.add(location))
    {
      throw new JRRuntimeException("Circular dependency found for template at location "
          + location);
    }
   
    if (!loadedLocations.add(location))
    {
View Full Code Here

        JRFillCategorySeries crtCategorySeries = categorySeries[i];
       
        Comparable seriesName = crtCategorySeries.getSeries();
        if (seriesName == null)
        {
          throw new JRRuntimeException("Category series name is null.");
        }

        dataset.addValue(
          crtCategorySeries.getValue(),
          crtCategorySeries.getSeries(),
View Full Code Here

     
      barcode.draw(grx, 0, 0);
    }
    catch (OutputException e)
    {
      throw new JRRuntimeException(e);
    }
    finally
    {
      grx.setTransform(origTransform);
    }
View Full Code Here

      clone.cell = (Cell) JRCloneUtils.nullSafeClone(cell);
      return clone;
    }
    catch (CloneNotSupportedException e)
    {
      throw new JRRuntimeException(e);
    }
  }
View Full Code Here

    {
      clone = (ChartSettings)super.clone();
    }
    catch (CloneNotSupportedException e)
    {
      throw new JRRuntimeException(e);
    }
    return clone;
  }
View Full Code Here

      return clone;
    }
    catch (CloneNotSupportedException e)
    {
      // never
      throw new JRRuntimeException(e);
    }
  }
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.