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

AEM 6.5 form custom submit not resolving my service

Avatar

Avatar
Give Back
Level 1
amitcsknit
Level 1

Likes

2 likes

Total Posts

12 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Boost 1
View profile

Avatar
Give Back
Level 1
amitcsknit
Level 1

Likes

2 likes

Total Posts

12 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Boost 1
View profile
amitcsknit
Level 1

20-07-2020

I am trying to create custom submit action and calling my service from from post.POST.jsp similar to below but calling my service inplace of mail.

https://docs.adobe.com/content/help/en/experience-manager-65/forms/customize-aem-forms/custom-submit...

 

way i am calling.  

core.service.HandleContactForm hf = sling.getService(core.service.HandleContactForm.class);

 

bundle is active but its not resolving service.

Error is : core.service.HandleContactForm cannot be resolved to a type 

aem form custom submit action

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 3
Level 2
SameerDhawan
Level 2

Likes

8 likes

Total Posts

12 posts

Correct Reply

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

Avatar
Give Back 3
Level 2
SameerDhawan
Level 2

Likes

8 likes

Total Posts

12 posts

Correct Reply

4 solutions
Top badges earned
Give Back 3
Give Back
Boost 5
Boost 3
Boost 1
View profile
SameerDhawan
Level 2

22-07-2020

Hi @amitcsknit ,

 

Can you please confirm if all other bundles are in "active" state. Specifically, check for AEMFD Signature bundle & AEM RM Indexer Bundle. 

 

Similar issue, I also faced at my end and it automatically resolved after making these two bundles in the "active" state by adding below properties in sling.properties

sling.bootdelegation.class.com.rsa.jsafe.provider.JsafeJCE=com.rsa.*
sling.bootdelegation.class.org.bouncycastle.jce.provider.BouncyCastleProvider=org.bouncycastle.*
 
Let me know if that makes any difference.
 
Regards
Sameer Dhawan

Answers (3)

Answers (3)

Avatar

Avatar
Give Back
Level 1
amitcsknit
Level 1

Likes

2 likes

Total Posts

12 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Boost 1
View profile

Avatar
Give Back
Level 1
amitcsknit
Level 1

Likes

2 likes

Total Posts

12 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Boost 1
View profile
amitcsknit
Level 1

22-07-2020

bundle was active but still This was not happening because custom package was not in export list inside manifest. For testing i moved my classes to model or any preexisting package & they are getting resolved.  Now question came why it is not in export inside manifest.

Avatar

Avatar
Boost 1
Level 1
Anurag_06
Level 1

Like

1 like

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
Anurag_06
Level 1

Like

1 like

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
Anurag_06
Level 1

20-07-2020

Hi @amitcsknit , Could you please check on following things-

  1. Check if your service is in satisfy state in bundle.
  2. Import service and try using: HandleContactForm hf = sling.getService(HandleContactForm .class);
  3. Check error log for full stack trace of error.
  4. Try using SlingScriptHelper instead of sling to call service from jsp.

Hope this will help you out.

 

Thanks!

Avatar

Avatar
Ignite 1
Level 7
GirishBedekar
Level 7

Likes

162 likes

Total Posts

232 posts

Correct Reply

36 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile

Avatar
Ignite 1
Level 7
GirishBedekar
Level 7

Likes

162 likes

Total Posts

232 posts

Correct Reply

36 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile
GirishBedekar
Level 7

20-07-2020

Try restarting the server