JcrUtils.getRepository throws ExceptionInIntializerError
When I attempt to execute the code snippet in the "How to programmatically access the AEM JCR" article, I get the following exception:
Exception in thread "main" java.lang.ExceptionInInitializerError
at GetRepository.main(GetRepository.java:15)
Caused by: java.lang.IllegalArgumentException: unknown type: 10
at javax.jcr.PropertyType.nameFromValue(PropertyType.java:92)
at org.apache.jackrabbit.commons.JcrUtils.<clinit>(JcrUtils.java:1277)
Any ideas on how to fix this?