Uploaded image for project: 'PicketLink'
  1. PicketLink
  2. PLINK-581

EntityManagerProvider is throwing NPE when EntityType.getJavaType() returns nulll

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • PLINK_2.7.0.CR1
    • PLINK_2.7.0.Beta2
    • BASE
    • None

      The following error was thrown by a project using Hibernate Envers. It seems that generated entities are not returning its java type.

      10:32:52,790 ERROR [org.picketlink.http] (default task-3) Exception thrown during processing for path [/unicboxWEB/solicitacaoDeMaterial.jsf]. Sending error with status code [500].: java.lang.NullPointerException
              at org.picketlink.internal.EntityManagerProvider.resolveMappedEntities(EntityManagerProvider.java:115) [picketlink-2.7.0.Beta2.jar:]
              at org.picketlink.internal.EntityManagerProvider.init(EntityManagerProvider.java:57) [picketlink-2.7.0.Beta2.jar:]
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_05]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_05]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_05]
              at java.lang.reflect.Method.invoke(Method.java:483) [rt.jar:1.8.0_05]
              at org.jboss.weld.injection.MethodInjectionPoint.invokeWithSpecialValue(MethodInjectionPoint.java:72) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
              at org.jboss.weld.injection.MethodInjectionPoint.invoke(MethodInjectionPoint.java:66) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
      

            psilva@redhat.com Pedro Igor Craveiro
            psilva@redhat.com Pedro Igor Craveiro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: