[MGNLRESTCL-176] Rest client app error due to wrong import Created: 11/Jan/22 Updated: 19/Apr/22 Resolved: 08/Apr/22 |
|
| Status: | Closed |
| Project: | REST Client |
| Component/s: | None |
| Affects Version/s: | 1.5.3 |
| Fix Version/s: | 1.6.0 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Jonathan Ayala | Assignee: | Chuong Doan Huy |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | quickwin | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | 2d 5.5h | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Template: | |||||
| Acceptance criteria: |
Empty
|
||||
| Task DoD: |
[X]*
Doc/release notes changes? Comment present?
[X]*
Downstream builds green?
[X]*
Solution information and context easily available?
[X]*
Tests
[X]*
FixVersion filled and not yet released
[X] 
Architecture Decision Record (ADR)
|
||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||
| Epic Link: | Support | ||||
| Sprint: | DevX 7 | ||||
| Story Points: | 2 | ||||
| Team: | |||||
| Description |
Steps to reproduce
Expected resultsThe app starts correctly Actual resultsThere is an error: Caused by: java.lang.VerifyError: Bad type on operand stack Exception Details: Location: info/magnolia/rest/client/app/ui/RestClientAppViewImpl$2.valueChange(Lcom/vaadin/v7/data/Property$ValueChangeEvent;)V @61: invokestatic Reason: Type 'org/vaadin/aceeditor/AceEditor' (current frame, stack[1]) is not assignable to 'com/vaadin/v7/ui/AbstractField' Current Frame: bci: @61 flags: { } locals: { 'info/magnolia/rest/client/app/ui/RestClientAppViewImpl$2', 'com/vaadin/v7/data/Property$ValueChangeEvent', 'java/lang/reflect/Method', '[Ljava/lang/String;' } stack: { 'info/magnolia/rest/client/app/ui/RestClientAppViewImpl', 'org/vaadin/aceeditor/AceEditor', 'java/lang/String', integer } Bytecode: 0x0000000: 2ab4 0001 b800 03b6 0004 c000 054d 2ab4 0x0000010: 0001 b800 062c b900 0702 004e 2ab4 0001 0x0000020: 2ab4 0001 b800 082d 0332 04b8 0009 2ab4 0x0000030: 0001 2ab4 0001 b800 0a2d 0432 03b8 0009 0x0000040: b1 at info.magnolia.rest.client.app.ui.RestClientAppViewImpl.createView(RestClientAppViewImpl.java:143) ~[magnolia-rest-client-app-1.5.3.jar:?] at info.magnolia.rest.client.app.ui.RestClientAppViewImpl.setDataSource(RestClientAppViewImpl.java:306) ~[magnolia-rest-client-app-1.5.3.jar:?] at info.magnolia.rest.client.app.ui.RestClientAppPresenter.start(RestClientAppPresenter.java:100) ~[magnolia-rest-client-app-1.5.3.jar:?] at info.magnolia.rest.client.app.ui.RestClientMainSubApp.<init>(RestClientMainSubApp.java:48) ~[magnolia-rest-client-app-1.5.3.jar:?] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_121] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_121] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_121] at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_121] at info.magnolia.objectfactory.ObjectManufacturer.newInstance(ObjectManufacturer.java:129) ~[magnolia-core-5.7.14.jar:?] ... 150 more Development notesThe problem occurs when instantiating AceEditor as the import loads org.vaadin.aceeditor.AceEditor from aceeditor-0.8.15.jar whereas it must be picked from vaadin-compatibility-aceeditor-1.3.11.jar as org.vaadin.v7.aceeditor.AceEditor. In a nutshell, switching the import from
import org.vaadin.aceeditor.AceEditor;
to
import org.vaadin.v7.aceeditor.AceEditor;
should fix the issue. |