Servlet Calls 204 error in AEM 6.5

Avatar

Avatar
Boost 5
Level 3
santhoshm687661
Level 3

Likes

23 likes

Total Posts

30 posts

Correct reply

0 solutions
Top badges earned
Boost 5
Validate 1
Give Back 5
Ignite 1
Give Back 3
View profile

Avatar
Boost 5
Level 3
santhoshm687661
Level 3

Likes

23 likes

Total Posts

30 posts

Correct reply

0 solutions
Top badges earned
Boost 5
Validate 1
Give Back 5
Ignite 1
Give Back 3
View profile
santhoshm687661
Level 3

19-02-2021

Hi All,

After upgrading to aem 6.5.6(inplace from 6.4.8.1.to 6.5.6) i am facing with POST and DELETE calls are going to 204 instead of 302 or 200.

 

Please let me know if any came across this issue.

 

Thanks

Replies

Avatar

Avatar
Ignite 3
Level 5
davidjgonzalezzzz
Level 5

Likes

70 likes

Total Posts

77 posts

Correct reply

31 solutions
Top badges earned
Ignite 3
Affirm 25
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Ignite 3
Level 5
davidjgonzalezzzz
Level 5

Likes

70 likes

Total Posts

77 posts

Correct reply

31 solutions
Top badges earned
Ignite 3
Affirm 25
Ignite 1
Give Back 5
Give Back 3
View profile
davidjgonzalezzzz
Level 5

19-02-2021

Can you please add more details to this? Which POST requests exactly? What servlets are you hitting? What's going in the error.log?

Avatar

Avatar
Boost 5
Level 3
santhoshm687661
Level 3

Likes

23 likes

Total Posts

30 posts

Correct reply

0 solutions
Top badges earned
Boost 5
Validate 1
Give Back 5
Ignite 1
Give Back 3
View profile

Avatar
Boost 5
Level 3
santhoshm687661
Level 3

Likes

23 likes

Total Posts

30 posts

Correct reply

0 solutions
Top badges earned
Boost 5
Validate 1
Give Back 5
Ignite 1
Give Back 3
View profile
santhoshm687661
Level 3

19-02-2021

Avatar

Avatar
Boost 5
Level 3
santhoshm687661
Level 3

Likes

23 likes

Total Posts

30 posts

Correct reply

0 solutions
Top badges earned
Boost 5
Validate 1
Give Back 5
Ignite 1
Give Back 3
View profile

Avatar
Boost 5
Level 3
santhoshm687661
Level 3

Likes

23 likes

Total Posts

30 posts

Correct reply

0 solutions
Top badges earned
Boost 5
Validate 1
Give Back 5
Ignite 1
Give Back 3
View profile
santhoshm687661
Level 3

19-02-2021

https://castrolfastlane-supporttest-www.castrol.com/bin/downstream/fastlane/cart?productCode=3374721...

 

When am trying to hit with the above url am able to see the data.

 

Whem am accessing through application after upgrade am facing this 204 issues am not able see any errors related to this servlet.

 

Avatar

Avatar
Ignite 3
Level 5
davidjgonzalezzzz
Level 5

Likes

70 likes

Total Posts

77 posts

Correct reply

31 solutions
Top badges earned
Ignite 3
Affirm 25
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Ignite 3
Level 5
davidjgonzalezzzz
Level 5

Likes

70 likes

Total Posts

77 posts

Correct reply

31 solutions
Top badges earned
Ignite 3
Affirm 25
Ignite 1
Give Back 5
Give Back 3
View profile
davidjgonzalezzzz
Level 5

19-02-2021

Deleted response. See response in comment below.

Avatar

Avatar
Ignite 3
Level 5
davidjgonzalezzzz
Level 5

Likes

70 likes

Total Posts

77 posts

Correct reply

31 solutions
Top badges earned
Ignite 3
Affirm 25
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Ignite 3
Level 5
davidjgonzalezzzz
Level 5

Likes

70 likes

Total Posts

77 posts

Correct reply

31 solutions
Top badges earned
Ignite 3
Affirm 25
Ignite 1
Give Back 5
Give Back 3
View profile
davidjgonzalezzzz
Level 5

19-02-2021

I think youll need to investigate more. Does this happen on your local dev? Does this happen if you hit your custom servlet directly on AEM (vs. going through dispatcher)? What is the Request Progress log for this request (available in OSGi console)? Does your custom servlet have any code that could return a 204 response?

Avatar

Avatar
Boost 5
Level 3
santhoshm687661
Level 3

Likes

23 likes

Total Posts

30 posts

Correct reply

0 solutions
Top badges earned
Boost 5
Validate 1
Give Back 5
Ignite 1
Give Back 3
View profile

Avatar
Boost 5
Level 3
santhoshm687661
Level 3

Likes

23 likes

Total Posts

30 posts

Correct reply

0 solutions
Top badges earned
Boost 5
Validate 1
Give Back 5
Ignite 1
Give Back 3
View profile
santhoshm687661
Level 3

21-02-2021

Thank you for ur comments.

Avatar

Avatar
Boost 5
Level 3
santhoshm687661
Level 3

Likes

23 likes

Total Posts

30 posts

Correct reply

0 solutions
Top badges earned
Boost 5
Validate 1
Give Back 5
Ignite 1
Give Back 3
View profile

Avatar
Boost 5
Level 3
santhoshm687661
Level 3

Likes

23 likes

Total Posts

30 posts

Correct reply

0 solutions
Top badges earned
Boost 5
Validate 1
Give Back 5
Ignite 1
Give Back 3
View profile
santhoshm687661
Level 3

21-02-2021

Thank you for ur comments.But i have used the same code in vanila upgrade it worked successfully fo rinplace am seeing this issue and am able to see the json DATA is the akamail url i am hopiung there is an problem with aem.

Avatar

Avatar
Validate 1
Level 2
bmccurdy1
Level 2

Likes

8 likes

Total Posts

13 posts

Correct reply

3 solutions
Top badges earned
Validate 1
Give Back 3
Give Back
Boost 5
Boost 3
View profile

Avatar
Validate 1
Level 2
bmccurdy1
Level 2

Likes

8 likes

Total Posts

13 posts

Correct reply

3 solutions
Top badges earned
Validate 1
Give Back 3
Give Back
Boost 5
Boost 3
View profile
bmccurdy1
Level 2

22-02-2021

Can you expand a bit more when you say 'accessing through the application'? Is there a 3rd party or external system that is trying to access and consume data from AEM? HTTP 204 response = 'no content', which is what I would expect to get back from a successful preflight request from an outside application. Just curious if this is a possible CORS issue.

Avatar

Avatar
Boost 5
Level 3
santhoshm687661
Level 3

Likes

23 likes

Total Posts

30 posts

Correct reply

0 solutions
Top badges earned
Boost 5
Validate 1
Give Back 5
Ignite 1
Give Back 3
View profile

Avatar
Boost 5
Level 3
santhoshm687661
Level 3

Likes

23 likes

Total Posts

30 posts

Correct reply

0 solutions
Top badges earned
Boost 5
Validate 1
Give Back 5
Ignite 1
Give Back 3
View profile
santhoshm687661
Level 3

22-02-2021

castrolfastlane-supporttest-www.castrol.com