java.lang.NullPointerException

Atlassian JIRA | Steve Croy | 5 years ago
  1. 0

    This is with Office Connector 1.18. h3. Steps to Reproduce # Create a PowerPoint file in Office 2007. Add a slide with text, a slide with a chart, a slide with SmartArt, and a Slide with an image. Save as PPTX # Upload to a Confluence Page and insert an Office Connector # Slides with Charts and SmartArt appear blank. Other slides with images/text look fine. This is consistently repeatable, even when using other people's PPTX files. I have inserted the Test.pptx (fails), Test.ppt (works), and a screenshot of how they appear on the page when viewing the same slide (PPTX on top, PPT below that). I believe this is an extremely important bug to fix, as otherwise it severely limits the viability of using the Office Connector to view PowerPoint files as time goes on. h3. Workaround # Open the PPTX in PowerPoint and save as a Office 2003-2007 PPT # Upload to a Confluence Page and insert an Office Connector # Slides with Charts and SmartArt display correctly (as do all other slides) NB: The workaround may not work in all cases, we have examples of files that are saved as PPT that also display the problem. In that case, some alternatives are: * Save the file as a PDF instead * Take a screenshot of how the image looks when displayed in Powerpoint directly, and insert that as an image instead of the Chart or SmartArt. *Example of exception thrown:*{noformat} 2012-05-29 17:47:16,521 ERROR [DefaultSlideCacheManager:thread-5] [com.benryan.conversion.AbstractSlideConversionTask] call problem while converting ???????_?????_?????_???????_????_new.pptx -- url: /plugins/servlet/pptslide | userName: admin java.lang.NullPointerException at com.benryan.pptx.record.AbstractSingleShape.getPredefinedShape(AbstractSingleShape.java:169) at com.benryan.escher.EscherRenderer.renderAutoshape(EscherRenderer.java:565) at com.benryan.escher.EscherRenderer.walkShapes(EscherRenderer.java:233) at com.benryan.ppt.PptRenderer.render(PptRenderer.java:128) at com.benryan.conversion.PPtDocumentConversionTask.convertFile(PPtDocumentConversionTask.java:54) ... {noformat}

    Atlassian JIRA | 5 years ago | Steve Croy
    java.lang.NullPointerException
  2. 0

    This is with Office Connector 1.18. h3. Steps to Reproduce # Create a PowerPoint file in Office 2007. Add a slide with text, a slide with a chart, a slide with SmartArt, and a Slide with an image. Save as PPTX # Upload to a Confluence Page and insert an Office Connector # Slides with Charts and SmartArt appear blank. Other slides with images/text look fine. This is consistently repeatable, even when using other people's PPTX files. I have inserted the Test.pptx (fails), Test.ppt (works), and a screenshot of how they appear on the page when viewing the same slide (PPTX on top, PPT below that). I believe this is an extremely important bug to fix, as otherwise it severely limits the viability of using the Office Connector to view PowerPoint files as time goes on. h3. Workaround # Open the PPTX in PowerPoint and save as a Office 2003-2007 PPT # Upload to a Confluence Page and insert an Office Connector # Slides with Charts and SmartArt display correctly (as do all other slides) NB: The workaround may not work in all cases, we have examples of files that are saved as PPT that also display the problem. In that case, some alternatives are: * Save the file as a PDF instead * Take a screenshot of how the image looks when displayed in Powerpoint directly, and insert that as an image instead of the Chart or SmartArt. *Example of exception thrown:*{noformat} 2012-05-29 17:47:16,521 ERROR [DefaultSlideCacheManager:thread-5] [com.benryan.conversion.AbstractSlideConversionTask] call problem while converting ???????_?????_?????_???????_????_new.pptx -- url: /plugins/servlet/pptslide | userName: admin java.lang.NullPointerException at com.benryan.pptx.record.AbstractSingleShape.getPredefinedShape(AbstractSingleShape.java:169) at com.benryan.escher.EscherRenderer.renderAutoshape(EscherRenderer.java:565) at com.benryan.escher.EscherRenderer.walkShapes(EscherRenderer.java:233) at com.benryan.ppt.PptRenderer.render(PptRenderer.java:128) at com.benryan.conversion.PPtDocumentConversionTask.convertFile(PPtDocumentConversionTask.java:54) ... {noformat}

    Atlassian JIRA | 5 years ago | Steve Croy
    java.lang.NullPointerException
  3. 0

    OfficeConnector cannot render testpowerpoint.pptx file: {noformat} 2014-08-21 08:35:50,531 WARN [http-bio-8090-exec-5] [com.benryan.conversion.PPTSlideServlet] doGet Conversion task timed out for attachment : testpowerpoint.pptx with page number 0, waited : 300, now executing in background. - referer: https://testsite/display/HOME/July+23rd%2C+2014 | url: /plugins/servlet/pptslide | userName: admin 2014-08-21 08:35:50,849 ERROR [DefaultSlideCacheManager:thread-2] [com.benryan.conversion.AbstractSlideConversionTask] call problem while converting testpowerpoint.pptx - url: /plugins/servlet/pptslide | userName: anonymous | referer: https://testsite/display/HOME/July+23rd%2C+2014 java.lang.NullPointerException at com.benryan.pptx.record.AbstractSingleShape.getPredefinedShape(AbstractSingleShape.java:169) at com.benryan.escher.EscherRenderer.renderAutoshape(EscherRenderer.java:565) at com.benryan.escher.EscherRenderer.walkShapes(EscherRenderer.java:233) at com.benryan.escher.EscherRenderer.walkShapes(EscherRenderer.java:252) at com.benryan.ppt.PptRenderer.render(PptRenderer.java:125) at com.benryan.conversion.PPtDocumentConversionTask.convertFile(PPtDocumentConversionTask.java:56) at com.benryan.conversion.PPtDocumentConversionTask.convertFile(PPtDocumentConversionTask.java:27) at com.benryan.conversion.AbstractSlideConversionTask.call(AbstractSlideConversionTask.java:50) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 2014-08-21 08:35:50,850 WARN [http-bio-8090-exec-9] [com.benryan.conversion.PPTSlideServlet] doGet Conversion task timed out for attachment : testpowerpoint.pptx with page number 0, waited : 300, now executing in background. {noformat}

    Atlassian JIRA | 2 years ago | Olli Nevalainen
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException

    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 com.benryan.pptx.record.AbstractSingleShape.getPredefinedShape()
    2. com.benryan.pptx
      AbstractSingleShape.getPredefinedShape
      1. com.benryan.pptx.record.AbstractSingleShape.getPredefinedShape(AbstractSingleShape.java:169)
      1 frame
    3. com.benryan.escher
      EscherRenderer.walkShapes
      1. com.benryan.escher.EscherRenderer.renderAutoshape(EscherRenderer.java:565)
      2. com.benryan.escher.EscherRenderer.walkShapes(EscherRenderer.java:233)
      2 frames
    4. com.benryan.ppt
      PptRenderer.render
      1. com.benryan.ppt.PptRenderer.render(PptRenderer.java:128)
      1 frame
    5. com.benryan.conversion
      PPtDocumentConversionTask.convertFile
      1. com.benryan.conversion.PPtDocumentConversionTask.convertFile(PPtDocumentConversionTask.java:54)
      1 frame