I have a new component in AEM 6.4 which works fine in author/publisher in local.
Also it is fine in author/publisher in dev env. and when I go to QA env. It works and show correctly in author and wcmmode=disabled
But in publisher of QA, I will get this error and Page is not rendering...
org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.api.scripting.ScriptEvaluationException: java.lang.NullPointerException
Any idea what can be wrong in different environment? Not any more info in log....
(there is this warn before this error: com.day.cq.wcm.webservicesupport.impl.ConfigurationManagerImpl Cloud service /etc/cloudservices/sdltms-translation/SdlTms1 not found)
Check if you are referring to any system user and system user is having required permissions in QA publish instance. Also, if you are using any login administrator code to get the session which might be causing the issue.
Try to check the error logs to find the exact line of code which is causing the exception which gives idea about the exception.