[MGNLRESTCL-33] java.lang.ClassCastException: com.ibm.ws.jaxrs20.client.JAXRSClientBuilderImpl cannot be cast to org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder Created: 26/Oct/18  Updated: 16/Nov/18  Resolved: 14/Nov/18

Status: Closed
Project: REST Client
Component/s: None
Affects Version/s: None
Fix Version/s: 1.5.3

Type: Bug Priority: Major
Reporter: Milan Divilek Assignee: Milan Divilek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 1h
Original Estimate: Not Specified

Issue Links:
relation
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Sprint: Kromeriz 164, Kromeriz 165
Story Points: 3

 Description   

This issues occurs on Websphere and Websphere liberty. And it's caused by conflict between resteasy-jaxrs and jaxrs implentations used by the websphere internally.

Reproduce:
Go to Cache Tools - Browser subapp and submit the login form

Caused by: java.lang.ClassCastException: com.ibm.ws.jaxrs20.client.JAXRSClientBuilderImpl cannot be cast to org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder
	at info.magnolia.resteasy.client.factory.RestEasyClientFactory.createClient(RestEasyClientFactory.java:74) ~[magnolia-resteasy-client-1.5.2.jar:?]
	at info.magnolia.cache.browser.rest.CacheServiceFactor
y.createCacheServices(CacheServiceFactory.java:89) ~[magnolia-cache-browser-app-5.6.2.jar:?]
	at info.magnolia.cache.browser.app.CacheFormDialogPresenter.isValid(CacheFormDialogPresenter.java:94) ~[magnolia-cache-browser-app-5.6.2.jar:?]
	at info.magnolia.ui.dialog.actionarea.renderer.DefaultEditorActionRenderer$DefaultActionView$1.buttonClick(DefaultEditorActionRenderer.java:70) ~[magnolia-ui-dialog-5.7.1.jar:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_181]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_181]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_181]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_181]
	at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:499) ~[vaadin-server-8.4.2.jar:8.4.2]
	at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:273) ~[vaadin-server-8.4.2.jar:8.4.2]
	at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:237) ~[vaadin-server-8.4.2.jar:8.4.2]
	at com.vaadin.server.AbstractClientConnector.fireEvent(AbstractClientConnector.java:1014) ~[vaadin-server-8.4.2.jar:8.4.2]
	at com.vaadin.ui.Button.fireClick(Button.java:384) ~[vaadin-server-8.4.2.jar:8.4.2]
	at com.vaadin.ui.Button$1.click(Button.java:57) ~[vaadin-server-8.4.2.jar:8.4.2]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_181]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_181]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_181]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_181]
	at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:155) ~[vaadin-server-8.4.2.jar:8.4.2]
	... 116 more

Generated at Mon Feb 12 10:42:32 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.