Support Center > Search Results > SecureKnowledge Details
Publishing sessions fail with "java.lang.NullPointerException; nested exception..." Technical Level
Symptoms
  • Publishing sessions fail with error:
    "java.lang.NullPointerException; nested exception is javax.persistence.PersistenceException: java.lang.NullPointerException"

  • Publishing fails with NPE (null pointer exception) in following (CLEAR) call stack:

    at com.checkpoint.management.dleserver.coresvc.internal.triggers.CpmiGroupIntDeleteTrigger.onObjectDelete(DleObject, ObjectCrudSvc$DeletePhase)(CpmiGroupIntDeleteTrigger.java:38)
    at com.checkpoint.management.dleserver.coresvc.internal.ObjectCrudSvcImpl.runDeleteTriggers_aroundBody88(ObjectCrudSvcImpl, ObjectCrudSvc$DeletePhase, DleObject, ValidationSeverity, JoinPoint) (ObjectCrudSvcImpl.java:5806)
    at com.checkpoint.management.dleserver.coresvc.internal.ObjectCrudSvcImpl$AjcClosure89.run(Object[])(ObjectCrudSvcImpl.java:1)
    at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
    at com.checkpoint.management.dleserver.coresvc.internal.TransactionRetrySvcImpl.proceed(ProceedingJoinPoint)(TransactionRetrySvcImpl.java:102)
    Problematic object is:
    [DATE TIME] DEBUG internal.triggers.CpmiGroupIntDeleteTrigger [taskExecutor-20]: CpmiUserIntDeleteTrigger called for com.checkpoint.objects.classes.dummy.CpmiServiceGroup CheckPointObject{metaInfo=com.checkpoint.management.dlecommon.ngm_api.MetaInfoForTopLevel@23f65f79, featuresPreset=42771b2b-25f5-370d-bf3c-720ba4be8324, features=[df584c4e-dd43-48a2-91bd-60eb5281a682, 521e31d4-ad65-48c8-affd-80dd67499c36, c1c7901a-9835-48cb-b434-31e8813b439d, 7f44117b-fa39-4ed0-be73-6c7e4c22d043, a23532a2-8af0-4c41-9a16-d85a36f3cfb4, 07967386-0ef6-4afc-a8ab-d695f0f7e73e, ee8d565e-7ca9-4561-833b-3ff66511daca], tags=[], systemTags=[1316ee9c-4f9c-49ca-85c0-37fbfa2f55ed, 1316ee9c-4f9c-49ca-85c0-37fbfa2f55f0, ea7f217a-3224-4bfc-9a21-8ab70e4478c3, 1316ee9c-4f9c-49ca-85c0-37fbfa2f55f5, 1316ee9c-4f9c-49ca-85c0-37fbfa2f55f7], actions=null, dynamicFeatures=null} {name='g_Ora_Mgmt_Svr_App2', objId='c1464fb6-fd78-4bf8-b8da-8f3879f21acd', domain='1e294ce0-367a-11e3-aa6e-0800200c9a66'}
  • == CONT==
    NullPointeException in EclipseLink code
    Caused by: java.lang.NullPointerException
    at org.eclipse.persistence.internal.queries.CollectionContainerPolicy.iteratorFor(CollectionContainerPolicy.java:150)
    at org.eclipse.persistence.mappings.CollectionMapping.recordPrivateOwnedRemovals(CollectionMapping.java:1724)
    at org.eclipse.persistence.internal.descriptors.ObjectBuilder.recordPrivateOwnedRemovals(ObjectBuilder.java:3445)
    at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.calculateChanges(UnitOfWorkImpl.java:687)
    at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitToDatabaseWithChangeSet(UnitOfWorkImpl.java:1514)
    at org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.commitRootUnitOfWork(RepeatableWriteUnitOfWork.java:277)
    at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitAndResume(UnitOfWorkImpl.java:1167)
    at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.commit(EntityTransactionImpl.java:132)
    ... 38 more
  • Scenario:
    1. Create a group of services - add two or more of any services into the group and click OK
    2. Delete this group of services within your work session
    3. Publish your changes
Cause

Creation and deletion of a group of services within the same worksession cause publishing to fail.


Solution
Note: To view this solution you need to Sign In .