Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

AEM as a cloud service : Production Build failing

Avatar

Level 2

Hi Community, 

 

I am facing an issue during deployment on production instance in AEMaaCS.

 

Following is the error log :

 

[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 11.93 s <<< FAILURE! - in com.ranosys.website.it.tests.PublishPageValidationIT
[ERROR] validateHomepage(com.ranosys.website.it.tests.PublishPageValidationIT) Time elapsed: 8.335 s <<< FAILURE!
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.assertTrue(Assert.java:41)
at com.ranosys.website.it.tests.PublishPageValidationIT.verifyLinkedResources(PublishPageValidationIT.java:117)
at com.ranosys.website.it.tests.PublishPageValidationIT.validateHomepage(PublishPageValidationIT.java:91)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
at org.apache.sling.testing.junit.rules.TestStickyCookieRule$1.evaluate(TestStickyCookieRule.java:34)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.apache.sling.testing.junit.rules.instance.ExistingInstanceStatement.evaluate(ExistingInstanceStatement.java:62)
at org.apache.sling.testing.junit.rules.instance.ExistingInstanceStatement.evaluate(ExistingInstanceStatement.java:62)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)

[INFO] Running com.ranosys.website.it.tests.CreatePageIT
[main] INFO com.adobe.cq.testing.junit.rules.ConfigurableInstance - Using LoginToken Auth as default. Index lane detection: false
[main] INFO org.apache.sling.testing.junit.rules.instance.util.ConfigurationPool - Reading initial configurations from the system properties
[main] INFO org.apache.sling.testing.junit.rules.instance.util.ConfigurationPool - Found 2 instance configuration(s) from the system properties
[main] INFO org.apache.sling.testing.junit.rules.instance.ExistingInstanceStatement - InstanceConfiguration (URL: https://author-p51279-e307288.adobeaemcloud.net, runmode: author) found for test com.ranosys.website.it.tests.CreatePageIT
2021/12/21 11:52:14:721 GMT [DEBUG] MainClientExec - Opening connection {s}->https://author-p51279-e307288.adobeaemcloud.net:443
2021/12/21 11:52:16:018 GMT [DEBUG] MainClientExec - Executing request POST /content/j_security_check HTTP/1.1
2021/12/21 11:52:16:018 GMT [DEBUG] MainClientExec - Target auth state: UNCHALLENGED
2021/12/21 11:52:16:018 GMT [DEBUG] MainClientExec - Proxy auth state: UNCHALLENGED
2021/12/21 11:52:16:246 GMT [DEBUG] MainClientExec - Connection can be kept alive indefinitely
2021/12/21 11:52:16:251 GMT [DEBUG] MainClientExec - Opening connection {s}->https://author-p51279-e307288.adobeaemcloud.net:443
2021/12/21 11:52:16:708 GMT [DEBUG] MainClientExec - Executing request GET /content/test-site.json HTTP/1.1
2021/12/21 11:52:16:709 GMT [DEBUG] MainClientExec - Target auth state: UNCHALLENGED
2021/12/21 11:52:16:709 GMT [DEBUG] MainClientExec - Proxy auth state: UNCHALLENGED
2021/12/21 11:52:16:940 GMT [DEBUG] MainClientExec - Connection can be kept alive indefinitely
2021/12/21 11:52:16:947 GMT [DEBUG] MainClientExec - Executing request POST /bin/wcmcommand HTTP/1.1
2021/12/21 11:52:16:947 GMT [DEBUG] MainClientExec - Target auth state: UNCHALLENGED
2021/12/21 11:52:16:947 GMT [DEBUG] MainClientExec - Proxy auth state: UNCHALLENGED
2021/12/21 11:52:17:234 GMT [DEBUG] MainClientExec - Connection can be kept alive indefinitely
2021/12/21 11:52:17:238 GMT [DEBUG] MainClientExec - Executing request GET /content/test-site/testpage_a807c07f-4934-4b95-95e7-4904f2b057a0.2.json HTTP/1.1
2021/12/21 11:52:17:238 GMT [DEBUG] MainClientExec - Target auth state: UNCHALLENGED
2021/12/21 11:52:17:238 GMT [DEBUG] MainClientExec - Proxy auth state: UNCHALLENGED
2021/12/21 11:52:17:467 GMT [DEBUG] MainClientExec - Connection can be kept alive indefinitely
2021/12/21 11:52:17:900 GMT [DEBUG] MainClientExec - Executing request POST /bin/wcmcommand HTTP/1.1
2021/12/21 11:52:17:900 GMT [DEBUG] MainClientExec - Target auth state: UNCHALLENGED
2021/12/21 11:52:17:900 GMT [DEBUG] MainClientExec - Proxy auth state: UNCHALLENGED
2021/12/21 11:52:18:498 GMT [DEBUG] MainClientExec - Connection can be kept alive indefinitely
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.888 s - in com.ranosys.website.it.tests.CreatePageIT
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] PublishPageValidationIT.validateHomepage:91->verifyLinkedResources:117 Empty response body from [https://publish-p51279-e307288.adobeaemcloud.net/etc.clientlibs/ranosys-website/clientlibs/clientlib...]
[INFO]
[ERROR] Tests run: 6, Failures: 1, Errors: 0, Skipped: 0
 
Also attaching screenshot of build failure.prod_build.png
1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @neelanshb11 ,

 

This issue is raised in aem archetype git hub.

 

https://github.com/adobe/aem-project-archetype/issues/794 

 

Until we get a permanent fix you can skip the particular test case using @Ignore  annotations as they had suggested.

 

https://github.com/adobe/aem-project-archetype/blob/develop/src/main/archetype/it.tests/src/main/jav... 

 

kishorekumar14_0-1640160622922.png

 

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi @neelanshb11 ,

 

This issue is raised in aem archetype git hub.

 

https://github.com/adobe/aem-project-archetype/issues/794 

 

Until we get a permanent fix you can skip the particular test case using @Ignore  annotations as they had suggested.

 

https://github.com/adobe/aem-project-archetype/blob/develop/src/main/archetype/it.tests/src/main/jav... 

 

kishorekumar14_0-1640160622922.png