I could replicate this on 4.0.0.Beta2.
@Jesper, would be helpful if you could find what Annotation and Class are the reason for your NPE and post it here. Viacheslav will open the issue to track this problem and attach JIRA number to this discussion.
Thanks