java.lang.NullPointerException

SpringSource Issue Tracker | Nieraj Singh (c) | 5 years ago
  1. 0

    Deploy a Grails app from STS using the nightly Cloud Foundry integration to a microcloud with debug support. Application fails to start in debug mode as well as update and restart in both run and debug mode. Deploy the same app to the regular cloud (api.cloudfoundry.com) and same error is encountered during update and restart. The work around is to stop the application, start it in regular mode, which does a full publish, and then restart in either debug or run mode (if in microcloud), or just run mode if in regular cloud. Exception thrown while attempting to debug or update and restart is shown below. The NPE is thrown because the following file cannot be found when reading from the inputstream to recompute sha1 and file size for the enhanced incremental publishing feature: java.lang.IllegalStateException: java.io.FileNotFoundException: /grailsproj/target-eclipse/classes/BootStrap$_closure1.class (No such file or directory) Full stack trace: java.lang.NullPointerException at org.cloudfoundry.client.lib.archive.AbstractApplicationArchiveEntry.deduceMissingData(AbstractApplicationArchiveEntry.java:105) at org.cloudfoundry.client.lib.archive.AbstractApplicationArchiveEntry.getSha1Digest(AbstractApplicationArchiveEntry.java:74) at org.cloudfoundry.ide.eclipse.internal.server.core.ModuleResourceApplicationArchive$ModuleFileEntryAdapter.computeNewDeployedResourceEntry(ModuleResourceApplicationArchive.java:311) at org.cloudfoundry.ide.eclipse.internal.server.core.ModuleResourceApplicationArchive$ModuleFileEntryAdapter.getDeployedResourcesEntry(ModuleResourceApplicationArchive.java:299) at org.cloudfoundry.ide.eclipse.internal.server.core.ModuleResourceApplicationArchive$ModuleFileEntryAdapter.getSize(ModuleResourceApplicationArchive.java:289) at org.cloudfoundry.client.lib.CloudResources.<init>(CloudResources.java:88) at org.cloudfoundry.client.lib.CloudFoundryClient.getKnownRemoteResources(CloudFoundryClient.java:384) at org.cloudfoundry.client.lib.CloudFoundryClient.uploadApplication(CloudFoundryClient.java:375) at org.cloudfoundry.ide.eclipse.internal.server.core.CloudFoundryServerBehaviour.doDeployApplication(CloudFoundryServerBehaviour.java:255) at org.cloudfoundry.ide.eclipse.internal.server.core.CloudFoundryServerBehaviour.access$2(CloudFoundryServerBehaviour.java:220) at org.cloudfoundry.ide.eclipse.internal.server.core.CloudFoundryServerBehaviour$StartOrDeployAction$1.doRun(CloudFoundryServerBehaviour.java:1348) at org.cloudfoundry.ide.eclipse.internal.server.core.CloudFoundryServerBehaviour$StartOrDeployAction$1.doRun(CloudFoundryServerBehaviour.java:1) at org.cloudfoundry.ide.eclipse.internal.server.core.CloudFoundryServerBehaviour$Request.run(CloudFoundryServerBehaviour.java:1170) at org.cloudfoundry.ide.eclipse.internal.server.core.CloudFoundryServerBehaviour$StartOrDeployAction.performDeployment(CloudFoundryServerBehaviour.java:1371) at org.cloudfoundry.ide.eclipse.internal.server.core.CloudFoundryServerBehaviour$DeployAction.deployModule(CloudFoundryServerBehaviour.java:1236) at org.cloudfoundry.ide.eclipse.internal.server.core.CloudFoundryServerBehaviour.doDeployOrStartModule(CloudFoundryServerBehaviour.java:601) at org.cloudfoundry.ide.eclipse.internal.server.core.CloudFoundryServerBehaviour.updateRestartModuleRunMode(CloudFoundryServerBehaviour.java:712) at org.cloudfoundry.ide.eclipse.internal.server.ui.actions.StartStopApplicationAction.performAction(StartStopApplicationAction.java:84) at org.cloudfoundry.ide.eclipse.internal.server.ui.actions.CloudFoundryEditorAction$1.run(CloudFoundryEditorAction.java:91) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

    SpringSource Issue Tracker | 5 years ago | Nieraj Singh (c)
    java.lang.NullPointerException
  2. 0

    Deploy a Grails app from STS using the nightly Cloud Foundry integration to a microcloud with debug support. Application fails to start in debug mode as well as update and restart in both run and debug mode. Deploy the same app to the regular cloud (api.cloudfoundry.com) and same error is encountered during update and restart. The work around is to stop the application, start it in regular mode, which does a full publish, and then restart in either debug or run mode (if in microcloud), or just run mode if in regular cloud. Exception thrown while attempting to debug or update and restart is shown below. The NPE is thrown because the following file cannot be found when reading from the inputstream to recompute sha1 and file size for the enhanced incremental publishing feature: java.lang.IllegalStateException: java.io.FileNotFoundException: /grailsproj/target-eclipse/classes/BootStrap$_closure1.class (No such file or directory) Full stack trace: java.lang.NullPointerException at org.cloudfoundry.client.lib.archive.AbstractApplicationArchiveEntry.deduceMissingData(AbstractApplicationArchiveEntry.java:105) at org.cloudfoundry.client.lib.archive.AbstractApplicationArchiveEntry.getSha1Digest(AbstractApplicationArchiveEntry.java:74) at org.cloudfoundry.ide.eclipse.internal.server.core.ModuleResourceApplicationArchive$ModuleFileEntryAdapter.computeNewDeployedResourceEntry(ModuleResourceApplicationArchive.java:311) at org.cloudfoundry.ide.eclipse.internal.server.core.ModuleResourceApplicationArchive$ModuleFileEntryAdapter.getDeployedResourcesEntry(ModuleResourceApplicationArchive.java:299) at org.cloudfoundry.ide.eclipse.internal.server.core.ModuleResourceApplicationArchive$ModuleFileEntryAdapter.getSize(ModuleResourceApplicationArchive.java:289) at org.cloudfoundry.client.lib.CloudResources.<init>(CloudResources.java:88) at org.cloudfoundry.client.lib.CloudFoundryClient.getKnownRemoteResources(CloudFoundryClient.java:384) at org.cloudfoundry.client.lib.CloudFoundryClient.uploadApplication(CloudFoundryClient.java:375) at org.cloudfoundry.ide.eclipse.internal.server.core.CloudFoundryServerBehaviour.doDeployApplication(CloudFoundryServerBehaviour.java:255) at org.cloudfoundry.ide.eclipse.internal.server.core.CloudFoundryServerBehaviour.access$2(CloudFoundryServerBehaviour.java:220) at org.cloudfoundry.ide.eclipse.internal.server.core.CloudFoundryServerBehaviour$StartOrDeployAction$1.doRun(CloudFoundryServerBehaviour.java:1348) at org.cloudfoundry.ide.eclipse.internal.server.core.CloudFoundryServerBehaviour$StartOrDeployAction$1.doRun(CloudFoundryServerBehaviour.java:1) at org.cloudfoundry.ide.eclipse.internal.server.core.CloudFoundryServerBehaviour$Request.run(CloudFoundryServerBehaviour.java:1170) at org.cloudfoundry.ide.eclipse.internal.server.core.CloudFoundryServerBehaviour$StartOrDeployAction.performDeployment(CloudFoundryServerBehaviour.java:1371) at org.cloudfoundry.ide.eclipse.internal.server.core.CloudFoundryServerBehaviour$DeployAction.deployModule(CloudFoundryServerBehaviour.java:1236) at org.cloudfoundry.ide.eclipse.internal.server.core.CloudFoundryServerBehaviour.doDeployOrStartModule(CloudFoundryServerBehaviour.java:601) at org.cloudfoundry.ide.eclipse.internal.server.core.CloudFoundryServerBehaviour.updateRestartModuleRunMode(CloudFoundryServerBehaviour.java:712) at org.cloudfoundry.ide.eclipse.internal.server.ui.actions.StartStopApplicationAction.performAction(StartStopApplicationAction.java:84) at org.cloudfoundry.ide.eclipse.internal.server.ui.actions.CloudFoundryEditorAction$1.run(CloudFoundryEditorAction.java:91) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

    SpringSource Issue Tracker | 5 years ago | Nieraj Singh (c)
    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.cloudfoundry.client.lib.archive.AbstractApplicationArchiveEntry.deduceMissingData()
    2. Cloud Foundry Java Client Library
      AbstractApplicationArchiveEntry.getSha1Digest
      1. org.cloudfoundry.client.lib.archive.AbstractApplicationArchiveEntry.deduceMissingData(AbstractApplicationArchiveEntry.java:105)
      2. org.cloudfoundry.client.lib.archive.AbstractApplicationArchiveEntry.getSha1Digest(AbstractApplicationArchiveEntry.java:74)
      2 frames
    3. org.cloudfoundry.ide
      ModuleResourceApplicationArchive$ModuleFileEntryAdapter.getSize
      1. org.cloudfoundry.ide.eclipse.internal.server.core.ModuleResourceApplicationArchive$ModuleFileEntryAdapter.computeNewDeployedResourceEntry(ModuleResourceApplicationArchive.java:311)
      2. org.cloudfoundry.ide.eclipse.internal.server.core.ModuleResourceApplicationArchive$ModuleFileEntryAdapter.getDeployedResourcesEntry(ModuleResourceApplicationArchive.java:299)
      3. org.cloudfoundry.ide.eclipse.internal.server.core.ModuleResourceApplicationArchive$ModuleFileEntryAdapter.getSize(ModuleResourceApplicationArchive.java:289)
      3 frames
    4. Cloud Foundry Java Client Library
      CloudFoundryClient.uploadApplication
      1. org.cloudfoundry.client.lib.CloudResources.<init>(CloudResources.java:88)
      2. org.cloudfoundry.client.lib.CloudFoundryClient.getKnownRemoteResources(CloudFoundryClient.java:384)
      3. org.cloudfoundry.client.lib.CloudFoundryClient.uploadApplication(CloudFoundryClient.java:375)
      3 frames
    5. org.cloudfoundry.ide
      CloudFoundryEditorAction$1.run
      1. org.cloudfoundry.ide.eclipse.internal.server.core.CloudFoundryServerBehaviour.doDeployApplication(CloudFoundryServerBehaviour.java:255)
      2. org.cloudfoundry.ide.eclipse.internal.server.core.CloudFoundryServerBehaviour.access$2(CloudFoundryServerBehaviour.java:220)
      3. org.cloudfoundry.ide.eclipse.internal.server.core.CloudFoundryServerBehaviour$StartOrDeployAction$1.doRun(CloudFoundryServerBehaviour.java:1348)
      4. org.cloudfoundry.ide.eclipse.internal.server.core.CloudFoundryServerBehaviour$StartOrDeployAction$1.doRun(CloudFoundryServerBehaviour.java:1)
      5. org.cloudfoundry.ide.eclipse.internal.server.core.CloudFoundryServerBehaviour$Request.run(CloudFoundryServerBehaviour.java:1170)
      6. org.cloudfoundry.ide.eclipse.internal.server.core.CloudFoundryServerBehaviour$StartOrDeployAction.performDeployment(CloudFoundryServerBehaviour.java:1371)
      7. org.cloudfoundry.ide.eclipse.internal.server.core.CloudFoundryServerBehaviour$DeployAction.deployModule(CloudFoundryServerBehaviour.java:1236)
      8. org.cloudfoundry.ide.eclipse.internal.server.core.CloudFoundryServerBehaviour.doDeployOrStartModule(CloudFoundryServerBehaviour.java:601)
      9. org.cloudfoundry.ide.eclipse.internal.server.core.CloudFoundryServerBehaviour.updateRestartModuleRunMode(CloudFoundryServerBehaviour.java:712)
      10. org.cloudfoundry.ide.eclipse.internal.server.ui.actions.StartStopApplicationAction.performAction(StartStopApplicationAction.java:84)
      11. org.cloudfoundry.ide.eclipse.internal.server.ui.actions.CloudFoundryEditorAction$1.run(CloudFoundryEditorAction.java:91)
      11 frames
    6. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      1 frame