New URLDecoder Illegal Hex Error

Having trouble installing Oxygen? Got a bug to report? Post it all here.
april_m
Posts: 11
Joined: Mon Oct 21, 2019 10:55 pm

New URLDecoder Illegal Hex Error

Post 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)
Dan
Posts: 501
Joined: Mon Feb 03, 2003 10:56 am

Re: New URLDecoder Illegal Hex Error

Post 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
april_m
Posts: 11
Joined: Mon Oct 21, 2019 10:55 pm

Re: New URLDecoder Illegal Hex Error

Post by april_m »

We were able to resolve the issue using your suggestions, thank you!
Post Reply