Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-20564

Error occurs when selecting any *-persistent template

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 4.3.0.CR1
    • 4.3.0.CR1
    • openshift
    • None

    Description

      In the new application wizard, when selecting the amq6-persistent (or any *-persistent) template in the viewer, an error is displayed (An error occurred while setting the value.).
      Under the hood this is logged:

      Caused by: com.openshift.restclient.ResourceFactoryException: There was an exception creating the resource from: {"apiVersion" : "v1", "kind" : "PersistentVolumeClaim", "metadata" : {"name" : "${APPLICATION_NAME}-amq-claim", "labels" : {"application" : "${APPLICATION_NAME}"}}, "spec" : {"accessModes" : ["ReadWriteOnce"], "resources" : {"requests" : {"storage" : "${VOLUME_CAPACITY}"}}}}
      	at com.openshift.internal.restclient.ResourceFactory.create(ResourceFactory.java:173)
      	at com.openshift.internal.restclient.ResourceFactory.create(ResourceFactory.java:160)
      	at com.openshift.internal.restclient.model.template.Template.getItems(Template.java:71)
      	at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.initTemplateParameters(NewApplicationWizardModel.java:116)
      	at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.update(NewApplicationWizardModel.java:68)
      	at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.setTemplate(NewApplicationWizardModel.java:107)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at org.eclipse.core.internal.databinding.beans.BeanPropertyHelper.writeProperty(BeanPropertyHelper.java:59)
      	... 139 more
      Caused by: com.openshift.restclient.ResourceFactoryException: Unable to create v1 resource kind PersistentVolumeClaim from {
          "apiVersion" => "v1",
          "kind" => "PersistentVolumeClaim",
          "metadata" => {
              "name" => "${APPLICATION_NAME}-amq-claim",
              "labels" => {"application" => "${APPLICATION_NAME}"}
          },
          "spec" => {
              "accessModes" => ["ReadWriteOnce"],
              "resources" => {"requests" => {"storage" => "${VOLUME_CAPACITY}"}}
          }
      }
      	at com.openshift.internal.restclient.ResourceFactory.create(ResourceFactory.java:199)
      	at com.openshift.internal.restclient.ResourceFactory.create(ResourceFactory.java:169)
      	... 149 more
      Caused by: java.lang.NullPointerException
      	at com.openshift.internal.restclient.ResourceFactory.create(ResourceFactory.java:194)
      	... 150 more
      

      jcantrill: is this a problem with the client or a problem with the templates?

      Attachments

        Issue Links

          Activity

            People

              jcantril@redhat.com Jeffrey Cantrill
              fbricon@redhat.com Fred Bricon
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: