NPE thrown when accessing a folder in TouchUI Assets (DAM)

Avatar

Avatar
Validate 10
Level 3
squid267
Level 3

Likes

14 likes

Total Posts

48 posts

Correct reply

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

Avatar
Validate 10
Level 3
squid267
Level 3

Likes

14 likes

Total Posts

48 posts

Correct reply

9 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
squid267
Level 3

11-11-2016

I can't figure why this Null Pointer Exception is getting thrown when a user try to access a folder in the dam. I am logged in as admin and this folder was working yesterday. This is only occuring on our QA server. The dev server has the exact same code package and the folders work. QA is open to regular content authors, so I'm wondering if a user screwed something up.

 

GET /mnt/overlay/dam/gui/content/assets/jcr:content/views/card.0.20.html/content/dam/pdfs HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException java.lang.NullPointerException: null at com.day.cq.search.impl.builder.QueryBuilderImpl.createResourceResolver(QueryBuilderImpl.java:194) at com.day.cq.search.impl.builder.QueryImpl.getResourceResolver(QueryImpl.java:231) at com.day.cq.search.impl.result.HitImpl.getResource(HitImpl.java:108) at com.day.cq.search.impl.result.SearchResultImpl$HitBasedResourceIterator.next(SearchResultImpl.java:398) at com.day.cq.search.impl.result.SearchResultImpl$HitBasedResourceIterator.next(SearchResultImpl.java:384) at org.apache.jsp.libs.dam.gui.coral.components.commons.ui.shell.datasources.assetsdatasource.assetsdatasource_jsp._jspService(assetsdatasource_jsp.java:319) at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:502) at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:449) at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java:284) at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.java:102) at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngineFactory.java:536) at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:388) at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:184) at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:491) at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:546) at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:44)

I had to truncate error log, but I think this should be enough.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 10
Level 3
squid267
Level 3

Likes

14 likes

Total Posts

48 posts

Correct reply

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

Avatar
Validate 10
Level 3
squid267
Level 3

Likes

14 likes

Total Posts

48 posts

Correct reply

9 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
squid267
Level 3

15-11-2016

I was able to solve with help from Rackspace CAS. Apparently the jcr:primarytype of the folder needs to be sling:OrderedFolder and not sling:Folder

Answers (3)

Answers (3)

Avatar

Avatar
Level 1
Dibakar
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile

Avatar
Level 1
Dibakar
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile
Dibakar
Level 1

16-07-2018

squid267​ - Could you please help me with the steps.

Even though I see the similar NPE, but jcr:primarytype of my asset folder is sling:OrderedFolder.

The error:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<html>

    <head><title>500 Internal Server Error</title></head>

    <body>

        <h1>Internal Server Error</h1>

        <p>Cannot serve request to /mnt/overlay/dam/gui/content/assets/jcr:content/views/card.0.20.html/content/dam/consumer-direct/random-images in /libs/dam/gui/coral/components/admin/contentrenderer/card/asset/asset.jsp</p>

       

        <h3>Exception:</h3>

<pre>

java.lang.NullPointerException

at com.day.cq.dam.commons.util.SchemaFormHelper.getMasterForms(SchemaFormHelper.java:157)

at com.day.cq.dam.commons.ui.editor.metadata.MetadataEditorHelperImpl.mergeResources(MetadataEditorHelperImpl.java:266)

at com.day.cq.dam.commons.ui.editor.metadata.MetadataEditorHelperImpl.getFormResource(MetadataEditorHelperImpl.java:315)

Avatar

Avatar
Validate 10
Level 3
squid267
Level 3

Likes

14 likes

Total Posts

48 posts

Correct reply

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

Avatar
Validate 10
Level 3
squid267
Level 3

Likes

14 likes

Total Posts

48 posts

Correct reply

9 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
squid267
Level 3

11-11-2016

Yes i can access it in classic ui. Very odd.

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 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,409 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

11-11-2016

Can you access the folder in Classic DAM View?