[jbosstools-issues] [JBoss JIRA] (JBIDE-12622) OpenShift java client: applications with gear_profile == null make listing all applications crash

RH Bugzilla Integration (JIRA) jira-events at lists.jboss.org
Thu Oct 4 09:54:03 EDT 2012


    [ https://issues.jboss.org/browse/JBIDE-12622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12724076#comment-12724076 ] 

RH Bugzilla Integration commented on JBIDE-12622:
-------------------------------------------------

Dan McPherson <dmcphers at redhat.com> changed the Status of [bug 857493|https://bugzilla.redhat.com/show_bug.cgi?id=857493] from NEW to ASSIGNED
                
> OpenShift java client: applications with gear_profile == null make listing all applications crash
> -------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-12622
>                 URL: https://issues.jboss.org/browse/JBIDE-12622
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 3.3.0.Final
>            Reporter: Andre Dietisheim
>            Assignee: Andre Dietisheim
>             Fix For: 4.0.0.Alpha2
>
>
> When listing all applications of a domain, the domains are built out of the json reponse from the backend. It turns out that old apps, that were created before OpenShift had gear profile, are currently reported with a *null* gear profile. The client then throws an assertion exception:
> {code:title=openshift jenkins client running into an Assertion Exception when the gear profile's null}
> com.openshift.internal.client.utils.Assert$AssertionFailedException
>         at com.openshift.internal.client.utils.Assert.notNull(Assert.java:32)
>         at com.openshift.internal.client.GearProfile.<init>(GearProfile.java:24)
>         at com.openshift.internal.client.response.ResourceDTOFactory.createApplication(ResourceDTOFactory.java:378)
>         at com.openshift.internal.client.response.ResourceDTOFactory.createApplications(ResourceDTOFactory.java:353)
>         at com.openshift.internal.client.response.ResourceDTOFactory.get(ResourceDTOFactory.java:113)
>         at com.openshift.internal.client.RestService.request(RestService.java:90)
>         at com.openshift.internal.client.RestService.request(RestService.java:74)
>         at com.openshift.internal.client.AbstractOpenShiftResource$ServiceRequest.execute(AbstractOpenShiftResource.java:137)
>         at com.openshift.internal.client.DomainResource.loadApplications(DomainResource.java:189)
>         at com.openshift.internal.client.DomainResource.getApplications(DomainResource.java:179)
>         at com.openshift.internal.client.DomainResource.getApplicationByName(DomainResource.java:141)
>         at com.openshift.internal.client.DomainResource.hasApplicationByName(DomainResource.java:151)
>         at com.openshift.internal.client.DomainResource.createApplication(DomainResource.java:126)
>         at com.openshift.internal.client.DomainResource.createApplication(DomainResource.java:112)
> {code}
> {code:title=ResourceDTOFactory extracting the gear profile name and passing it to GearProfile}
> final IGearProfile gearProfile = new GearProfile(getAsString(appNode, PROPERTY_GEAR_PROFILE));
> {code}
> {code:title=GearProfile asserting a non-null name in the constructor}
> public GearProfile(String name) {
> 	Assert.notNull(name);
> 	this.name = name;
> }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list