Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

*ERROR* [qtp55964443-107234] org.apache.felix.http.jetty Exception while processing request to /system/console/fsclassloader (org.apache.sling.api.auth.NoAuthenticationHandlerException)

Shivanna
Level 2
Level 2

Hi,

Greetings.

We are upgrading our platform to AEM6.5 and getting the below exception while accessing the /system/console/fsclassloader console on newly provisioned instances via below code. But same creds works fine manually. 

Does anybody has come across this issue already?

Jenkins logs : 15:17:55 INFO [aem:recompile_jsps] uri : https://author1euwest1.dev65-aem.signify.adobecqms.net:443/system/console/fsclassloader?j_username=s... && 15:17:55 ERROR [aem:recompile_jsps] <aem65-li-dev-aem-cq-author> Request failed: 401 - Unauthorized.

 

AEM Instance log : 30.04.2021 08:44:26.197 *ERROR* [qtp55964443-107234] org.apache.felix.http.jetty Exception while processing request to /system/console/fsclassloader (org.apache.sling.api.auth.NoAuthenticationHandlerException)

 

Groovy Code :

def http = new HTTPBuilder("https://${httpconfig.host}:${httpconfig.port}")

http.ignoreSSLIssues()

http.client = HttpClients.createSystem()

http.request(method) { req ->

uri.path = path

uri.query = queryParam

response.success = { resp, jsonResponse ->

log.info "resp.statusLine--> ${resp.statusLine.statusCode}"

success = true

data = jsonResponse

}

response.failure = { resp ->

log.info "resp.statusLine--> ${resp.statusLine.statusCode}"

success = false

status = resp.statusLine

}

}

 

Thanks & Regards, Shiva

0 Replies
Asutosh_Jena_
Community Advisor
Community Advisor

Hi @Shivanna 

 

I see you are trying to access this newly provisioned instance from Jenkins.

Please check if you have the Jenkins host whitelisted to access the AEM instance.

 

Thanks!

Shivanna
Level 2
Level 2
@Asutosh_Jena_ : Thanks for your response. Yes. Connectivity looks fine from Jenkins server to AEM server. Validated using telnet from Jenkins server.
Shivanna
Level 2
Level 2

@Asutosh_Jena_ : Thanks for your response.

Yes. Connectivity looks fine from Jenkins server to AEM server. Validated using telnet from Jenkins server.

Asutosh_Jena_
Community Advisor
Community Advisor

Can you pass the parameters as part of the request body and try? It looks like you are passing it as request URL which should also work.

http://localhost:4502/system/console/fsclassloader?j_username=admin&j_password=admin&_charset_=utf-8

Shivanna
Level 2
Level 2
Solution : Used HttpUrlConnection based approach in place of HttpClient and it solved. Let me know if anybody wants code. Thanks