Expand my Community achievements bar.

SOLVED

FEATURE_SECURE_PROCESSING error while create Document Fragment on AEM 6.5

Avatar

Level 3
  1. Using AEM Forms - 6.5.12 on Windows OS
  2. I have a REST form data model.
  3. Create a document fragment
  4. Added data elements on to text document fragment.
  5. On saving it is failing with error [object Object]. Log shows following error. Screenshot attached too.

vidhyabhushanbahl_0-1651984352779.png

08.05.2022 10:02:08.307 *ERROR* [0:0:0:0:0:0:0:1 [1651984328245] POST /libs/fd/fdm/content/crud.fd.df.documentFragmentService.json HTTP/1.1] com.adobe.livecycle.content.repository.utils.XpathToEntityNodeConverter Wrong Xpath syntax - javax.xml.transform.TransformerException: JAXP0801002: the compiler encountered an XPath expression containing '101' operators that exceeds the '100' limit set by 'FEATURE_SECURE_PROCESSING'.
08.05.2022 10:02:08.311 *ERROR* [0:0:0:0:0:0:0:1 [1651984328245] POST /libs/fd/fdm/content/crud.fd.df.documentFragmentService.json HTTP/1.1] com.adobe.icc.dbforms.exceptions.ICCException Unexpected error
com.adobe.livecycle.content.repository.exception.RepositoryException: RepositoryException: {Code}-LCC-CFG-XPT-004, {Message}-RepositoryException: {Code}-LCC-CFG-XPT-004, {Message}-Wrong Xpath syntax - javax.xml.transform.TransformerException: JAXP0801002: the compiler encountered an XPath expression containing '101' operators that exceeds the '100' limit set by 'FEATURE_SECURE_PROCESSING'.

 

Any help appericated.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

@vidhyabhushanbahl Please log a support case with the IC package. 

View solution in original post

13 Replies

Avatar

Correct answer by
Employee Advisor

@vidhyabhushanbahl Please log a support case with the IC package. 

Avatar

Employee

@vidhyabhushanbahl , Can you please share the complete stack trace? What is the Java version you are using? This setting has been introduced in Java 1.8u331. Can you please try setting the following JVM property and see if it resolves your issue.

-Djdk.xml.xpathExprGrpLimit=100 -Djdk.xml.xpathExprOpLimit=2000

Avatar

Level 3

Thanks Sharoon23,

 

I did make this change and it worked but I didn't update the forum. I was using OpenJDK 11.

 

Cheers

Avatar

Employee

@namontemayor , you need to set this argument in JVM arguments while starting the AEM instance. 

Avatar

Level 1

Hi Team,

I am facing similar issue while creating text/list file in Document Fragment on AEM 6.5

May I know a solution to fix this issue. Any help is appreciated.

Thanks in Advance!

AnushaAt1_0-1720094212269.png

 

Avatar

Employee

@AnushaAt1 , please check the error.log file in crx-quickstart/logs folder of your AEM installation. If you see the exception specified in the origin then you are facing the same issue. You can solve this issue by setting the following JVM argument while starting AEM

-Djdk.xml.xpathExprGrpLimit=100 -Djdk.xml.xpathExprOpLimit=2000

Avatar

Level 1

Hi,

Thanks for the response,

Here are the errors,

05.07.2024 05:53:36.249 *ERROR* [10.158.181.34 [1720173216239] GET /mnt/overlay/fd/cm/ma/gui/content/cmassets/jcr:content/views/card.0.20.html/content/apps/cm/modules/ucd/en/commercial HTTP/1.1] com.adobe.fd.df.fdinternal.core.ModificationTimeComparator Exception while fetching last modified time of resource: /content/apps/cm/modules/ucd/en/commercial/rep:policy
java.lang.NullPointerException: null

05.07.2024 05:53:29.448 *ERROR* [10.158.181.34 [1720173209426] POST /libs/fd/fdm/content/crud.fd.df.documentFragmentService.json HTTP/1.1] com.adobe.livecycle.content.repository.utils.XpathToEntityNodeConverter Wrong Xpath syntax - javax.xml.transform.TransformerException: JAXP0801002: the compiler encountered an XPath expression containing '101' operators that exceeds the '100' limit set by 'FEATURE_SECURE_PROCESSING'.
05.07.2024 05:53:29.449 *ERROR* [10.158.181.34 [1720173209426] POST /libs/fd/fdm/content/crud.fd.df.documentFragmentService.json HTTP/1.1] com.adobe.icc.dbforms.exceptions.ICCException Unexpected error
com.adobe.livecycle.content.repository.exception.RepositoryException: RepositoryException: {Code}-LCC-CFG-XPT-004, {Message}-RepositoryException: {Code}-LCC-CFG-XPT-004, {Message}-Wrong Xpath syntax - javax.xml.transform.TransformerException: JAXP0801002: the compiler encountered an XPath expression containing '101' operators that exceeds the '100' limit set by 'FEATURE_SECURE_PROCESSING'.

 

 

In my local, it was working fine. I am facing issue in our AEM instances. May I know where we have to add the property value. It will be helpful.

 

AEM version : 6.5.19

 

Regards,

Anusha

 

 

 

 

Avatar

Employee

@AnushaAt1 , 

 

In your AEM server start command you need to add the above option

java -Djdk.xml.xpathExprGrpLimit=100 -Djdk.xml.xpathExprOpLimit=2000 <..other options..> -jar cq-quickstart.jar

Avatar

Level 1

Hello,

 

Since the process is new to me, Could you please let me know where I have to add those parameter value in the start script, here is our start script. 

 

# default JVM options
if [ -z "$CQ_JVM_OPTS" ]; then
CQ_JVM_OPTS='-server -Xmx4G -XX:MaxMetaspaceSize=512m -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=20 -XX:ConcGCThreads=5 -XX:InitiatingHeapOccupancyPercent=70 -Doak.queryLimitInMemory=500000 -Doak.queryLimitReads=100000 -Dupdate.limit=250000 -Doak.fastQuerySize=true -Djava.awt.headless=true -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/p01/app/aem/sandbox/heapdump_log/`date`.hprof -Djava.io.tmpdir=/p01/app/aem/sandbox/tmp'
fi

# file size limit (ulimit)
if [ -z "$CQ_FILE_SIZE_LIMIT" ]; then
CQ_FILE_SIZE_LIMIT=8192
fi

# ------------------------------------------------------------------------------
# authentication
# ------------------------------------------------------------------------------
# when using oak (crx3) authentication must be configured using the
# Apache Felix JAAS Configuration Factory service via the Web Console

# use jaas.config (legacy: only used for crx2 persistence)
#if [ -z "$CQ_USE_JAAS" ]; then
# CQ_USE_JAAS='true'

 

Can you also let me know whether this should be done in offline and will restart required after making the change?

 

Avatar

Level 1

Hi,

Since the process is new to me, could you please let me know where I have to add those JVM parameter in start script, Here is our start script.

# default JVM options
if [ -z "$CQ_JVM_OPTS" ]; then
CQ_JVM_OPTS='-server -Xmx4G -XX:MaxMetaspaceSize=512m -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=20 -XX:ConcGCThreads=5 -XX:InitiatingHeapOccupancyPercent=70 -Doak.queryLimitInMemory=500000 -Doak.queryLimitReads=100000 -Dupdate.limit=250000 -Doak.fastQuerySize=true -Djava.awt.headless=true -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/p01/app/aem/sandbox/heapdump_log/`date`.hprof -Djava.io.tmpdir=/p01/app/aem/sandbox/tmp'
fi

# file size limit (ulimit)
if [ -z "$CQ_FILE_SIZE_LIMIT" ]; then


And Can you also let me know whether this should be done in offline and will restart required after making the change?

Avatar

Level 1

Hi,

Since the process is new to me, could you please let me know where I have to add those JVM parameter in start script,If needed I can share our start script.

And Can you also let me know whether this should be done in offline and will restart required after making the change?

Avatar

Employee

@AnushaAt : It seems you have already submitted support ticket for this issue - E-001288023.

If yes, let's continue on the support ticket.

Regards,
Utkarsh