Hi @All,
i have developed 1 component which fetches documents on basis of selected tags...i have used Query Builder.
The code is working fine in Author and Publisher Environment. throwing error on varnish URL
Model cannot be correctly instantiated by the Use API
why it only visible in varnish URL
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @lone_Ranger,
Queries:
Also as per the error, there could be some null pointer error here. Can you please share/check the log where it says at which line number it is getting a null pointer?
Also, what you can do is try any other existing services that are using Query builder API and check if it is working fine.
Hope this helps!
Thanks,
Kiran Vedantam.
Hi @lone_Ranger
If it works fine on Publish instance then it should work everywhere. When you say you are using a component, are you trying to use the Query Builder using a Sling Model or using any servlet?
If it's a Model, your page will be cached and if it has any error already cached at the Varnish URL you might be getting the same error.
Thanks!
i am using sling model and already cleared cache....
i am reading properties like tags and locale
Hi @lone_Ranger,
Queries:
Also as per the error, there could be some null pointer error here. Can you please share/check the log where it says at which line number it is getting a null pointer?
Also, what you can do is try any other existing services that are using Query builder API and check if it is working fine.
Hope this helps!
Thanks,
Kiran Vedantam.
thanks was null pointer....but why the same is working on publisher?