tracker issue : CF-4126637

select a category, or use search below
(searches all categories and all time range)
Title:

Command-line(CLI) pdf metadata export results in java.lang.NoClassDefFoundError

| View in Tracker

Status/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:

Adding BUG AUDIT TRAIL ********action: updated fieldName: Closed By newValue: hkallae oldValue: Blank oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-21 15:05:25.0 action: updated fieldName: Owner newValue: Blank oldValue: hkallae oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-21 15:05:25.0 action: updated fieldName: Reason newValue: Blank oldValue: Fixed oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-21 15:05:25.0 action: updated fieldName: State newValue: Closed oldValue: Open oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-21 15:05:25.0 action: updated fieldName: Status newValue: Fixed oldValue: ToTest oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-21 15:05:25.0 action: updated fieldName: Date Closed newValue: 2015-09-21 08:05:25.0 oldValue: Blank oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-21 15:05:25.0 action: updated fieldName: Status newValue: ToTest oldValue: ToFix oprid: himar recordName: RQ_DEFECT timpestamp: 2015-09-21 07:13:03.0 action: updated fieldName: Date Fixed newValue: 2015-09-21 00:13:02.0 oldValue: Blank oprid: himar recordName: RQ_DEFECT timpestamp: 2015-09-21 07:13:03.0 action: updated fieldName: Fixed By newValue: himar oldValue: Blank oprid: himar recordName: RQ_DEFECT timpestamp: 2015-09-21 07:13:03.0 action: updated fieldName: Owner newValue: hkallae oldValue: himar oprid: himar recordName: RQ_DEFECT timpestamp: 2015-09-21 07:13:03.0 action: updated fieldName: Changelist newValue: 295573 oldValue: Blank oprid: himar recordName: RQ_DEFECT timpestamp: 2015-09-21 07:13:03.0 action: updated fieldName: Reason newValue: Fixed oldValue: Blank oprid: himar recordName: RQ_DEFECT timpestamp: 2015-09-21 07:13:03.0 action: updated fieldName: Fix By Milestone newValue: Beta oldValue: Blank oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-15 04:50:15.0 action: updated fieldName: Fix By Product Milestone newValue: Beta oldValue: Blank oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-15 04:50:15.0 action: updated fieldName: Priority newValue: 2 oldValue: 0 oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-15 04:50:15.0 action: updated fieldName: Reason newValue: Blank oldValue: Blank oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-15 04:50:15.0 action: updated fieldName: Severity newValue: 2 oldValue: 3 oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-15 04:50:15.0 action: updated fieldName: Status newValue: ToFix oldValue: Unverified oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-15 04:50:15.0 action: updated fieldName: Owner newValue: himar oldValue: hkallae oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-15 04:50:15.0
Comment by CFwatson U.
3658 | March 09, 2016 04:22:14 AM GMT
Added By: PreRelease User User Name:A. Bakia Note Added: Entered Bug. Date Added :2015-09-11 09:39:29.0
Comment by CFwatson U.
3659 | March 09, 2016 04:22:15 AM GMT