Skip to content

ERR undefined method `[]' for nil:NilClass during Spring Application deployment #129

@jhiemer

Description

@jhiemer

Hi,
I have an application running, which could be deployed till yesterday without any issues. Today I am getting the following exception:

2015-01-15T21:17:04.67+0100 [API]     OUT Updated app with guid 4e9332a4-74a1-4333-af43-4863d6bb2697 ({"state"=>"STOPPED"})
2015-01-15T21:17:05.67+0100 [DEA]     OUT Got staging request for app with id 4e9332a4-74a1-4333-af43-4863d6bb2697
2015-01-15T21:17:07.23+0100 [API]     OUT Updated app with guid 4e9332a4-74a1-4333-af43-4863d6bb2697 ({"state"=>"STARTED"})
2015-01-15T21:17:07.93+0100 [STG]     OUT -----> Downloaded app package (48M)
2015-01-15T21:17:08.18+0100 [STG]     ERR Cloning into '/tmp/buildpacks/java-buildpack'...
2015-01-15T21:17:12.16+0100 [STG]     OUT -----> Java Buildpack Version: 6f3de1a | https://github.com/cloudfoundry/java-buildpack.git#6f3de1a
2015-01-15T21:17:15.96+0100 [STG]     OUT -----> Downloading Open Jdk JRE 1.8.0_25 from https://download.run.pivotal.io/openjdk/lucid/x86_64/openjdk-1.8.0_25.tar.gz (3.6s)
2015-01-15T21:17:17.37+0100 [STG]     OUT        Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.4s)
2015-01-15T21:17:17.60+0100 [STG]     OUT -----> Downloading Spring Auto Reconfiguration 1.5.0_RELEASE from https://download.run.pivotal.io/auto-reconfiguration/auto-reconfiguration-1.5.0_RELEASE.jar (0.2s)
2015-01-15T21:17:18.57+0100 [STG]     OUT -----> Downloading Tomcat Instance 8.0.15 from https://download.run.pivotal.io/tomcat/tomcat-8.0.15.tar.gz (0.9s)
2015-01-15T21:17:18.75+0100 [STG]     OUT        Expanding Tomcat to .java-buildpack/tomcat (0.1s)
2015-01-15T21:17:18.83+0100 [STG]     OUT -----> Downloading Tomcat Lifecycle Support 2.4.0_RELEASE from https://download.run.pivotal.io/tomcat-lifecycle-support/tomcat-lifecycle-support-2.4.0_RELEASE.jar (0.0s)
2015-01-15T21:17:18.92+0100 [STG]     OUT -----> Downloading Tomcat Logging Support 2.4.0_RELEASE from https://download.run.pivotal.io/tomcat-logging-support/tomcat-logging-support-2.4.0_RELEASE.jar (0.0s)
2015-01-15T21:17:18.94+0100 [STG]     OUT -----> Downloading Tomcat Access Logging Support 2.4.0_RELEASE from https://download.run.pivotal.io/tomcat-access-logging-support/tomcat-access-logging-support-2.4.0_RELEASE.jar (0.0s)
2015-01-15T21:17:19.77+0100 [STG]     ERR [Buildpack]                      ERROR Release failed with exception #<NoMethodError: undefined method `[]' for nil:NilClass>
2015-01-15T21:17:19.78+0100 [STG]     ERR undefined method `[]' for nil:NilClass
2015-01-15T21:17:19.79+0100 [STG]     OUT Staging failed: Release info failed:
2015-01-15T21:17:20.04+0100 [API]     ERR Encountered error: App staging failed in the buildpack release phase

My deployment manifest.yml looks like that:

instances: 1
timeout: 180
memory: 1024M
applications:
## Web
- name: web
  host: dev-api
  domain: bla.com
  path: target/web.war
  buildpack: https://github.com/cloudfoundry/java-buildpack.git
  services:
  - mongodb
  - postgresql
  - rabbitmq

Any idea what's wrong? :-( Tried rebooting runner/api/api_worker and changing the organisation/space, without any different result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions