search cancel

TDM : NullPointerException when adding a TAG in Data Model

book

Article ID: 202230

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

Hello,

In Data Model, in PII Scan view, selecting a table and when I want to add a TAG the list is not populated.

 

 

Cause

TDMModelService.log  shows:

java.lang.NullPointerException: null
 at java.util.TreeMap.put(TreeMap.java:563)
 at java.util.TreeSet.add(TreeSet.java:255)
 at java.util.AbstractCollection.addAll(AbstractCollection.java:344)
 at java.util.TreeSet.addAll(TreeSet.java:312)
 at com.ca.tdm.profiler.controller.ResultsControllerDataModel.getTags(ResultsControllerDataModel.java:506)
 at com.ca.tdm.profiler.controller.ResultsControllerDataModel$$FastClassBySpringCGLIB$$c2aadee.invoke(<generated>)
 at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
 at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)
 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
 at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88)
 at com.ca.tdm.security.SecurityAccessManager.checkAccess(SecurityAccessManager.java:145)
 at sun.reflect.GeneratedMethodAccessor1680.invoke(Unknown Source)

 

Cause: One classifier was created with an empty TAG 

Environment

Portal : 4.9.66.0

GTREP : Oracle 12G

Resolution

To debug this, check theTDMModelService.logs,

com.ca.tdm.profiler.controller.ResultsControllerDataModel.getTags(ResultsControllerDataModel.java:506) is the code that will use gtrep_pii_classifier

 

See if the below command shows empty ?

select distinct(classifer_tag) from gtrep_pii_classifier;  

 

We see that one classifier  had  NULL value for CLASSIFIER_TAG

 

Attachments