I have a simple method to get a list of documents for a given companyId. Here is the method:
@Override
public List getDocumentL
If you @Inject a class with your method, its working as expected.
@Stateless
public class MyBean{
@Inject
TestClass test;
}
and
public class TestClass {
public List getDocumentList(@NotNull Integer companyId)
{
//...
}
}
ConstraintViolationException when you call your method with null parameter:
WFLYEJB0034: EJB Invocation failed on component MyBean for method ...:
javax.ejb.EJBException: javax.validation.ConstraintViolationException:
1 constraint violation(s) occurred during method validation.