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

Assets not loading in aem 6.4

Avatar

Avatar
Validate 1
Level 2
kamalakannank62
Level 2

Likes

10 likes

Total Posts

27 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
kamalakannank62
Level 2

Likes

10 likes

Total Posts

27 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
kamalakannank62
Level 2

18-03-2019

Hello Folks,

We are currently upgrading to aem 6.4, While upgrade we found that /assets.html/content/dam is not loading the assets in touchui console, where as I am able to see assets in classic ui console(damadmin)

layout.min.js:11 Uncaught TypeError: Cannot read property 'layoutId' of undefined

    at g (layout.min.js:11)

    at HTMLDocument.<anonymous> (layout.min.js:4)

    at HTMLDocument.dispatch (jquery.min.js:1305)

    at HTMLDocument.cm.handle (jquery.min.js:1210)

    at Object.trigger (jquery.min.js:1282)

    at HTMLDocument.<anonymous> (jquery.min.js:1445)

    at Function.each (jquery.min.js:91)

    at bP.fn.init.each (jquery.min.js:37)

    at bP.fn.init.trigger (jquery.min.js:1445)

    at HTMLDocument.<anonymous> (foundation.min.js:215)

Uncaught TypeError: Cannot read property 'trim' of undefined

    at d._getActionPath (fileupload.min.js:327)

    at d.initialize (fileupload.min.js:59)

    at fileupload.min.js:15

    at coralui3.min.js:204

Replies

Avatar

Avatar
Coach
Employee
jbrar
Employee

Likes

377 likes

Total Posts

867 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

377 likes

Total Posts

867 posts

Correct Reply

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

18-03-2019

Can you try to rebuild the clientlibs?

http://<host>:<port>/libs/granite/ui/content/dumplibs.rebuild.html

Also, do you see any error in the error.log ?

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

18-03-2019

Please rebuild the clientlib as suggested here. This should not be happening.

Avatar

Avatar
Validate 1
Level 2
kamalakannank62
Level 2

Likes

10 likes

Total Posts

27 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
kamalakannank62
Level 2

Likes

10 likes

Total Posts

27 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
kamalakannank62
Level 2

18-03-2019

smacdonald2008JaideepBrar​,

I tried Rebuilding clientlibs, but no luck, when looked into logs  it gave this.

GET /assets.html/content/dam HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException

java.lang.NullPointerException: null

at com.day.cq.search.impl.builder.QueryBuilderImpl.getComponent(QueryBuilderImpl.java:278) [com.day.cq.cq-search:5.11.2]

at com.day.cq.search.impl.builder.QueryImpl.getPredicateEvaluator(QueryImpl.java:250) [com.day.cq.cq-search:5.11.2]

at com.day.cq.search.impl.builder.EvaluationContextImpl.getPredicateEvaluator(EvaluationContextImpl.java:51) [com.day.cq.cq-search:5.11.2]

at com.day.cq.search.eval.PredicateGroupEvaluator.getXPathExpression(PredicateGroupEvaluator.java:106) [com.day.cq.cq-search:5.11.2]

at com.day.cq.search.impl.builder.RootEvaluator.getPropertyConstraintsXpathSubExpre(RootEvaluator.java:437) [com.day.cq.cq-search:5.11.2]

at com.day.cq.search.impl.builder.RootEvaluator.getAllSubQueryObjects(RootEvaluator.java:399) [com.day.cq.cq-search:5.11.2]

at com.day.cq.search.impl.builder.RootEvaluator.getXPathExpressionWithUnion(RootEvaluator.java:261) [com.day.cq.cq-search:5.11.2]

at com.day.cq.search.impl.builder.RootEvaluator.getXPathExpression(RootEvaluator.java:95) [com.day.cq.cq-search:5.11.2]

at com.day.cq.search.impl.builder.QueryImpl.executeXpath(QueryImpl.java:385) [com.day.cq.cq-search:5.11.2]

at com.day.cq.search.impl.builder.QueryImpl.execute(QueryImpl.java:442) [com.day.cq.cq-search:5.11.2]

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

18-03-2019

This looks like an upgrade bug - this will not happen on a fresh instance of AEM. Please open a support ticket,

Avatar

Avatar
Validate 1
Level 2
kamalakannank62
Level 2

Likes

10 likes

Total Posts

27 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
kamalakannank62
Level 2

Likes

10 likes

Total Posts

27 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
kamalakannank62
Level 2

18-03-2019

smacdonald2008​ Sure raising it. Thank you for the support.

Avatar

Avatar
Coach
Employee
jbrar
Employee

Likes

377 likes

Total Posts

867 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

377 likes

Total Posts

867 posts

Correct Reply

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

18-03-2019

Looking at the error, Setting up a DEBUG logger on the following classes will provide more info:

  • org.apache.jackrabbit.oak.plugins.index
  • org.apache.jackrabbit.oak.query

Avatar

Avatar
Give Back 50
Employee
Vish_dhaliwal
Employee

Likes

187 likes

Total Posts

356 posts

Correct Reply

123 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Give Back 50
Employee
Vish_dhaliwal
Employee

Likes

187 likes

Total Posts

356 posts

Correct Reply

123 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
Vish_dhaliwal
Employee

19-03-2019

Hello Kamal,

Customizations under apps might be causing this issue. If you have any overlays, try to move them to tmp directory and recompile.

Also, check if you have modified the config -> com.day.cq.search.impl.builder.QueryBuilderImpl.config.

Avatar

Avatar
Validate 1
Level 2
kamalakannank62
Level 2

Likes

10 likes

Total Posts

27 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
kamalakannank62
Level 2

Likes

10 likes

Total Posts

27 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
kamalakannank62
Level 2

20-03-2019

Hello Vish.dhaliwal​,

Yeah we where overlaying few files, one of the environment it caused the issue, so we moved and recompiled it, it worked.

Thank you for the reply.

Avatar

Avatar
Give Back
Level 1
sarojay18883602
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Give Back
View profile

Avatar
Give Back
Level 1
sarojay18883602
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Give Back
View profile
sarojay18883602
Level 1

11-02-2020

Hello @Vish_dhaliwal,

 

What should be done if we have changed something here ->  com.day.cq.search.impl.builder.QueryBuilderImpl.config.

 

Querybuilder search throwing NPE and assets console is also not loading. The config above mentioned is set to older values npw, but still no luck. If at all the config is changed and reverterted back, is ther any other way to get these console back working?

 

Thanks in advance,

Saroja