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

supress logs

Avatar

Avatar
Validate 25
Level 3
Mahesh_Vikram
Level 3

Likes

12 likes

Total Posts

118 posts

Correct Reply

3 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 3
Mahesh_Vikram
Level 3

Likes

12 likes

Total Posts

118 posts

Correct Reply

3 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
Mahesh_Vikram
Level 3

01-12-2018

Hello All,

I see lot of repeated errors in the logs as below, few questions for it.

1, what are these logs about, is there any easy way to fix it?

2, suppress it or these entries should be skipped should not be logged in the error.log?

3, my error log level is ERROR but i still see WARN messages, can I restrict it to ERROR?

01.12.2018 12:04:03.215 *ERROR* [94.130.35.60 [1543662243210] GET /content/XXX/XXXXX/XXX.xml HTTP/1.1] org.apache.sling.servlets.get.impl.DefaultGetServlet No renderer for extension xml, cannot render resource /content/XXX/XXXXX/XXX/jcr:content

01.12.2018 12:04:31.111 *ERROR* [94.130.16.50 [1543662270471] GET /content/XXX/XXXXX/XXX.html HTTP/1.1] org.apache.sling.models.impl.ModelAdapterFactory Could not adapt to model

org.apache.sling.models.factory.MissingElementsException: Could not inject all required fields into class io.wcm.handler.url.impl.UrlHandlerImpl

Could not inject private org.apache.sling.api.adapter.Adaptable io.wcm.handler.url.impl.UrlHandlerImpl.self caused by Could not inject field due to reflection issues

Thanks,

Viki

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 1
Level 1
shubhaga1
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

2 solutions
Top badges earned
Affirm 1
View profile

Avatar
Affirm 1
Level 1
shubhaga1
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

2 solutions
Top badges earned
Affirm 1
View profile
shubhaga1
Level 1

01-12-2018

Hi Viki,

Please use resourceresolver, /system/console/jcrresolver, to resolve the URL and check

Adding a .xml extension triggers the default XML rendering, once again unless a more specific script or servlet is registered for the current resource.

That XML rendering currently uses the JCR "document view" export functionality directly, so it only supports rendering resources that are backed by JCR nodes.

sling-org-apache-sling-models-impl/ModelAdapterFactory.java at master · apache/sling-org-apache-slin...

Please find answers below for respective errors

/system/console/slinglog and create separate logger for the api, but please beware that all logs for these apis will log there.

Raise the “Log Level” threshold one step higher (from INFO to WARN)

There are 2 error.log, one with Root is advised to be at Info

For org.apache.sling.scripting.sightly.js.impl.jsapi.ProxyAsyncScriptableFactory, it is at ERROR

Please also follow this doc - Apache Sling :: Logging

Answers (1)

Answers (1)

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

01-12-2018

Nice response!