[JBoss JIRA] (JBIDE-21774) Error when trying to create server adapter before first build completed
by Marián Labuda (JIRA)
[ https://issues.jboss.org/browse/JBIDE-21774?page=com.atlassian.jira.plugi... ]
Marián Labuda closed JBIDE-21774.
---------------------------------
Closed as duplicate.
> Error when trying to create server adapter before first build completed
> ------------------------------------------------------------------------
>
> Key: JBIDE-21774
> URL: https://issues.jboss.org/browse/JBIDE-21774
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.3.1.Beta2
> Reporter: Xavier Coulon
> Assignee: Xavier Coulon
> Labels: openshift_v3, server_adapter_wizard
> Fix For: 4.3.1.CR1
>
>
> I just got the following error when trying to create a Server Adapter using the wizard from JBIDE-21447 (although it might happen with the regular Server creation wizard):
> {code}
> !ENTRY org.eclipse.core.jobs 4 2 2016-02-26 09:36:11.271
> !MESSAGE An internal error occurred during: "Loading projects and services...".
> !STACK 0
> com.openshift.restclient.OpenShiftException: Could not get resource eap-app:latest in namespace sample: {
> "kind": "Status",
> "apiVersion": "v1",
> "metadata": {},
> "status": "Failure",
> "message": "imageStreamTag \"eap-app:latest\" not found",
> "reason": "NotFound",
> "details": {
> "name": "eap-app:latest",
> "kind": "imageStreamTag"
> },
> "code": 404
> }
>
> at com.openshift.internal.restclient.DefaultClient.createOpenShiftException(DefaultClient.java:481)
> at com.openshift.internal.restclient.DefaultClient.get(DefaultClient.java:306)
> at org.jboss.tools.openshift.core.connection.Connection.getResource(Connection.java:378)
> at org.jboss.tools.openshift.internal.ui.models.DeploymentResourceMapper.lambda$5(DeploymentResourceMapper.java:106)
> at org.jboss.tools.openshift.internal.ui.models.DeploymentResourceMapper$$Lambda$67/1157417615.apply(Unknown Source)
> at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
> at java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1540)
> at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512)
> at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502)
> at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
> at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
> at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
> at org.jboss.tools.openshift.internal.ui.models.DeploymentResourceMapper.getImageStreamTagsFor(DeploymentResourceMapper.java:107)
> at org.jboss.tools.openshift.internal.ui.models.DeploymentResourceMapper.lambda$2(DeploymentResourceMapper.java:87)
> at org.jboss.tools.openshift.internal.ui.models.DeploymentResourceMapper$$Lambda$62/2102889287.apply(Unknown Source)
> at java.util.stream.Collectors.lambda$toMap$172(Collectors.java:1321)
> at java.util.stream.Collectors$$Lambda$57/318338413.accept(Unknown Source)
> at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
> at java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1540)
> at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512)
> at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502)
> at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
> at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
> at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
> at org.jboss.tools.openshift.internal.ui.models.DeploymentResourceMapper.getAllImageStreamTags(DeploymentResourceMapper.java:85)
> at org.jboss.tools.openshift.internal.ui.server.ServerSettingsViewModel$ProjectImageStreamTags.createImageStreamsMap(ServerSettingsViewModel.java:334)
> at org.jboss.tools.openshift.internal.ui.server.ServerSettingsViewModel$ProjectImageStreamTags.<init>(ServerSettingsViewModel.java:327)
> at org.jboss.tools.openshift.internal.ui.server.ServerSettingsViewModel.lambda$1(ServerSettingsViewModel.java:279)
> at org.jboss.tools.openshift.internal.ui.server.ServerSettingsViewModel$$Lambda$54/494343192.apply(Unknown Source)
> at java.util.stream.Collectors.lambda$toMap$172(Collectors.java:1321)
> at java.util.stream.Collectors$$Lambda$57/318338413.accept(Unknown Source)
> at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
> at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
> at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512)
> at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502)
> at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
> at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
> at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
> at org.jboss.tools.openshift.internal.ui.server.ServerSettingsViewModel.createImageStreamTagsMap(ServerSettingsViewModel.java:277)
> at org.jboss.tools.openshift.internal.ui.server.ServerSettingsViewModel.loadResources(ServerSettingsViewModel.java:261)
> at org.jboss.tools.openshift.internal.ui.server.ServerSettingsViewModel.loadResources(ServerSettingsViewModel.java:255)
> at org.jboss.tools.openshift.internal.ui.server.ServerSettingsWizardPage$2.run(ServerSettingsWizardPage.java:188)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Caused by: com.openshift.internal.restclient.http.NotFoundException: {
> "kind": "Status",
> "apiVersion": "v1",
> "metadata": {},
> "status": "Failure",
> "message": "imageStreamTag \"eap-app:latest\" not found",
> "reason": "NotFound",
> "details": {
> "name": "eap-app:latest",
> "kind": "imageStreamTag"
> },
> "code": 404
> }
>
> at com.openshift.internal.restclient.http.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:230)
> at com.openshift.internal.restclient.http.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:165)
> at com.openshift.internal.restclient.http.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:141)
> at com.openshift.internal.restclient.http.UrlConnectionHttpClient.get(UrlConnectionHttpClient.java:103)
> at com.openshift.internal.restclient.DefaultClient.get(DefaultClient.java:302)
> ... 41 more
> Caused by: java.io.FileNotFoundException: https://10.2.2.2:8443/oapi/v1/namespaces/sample/imagestreamtags/eap-app:l...
> at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1835)
> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440)
> at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
> at com.openshift.internal.restclient.http.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:161)
> ... 44 more
> {code}
> From my understanding, this error happened because the first build job did not complete at the time the wizard was opened, and thus, the Docker image for the app was not available locally. Once the build job completed, the error disappeared on subsequent wizard calls.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 1 month
[JBoss JIRA] (JBIDE-21609) Source path validation does not work properly in new server adapter wizard
by Marián Labuda (JIRA)
[ https://issues.jboss.org/browse/JBIDE-21609?page=com.atlassian.jira.plugi... ]
Marián Labuda closed JBIDE-21609.
---------------------------------
Verified in nightly build of JBT with OpenShift tools plugin of version B202.
> Source path validation does not work properly in new server adapter wizard
> --------------------------------------------------------------------------
>
> Key: JBIDE-21609
> URL: https://issues.jboss.org/browse/JBIDE-21609
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.3.1.Beta2
> Reporter: Marián Labuda
> Assignee: Viacheslav Kabanovich
> Labels: openshift_v3, server_adapter_wizard
> Fix For: 4.3.1.CR1
>
>
> When using eclipse path properties in source path in New Server wizard for a new OpenShift 3 server adapter, validation does not work properly. E.g. I choose a workspace project by browsing workspace and choosing it, it fill into the text widget for source path
> {code}
> ${workspace_loc:/org.jboss.tools.openshift.ui.bot.test}
> {code}
> and it is OK, next button is enabled. But if I cut/paste it there again or if I type workspace location manually, not via browsing workspace project, it is validated as incorrect path and it is not possible to proceed through wizard.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 1 month
[JBoss JIRA] (JBIDE-21801) On Windows, can't Download Runtimes for JBoss EAP and JBoss Fuse
by Aurélien Pupier (JIRA)
[ https://issues.jboss.org/browse/JBIDE-21801?page=com.atlassian.jira.plugi... ]
Aurélien Pupier updated JBIDE-21801:
------------------------------------
Description:
first technical investigation:
- the url used to retrieve information on the Terms and conditions page is (I put a breakpoint on DownloadmanagertermsAndConditionsFragment.getTCResponseString): https://developers.redhat.com/download-manager/rest/tc?downloadURL=https%...
and it returns:
{noformat}
<?xml version="1.0" encoding="UTF-8"?>
<result>
<htmlText><![CDATA[It is no longer possible to accept terms and conditions in the wizard. Please, use <a href="https://developers.redhat.com/download-manager/file/jboss-fuse-6.2.1.GA-f...">following link</a> instead!]]></htmlText>
<plainText><![CDATA[It is no longer possible to accept terms and conditions in the wizard. Please, use https://developers.redhat.com/download-manager/file/jboss-fuse-6.2.1.GA-f... instead!]]></plainText>
<customParams>
<param name="company" label="Company" />
<param name="country" label="Country" >
<options multiple="false">
</options>
</param>
<param name="downloadURL" label="Downloaded file" >
<options multiple="false">
<option key="https://www.jboss.org/download-manager/content/origin/files/sha256/e5/e5b..."/>
</options>
</param>
</customParams>
</result>
{noformat}
was:
first technical investigation:
- the url used to retrieve information on the Terms and conditions page is: https://developers.redhat.com/download-manager/rest/tc?downloadURL=https%...
and it returns:
{noformat}
<?xml version="1.0" encoding="UTF-8"?>
<result>
<htmlText><![CDATA[It is no longer possible to accept terms and conditions in the wizard. Please, use <a href="https://developers.redhat.com/download-manager/file/jboss-fuse-6.2.1.GA-f...">following link</a> instead!]]></htmlText>
<plainText><![CDATA[It is no longer possible to accept terms and conditions in the wizard. Please, use https://developers.redhat.com/download-manager/file/jboss-fuse-6.2.1.GA-f... instead!]]></plainText>
<customParams>
<param name="company" label="Company" />
<param name="country" label="Country" >
<options multiple="false">
</options>
</param>
<param name="downloadURL" label="Downloaded file" >
<options multiple="false">
<option key="https://www.jboss.org/download-manager/content/origin/files/sha256/e5/e5b..."/>
</options>
</param>
</customParams>
</result>
{noformat}
> On Windows, can't Download Runtimes for JBoss EAP and JBoss Fuse
> ----------------------------------------------------------------
>
> Key: JBIDE-21801
> URL: https://issues.jboss.org/browse/JBIDE-21801
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Affects Versions: 4.3.1.Beta2
> Reporter: Aurélien Pupier
> Attachments: 1-preferencepage.png, 2-selectRuntime.png, 3-clickDownLoadAndInstall.png, 4-selectEactVersion.png, 5-fillCredentials.png, 6-PleaseuseFollowingLink.png, 7-allInformationprovided.png
>
>
> first technical investigation:
> - the url used to retrieve information on the Terms and conditions page is (I put a breakpoint on DownloadmanagertermsAndConditionsFragment.getTCResponseString): https://developers.redhat.com/download-manager/rest/tc?downloadURL=https%...
> and it returns:
> {noformat}
> <?xml version="1.0" encoding="UTF-8"?>
> <result>
> <htmlText><![CDATA[It is no longer possible to accept terms and conditions in the wizard. Please, use <a href="https://developers.redhat.com/download-manager/file/jboss-fuse-6.2.1.GA-f...">following link</a> instead!]]></htmlText>
> <plainText><![CDATA[It is no longer possible to accept terms and conditions in the wizard. Please, use https://developers.redhat.com/download-manager/file/jboss-fuse-6.2.1.GA-f... instead!]]></plainText>
> <customParams>
> <param name="company" label="Company" />
> <param name="country" label="Country" >
> <options multiple="false">
> </options>
> </param>
> <param name="downloadURL" label="Downloaded file" >
> <options multiple="false">
> <option key="https://www.jboss.org/download-manager/content/origin/files/sha256/e5/e5b..."/>
> </options>
> </param>
> </customParams>
> </result>
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 1 month
[JBoss JIRA] (JBIDE-21801) On Windows, can't Download Runtimes for JBoss EAP and JBoss Fuse
by Aurélien Pupier (JIRA)
[ https://issues.jboss.org/browse/JBIDE-21801?page=com.atlassian.jira.plugi... ]
Aurélien Pupier updated JBIDE-21801:
------------------------------------
Description:
first technical investigation:
- the url used to retrieve information on the Terms and conditions page is: https://developers.redhat.com/download-manager/rest/tc?downloadURL=https%...
and it returns:
{noformat}
<?xml version="1.0" encoding="UTF-8"?>
<result>
<htmlText><![CDATA[It is no longer possible to accept terms and conditions in the wizard. Please, use <a href="https://developers.redhat.com/download-manager/file/jboss-fuse-6.2.1.GA-f...">following link</a> instead!]]></htmlText>
<plainText><![CDATA[It is no longer possible to accept terms and conditions in the wizard. Please, use https://developers.redhat.com/download-manager/file/jboss-fuse-6.2.1.GA-f... instead!]]></plainText>
<customParams>
<param name="company" label="Company" />
<param name="country" label="Country" >
<options multiple="false">
</options>
</param>
<param name="downloadURL" label="Downloaded file" >
<options multiple="false">
<option key="https://www.jboss.org/download-manager/content/origin/files/sha256/e5/e5b..."/>
</options>
</param>
</customParams>
</result>
{noformat}
> On Windows, can't Download Runtimes for JBoss EAP and JBoss Fuse
> ----------------------------------------------------------------
>
> Key: JBIDE-21801
> URL: https://issues.jboss.org/browse/JBIDE-21801
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Affects Versions: 4.3.1.Beta2
> Reporter: Aurélien Pupier
> Attachments: 1-preferencepage.png, 2-selectRuntime.png, 3-clickDownLoadAndInstall.png, 4-selectEactVersion.png, 5-fillCredentials.png, 6-PleaseuseFollowingLink.png, 7-allInformationprovided.png
>
>
> first technical investigation:
> - the url used to retrieve information on the Terms and conditions page is: https://developers.redhat.com/download-manager/rest/tc?downloadURL=https%...
> and it returns:
> {noformat}
> <?xml version="1.0" encoding="UTF-8"?>
> <result>
> <htmlText><![CDATA[It is no longer possible to accept terms and conditions in the wizard. Please, use <a href="https://developers.redhat.com/download-manager/file/jboss-fuse-6.2.1.GA-f...">following link</a> instead!]]></htmlText>
> <plainText><![CDATA[It is no longer possible to accept terms and conditions in the wizard. Please, use https://developers.redhat.com/download-manager/file/jboss-fuse-6.2.1.GA-f... instead!]]></plainText>
> <customParams>
> <param name="company" label="Company" />
> <param name="country" label="Country" >
> <options multiple="false">
> </options>
> </param>
> <param name="downloadURL" label="Downloaded file" >
> <options multiple="false">
> <option key="https://www.jboss.org/download-manager/content/origin/files/sha256/e5/e5b..."/>
> </options>
> </param>
> </customParams>
> </result>
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 1 month