Issue
I get this error in the EJB class I tried to see in the other questions but I couldn't solve it, can anyone help me? Thanks
"CanzoneEJB is not abstract and does not override abstract method cercaPerSerataEsibizione(Integer) in CanzoneEJBRemote"
href="https://i.stack.imgur.com/4RxX0.png" rel="nofollow noreferrer">CanzoneEJB
Solution
The method cercaPerSerataEsibizione
in the CanzoneEJBRemote interface takes an Integer, but the corresponding method in CanzoneEJB class takes a String. Since the abstract method and the overriding method have different types for the serataesibizione
parameter, the method is not overridden and Java gives an error.
Either change the aforementioned method in CanzoneEJBRemote to take a String, or change the method in CanzoneEJB to take an Integer.
Answered By - Nathan Mills
Answer Checked By - Marie Seifert (JavaFixing Admin)