Menu

Unable to use paperclips

Michele
2007-08-03
2013-04-10
  • Michele

    Michele - 2007-08-03

    I'm connected to paperclips subversion (Eclipse Europa (3.3), jdk 1.6.0_02, fedora 7, gnome 2.18.3) and download version 265.

    Results are:
    - Snippet1 works;
    - Snippet2 works;
    - Snippet3 works;
    - Snippet4 works;
    - Snippet5 works;
    - Snippet6 works;
    - ColumnPrintExample works;
    - GridPrintCellClippingExample works;
    - GridPrintExample works;
    - GridPrintVerticalAlignmentExample works;
    - PagePrintExample works;

    - Snippets7 hangs with:
    Exception in thread "main" java.lang.RuntimeException: Unable to layout page 1
        at net.sf.paperclips.PaperClips.getPages(PaperClips.java:259)
        at net.sf.paperclips.PaperClips.getPages(PaperClips.java:232)
        at net.sf.paperclips.ui.PrintPreview.getPages(PrintPreview.java:373)
        at net.sf.paperclips.ui.PrintPreview.getPageCount(PrintPreview.java:151)
        at net.sf.paperclips.examples.Snippet7$1.run(Snippet7.java:108)
        at net.sf.paperclips.examples.Snippet7.main(Snippet7.java:331)

    - All other example hangs with: (variable parameters)
    #
    # An unexpected error has been detected by Java Runtime Environment:
    #
    #  SIGSEGV (0xb) at pc=0x06219976, pid=6000, tid=3086556048
    #
    # Java VM: Java HotSpot(TM) Client VM (1.6.0_02-b05 mixed mode, sharing)
    # Problematic frame:
    # V  [libjvm.so+0x219976]
    #
    # An error report file with more information is saved as hs_err_pid6000.log
    #
    # If you would like to submit a bug report, please visit:
    #   http://java.sun.com/webapps/bugreport/crash.jsp
    #

    Same situation in Windows XP Professional with jdk 1.5.0_10 work perfectly.
    I will investigate on Linux/Windows and on jdk 1.5/1.6 ...

     
    • Matthew Hall

      Matthew Hall - 2007-08-03

      Please open a bug report in the tracker and we will continue the conversation there.  Then add a call to PaperClips.setDebug(true) at the beginning of the Snippet7 main method and attach a screen capture of what it's doing.  It might also help to know what kind of printer you have as your system default.

      Matthew

       
    • Matthew Hall

      Matthew Hall - 2007-08-03

      Also please attach the hs_err_*.log files mentioned in the JVM crash messages.

       
    • Michele

      Michele - 2007-08-03
       

Log in to post a comment.

MongoDB Logo MongoDB