[JBoss JIRA] (JBIDE-15777) CLONE - New Project wizard hangs when an invalid package is provided as input.
by Pavol Srna (JIRA)
[ https://issues.jboss.org/browse/JBIDE-15777?page=com.atlassian.jira.plugi... ]
Pavol Srna closed JBIDE-15777.
------------------------------
Verified in JBT 4.2.0.Alpha1.
> CLONE - New Project wizard hangs when an invalid package is provided as input.
> ------------------------------------------------------------------------------
>
> Key: JBIDE-15777
> URL: https://issues.jboss.org/browse/JBIDE-15777
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: forge
> Reporter: Pavol Srna
> Assignee: Koen Aers
> Fix For: 4.2.0.Alpha1
>
>
> The new project wizard hangs when an invalid package name (according to Forge) is provided in the dialog box. On clicking the Finish button in the wizard, it hangs when running the {{new-project ....}} Forge command.
> This is due to Forge waiting for the user to supply a valid package name. See attached thread dumps.
> Other comments:
> In a way, this is related to FORGE-687, but the fix should probably go into the wizard so users can correct the name instead of Forge deciding on a default.
--
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
12 years, 5 months
[JBoss JIRA] (JBIDE-13892) Warn users before embedding switchyard into non JBoss application
by Marián Labuda (JIRA)
[ https://issues.jboss.org/browse/JBIDE-13892?page=com.atlassian.jira.plugi... ]
Marián Labuda closed JBIDE-13892.
---------------------------------
Verified in JBT 4.2.0.Alpha1.
> Warn users before embedding switchyard into non JBoss application
> -----------------------------------------------------------------
>
> Key: JBIDE-13892
> URL: https://issues.jboss.org/browse/JBIDE-13892
> Project: Tools (JBoss Tools)
> Issue Type: Enhancement
> Components: openshift
> Affects Versions: 4.1.0.Alpha1
> Reporter: Stefan Bunciak
> Assignee: Andre Dietisheim
> Priority: Minor
> Fix For: 4.2.0.Alpha1
>
>
> SwitchYard can be embedded only into JBoss application, so we could warn users with some error dialog to prevent following exception from PaaS:
> {code}
> com.openshift.client.OpenShiftEndpointException: Could not request https://openshift.redhat.com/broker/rest/domains/pipistiks/applications/n...: Operation failed on parameter "cartridge", sevirty "ERROR" with exit code "109".Reason given: "Invalid cartridge. SwitchYard is only supported for JBoss AS/EAP
> "
> at com.openshift.internal.client.RestService.request(RestService.java:103)
> at com.openshift.internal.client.RestService.request(RestService.java:91)
> at com.openshift.internal.client.RestService.request(RestService.java:76)
> at com.openshift.internal.client.AbstractOpenShiftResource$ServiceRequest.execute(AbstractOpenShiftResource.java:137)
> at com.openshift.internal.client.ApplicationResource$AddEmbeddedCartridgeRequest.execute(ApplicationResource.java:926)
> at com.openshift.internal.client.ApplicationResource.addEmbeddableCartridge(ApplicationResource.java:353)
> at com.openshift.internal.client.ApplicationResource.addEmbeddableCartridges(ApplicationResource.java:371)
> at org.jboss.tools.openshift.express.internal.ui.job.EmbedCartridgesJob.addEmbeddedCartridges(EmbedCartridgesJob.java:102)
> at org.jboss.tools.openshift.express.internal.ui.job.EmbedCartridgesJob.doRun(EmbedCartridgesJob.java:64)
> at org.jboss.tools.openshift.express.internal.ui.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:35)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
> Caused by: com.openshift.internal.client.httpclient.HttpClientException: {"data":null,"errors":{},"messages":[{"exit_code":109,"field":"cartridge","severity":"error","text":"Invalid cartridge. SwitchYard is only supported for JBoss AS/EAP\n"}],"status":"unprocessable_entity","supported_api_versions":[1.0,1.1,1.2,1.3],"type":null,"version":"1.0"}
> at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:189)
> at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.write(UrlConnectionHttpClient.java:161)
> at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.post(UrlConnectionHttpClient.java:128)
> at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.post(UrlConnectionHttpClient.java:124)
> at com.openshift.internal.client.RestService.request(RestService.java:141)
> at com.openshift.internal.client.RestService.request(RestService.java:97)
> ... 10 more
> Caused by: java.io.IOException: Server returned HTTP response code: 422 for URL: https://openshift.redhat.com/broker/rest/domains/pipistiks/applications/n...
> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436)
> at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234)
> at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.write(UrlConnectionHttpClient.java:156)
> ... 14 more
> {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
12 years, 5 months