Title:
Command-line(CLI) pdf metadata export results in java.lang.NoClassDefFoundError
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): A. Bakia / A. Bakia (A. Bakia)
Created: 03/09/2016
Components: CLI
Versions: 2016
Failure Type:
Found In Build/Fixed In Build: Alpha_v12 /
Priority/Frequency: Normal / Few users will encounter
Locale/System: English / Win All
Vote Count: 0
Problem Description: When you attempt to export PDF metadata using the command-line interface(CLI), you get java.lang.NoClassDefFoundError: com/rsa/jsafe/JSAFE_SecureRandom.
Steps to Reproduce: Operating System: 32-bit Windows 7.
(1) Save the following code as the file C:\ColdFusionRaijin\cfusion\wwwroot\pdf_new_cf12_features\pdf_metadata_export_via_cli.cfm:
<cfpdf
action="export"
type="metadata"
source = "#cli.getArg(1)#"
exportTo = "#cli.getArg(2)#">
(2) Save the attached PDF file as C:\ColdFusionRaijin\cfusion\wwwroot\pdf_new_cf12_features\testFile.pdf.
(3) Run the following on the command-line:
cf.bat C:\ColdFusionRaijin\cfusion\wwwroot\pdf_new_cf12_features\pdf_metadata_export_via_cli.cfm C:\ColdFusionRaijin\cfusion\wwwroot\pdf_new_cf12_features\testFile.pdf C:\ColdFusionRaijin\cfusion\wwwroot\pdf_new_cf12_features\metadata.xmp 2> C:\ColdFusionRaijin\cfusion\wwwroot\pdf_new_cf12_features\std_err_output.txt
[The purpose of this code is to export the metadata of testFile.pdf to metadata.xmp. Should any error result, it would be output to std_err_output.txt]
Actual Result: java.lang.NoClassDefFoundError: com/rsa/jsafe/JSAFE_SecureRandom.
No metadata is exported. For details, see attached file, std_err_output.txt.
Expected Result: Creation of metadata.xmp without any error.
Any Workarounds: If you use the following code in place of the command-line version Coldfusion will create the metadata file without any error:
<cfpdf
action="export"
type="metadata"
source = "#expandPath('testFile.pdf')#"
exportTo = "#expandPath('metadata.xmp')#">
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4126637
External Customer Info:
External Company: (withheld for privacy)
External Customer Name: A. Bakia
External Customer Email: A.BAKIG@CHELLO.NL
External Test Config:
Bug File Paths:
\\sjshare.corp.adobe.com\Prereleasebugfiles\ColdFusion\12.0\Alpha_v12\4054308\std_err_output.txt
\\sjshare.corp.adobe.com\Prereleasebugfiles\ColdFusion\12.0\Alpha_v12\4054308\testFile.pdf
Attachments:
Comments: