[JBoss JIRA] (JBIDE-20458) NPE when creating an application
by Rafael Benevides (JIRA)
Rafael Benevides created JBIDE-20458:
----------------------------------------
Summary: NPE when creating an application
Key: JBIDE-20458
URL: https://issues.jboss.org/browse/JBIDE-20458
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: openshift
Affects Versions: 4.3.0.Beta2
Reporter: Rafael Benevides
I followed the wizard to create an application and it fired the NPE at the end.
Template: eap6-basic-sti
An internal error occurred during: "Create Application From Template Job".
{code}
java.lang.NullPointerException
at com.openshift.internal.util.JBossDmrExtentions.asString(JBossDmrExtentions.java:77)
at com.openshift.internal.restclient.model.KubernetesResource.asString(KubernetesResource.java:242)
at com.openshift.internal.restclient.model.KubernetesResource.getName(KubernetesResource.java:147)
at com.openshift.internal.restclient.DefaultClient.create(DefaultClient.java:186)
at com.openshift.internal.restclient.DefaultClient.create(DefaultClient.java:170)
at com.openshift.internal.restclient.capability.server.ServerTemplateProcessing.process(ServerTemplateProcessing.java:50)
at com.openshift.internal.restclient.capability.server.ServerTemplateProcessing.process(ServerTemplateProcessing.java:29)
at com.openshift.internal.restclient.capability.resources.ProjectTemplateProcessing.process(ProjectTemplateProcessing.java:52)
at org.jboss.tools.openshift.internal.ui.job.CreateApplicationFromTemplateJob$1.visit(CreateApplicationFromTemplateJob.java:64)
at org.jboss.tools.openshift.internal.ui.job.CreateApplicationFromTemplateJob$1.visit(CreateApplicationFromTemplateJob.java:1)
at com.openshift.internal.restclient.model.KubernetesResource.accept(KubernetesResource.java:75)
at org.jboss.tools.openshift.internal.ui.job.CreateApplicationFromTemplateJob.doRun(CreateApplicationFromTemplateJob.java:58)
at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:36)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
{code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 8 months
[JBoss JIRA] (JBIDE-20453) Instead of 4 zips, merge Central+TP and EA+TP into combined repos for easier offline use
by Denis Golovin (JIRA)
[ https://issues.jboss.org/browse/JBIDE-20453?page=com.atlassian.jira.plugi... ]
Denis Golovin commented on JBIDE-20453:
---------------------------------------
I would +1 all-in-one zip that would appear in Offline Install section on https://devstudio.redhat.com/9.0/staging/updates/ in addition what we have there right now. It would be like adding new methods to API keeping old ones the same :)
Would wait to hear from all interested parties [~maxandersen], [~fbricon], [~ldimaggio] before decide go/no-go about original PR.
> Instead of 4 zips, merge Central+TP and EA+TP into combined repos for easier offline use
> ----------------------------------------------------------------------------------------
>
> Key: JBIDE-20453
> URL: https://issues.jboss.org/browse/JBIDE-20453
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: build, central, updatesite
> Affects Versions: 4.3.0.Beta2
> Reporter: Nick Boldt
> Assignee: Denis Golovin
> Priority: Blocker
> Fix For: 4.3.0.CR1
>
>
> Today the offline solution [1], [2] for installing stuff from Central or Early Access requires a pair of zips: the 3rd party content (target platform), and the stuff from JBoss Tools.
> [1] http://www.jboss.org/products/devstudio/download/ (Central Zip doesn't include the JBT stuff, just the 3rd party / TP content)
> [2] https://devstudio.redhat.com/9.0/staging/updates/ (both zips shown)
> We should combine these into a single, larger zip, such that the offline solution requires only a single zip and there's no confusion about what a Central Zip is.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 8 months
[JBoss JIRA] (JBIDE-20453) Instead of 4 zips, merge Central+TP and EA+TP into combined repos for easier offline use
by Nick Boldt (JIRA)
[ https://issues.jboss.org/browse/JBIDE-20453?page=com.atlassian.jira.plugi... ]
Nick Boldt commented on JBIDE-20453:
------------------------------------
It's not a new feature, it's a new IMPLEMENTATION of how we builds Central in JBDS 9. In JBDS 8, we had a zip that included both the 3rd party stuff AND the stuff in JBT. Then I split that into TWO builds, but forgot to re-merge the output into a single zip for easier offline experience.
So, now we build 4 sites for Central/EA:
1. https://github.com/jbosstools/jbosstools-discovery/blob/master/jbtcentral... (in JBT 4.2 / JBDS 8, this contained the stuff in #2 too)
2. https://github.com/jbosstools/jbosstools-build-sites/blob/master/aggregat... (new for JBT 4.3 / JBDS 9)
3. https://github.com/jbosstools/jbosstools-discovery/blob/master/jbtcentral... (in JBT 4.2 / JBDS 8, this contained the stuff in #4 too)
4. https://github.com/jbosstools/jbosstools-build-sites/blob/master/aggregat... (new for JBT 4.3 / JBDS 9)
No doc is affected since we only ever told people to use the single zip (but today it's missing some content - the stuff that's in JBDS Central which is also in JBT).
Here's a list of docs that DO NOT mention the Central zip:
* https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Developer_Stu...
* https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Developer_Stu...
* https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Developer_Stu...
* https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Developer_Stu...
* https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Developer_Stu...
* https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Developer_Stu...
Here's one KB article that DOES mention the Central zip, but doesn't mention that there's a Central TP zip too, as it's new for JBDS 9. This doc *won't need updating* if we approve this PR.
* https://access.redhat.com/articles/1367643
QA tests for offline Central install should have been failing this whole time, but either we don't have tests or we don't run them. This PR will make the offline Central install tests work again.
jbdevstudio-product/results won't change significantly because all we're doing is adding missing content into the existing zip. Jobs will be updated to pull a DIFFERENT Central zip (instead of just the TP zip, we'd pull this new composite one, containing o.jboss stuff AND the 3rd party stuff). I will ensure this all works once the above is applied.
Size doesn't change -- but instead of having 2 zips to fetch, you fetch one. The net download size is about the same.
"You have to install everything through install dialog anyway. Is that correct?" Yes, that hasn't changed. While you CAN point Central at a file:/// path to a local zip or folder, that's out of scope for this. The idea is just to provide the stuff in a zip, not to support users telling Central where to find the zip. Install will have to continue to be through `Help > Install new software`.
> Instead of 4 zips, merge Central+TP and EA+TP into combined repos for easier offline use
> ----------------------------------------------------------------------------------------
>
> Key: JBIDE-20453
> URL: https://issues.jboss.org/browse/JBIDE-20453
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: build, central, updatesite
> Affects Versions: 4.3.0.Beta2
> Reporter: Nick Boldt
> Assignee: Nick Boldt
> Priority: Blocker
> Fix For: 4.3.0.CR1
>
>
> Today the offline solution [1], [2] for installing stuff from Central or Early Access requires a pair of zips: the 3rd party content (target platform), and the stuff from JBoss Tools.
> [1] http://www.jboss.org/products/devstudio/download/ (Central Zip doesn't include the JBT stuff, just the 3rd party / TP content)
> [2] https://devstudio.redhat.com/9.0/staging/updates/ (both zips shown)
> We should combine these into a single, larger zip, such that the offline solution requires only a single zip and there's no confusion about what a Central Zip is.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 8 months
[JBoss JIRA] (JBIDE-20453) Instead of 4 zips, merge Central+TP and EA+TP into combined repos for easier offline use
by Denis Golovin (JIRA)
[ https://issues.jboss.org/browse/JBIDE-20453?page=com.atlassian.jira.plugi... ]
Denis Golovin commented on JBIDE-20453:
---------------------------------------
One more to note though, having this all-in-one offline zip does not make Central UI use it. You have to install everything through install dialog anyway. Is that correct?
> Instead of 4 zips, merge Central+TP and EA+TP into combined repos for easier offline use
> ----------------------------------------------------------------------------------------
>
> Key: JBIDE-20453
> URL: https://issues.jboss.org/browse/JBIDE-20453
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: build, central, updatesite
> Affects Versions: 4.3.0.Beta2
> Reporter: Nick Boldt
> Assignee: Nick Boldt
> Priority: Blocker
> Fix For: 4.3.0.CR1
>
>
> Today the offline solution [1], [2] for installing stuff from Central or Early Access requires a pair of zips: the 3rd party content (target platform), and the stuff from JBoss Tools.
> [1] http://www.jboss.org/products/devstudio/download/ (Central Zip doesn't include the JBT stuff, just the 3rd party / TP content)
> [2] https://devstudio.redhat.com/9.0/staging/updates/ (both zips shown)
> We should combine these into a single, larger zip, such that the offline solution requires only a single zip and there's no confusion about what a Central Zip is.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 8 months
[JBoss JIRA] (JBIDE-20453) Instead of 4 zips, merge Central+TP and EA+TP into combined repos for easier offline use
by Denis Golovin (JIRA)
[ https://issues.jboss.org/browse/JBIDE-20453?page=com.atlassian.jira.plugi... ]
Denis Golovin commented on JBIDE-20453:
---------------------------------------
I would go for ultimate solution and just provide one offline zip with everything included, because changing from 4 zips to 2 zips still require to do several downloads. The final offline install zip would be ~ 150M bigger.
> Instead of 4 zips, merge Central+TP and EA+TP into combined repos for easier offline use
> ----------------------------------------------------------------------------------------
>
> Key: JBIDE-20453
> URL: https://issues.jboss.org/browse/JBIDE-20453
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: build, central, updatesite
> Affects Versions: 4.3.0.Beta2
> Reporter: Nick Boldt
> Assignee: Nick Boldt
> Priority: Blocker
> Fix For: 4.3.0.CR1
>
>
> Today the offline solution [1], [2] for installing stuff from Central or Early Access requires a pair of zips: the 3rd party content (target platform), and the stuff from JBoss Tools.
> [1] http://www.jboss.org/products/devstudio/download/ (Central Zip doesn't include the JBT stuff, just the 3rd party / TP content)
> [2] https://devstudio.redhat.com/9.0/staging/updates/ (both zips shown)
> We should combine these into a single, larger zip, such that the offline solution requires only a single zip and there's no confusion about what a Central Zip is.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 8 months
[JBoss JIRA] (JBIDE-20453) Instead of 4 zips, merge Central+TP and EA+TP into combined repos for easier offline use
by Denis Golovin (JIRA)
[ https://issues.jboss.org/browse/JBIDE-20453?page=com.atlassian.jira.plugi... ]
Denis Golovin commented on JBIDE-20453:
---------------------------------------
Why it is suddenly a blocker? It was this way for a while and I don't remember any complaint about downloading offline zips.
It looks rather a New Feature to me and something we should not add in CR1 release.
Also it raises several questions about affected dependencies:
What documentation is affected and should be updated?
What QA tests are affected?
What about jbdevstudio-product/results changes?
Isn't it too many changes for CR1?
For me it is
-1
> Instead of 4 zips, merge Central+TP and EA+TP into combined repos for easier offline use
> ----------------------------------------------------------------------------------------
>
> Key: JBIDE-20453
> URL: https://issues.jboss.org/browse/JBIDE-20453
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: build, central, updatesite
> Affects Versions: 4.3.0.Beta2
> Reporter: Nick Boldt
> Assignee: Nick Boldt
> Priority: Blocker
> Fix For: 4.3.0.CR1
>
>
> Today the offline solution [1], [2] for installing stuff from Central or Early Access requires a pair of zips: the 3rd party content (target platform), and the stuff from JBoss Tools.
> [1] http://www.jboss.org/products/devstudio/download/ (Central Zip doesn't include the JBT stuff, just the 3rd party / TP content)
> [2] https://devstudio.redhat.com/9.0/staging/updates/ (both zips shown)
> We should combine these into a single, larger zip, such that the offline solution requires only a single zip and there's no confusion about what a Central Zip is.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 8 months