Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The getCommonName method was not found #5

Closed
pvandermn opened this issue Jul 18, 2017 · 3 comments
Closed

The getCommonName method was not found #5

pvandermn opened this issue Jul 18, 2017 · 3 comments

Comments

@pvandermn
Copy link

In opening the Certificate Management screen on one of our servers, I get the error "The getCommonName method was not found." Any thoughts for resolving this?

Either there are no methods with the specified method name and argument types or the getCommonName method is overloaded with argument types that ColdFusion cannot decipher reliably. ColdFusion found 0 methods that match the provided arguments. If this is a Java object and you verified that the method exists, use the javacast function to reduce ambiguity.

The error occurred in C:/ColdFusion11/cfusion/wwwroot/CFIDE/administrator/certman/Certificate.cfc: line 19

17 : <!--- certificate common name (some certs do not have this, try to fall back to OU)--->
18 :
19 : <cfif Len(Trim(Variables.ThisCertificate.getSubjectDN().getCommonName()))>
20 : <cfreturn Variables.ThisCertificate.getSubjectDN().getCommonName()>
21 :
 

@tommyready
Copy link

When you dump out the structure is the method there?

@pvandermn
Copy link
Author

pvandermn commented Jul 25, 2017

Thank you for your quick response, and sorry for my late reply. No, when I dump Variables.ThisCertificate, the getSubjectDN method exists, but getCommonName is not within it. This is a dump of getSubjectDN.

image

@pvandermn
Copy link
Author

I resolved this by simply copying the certman folder from another server where it was working. All fine now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants