NullPointerException In org.eclipse.persistence.internal.jpa.EJBQueryImpl.setHint (Doc ID 1969699.1)

Last updated on FEBRUARY 17, 2015

Applies to:

Oracle TopLink - Version 11.1.1.6.0 to 12.1.2.0.0 [Release Oracle11g to 12c]
Information in this document applies to any platform.

Symptoms

A TopLink 11.1.1.6.0 application reports the following exception:

2014-12-31.09:45:59.580(+0800) javax.ejb.EJBTransactionRolledbackException: EJB Exception: ; nested exception is: java.lang.NullPointerException; nested exception is: java.lang.NullPointerException
2014-12-31.09:45:59.580(+0800) java.lang.NullPointerException
2014-12-31.09:45:59.580(+0800) at org.eclipse.persistence.internal.expressions.ObjectExpression.existingDerivedExpressionNamed(ObjectExpression.java:254)
2014-12-31.09:45:59.580(+0800) at org.eclipse.persistence.internal.expressions.ObjectExpression.derivedExpressionNamed(ObjectExpression.java:223)
2014-12-31.09:45:59.580(+0800) at org.eclipse.persistence.internal.expressions.ObjectExpression.get(ObjectExpression.java:267)
2014-12-31.09:45:59.580(+0800) at org.eclipse.persistence.expressions.Expression.get(Expression.java:1529)
2014-12-31.09:45:59.580(+0800) at org.eclipse.persistence.internal.jpa.QueryHintsHandler$FetchHint.applyToDatabaseQuery(QueryHintsHandler.java:1376)
2014-12-31.09:45:59.580(+0800) at org.eclipse.persistence.internal.jpa.QueryHintsHandler$Hint.apply(QueryHintsHandler.java:361)
2014-12-31.09:45:59.580(+0800) at org.eclipse.persistence.internal.jpa.QueryHintsHandler$Hint.apply(QueryHintsHandler.java:339)
2014-12-31.09:45:59.580(+0800) at org.eclipse.persistence.internal.jpa.QueryHintsHandler.apply(QueryHintsHandler.java:171)
2014-12-31.09:45:59.580(+0800) at org.eclipse.persistence.internal.jpa.EJBQueryImpl.setHintInternal(EJBQueryImpl.java:1021)
2014-12-31.09:45:59.580(+0800) at org.eclipse.persistence.internal.jpa.EJBQueryImpl.setHint(EJBQueryImpl.java:1003)
2014-12-31.09:45:59.580(+0800) at org.eclipse.persistence.internal.jpa.EJBQueryImpl.setHint(EJBQueryImpl.java:81)
2014-12-31.09:45:59.580(+0800) at hk.org.ha.model.pms.dms.biz.DrugMasterManagerBean.isDrugExist(DrugMasterManagerBean.java:1118)
2014-12-31.09:45:59.580(+0800) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-12-31.09:45:59.580(+0800) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2014-12-31.09:45:59.580(+0800) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2014-12-31.09:45:59.580(+0800) at java.lang.reflect.Method.invoke(Method.java:597)
2014-12-31.09:45:59.580(+0800) at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
2014-12-31.09:45:59.580(+0800) at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
2014-12-31.09:45:59.580(+0800) at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
2014-12-31.09:45:59.580(+0800) at com.oracle.pitchfork.intercept.MethodInvocationInvocationContext.proceed(MethodInvocationInvocationContext.java:103)
2014-12-31.09:45:59.580(+0800) at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:44)
2014-12-31.09:45:59.580(+0800) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
2014-12-31.09:45:59.580(+0800) at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
::::::::::::::::::::::::



Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms