TDM: Publish fails with this call stack - at java.util.regex.Matcher.appendReplacement(Matcher.java:857)
search cancel

TDM: Publish fails with this call stack - at java.util.regex.Matcher.appendReplacement(Matcher.java:857)

book

Article ID: 203952

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

Publish fails with this call stack. I don't see much in logs and logging is on

FINEST|7264/0|20-11-20 15:16:48|java.lang.IllegalArgumentException: Illegal group reference
FINEST|7264/0|20-11-20 15:16:48| at java.util.regex.Matcher.appendReplacement(Matcher.java:857)
FINEST|7264/0|20-11-20 15:16:48| at java.util.regex.Matcher.replaceAll(Matcher.java:955)
FINEST|7264/0|20-11-20 15:16:48| at java.lang.String.replaceAll(String.java:2223)
FINEST|7264/0|20-11-20 15:16:48| at com.ca.tdm.publ.resolver.TDMPublishColRefScanner.resolveSysVariables(TDMPublishColRefScanner.java:148)
FINEST|7264/0|20-11-20 15:16:48| at com.ca.tdm.publ.resolver.TDMPublishColRefScanner.scanRow(TDMPublishColRefScanner.java:128)
FINEST|7264/0|20-11-20 15:16:48| at com.ca.tdm.publ.resolver.TDMPublishColRefScanner.scanPublishView(TDMPublishColRefScanner.java:101)
FINEST|7264/0|20-11-20 15:16:48| at com.ca.tdm.publ.model.TDMPublishJobStart.prePublishTables(TDMPublishJobStart.java:978)
FINEST|7264/0|20-11-20 15:16:48| at com.ca.tdm.publ.model.TDMPublishJobStart.doPublish(TDMPublishJobStart.java:539)
FINEST|7264/0|20-11-20 15:16:48| at com.ca.tdm.publ.publthread.TDMPublishThread.run(TDMPublishThread.java:46)
FINEST|7264/0|20-11-20 15:16:48| at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
FINEST|7264/0|20-11-20 15:16:48| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
FINEST|7264/0|20-11-20 15:16:48| at java.lang.Thread.run(Thread.java:748)

.
.

.

.
FINEST|7264/0|20-11-20 15:19:53| Note: further occurrences of this error will be logged at DEBUG level.
FINEST|7264/0|20-11-20 15:20:34|java.lang.IllegalArgumentException: Illegal group reference
FINEST|7264/0|20-11-20 15:20:34| at java.util.regex.Matcher.appendReplacement(Matcher.java:857)
FINEST|7264/0|20-11-20 15:20:34| at java.util.regex.Matcher.replaceAll(Matcher.java:955)
FINEST|7264/0|20-11-20 15:20:34| at java.lang.String.replaceAll(String.java:2223)
FINEST|7264/0|20-11-20 15:20:34| at com.ca.tdm.publ.resolver.TDMPublishColRefScanner.resolveSysVariables(TDMPublishColRefScanner.java:148)
FINEST|7264/0|20-11-20 15:20:34| at com.ca.tdm.publ.resolver.TDMPublishColRefScanner.scanRow(TDMPublishColRefScanner.java:128)
FINEST|7264/0|20-11-20 15:20:34| at com.ca.tdm.publ.resolver.TDMPublishColRefScanner.scanPublishView(TDMPublishColRefScanner.java:101)
FINEST|7264/0|20-11-20 15:20:34| at com.ca.tdm.publ.model.TDMPublishJobStart.prePublishTables(TDMPublishJobStart.java:978)
FINEST|7264/0|20-11-20 15:20:34| at com.ca.tdm.publ.model.TDMPublishJobStart.doPublish(TDMPublishJobStart.java:539)
FINEST|7264/0|20-11-20 15:20:34| at com.ca.tdm.publ.publthread.TDMPublishThread.run(TDMPublishThread.java:46)
FINEST|7264/0|20-11-20 15:20:34| at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
FINEST|7264/0|20-11-20 15:20:34| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
FINEST|7264/0|20-11-20 15:20:34| at java.lang.Thread.run(Thread.java:748)

Environment

Release : 4.9

Component : CA Test Data Manager - TDM Web Portal

Cause

User had used Regex special characters in the title of the column.  

Resolution

Had a column with ($) at the end of the name.  Once the Regex special characters removed, it resolved the issue.