Page 1 of 1

New URLDecoder Illegal Hex Error

Posted: Fri Jun 26, 2020 3:54 pm
by april_m
We have a PDF transform that we have been using for a while without issue. We are all on the latest version of oxygen. For most of our maps the transform works fine; however, one set of maps is suddenly throwing errors and failing the transform. We can't figure out what the problem is. Some of these maps have not been changed for weeks but now are suddenly giving this error.

Here is what is returned (I also have the full log). I replaced identifying details with xxx.

System ID: C:\Users\xxx.ditamap
Scenario: Our Transform PDF - No Draft-Comments
Input file: C:\Users\xxx.ditamap
Engine name: DITA-OT
Severity: fatal
Description: Transformation failed. C:\Program Files\Oxygen XML Editor 22\frameworks\dita\DITA-OT3.x\plugins\com.oxygenxml.pdf.css\build-merged2merged.xml:14: java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: ".p"

System ID: C:\Program Files\Oxygen XML Editor 22\frameworks\dita\DITA-OT3.x\plugins\org.dita.base\build.xml
Scenario: Our Transform PDF - No Draft-Comments
Input file: C:\Users\xxx.ditamap
Engine name: DITA-OT
Severity: error
Description: The following error occurred while executing this line:
Start location: 29:0

System ID: C:\Program Files\Oxygen XML Editor 22\frameworks\dita\DITA-OT3.x\plugins\com.oxygenxml.pdf.css\build.xml
Scenario: Our Transform PDF - No Draft-Comments
Input file: C:\Users\xxx.ditamap
Engine name: DITA-OT
Severity: error
Description: The following error occurred while executing this line:
Start location: 492:0

System ID: C:\Program Files\Oxygen XML Editor 22\frameworks\dita\DITA-OT3.x\plugins\com.oxygenxml.pdf.css\build-merged2merged.xml
Scenario: Our Transform PDF - No Draft-Comments
Input file: C:\Users\xxx.ditamap
Engine name: DITA-OT
Severity: error
Description: java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: ".p"
Start location: 14:0




I am not sure if this is correct, but these are the lines from the log:
14: dita2pdf2.init:

29: [echo] * DITA-OT version = 3.4.1

492: [topicpull] Processing C:\Users\xxx\oxygen_dita_temp\xxx.dita (references a specific topic, but I cant find any problem in that topic; also does not explain why the other maps are failing too)

Re: New URLDecoder Illegal Hex Error

Posted: Mon Jun 29, 2020 10:38 am
by Dan
There might be something that has changed in the DITA files (maybe something that is included from multiple maps). This is what you can try:
1. Copy your map and try to remove topic reference from it until this specific error disappears. Try to identify the specific topic that causes the problem. Create a small sample from it and send it to us, on the support channel: https://www.oxygenxml.com/techSupport.html
2. If you still cannot identify the problem, send us the full log of the transformation.

Some hints:
- there might be an image or other reference that has an URL with parameters that is not properly encoded. Check your changes for this type of content.
- try transforming with a previous version of oXygen. If it does not work, there is a problem in the content. If it does work, then is a bug in the new oXygen version.
- Search for the text ".p" in the content of the map, (Use the find in files operation from the Dita Maps Manager View), maybe you can identify the URL with the problems.

Many regards,
Dan

Re: New URLDecoder Illegal Hex Error

Posted: Mon Jun 29, 2020 4:58 pm
by april_m
We were able to resolve the issue using your suggestions, thank you!