java.lang.NullPointerException

ICEsoft JIRA Issue Tracker | Arran Mccullough | 4 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    The following NPE is thrown when trying to render the provided PDF file: Oct 22, 2013 9:42:49 AM org.icepdf.core.pobjects.Resources getFont WARNING: Error initializing font. java.lang.NullPointerException at java.lang.System.arraycopy(Native Method) at org.icepdf.core.pobjects.fonts.nfont.b.f.read(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.b.f.read(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.b.f.readFully(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.i.readRaw(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.i.getTable(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.NFontTrueType.getCmap(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.NFontTrueType.deriveFont(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.Font.setEncoding(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.Font.init(Unknown Source) at org.icepdf.core.pobjects.Resources.getFont(Resources.java:150) at org.icepdf.core.util.content.AbstractContentParser.consume_Tf(AbstractContentParser.java:722) at org.icepdf.core.util.content.NContentParser.parseText(Unknown Source) at org.icepdf.core.util.content.NContentParser.parse(Unknown Source) at org.icepdf.core.pobjects.Form.init(Form.java:168) at org.icepdf.core.pobjects.annotations.Annotation.init(Annotation.java:720) at org.icepdf.core.pobjects.annotations.MarkupAnnotation.init(MarkupAnnotation.java:172) at org.icepdf.core.pobjects.annotations.FreeTextAnnotation.init(FreeTextAnnotation.java:249) at org.icepdf.core.pobjects.annotations.Annotation.buildAnnotation(Annotation.java:617) at org.icepdf.core.util.Parser.getObject(Parser.java:427) at org.icepdf.core.util.LazyObjectLoader.loadObject(LazyObjectLoader.java:73) at org.icepdf.core.util.Library.getObject(Library.java:156) at org.icepdf.core.pobjects.Page.initPageAnnotations(Page.java:286) at org.icepdf.core.pobjects.Page.init(Page.java:338) at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1064) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722)

    ICEsoft JIRA Issue Tracker | 4 years ago | Arran Mccullough
    java.lang.NullPointerException
  2. 0

    The following NPE is thrown when trying to render the provided PDF file: Oct 22, 2013 9:42:49 AM org.icepdf.core.pobjects.Resources getFont WARNING: Error initializing font. java.lang.NullPointerException at java.lang.System.arraycopy(Native Method) at org.icepdf.core.pobjects.fonts.nfont.b.f.read(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.b.f.read(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.b.f.readFully(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.i.readRaw(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.i.getTable(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.NFontTrueType.getCmap(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.NFontTrueType.deriveFont(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.Font.setEncoding(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.Font.init(Unknown Source) at org.icepdf.core.pobjects.Resources.getFont(Resources.java:150) at org.icepdf.core.util.content.AbstractContentParser.consume_Tf(AbstractContentParser.java:722) at org.icepdf.core.util.content.NContentParser.parseText(Unknown Source) at org.icepdf.core.util.content.NContentParser.parse(Unknown Source) at org.icepdf.core.pobjects.Form.init(Form.java:168) at org.icepdf.core.pobjects.annotations.Annotation.init(Annotation.java:720) at org.icepdf.core.pobjects.annotations.MarkupAnnotation.init(MarkupAnnotation.java:172) at org.icepdf.core.pobjects.annotations.FreeTextAnnotation.init(FreeTextAnnotation.java:249) at org.icepdf.core.pobjects.annotations.Annotation.buildAnnotation(Annotation.java:617) at org.icepdf.core.util.Parser.getObject(Parser.java:427) at org.icepdf.core.util.LazyObjectLoader.loadObject(LazyObjectLoader.java:73) at org.icepdf.core.util.Library.getObject(Library.java:156) at org.icepdf.core.pobjects.Page.initPageAnnotations(Page.java:286) at org.icepdf.core.pobjects.Page.init(Page.java:338) at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1064) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722)

    ICEsoft JIRA Issue Tracker | 4 years ago | Arran Mccullough
    java.lang.NullPointerException
  3. 0
    samebug tip
    Update graylog2-server to lastest version, 0.20.7 or further
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    BitmapFontCache.draw crashes if empty

    GitHub | 3 years ago | Kernle32DLL
    java.lang.NullPointerException

  1. Andreas Häber 6 times, last 7 months ago
4 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NullPointerException

    No message provided

    at java.lang.System.arraycopy()
  2. Java RT
    System.arraycopy
    1. java.lang.System.arraycopy(Native Method)
    1 frame
  3. org.icepdf.core
    Page.init
    1. org.icepdf.core.pobjects.fonts.nfont.b.f.read(Unknown Source)
    2. org.icepdf.core.pobjects.fonts.nfont.b.f.read(Unknown Source)
    3. org.icepdf.core.pobjects.fonts.nfont.b.f.readFully(Unknown Source)
    4. org.icepdf.core.pobjects.fonts.nfont.i.readRaw(Unknown Source)
    5. org.icepdf.core.pobjects.fonts.nfont.i.getTable(Unknown Source)
    6. org.icepdf.core.pobjects.fonts.nfont.NFontTrueType.getCmap(Unknown Source)
    7. org.icepdf.core.pobjects.fonts.nfont.NFontTrueType.deriveFont(Unknown Source)
    8. org.icepdf.core.pobjects.fonts.nfont.Font.setEncoding(Unknown Source)
    9. org.icepdf.core.pobjects.fonts.nfont.Font.init(Unknown Source)
    10. org.icepdf.core.pobjects.Resources.getFont(Resources.java:150)
    11. org.icepdf.core.util.content.AbstractContentParser.consume_Tf(AbstractContentParser.java:722)
    12. org.icepdf.core.util.content.NContentParser.parseText(Unknown Source)
    13. org.icepdf.core.util.content.NContentParser.parse(Unknown Source)
    14. org.icepdf.core.pobjects.Form.init(Form.java:168)
    15. org.icepdf.core.pobjects.annotations.Annotation.init(Annotation.java:720)
    16. org.icepdf.core.pobjects.annotations.MarkupAnnotation.init(MarkupAnnotation.java:172)
    17. org.icepdf.core.pobjects.annotations.FreeTextAnnotation.init(FreeTextAnnotation.java:249)
    18. org.icepdf.core.pobjects.annotations.Annotation.buildAnnotation(Annotation.java:617)
    19. org.icepdf.core.util.Parser.getObject(Parser.java:427)
    20. org.icepdf.core.util.LazyObjectLoader.loadObject(LazyObjectLoader.java:73)
    21. org.icepdf.core.util.Library.getObject(Library.java:156)
    22. org.icepdf.core.pobjects.Page.initPageAnnotations(Page.java:286)
    23. org.icepdf.core.pobjects.Page.init(Page.java:338)
    23 frames
  4. org.icepdf.ri
    PageViewComponentImpl$PageInitializer.run
    1. org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1064)
    1 frame
  5. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    3. java.lang.Thread.run(Thread.java:722)
    3 frames