-
Enhancement
-
Resolution: Done
-
Minor
-
4.1.0.Alpha1
-
None
SwitchYard can be embedded only into JBoss application, so we could warn users with some error dialog to prevent following exception from PaaS:
com.openshift.client.OpenShiftEndpointException: Could not request https://openshift.redhat.com/broker/rest/domains/pipistiks/applications/nodeapp/cartridges: 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/nodeapp/cartridges 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
- is blocked by
-
OSJC-35 openshift-java-client: create switchyard cartridge selector
- Resolved
- relates to
-
JBIDE-12013 Application wizard, Embedding wizard: disallow all non-scalable cartridges for scalable applications
- Closed
-
JBIDE-15161 warn users that phpmyadmin may not get embedded into a scalable application
- Closed