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
BedrockMission!

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 getting org.apache.sling.api.auth.NoAuthenticationHandlerException

Avatar

Avatar
Springboard
Level 2
Shivanna
Level 2

Likes

6 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Springboard
Boost 5
Boost 3
Give Back 5
Give Back 3
View profile

Avatar
Springboard
Level 2
Shivanna
Level 2

Likes

6 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Springboard
Boost 5
Boost 3
Give Back 5
Give Back 3
View profile
Shivanna
Level 2

04-05-2021

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

AEM 6.5

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 25
Employee
markus_bulla_adobe
Employee

Likes

64 likes

Total Posts

53 posts

Correct Reply

26 solutions
Top badges earned
Affirm 25
Boost 50
Boost 25
Affirm 10
Applaud 5
View profile

Avatar
Affirm 25
Employee
markus_bulla_adobe
Employee

Likes

64 likes

Total Posts

53 posts

Correct Reply

26 solutions
Top badges earned
Affirm 25
Boost 50
Boost 25
Affirm 10
Applaud 5
View profile
markus_bulla_adobe
Employee

04-05-2021

Hi @Shivanna

Please try the following:

  • Have you double checked on the credentials used for that request?
  • Is your Jenkins server allowed to send these requests to the target instance (IP in allow list)?
  • Have you tried the same request from the Jenkins servers command line, e. g. with CURL?
  • Have you tried providing the credentials within your Groovy script (apply it to the HttpClient) instead of sending them as query parameters?
  • Have you tried providing the credentials in the "user:password@host:port/path" format instead of sending the as query parameters? 

 

Hope that helps!

Answers (0)