java - Weld injection failing when calling a method from an super/abstract class with Wicket -
I am having trouble with weld-wicket when an EJB is injected which is inherited from the abstract class If I try to call any method from the intangible class, I get an ebay ref error, however, if I call a method from the concrete square then it works perfectly. I can override methods and call them, and I can represent an override method for the abstract class (override method call super.method ()) and what works. Is there any type of structure that I have to do for the intangible class?
Thank you.
Based on my experience with the seam, this is an estimate. The weld injects a proxy that wraps your bean. Proxy only blocks public methods and assigns them to the underlying bean (EJB in your case). When you call a protected method or a package-personal method on a proxy with a class in the same package, the method is not intercepted and is brought directly to the proxy which causes your error. To reduce the story, call only public methods or bring back all your dependencies from an interface and insert it into it.
Comments
Post a Comment