Hi,
With Developer access, you should be able to work with REST api calls and test the same, sign in into adobe i/o console.
create integrations in adobe i/o console.
Hi,
With Developer access, you should be able to work with REST api calls and test the same, sign in into adobe i/o console.
create integrations in adobe i/o console.
In this case, it is not invoking servlet itself. Page is getting redirected to below JSP file. Need any customization further.
http://localhost:4502/content/forms/af/testcontroller/jcr:content/guideContainer.af.submit .jsp
Logs related to Adobe form
13.12.2019 00:49:02.075 *DEBUG* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.internal.impl.utils.rhino.sandbox.WhiteListClassShutter Allow Access to org.mozilla.javascript.EcmaError
13.12.2019 00:49:02.075 *DEBUG* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.internal.impl.utils.rhino.sandbox.WhiteListClassShutter Allow Access to org.mozilla.javascript.EcmaError
13.12.2019 00:49:02.077 *DEBUG* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.internal.impl.utils.rhino.sandbox.WhiteListClassShutter Allow Access to org.mozilla.javascript.EcmaError
13.12.2019 00:49:02.078 *DEBUG* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.internal.impl.utils.rhino.sandbox.WhiteListClassShutter Allow Access to org.mozilla.javascript.EcmaError
13.12.2019 00:49:02.207 *DEBUG* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.service.impl.JsonObjectCreatorImpl ruleScope is null
13.12.2019 00:49:02.207 *DEBUG* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.service.impl.JsonObjectCreatorImpl expEditorTreeJson is null
13.12.2019 00:49:02.207 *DEBUG* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.service.impl.JsonObjectCreatorImpl ruleScope is null
13.12.2019 00:49:02.207 *DEBUG* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.service.impl.JsonObjectCreatorImpl expEditorTreeJson is null
13.12.2019 00:49:02.208 *DEBUG* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.service.impl.JsonObjectCreatorImpl ruleScope is null
13.12.2019 00:49:02.208 *DEBUG* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.service.impl.JsonObjectCreatorImpl expEditorTreeJson is null
13.12.2019 00:49:02.208 *DEBUG* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.service.impl.JsonObjectCreatorImpl ruleScope is null
13.12.2019 00:49:02.208 *DEBUG* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.service.impl.JsonObjectCreatorImpl expEditorTreeJson is null
13.12.2019 00:49:02.208 *DEBUG* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.service.impl.JsonObjectCreatorImpl ruleScope is null
13.12.2019 00:49:02.208 *DEBUG* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.service.impl.JsonObjectCreatorImpl expEditorTreeJson is null
13.12.2019 00:49:02.208 *DEBUG* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.service.impl.JsonObjectCreatorImpl ruleScope is null
13.12.2019 00:49:02.208 *DEBUG* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.service.impl.JsonObjectCreatorImpl expEditorTreeJson is null
13.12.2019 00:49:02.208 *DEBUG* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.service.impl.JsonObjectCreatorImpl ruleScope is null
13.12.2019 00:49:02.208 *DEBUG* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.service.impl.JsonObjectCreatorImpl expEditorTreeJson is null
13.12.2019 00:49:02.208 *DEBUG* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.service.impl.JsonObjectCreatorImpl ruleScope is null
13.12.2019 00:49:02.208 *DEBUG* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.service.impl.JsonObjectCreatorImpl expEditorTreeJson is null
13.12.2019 00:49:02.208 *DEBUG* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.service.impl.JsonObjectCreatorImpl ruleScope is null
13.12.2019 00:49:02.208 *DEBUG* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.service.impl.JsonObjectCreatorImpl expEditorTreeJson is null
13.12.2019 00:49:02.215 *DEBUG* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.internal.impl.utils.RulesCompiler Compiled scripts for field /content/forms/af/testcontroller/jcr:content/guideContainer/rootPanel/items/submit => {clickExp=
try {
guideBridge.submit();
} catch (e) {
window.guideBridge._guide.logger().error("AF","Failed to execute rule: " + e);
}
}
13.12.2019 00:49:02.217 *DEBUG* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.service.impl.GuideModelTransformerImpl Guide Json Cache miss for guideContainer /content/forms/af/testcontroller/jcr:content/guideContainer
13.12.2019 00:49:02.219 *DEBUG* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.service.impl.GuideModelTransformerImpl Guide Json Cache hit for guideContainer /content/forms/af/testcontroller/jcr:content/guideContainer
13.12.2019 00:49:02.222 *DEBUG* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.service.impl.GuideModelTransformerImpl Guide Json Cache hit for guideContainer /content/forms/af/testcontroller/jcr:content/guideContainer
13.12.2019 00:49:02.224 *TRACE* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.utils.KeyValueDataMerger Found an json array in guide node structure. Ignoring this key: textIsRich
13.12.2019 00:49:02.224 *TRACE* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.utils.KeyValueDataMerger Found an json array in guide node structure. Ignoring this key: repeatBindRef
13.12.2019 00:49:02.224 *TRACE* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.utils.KeyValueDataMerger Found an json array in guide node structure. Ignoring this key: guideGlobalLazyField
13.12.2019 00:49:02.224 *TRACE* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.utils.KeyValueDataMerger Found an json array in guide node structure. Ignoring this key: allLazyChildren
13.12.2019 00:49:02.224 *TRACE* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.utils.KeyValueDataMerger Found an json array in guide node structure. Ignoring this key: assetRefs
13.12.2019 00:49:02.251 *TRACE* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.utils.StyleUtils Entered addPostfixToClasses with input classes:
13.12.2019 00:49:02.251 *TRACE* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.utils.StyleUtils Exiting addPostfixToClasses returning classes:
13.12.2019 00:49:02.251 *TRACE* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.utils.StyleUtils Entered addPostfixToClasses with input classes:
13.12.2019 00:49:02.251 *TRACE* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.utils.StyleUtils Exiting addPostfixToClasses returning classes:
13.12.2019 00:49:02.266 *DEBUG* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.internal.impl.taglibs.GuideContainerLayoutHTML HTML cache miss for AF container layout /content/forms/af/testcontroller/jcr:content/guideContainer
13.12.2019 00:49:02.296 *DEBUG* [0:0:0:0:0:0:0:1 [1576178341658] POST /content/forms/af/testcontroller/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.service.impl.PageStyleServiceImpl Cache Hit for Inline Styles
can we do a quick blue jeans session?
if yes I will send you a link
Sure. I will join immediately
@ians1988,
While you will be able to add the content int he VEC (Virtual Experience Composer) it won't show up on the site unless Target is implemented on the site. We can check this for you if you provide the URL in question in here or if you want to learn more about how to check that yourself I recommend following @johanish's suggestions or this KB article: Troubleshoot content delivery
If this satisfies your query please like, mark as helpful and mark as answer. Otherwise, let us keep the conversation going. Hope you have a wonderful day.
Mihnea Docea | Technical Support Consultant | Customer Experience | Adobe | (:: 1 (800) 497-0335
We're trying to upgrade our Microsoft translation account to a paid service. Everything looks good, and we can hit the api with our subscription keys using curl commands, but AEM gives us this when we try and run a translation:
com.adobe.granite.translation.api.TranslationException: Error Code: TRANSLATION_FAILED. Message: Error Code: TRANSLATION_FAILED. Message: Status code from HttpClient did not return 200. Status Code: 400 The URL we called was: https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&from=en&textType=H TML&to=de&category=
The free service was running just fine. Running AEM 6.5.1
* Could there any proxy related issues?
* Are you using any adblocker in your browser?
* Are you running into translation issues only on a specific page or is it for all other pages too?
* Is the correct Cloud Config for Translation Service set on the page(s)?
* Could you also please share additional logs? Try adding DEBUG logging on com.adobe.granite.translation.api class, try to reproduce the issue and share the logs.
Yes Berliant,
The issue we are facing is- we have set sling:vanityPath for all the pages and pages are accessed by sling:vanitypaths. So all the pages cache files are stored at root folder level (Eg. /local/var/www/cache/) and when we set stateFilelevel 0, It is invalidating all the files at root level whenever the AEM page is activated.
So I followed this Custom dispatcher invalidation rules – Things on a content management system and wrote custom PERL script to clear activated page's cache only and Finally I'm able to clear specific file cache.
Thanks for your valuable inputs..
We have configured using IP in allowedclients section of dispatcher before and it worked fine when dispatcher flush is trying to talk.
Now planning to move to AWS as part of that we are trying to update with AWS A record like "a.b.cloud.com" instead of IP but getting forbidden error [1] when trying to do dispatcher flush communication from author/publish.
So trying to see if this could be allowing only IP or if we need to configure in a different way to allow A record like "a.b.cloud.com" ?
[1]
12.12.2019 11:25:40 - >> CQ-Action: Test
12.12.2019 11:25:40 - >> CQ-Handle: /content
12.12.2019 11:25:40 - >> CQ-Path: /content
12.12.2019 11:25:40 - >> Referer: about:blank
12.12.2019 11:25:40 - >> Content-Length: 0
12.12.2019 11:25:40 - >> Content-Type: application/octet-stream
12.12.2019 11:25:40 - --
12.12.2019 11:25:40 - << HTTP/1.1 403 Forbidden
12.12.2019 11:25:40 - << Date: Thu, 12 Dec 2019 17:25:40 GMT
12.12.2019 11:25:40 - << Server: Apache
12.12.2019 11:25:40 - << X-Frame-Options: SAMEORIGIN
12.12.2019 11:25:40 - << Content-Length: 229
12.12.2019 11:25:40 - << Connection: close
12.12.2019 11:25:40 - << Content-Type: text/html; charset=iso-8859-1
12.12.2019 11:25:40 - <<
12.12.2019 11:25:40 - << <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
12.12.2019 11:25:40 - << <html><head>
12.12.2019 11:25:40 - << <title>403 Forbidden</title>
12.12.2019 11:25:40 - << </head><body>
12.12.2019 11:25:40 - << <h1>Forbidden</h1>
12.12.2019 11:25:40 - << <p>You don't have permission to access /dispatcher/invalidate.cache
12.12.2019 11:25:40 - << on this server.</p>
12.12.2019 11:25:40 - << </body></html>
12.12.2019 11:25:40 - Message sent.
* Which version(major & minor) of AEM are you using? Uber jar version should exactly match the AEM version.
* The respective uber jar dependencies can be found here:
You can download the sample from one of Paul's responses further up this thread.
You can download it here … https://forums.adobe.com/thread/340466#3047322
Hi Arun,
But the host.prefix says it is deprecated in the console. Is it ok to keep using it even on 6.5?
And also I have tried to use my own host url prefix and what I get in the email is the same: http://author:4502//xxx. Even if I leave it blank it returns that value with double // at the end.
Please advice
Hello,
Check the "Include principals" box (value changes to true) and try again.
Regards,
Vishu
I am working on an anlytics implementation using the Adobe Mobile SDK v4.x (iOS/Android)
We have a class that outputs a CEDDL (https://www.w3.org/2013/12/ceddl-201312.pdf) like datalayer as a context variable object, and then using processing rules, map things like digitalData.page.pageInfo.pageName to 'pageName', or digitalData.pageInfo.site to eVar3.
My question is, how can possible to assign values from arrays in the datalayer to eVars/props using processing rules?
For example:
digitalData.component[0].componentName
digitalData.component[1].componentName
digitalData.component[n].componentName
so I have got it to work with the following
in your servlet code add the following line
resp.sendRedirect("/content/forms/af/amortization.html");
// you will have to replace the form name with your form name
associate your form with the custom submit action
in your custom submit action forward the request to the servlet /bin/testcontroller
let us know if this works
Hello,
What is the complete error message? Try to test the connection from the Microsoft translation configuration in AEM.
There are a few reasons for 400 according to doc https://docs.microsoft.com/en-gb/azure/cognitive-services/translator/reference/v3-0-refere nce#errors.
This might be helpful in understanding what might be wrong in this case.
Thanks. The default metric only shows 5 columns - but we have more on both metrics and dimensions. No matter which way I display (column or row header), I would still need to show all.
See example below. It only shows top 5 months under the "Year", where I need all 12 months:
Is there any way i could show all?
- thank you -
What I submitted is all we get back. The rest is just the stack trace that's thrown with the exception.
12.12.2019 10:50:54.758 *ERROR* [JobHandler: /var/workflow/instances/server0/2019-12-12_1/sync_translation_job_510:/content/projects/d e-translation/jcr:content/dashboard/gadgets/translationjob] com.adobe.cq.wcm.translation.impl.CQPageMachineTranslator Error while translating property
com.adobe.granite.translation.api.TranslationException: Error Code: TRANSLATION_FAILED. Message: Error Code: TRANSLATION_FAILED. Message: Status code from HttpClient did not return 200. Status Code: 400 The URL we called was: https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&from=en&textType=H TML&to=de&category=AEM-Translation_GENERAL...... and data was [{"text":"<p><A0><\/p>\r\n<p>text.<\/p>\r\n"},{"text":"<h1>Text<\/h1>\r\n<h1>Text<\/h1>\r \n"},{"text":"<p>text<\/p>\r\n"},{"text":"<p>Text<\/p>\r\n"},{"text":"text"},{"text":"text "},{"text":"<p>text.<A0><A0><\/p>\r\n"},{"text":"Text"}]
at com.adobe.granite.translation.connector.msft.core.impl.MicrosoftTranslationServiceImpl.ge tTranslatedTextForArray(MicrosoftTranslationServiceImpl.java:549) [com.adobe.granite.translation.connector.msft.core:1.3.24]
at com.adobe.granite.translation.connector.msft.core.impl.MicrosoftTranslationServiceImpl.tr anslateArray(MicrosoftTranslationServiceImpl.java:500) [com.adobe.granite.translation.connector.msft.core:1.3.24]
at com.adobe.cq.wcm.translation.impl.CQPageMachineTranslator.translatePropertyList(CQPageMac hineTranslator.java:156) [com.day.cq.wcm.cq-wcm-translation:1.5.58]
at com.adobe.cq.wcm.translation.impl.CQPageMachineTranslator.saveCacheQueue(CQPageMachineTra nslator.java:138) [com.day.cq.wcm.cq-wcm-translation:1.5.58]
at com.adobe.cq.wcm.translation.impl.CQPageMachineTranslator.translateResourceList(CQPageMac hineTranslator.java:109) [com.day.cq.wcm.cq-wcm-translation:1.5.58]
at com.adobe.cq.wcm.translation.impl.TranslationObjectImpl.startMachineTranslation(Translati onObjectImpl.java:619) [com.day.cq.wcm.cq-wcm-translation:1.5.58]
at com.adobe.cq.wcm.translation.impl.TranslationObjectImpl.translateNow(TranslationObjectImp l.java:454) [com.day.cq.wcm.cq-wcm-translation:1.5.58]
at com.adobe.cq.wcm.translation.impl.TranslationPodImpl.startTranslation(TranslationPodImpl. java:1208) [com.day.cq.wcm.cq-wcm-translation:1.5.58]
at com.adobe.cq.wcm.translation.impl.TranslationPodImpl.syncTranslation(TranslationPodImpl.j ava:2413) [com.day.cq.wcm.cq-wcm-translation:1.5.58]
at com.adobe.cq.wcm.translation.impl.process.SyncTranslationProcess.syncTranslationJob(SyncT ranslationProcess.java:154) [com.day.cq.wcm.cq-wcm-translation:1.5.58]
at com.adobe.cq.wcm.translation.impl.process.SyncTranslationProcess.execute(SyncTranslationP rocess.java:119) [com.day.cq.wcm.cq-wcm-translation:1.5.58]
at com.day.cq.workflow.compatibility.CQWorkflowProcessRunner.execute(CQWorkflowProcessRunner .java:93) [com.day.cq.workflow.cq-workflow-impl:6.3.8]
at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:191) [com.adobe.granite.workflow.core:2.0.240.CQ650-B0002]
at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:260) [com.adobe.granite.workflow.core:2.0.240.CQ650-B0002]
at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsume rManager.java:502) [org.apache.sling.event:4.2.12]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:293) [org.apache.sling.event:4.2.12]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60) [org.apache.sling.event:4.2.12]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:229) [org.apache.sling.event:4.2.12]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
As far as other questions, no proxy, no adblocker, this is impacting all pages and yes it's the correct Cloud Config. I'll see about getting more details from the logs.