HTL Template on Publisher throws error "Arguments cannot be null" | Community
Skip to main content
geoffreym935937
Level 2
March 16, 2017
Solved

HTL Template on Publisher throws error "Arguments cannot be null"

  • March 16, 2017
  • 2 replies
  • 1078 views

Does anyone know why a HTL template would be working fine on Author but on Publisher it throws the error "Arguments cannot be null"? The publisher has no issues running JSP templates.

Is there any way that I can get a bit more information i.e. a Publisher error log?

Edit 1: I have further narrowed this down to the inclusion of a Java file in my template component. The file can be empty and it still throws the error.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by geoffreym935937

I actually solved this just before going away for the weekend. The issue was that I was referencing the class directly (data-sly-use.headjava="Head") and instead had to include the package (data-sly-use.headjava="apps.site.components.page2017.global.head.Head").

I am unsure at this point as to why I need this reference on Publisher and not on Author, do you know what would be missing on the Publisher to cause this?

Also, as I said in my original question "Is there any way that I can get a bit more information i.e. a Publisher error log?". I need this in order to both help me narrow down the cause of issues and provide a stacktrace if requested.

EDIT 1: I now have access to the error logs, so my question about this has been solved.

2 replies

Feike_Visser1
Adobe Employee
Adobe Employee
March 17, 2017

Can you share your code and stacktrace, that will provide mode info to us.

geoffreym935937
geoffreym935937AuthorAccepted solution
Level 2
March 19, 2017

I actually solved this just before going away for the weekend. The issue was that I was referencing the class directly (data-sly-use.headjava="Head") and instead had to include the package (data-sly-use.headjava="apps.site.components.page2017.global.head.Head").

I am unsure at this point as to why I need this reference on Publisher and not on Author, do you know what would be missing on the Publisher to cause this?

Also, as I said in my original question "Is there any way that I can get a bit more information i.e. a Publisher error log?". I need this in order to both help me narrow down the cause of issues and provide a stacktrace if requested.

EDIT 1: I now have access to the error logs, so my question about this has been solved.