This website uses cookies. By clicking OK, you consent to the use of cookies. Click Here to learn more about how we use cookies.
OK
  • RSA.com
  • Products
    • Archer®
      • Archer®
      • Advisories
      • Blog
      • Discussions
      • Documentation
      • Downloads
      • Ideas
      • Knowledge Base
      • Archer® Exchange
      • Training
      • Upcoming Events
      • Videos
    • RSA® Fraud & Risk Intelligence Suite
      • RSA® Fraud & Risk Intelligence Suite
      • RSA® Adaptive Authentication Cloud
      • RSA® Adaptive Authentication On-Premise
      • RSA® Adaptive Authentication On-Premise (Cassandra)
      • RSA® Adaptive Authentication for eCommerce
      • RSA® FraudAction Services
      • RSA® Web Threat Detection
      • Upcoming Events
      • Videos
    • RSA® Adaptive Authentication Cloud
      • RSA® Adaptive Authentication Cloud
      • Advisories
      • Blog
      • Discussions
      • Documentation
      • Downloads
      • Events
      • Ideas
      • Knowledge Base
      • Training
      • Upcoming Patch Content
      • Videos
    • RSA® Adaptive Authentication Mobile SDK
      • RSA® Adaptive Authentication Mobile SDK
      • Advisories
      • Events
      • Ideas
      • Knowledge Base
      • Request Access
      • Training
    • RSA® Adaptive Authentication On-Premise
      • RSA® Adaptive Authentication On-Premise
      • Advisories
      • Blog
      • Discussions
      • Documentation
      • Downloads
      • Events
      • Ideas
      • Knowledge Base
      • Training
      • Videos
    • RSA® Adaptive Authentication On-Premise (Cassandra)
      • RSA® Adaptive Authentication On-Premise (Cassandra)
      • Advisories
      • Blog
      • Discussions
      • Documentation
      • Downloads
      • Events
      • Ideas
      • Knowledge Base
      • Training
      • Videos
    • RSA® Adaptive Authentication for eCommerce
      • RSA® Adaptive Authentication for eCommerce
      • Advisories
      • Blog
      • Discussions
      • Documentation
      • Ideas
      • Knowledge Base
      • Training
      • Videos
    • RSA® FraudAction Services
      • RSA® FraudAction Services
      • Advisories
      • Discussions
      • Documentation
      • Ideas
      • Videos
    • RSA® Web Threat Detection
      • RSA® Web Threat Detection
      • Advisories
      • Blog
      • Discussions
      • Documentation
      • Downloads
      • Ideas
      • Knowledge Base
      • Videos
    • RSA NetWitness® Platform
      • RSA NetWitness® Platform
      • Advisories
      • Blog
      • Discussions
      • Documentation
      • Downloads
      • Ideas
      • Integrations
      • Knowledge Base
      • Training
      • Upcoming Events
      • Videos
    • RSA NetWitness® Detect AI
      • RSA NetWitness® Detect AI
      • Documentation
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
    • RSA NetWitness® Investigator
      • RSA NetWitness® Investigator
      • Documentation
      • Download the Client
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
    • RSA NetWitness® Orchestrator
      • RSA NetWitness® Orchestrator
      • Overview
      • Documentation
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
    • RSA SecurID® Suite
      • RSA SecurID® Suite
      • Advisories
      • Blog
      • Discussions
      • Documentation
      • Downloads
      • Knowledge Base
      • Ideas
      • Integrations
      • Training
      • Videos
    • RSA® Identity Governance & Lifecycle
      • RSA® Identity Governance & Lifecycle
      • Advisories
      • Blog
      • Community Exchange
      • Discussions
      • Documentation
      • Downloads
      • Ideas
      • Knowledge Base
      • Training
      • Upcoming Events
      • Videos
    • RSA SecurID® Access
      • RSA SecurID® Access
      • Advisories
      • Blog
      • Discussions
      • Documentation
      • Downloads
      • Ideas
      • Integrations
      • Knowledge Base
      • Training
      • Upcoming Events
      • Videos
    • Other RSA® Products
      • Other RSA® Products
      • RSA® Access Manager
      • RSA® Data Loss Prevention
      • RSA® Digital Certificate Solutions
      • RSA enVision®
      • RSA® Federated Identity Manager
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
  • Resources
    • Advisories
      • Product Advisories on RSA Link
      • Archer®
      • RSA® Adaptive Authentication Cloud
      • RSA® Adaptive Authentication Hosted
      • RSA® Adaptive Authentication On-Premise
      • RSA® Adaptive Authentication On-Premise (Cassandra)
      • RSA® Adaptive Authentication for eCommerce
      • RSA® FraudAction Services
      • RSA® Identity Governance & Lifecycle
      • RSA NetWitness® Platform
      • RSA SecurID® Access
      • RSA® Web Threat Detection
      • All Product Advisories
    • Blogs
      • Blogs on RSA Link
      • Archer®
      • RSA® Adaptive Authentication Cloud
      • RSA® Adaptive Authentication On-Premise
      • RSA® Adaptive Authentication On-Premise (Cassandra)
      • RSA® Adaptive Authentication for eCommerce
      • RSA® Identity Governance & Lifecycle
      • RSA NetWitness® Platform
      • RSA SecurID® Access
      • RSA® Web Threat Detection
      • All Blogs on RSA Link
    • Discussion Forums
      • Discussion Forums
      • Archer®
      • RSA® Adaptive Authentication Cloud
      • RSA® Adaptive Authentication On-Premise
      • RSA® Adaptive Authentication On-Premise (Cassandra)
      • RSA® Adaptive Authentication for eCommerce
      • RSA® FraudAction Services
      • RSA® Identity Governance & Lifecycle
      • RSA NetWitness® Platform
      • RSA SecurID® Access
      • RSA® Web Threat Detection
      • All Discussion Forums on RSA Link
    • Documentation
      • Product Documentation
      • Archer®
      • RSA® Adaptive Authentication Cloud
      • RSA® Adaptive Authentication Mobile SDK
      • RSA® Adaptive Authentication On-Premise
      • RSA® Adaptive Authentication On-Premise (Cassandra)
      • RSA® Adaptive Authentication for eCommerce
      • RSA® FraudAction Services
      • RSA® Identity Governance & Lifecycle
      • RSA NetWitness® Platform
      • RSA SecurID® Access
      • RSA® Web Threat Detection
      • All Documentation on RSA Link
    • Downloads
      • Product Downloads
      • Archer®
      • RSA® Adaptive Authentication Cloud
      • RSA® Adaptive Authentication On-Premise
      • RSA® Adaptive Authentication On-Premise (Cassandra)
      • RSA® Identity Governance & Lifecycle
      • RSA NetWitness® Platform
      • RSA SecurID® Access
      • RSA® Web Threat Detection
      • All Downloads on RSA Link
    • Ideas
      • Idea Exchange
      • Archer®
      • RSA® Adaptive Authentication Cloud
      • RSA® Adaptive Authentication Mobile SDK
      • RSA® Adaptive Authentication On-Premise
      • RSA® Adaptive Authentication On-Premise (Cassandra)
      • RSA® Adaptive Authentication for eCommerce
      • RSA® FraudAction Services
      • RSA® Identity Governance & Lifecycle
      • RSA NetWitness® Platform
      • RSA SecurID® Access
      • RSA® Web Threat Detection
      • All Documentation on RSA Link
    • Knowledge Base
      • Knowledge Base
      • Archer®
      • RSA® Adaptive Authentication Cloud
      • RSA® Adaptive Authentication Mobile SDK
      • RSA® Adaptive Authentication On-Premise
      • RSA® Adaptive Authentication On-Premise (Cassandra)
      • RSA® Adaptive Authentication for eCommerce
      • RSA® Identity Governance & Lifecycle
      • RSA NetWitness® Platform
      • RSA SecurID® Access
      • RSA® Web Threat Detection
      • All Knowledge Base Pages on RSA Link
    • Upcoming Events on RSA Link
      • Upcoming Events
    • Videos
      • Videos on RSA Link
      • Archer®
      • RSA® Adaptive Authentication Cloud
      • RSA® Adaptive Authentication On-Premise
      • RSA® Adaptive Authentication On-Premise (Cassandra)
      • RSA® Adaptive Authentication for eCommerce
      • RSA® Identity Governance & Lifecycle
      • RSA NetWitness® Platform
      • RSA SecurID® Access
      • RSA® Web Threat Detection
      • All Videos on RSA Link
  • Support
    • RSA Link Support
      • RSA Link Support
      • News & Announcements
      • Getting Started
      • Support Forum
      • Support Knowledge Base
      • Ideas & Suggestions
    • RSA Product Support
      • RSA Product Support
      • General Security Advisories and Statements
      • Product Life Cycle
      • Support Information
      •  
      •  
      •  
      •  
      •  
  • RSA Ready
  • RSA University
    • Certification Program
      • Certification Program
    • Course Catalogs
      • Course Catalogs
    • On-Demand Subscriptions
      • On-Demand Subscriptions
      • Archer®
      • RSA NetWitness® Platform
      • RSA SecurID® Suite
    • Product Training
      • Product Training
      • Archer®
      • RSA® Fraud & Risk Intelligence Suite
      • RSA® Identity Governance & Lifecycle
      • RSA NeWitness® Platform
      • RSA SecurID® Access
    • Student Resources
      • Student Resources
      • Access On-Demand Learning
      • Access Virtual Labs
      • Contact RSA University
      • Enrollments & Transcripts
      • Frequently Asked Questions
      • Getting Started
      • Learning Modalities
      • Payments & Cancellations
      • Private Training
      • Training Center Locations
      • Training Credits
      • YouTube Channel
    • Upcoming Events
      • Upcoming Events
      • Full Calendar
      • Conferences
      • Live Classroom Training
      • Live Virtual Classroom Training
      • Webinars
Sign In Register Now
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Search instead for 
Did you mean: 
Announcements

RSA Link website migration to new platform is in progress

View Status

RSA® Identity Governance & Lifecycle Discussions

Discussions about RSA Identity Governance & Lifecycle.
  • RSA Link
  • :
  • Products
  • :
  • RSA SecurID Suite
  • :
  • RSA Identity Governance & Lifecycle
  • :
  • Discussions
  • :
  • Best practice in debugging AFX connectors?
  • Options
    • Subscribe to RSS Feed
    • Mark Topic as New
    • Mark Topic as Read
    • Float this Topic for Current User
    • Bookmark
    • Subscribe
    • Mute
    • Printer Friendly Page
DavidHorwath
DavidHorwath Beginner
Beginner
‎2016-05-09 11:27 AM
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Best practice in debugging AFX connectors?

Jump to solution

Seen a couple of questions here where we all stumble into pretty much same situation:

"AFX connector is having a problem, and error message is not that helpful"

 

I guess I seen a tip that you can increase logging levels in /home/oracle/AFX/mule/apps/AFX-CONN-{YOUR_CONNECTOR_NAME}/classes/log4j.xml -> but that file gets overwritten if a change is made to the connector (for example through the GUI)

 

 

So what is the best practise when debugging AFX connectors?

When approaching your first integration using AFX, then what logs do you need to get in place, do not loose a lot of time. I feel I need some tips, so why not ask the community?

 

 

Example of futile error searching:

I got a newbie error over and over again when doing a basic db-table AFX-connector: Always the same error: "Invalid column index". So I checked my SQL, over and over and over again. But not a single debug level allowed me to "see" the SQL-query that was being sent by Mule. If I have had the possibility to see what actual query was being sent, then maybe I would have seen what was going on.

 

 

So is log4j.xml the way to go?

If so, which classes?

 

And always curious if this can be done in the ACM GUI, because then it would be more "best practise" right?

For example: Can't find the class "org.mule" in the log options for ACM.

Labels (1)
Labels
  • Labels:
  • Access Fulfillment Express

  • Tags:
  • Access Fulfillment Express
  • AFX
  • Automated Fulfillment Express
  • Best Practices
  • Community Thread
  • debugging
  • Discussion
  • Forum Thread
  • Identity G&L
  • Identity Governance & Lifecycle
  • IG&L
  • IGL
  • integratons
  • RSA Identity
  • RSA Identity G&L
  • RSA Identity Governance & Lifecycle
  • RSA Identity Governance and Lifecycle
  • RSA IGL
1 Like
Share
Reply
  • All forum topics
  • Previous Topic
  • Next Topic
1 Solution

Accepted Solutions
DebasishBhattac
DebasishBhattac Beginner
Beginner
‎2016-05-09 12:16 PM
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Jump to solution

As of now setting the connector specific logs are not doable from ACM.

Here is a quick excerpts from an internal wiki I wrote recently about how to enable debug log for connectors:

Enabling debug logs in AFX

 

  1. Go to the $AFX_HOME
  2. And then to go to the respective connector’s deployed location. For example, if the connector name is ‘testADConnector’, go to $AFX_HOME/esb/apps/AFX_CONN-testADCOnnetcor/classes.
  3. Locate the file log4j.xml.
  4. Edit the level value from “INFO” to “DEBUG” for logger name=”org.mule”.
  5. Do similar changes for org.mule.api.processor.LoggerMessageProcessor",“org.mule.module.scripting.component.Scriptable" and “org.mule.component.ComponentLifecycleManager”.
  6. Edit the level value from “INFO” to “DEBUG” for respective transports. For example, if you are debugging Active Directory or LDAP connectors then do it for logger name =”com.novell.ldap”.
  7. Similarly if you are using a SSH connector then do the same for logger name = "org.mule.transport.ssh”.
  8. We would suggest not enabling the debug for the logger "com.aveksa.AFX.server.runtime.mule.core.ExpressionResultToPayloadMapTransformer" as it will log the entire payload and that may contains sensitive information such as passwords.

To enable more connector debug logs, follow the below steps:

  • Open the connector-flow.xml file from $AFX_HOME/esb/apps/AFX-CONN-<Connector-Endpoint>/

Change the logger level to “INFO” from “DEBUG” and save the changes.

  • Run the following command on mule-config.xml from same location ($AFX_HOME/esb/apps/AFX-CONN-<Connector-Endpoint>/)

touch mule-config.xml

  • Test/Run the capability and check the logs enabled from mule.AFX-CONN-<Connector-Endpoint>.log at $AFX_HOME/esb/logs.

 

AD Connector Debugging Tips

Some Generic Errors:

java.net.UnknownHostExceptionThis can occur due to following reasons:  host name is incorrect, Active Directory server is not accessible from the RSA Via L&G AFX server or no network connectivity is available, etc. To verify the host name, “ping <host name/IP>” command can be used.

 

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target. In that case make sure the AD server certificate is imported in the default trust-store depending on the JVM or application server.

 

AFX Brief Messages:

  1. “LDAPException: Cannot connect to server. Please check the host and port settings” – This is derived from the error due to connectivity as mentioned above.
  2. “LDAPException: The object does not support this operation. Please check the Account/Group values" – you can get this message if the account DN, Group DN are incorrectly passed.
  3. “LDAPException: Operations error, likely cannot bind to server. Please check the bindDN and password" – This kind of error happens when the bind credentials are incorrect.
  4. “LDAPException: Server refused to perform operation. Ensure that you are using a secure port (e.g. 636) for this operation" – you will get this message if the LDAP server is not willing to perform.
  5. For CreateAccount and ResetPassword verb: “LDAPException: Server refused to perform operation. Password does not meet complexity requirements (e.g. too short)" – you can this message irrespective of using a secure connection if the password does not conform to the AD password policy
  6. For EnableAccount and DisableAccount verb: “LDAPException: Server refused to perform operation. Make sure a password is set for the account (requires secure port e.g. 636)" – you can get this message if the account may not have an password

View solution in original post

3 Likes
Share
Reply
3 Replies
DebasishBhattac
DebasishBhattac Beginner
Beginner
‎2016-05-09 12:16 PM
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Jump to solution

As of now setting the connector specific logs are not doable from ACM.

Here is a quick excerpts from an internal wiki I wrote recently about how to enable debug log for connectors:

Enabling debug logs in AFX

 

  1. Go to the $AFX_HOME
  2. And then to go to the respective connector’s deployed location. For example, if the connector name is ‘testADConnector’, go to $AFX_HOME/esb/apps/AFX_CONN-testADCOnnetcor/classes.
  3. Locate the file log4j.xml.
  4. Edit the level value from “INFO” to “DEBUG” for logger name=”org.mule”.
  5. Do similar changes for org.mule.api.processor.LoggerMessageProcessor",“org.mule.module.scripting.component.Scriptable" and “org.mule.component.ComponentLifecycleManager”.
  6. Edit the level value from “INFO” to “DEBUG” for respective transports. For example, if you are debugging Active Directory or LDAP connectors then do it for logger name =”com.novell.ldap”.
  7. Similarly if you are using a SSH connector then do the same for logger name = "org.mule.transport.ssh”.
  8. We would suggest not enabling the debug for the logger "com.aveksa.AFX.server.runtime.mule.core.ExpressionResultToPayloadMapTransformer" as it will log the entire payload and that may contains sensitive information such as passwords.

To enable more connector debug logs, follow the below steps:

  • Open the connector-flow.xml file from $AFX_HOME/esb/apps/AFX-CONN-<Connector-Endpoint>/

Change the logger level to “INFO” from “DEBUG” and save the changes.

  • Run the following command on mule-config.xml from same location ($AFX_HOME/esb/apps/AFX-CONN-<Connector-Endpoint>/)

touch mule-config.xml

  • Test/Run the capability and check the logs enabled from mule.AFX-CONN-<Connector-Endpoint>.log at $AFX_HOME/esb/logs.

 

AD Connector Debugging Tips

Some Generic Errors:

java.net.UnknownHostExceptionThis can occur due to following reasons:  host name is incorrect, Active Directory server is not accessible from the RSA Via L&G AFX server or no network connectivity is available, etc. To verify the host name, “ping <host name/IP>” command can be used.

 

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target. In that case make sure the AD server certificate is imported in the default trust-store depending on the JVM or application server.

 

AFX Brief Messages:

  1. “LDAPException: Cannot connect to server. Please check the host and port settings” – This is derived from the error due to connectivity as mentioned above.
  2. “LDAPException: The object does not support this operation. Please check the Account/Group values" – you can get this message if the account DN, Group DN are incorrectly passed.
  3. “LDAPException: Operations error, likely cannot bind to server. Please check the bindDN and password" – This kind of error happens when the bind credentials are incorrect.
  4. “LDAPException: Server refused to perform operation. Ensure that you are using a secure port (e.g. 636) for this operation" – you will get this message if the LDAP server is not willing to perform.
  5. For CreateAccount and ResetPassword verb: “LDAPException: Server refused to perform operation. Password does not meet complexity requirements (e.g. too short)" – you can this message irrespective of using a secure connection if the password does not conform to the AD password policy
  6. For EnableAccount and DisableAccount verb: “LDAPException: Server refused to perform operation. Make sure a password is set for the account (requires secure port e.g. 636)" – you can get this message if the account may not have an password

View solution in original post

3 Likes
Share
Reply
DavidHorwath
DavidHorwath Beginner
Beginner
‎2016-05-27 07:26 AM
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Jump to solution

Thanks for getting at least one reply. *thumbs-up*

 

And I have tried to use the settings in log4j.xml for that AFX-connector I am developing.

 

 

Although there is one problem with the approach:

When changing any setting in ACM web interface (Aveksa) the AFX connector gets undeployed, and in that same moment it removes your debug settings in "log4j.xml". So in practise I stopped using log4j.xml, unless there is something very specific I am looking for.

 

Like if I want to know what data is being sent to AFX, then I activate debug on this specific class:

org.mule.transformer.TransformerTemplate

 

 

Still there are lots of logs that are missing for me to be able to develop in an efficient matter, so please feel free to make more suggestions. Like I still miss a way of seeing the actual SQL being sent by the AFX when making a db-connector.

0 Likes
Share
Reply
PanuMlkki
PanuMlkki Beginner
Beginner
In response to DavidHorwath
‎2016-05-31 03:37 AM
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Jump to solution

I'd be interested to know as well. I had a problem with AD provisioning at some point and simply didn't understand what was happening and why the add-operation failed. Eventually -- since I was working with my own lab -- I installed Wireshark to Active Directory domain controller and traced the TCP-traffic that was going back and forth. From there I was able to pinpoint the problem. So I had to go on a really low level. But I will have to test the above tips at some point. It could be that there are some log-settings I didn't enable etc.

0 Likes
Share
Reply
Powered by Khoros
  • Products
  • Resources
  • Solutions
  • RSA University
  • Support
  • RSA Labs
  • RSA Ready
  • About RSA Link
  • Terms & Conditions
  • Privacy Statement
  • Provide Feedback
© 2020 RSA Security LLC or its affiliates.
All rights reserved.