java.lang.reflect.InvocationTargetException

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.reflect.InvocationTargetException
  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.reflect.InvocationTargetException
  3. 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
  6. 0

    When I try to create a new template project from the mvc template (using the latest M2 candidate distribution build), I get the following error: "Error downloading template - possibly the network connection went down" However, my network is not down, and when I do the same thing again, there is no download question coming up and the template project is being created succcessfully. Therefore it looks like the template got downloaded and put into the local cache successfully. Here is the stack trace details: java.lang.reflect.InvocationTargetException at org.springframework.ide.eclipse.wizard.template.TemplateSelectionWizardPage$7.run(TemplateSelectionWizardPage.java:426) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) Caused by: org.eclipse.core.runtime.CoreException: Error downloading template - possibly the network connection went down at org.springframework.ide.eclipse.wizard.template.TemplateSelectionWizardPage$7.run(TemplateSelectionWizardPage.java:427) ... 1 more Root exception: org.eclipse.core.runtime.CoreException: Error downloading template - possibly the network connection went down at org.springframework.ide.eclipse.wizard.template.TemplateSelectionWizardPage$7.run(TemplateSelectionWizardPage.java:427) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

    SpringSource Issue Tracker | 4 years ago | Martin Lippert
    org.eclipse.core.runtime.CoreException: Error downloading template - possibly the network connection went down

    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. org.eclipse.core.runtime.CoreException

      Download of template 'org.springframework.integration.sts.template.adapter' failed

      at org.springframework.ide.eclipse.wizard.template.TemplateUtils.importDirectory()
    2. org.springframework.ide
      TemplateSelectionWizardPage$7.run
      1. org.springframework.ide.eclipse.wizard.template.TemplateUtils.importDirectory(TemplateUtils.java:95)
      2. org.springframework.ide.eclipse.wizard.template.TemplateUtils.importTemplate(TemplateUtils.java:154)
      3. org.springframework.ide.eclipse.wizard.template.TemplateSelectionWizardPage$7.run(TemplateSelectionWizardPage.java:411)
      3 frames
    3. JFace
      ModalContext$ModalContextThread.run
      1. org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
      1 frame