java.lang.NullPointerException

SpringSource Issue Tracker | Gunnar Hillert | 4 years ago
  1. 0

    I have been working all day with STS Templates and I seem to be running into a series of nondescript exceptions. It is possible that the exceptions are raised as a mis-configuration on my end BUT they certainly must be more helpful. 1) I seem to get this intermittent issue on the Template Wizard page. I fill out the form fields and submitting the form does not do anything. The Wizard does not go away. For some strange reasons - I have a "bin" folder in my zip (some left-over from the build). I deleted it and it works. It looks like certain files (the way they are named???) may cause STS to choke. {code} org.eclipse.swt.SWTException: Invalid thread access at org.eclipse.swt.SWT.error(SWT.java:4361) at org.eclipse.swt.SWT.error(SWT.java:4276) at org.eclipse.swt.SWT.error(SWT.java:4247) at org.eclipse.swt.widgets.Display.error(Display.java:1068) at org.eclipse.swt.widgets.Display.checkDevice(Display.java:621) at org.eclipse.swt.widgets.Display.getActiveShell(Display.java:1221) at org.springsource.ide.eclipse.commons.ui.UiUtil.getShell(UiUtil.java:95) at org.springsource.ide.eclipse.commons.ui.UiStatusHandler.logAndDisplay(UiStatusHandler.java:28) at org.springframework.ide.eclipse.wizard.template.infrastructure.processor.TemplateProjectCreator.unzipProject(TemplateProjectCreator.java:269) at org.springframework.ide.eclipse.wizard.template.infrastructure.processor.TemplateProjectCreator.createProject(TemplateProjectCreator.java:78) at org.springframework.ide.eclipse.wizard.template.infrastructure.processor.DirectoryProcessor.process(DirectoryProcessor.java:56) at org.springframework.ide.eclipse.wizard.template.infrastructure.processor.Processor.process(Processor.java:44) at org.springframework.ide.eclipse.wizard.template.TemplateWizard$1.run(TemplateWizard.java:114) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) {code} 2) I have also seen this exception - I selected the template but it is not downloading - related to STS-2686??: {code} java.lang.reflect.InvocationTargetException at org.springframework.ide.eclipse.wizard.template.TemplateSelectionWizardPage$7.run(TemplateSelectionWizardPage.java:417) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) Caused by: org.eclipse.core.runtime.CoreException: Download of template 'org.springframework.integration.sts.template.adapter' failed at org.springframework.ide.eclipse.wizard.template.TemplateUtils.importDirectory(TemplateUtils.java:95) at org.springframework.ide.eclipse.wizard.template.TemplateUtils.importTemplate(TemplateUtils.java:154) at org.springframework.ide.eclipse.wizard.template.TemplateSelectionWizardPage$7.run(TemplateSelectionWizardPage.java:411) ... 1 more {code} Similar to https://issuetracker.springsource.com/browse/STS-2686 ???? 3) Lastly, I have also encountered this exception: {code} Message: Exception during template project creation Exception Stack Trace java.lang.NullPointerException at org.springframework.ide.eclipse.wizard.template.infrastructure.Template.getZippedLocation(Template.java:82) at org.springframework.ide.eclipse.wizard.template.TemplateSelectionWizardPage.getProjectLocation(TemplateSelectionWizardPage.java:519) at org.springframework.ide.eclipse.wizard.template.TemplateWizard$1.run(TemplateWizard.java:110) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) Session Data: eclipse.buildId=3.0.0.201208091018-RELEASE-e42 java.version=1.6.0_33 java.vendor=Apple Inc. BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US Framework arguments: -product org.springsource.sts.ide -keyring /Users/ghillert/.eclipse_keyring -showlocation Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.springsource.sts.ide -keyring /Users/ghillert/.eclipse_keyring -showlocation {code}

    SpringSource Issue Tracker | 4 years ago | Gunnar Hillert
    java.lang.NullPointerException
  2. 0

    I have been working all day with STS Templates and I seem to be running into a series of nondescript exceptions. It is possible that the exceptions are raised as a mis-configuration on my end BUT they certainly must be more helpful. 1) I seem to get this intermittent issue on the Template Wizard page. I fill out the form fields and submitting the form does not do anything. The Wizard does not go away. For some strange reasons - I have a "bin" folder in my zip (some left-over from the build). I deleted it and it works. It looks like certain files (the way they are named???) may cause STS to choke. {code} org.eclipse.swt.SWTException: Invalid thread access at org.eclipse.swt.SWT.error(SWT.java:4361) at org.eclipse.swt.SWT.error(SWT.java:4276) at org.eclipse.swt.SWT.error(SWT.java:4247) at org.eclipse.swt.widgets.Display.error(Display.java:1068) at org.eclipse.swt.widgets.Display.checkDevice(Display.java:621) at org.eclipse.swt.widgets.Display.getActiveShell(Display.java:1221) at org.springsource.ide.eclipse.commons.ui.UiUtil.getShell(UiUtil.java:95) at org.springsource.ide.eclipse.commons.ui.UiStatusHandler.logAndDisplay(UiStatusHandler.java:28) at org.springframework.ide.eclipse.wizard.template.infrastructure.processor.TemplateProjectCreator.unzipProject(TemplateProjectCreator.java:269) at org.springframework.ide.eclipse.wizard.template.infrastructure.processor.TemplateProjectCreator.createProject(TemplateProjectCreator.java:78) at org.springframework.ide.eclipse.wizard.template.infrastructure.processor.DirectoryProcessor.process(DirectoryProcessor.java:56) at org.springframework.ide.eclipse.wizard.template.infrastructure.processor.Processor.process(Processor.java:44) at org.springframework.ide.eclipse.wizard.template.TemplateWizard$1.run(TemplateWizard.java:114) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) {code} 2) I have also seen this exception - I selected the template but it is not downloading - related to STS-2686??: {code} java.lang.reflect.InvocationTargetException at org.springframework.ide.eclipse.wizard.template.TemplateSelectionWizardPage$7.run(TemplateSelectionWizardPage.java:417) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) Caused by: org.eclipse.core.runtime.CoreException: Download of template 'org.springframework.integration.sts.template.adapter' failed at org.springframework.ide.eclipse.wizard.template.TemplateUtils.importDirectory(TemplateUtils.java:95) at org.springframework.ide.eclipse.wizard.template.TemplateUtils.importTemplate(TemplateUtils.java:154) at org.springframework.ide.eclipse.wizard.template.TemplateSelectionWizardPage$7.run(TemplateSelectionWizardPage.java:411) ... 1 more {code} Similar to https://issuetracker.springsource.com/browse/STS-2686 ???? 3) Lastly, I have also encountered this exception: {code} Message: Exception during template project creation Exception Stack Trace java.lang.NullPointerException at org.springframework.ide.eclipse.wizard.template.infrastructure.Template.getZippedLocation(Template.java:82) at org.springframework.ide.eclipse.wizard.template.TemplateSelectionWizardPage.getProjectLocation(TemplateSelectionWizardPage.java:519) at org.springframework.ide.eclipse.wizard.template.TemplateWizard$1.run(TemplateWizard.java:110) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) Session Data: eclipse.buildId=3.0.0.201208091018-RELEASE-e42 java.version=1.6.0_33 java.vendor=Apple Inc. BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US Framework arguments: -product org.springsource.sts.ide -keyring /Users/ghillert/.eclipse_keyring -showlocation Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.springsource.sts.ide -keyring /Users/ghillert/.eclipse_keyring -showlocation {code}

    SpringSource Issue Tracker | 4 years ago | Gunnar Hillert
    java.lang.NullPointerException
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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 org.springframework.ide.eclipse.wizard.template.infrastructure.Template.getZippedLocation()
    2. org.springframework.ide
      TemplateWizard$1.run
      1. org.springframework.ide.eclipse.wizard.template.infrastructure.Template.getZippedLocation(Template.java:82)
      2. org.springframework.ide.eclipse.wizard.template.TemplateSelectionWizardPage.getProjectLocation(TemplateSelectionWizardPage.java:519)
      3. org.springframework.ide.eclipse.wizard.template.TemplateWizard$1.run(TemplateWizard.java:110)
      3 frames
    3. JFace
      ModalContext$ModalContextThread.run
      1. org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
      1 frame