You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ApplicationScoped
public class BookService {
final Validator validator;
@Inject
public BookService(Validator validator) {
this.validator = validator;
}
public void validateBook(@Valid Book book) {
// your business logic here
}
}
java.lang.NoSuchMethodError: org.jboss.shamrock.example.beanvalidation.GreetingService: method <init>()V not found
at org.jboss.shamrock.example.beanvalidation.GreetingService_ClientProxy.<init>(Unknown Source)
at org.jboss.shamrock.example.beanvalidation.GreetingService_Bean$$function$$3.get(Unknown Source)
at org.jboss.protean.arc.LazyValue.get(LazyValue.java:42)
at org.jboss.shamrock.example.beanvalidation.GreetingService_Bean.get(Unknown Source)
at org.jboss.shamrock.example.beanvalidation.GreetingService_Bean.get(Unknown Source)
We should in decreasing order of preference
Bytecode enhance to add the noarg constructor
Raise a proper error message
The text was updated successfully, but these errors were encountered:
I'd go with 2 for now but I'll investigate the bytecode enhancement. It shouldn't be a problem for simple classes but I'm not sure about the more complex ones... need to think a little ;-)
We should in decreasing order of preference
The text was updated successfully, but these errors were encountered: