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

cloud SDK replication working, but no site on publish instance, get "Failed executing script /libs/cq/Page/Page.jsp"

Avatar

Avatar
Ignite 10
Level 4
TB3dock
Level 4

Likes

34 likes

Total Posts

203 posts

Correct Reply

4 solutions
Top badges earned
Ignite 10
Boost 25
Give Back 25
Validate 10
Validate 1
View profile

Avatar
Ignite 10
Level 4
TB3dock
Level 4

Likes

34 likes

Total Posts

203 posts

Correct Reply

4 solutions
Top badges earned
Ignite 10
Boost 25
Give Back 25
Validate 10
Validate 1
View profile
TB3dock
Level 4

29-03-2021

I installed wknd by running "

mvn clean install -PautoInstallSinglePackage

with code from https://github.com/adobe/aem-guides-wknd

 

This puts the site on the author instance.

then I started a separate publish instance with "java -jar aem-publish-p4503", and manually added the required replication agent for the cloud SDK using this info: https://experienceleague.adobe.com/docs/experience-manager-learn/cloud-service/local-development-env...

 

The replication test works.

 

If I try to replicate pages, it "seems" to work, and in the log files on publish I see:

 

29.03.2021 22:09:12.233 *INFO* [127.0.0.1 [1617048552217] POST /bin/receive HTTP/1.1] com.day.cq.replication.impl.content.durbo.DurboImporter imported content in 16ms for durbo request on path: /content/wknd/ca/en/adventures/ski-touring-mont-blanc

29.03.2021 22:09:12.233 *INFO* [127.0.0.1 [1617048552217] POST /bin/receive HTTP/1.1] com.day.cq.replication.impl.servlets.ReplicationServlet Processed replication action in 16ms: ACTIVATE of /content/wknd/ca/en/adventures/ski-touring-mont-blanc

29.03.2021 22:09:20.005 *INFO* [CommitStats] CommitStats 58 commits by user admin from location HTTP-POST:/bin/receive [CommitStats overhead was 1ms = 17.0us / commit]

 

However, when I click on Sites on the publish instance, there are no sites, and I see this error in the logs:

 

9.03.2021 22:09:22.081 *ERROR* [[0:0:0:0:0:0:0:1] [1617048561986] GET /sites.html/content HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught Throwable

javax.servlet.ServletException: Failed executing script /libs/cq/Page/Page.jsp: java.lang.NullPointerException

at org.apache.sling.servlets.resolver.bundle.tracker.internal.BundledScriptServlet.service(BundledScriptServlet.java:82) [org.apache.sling.servlets.resolver:2.7.10]

at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:552) [org.apache.sling.engine:2.7.2]

  If I try to access any of the pages directly, e.g:

http://localhost:4503/content/wknd/ca/en/adventures/ski-touring-mont-blanc/

 

I get this:

Forbidden

Cannot serve request to /content/wknd/ca/en/adventures/ski-touring-mont-blanc/ in org.apache.sling.servlets.get.DefaultGetServlet

Request Progress:

 

 

 

I have not had problems with the non-cloud SDK, but not having any luck using the cloud SDK.  Any ideas?

 

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Ignite 10
Level 4
TB3dock
Level 4

Likes

34 likes

Total Posts

203 posts

Correct Reply

4 solutions
Top badges earned
Ignite 10
Boost 25
Give Back 25
Validate 10
Validate 1
View profile

Avatar
Ignite 10
Level 4
TB3dock
Level 4

Likes

34 likes

Total Posts

203 posts

Correct Reply

4 solutions
Top badges earned
Ignite 10
Boost 25
Give Back 25
Validate 10
Validate 1
View profile
TB3dock
Level 4

29-03-2021

OK, found the solution.  Replication only replicates pages.  The various documents on replication dont mention that you also need to replicate packages. This can be done in one of two ways:

 

1) find the packages in package manager on author, click more, then "replicate".

2) mvn clean install -PautoInstallSinglePackageAuthor

Answers (1)

Answers (1)

Avatar

Avatar
Coach
Employee
jbrar
Employee

Likes

387 likes

Total Posts

869 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Coach
Employee
jbrar
Employee

Likes

387 likes

Total Posts

869 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile
jbrar
Employee

29-03-2021

If you go to the publish crxde, do you see the wknd pages under /content ?