<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SlingHttpServletRequest returning null when using Jac... in Adobe Experience Manager Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/slinghttpservletrequest-returning-null-when-using-jackson/m-p/409728#M3411</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="12024182"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just tried with the below code and it works for me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;org.apache.sling.api.SlingHttpServletRequest;&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;org.apache.sling.api.resource.Resource;&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;org.apache.sling.models.annotations.DefaultInjectionStrategy;&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;org.apache.sling.models.annotations.&lt;SPAN&gt;Exporter&lt;/SPAN&gt;;&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;org.apache.sling.models.annotations.&lt;SPAN&gt;Model&lt;/SPAN&gt;;&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;org.apache.sling.models.annotations.injectorspecific.&lt;SPAN&gt;SlingObject&lt;/SPAN&gt;;&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;org.apache.sling.models.annotations.injectorspecific.&lt;SPAN&gt;ValueMapValue&lt;/SPAN&gt;;&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;org.slf4j.Logger;&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;org.slf4j.LoggerFactory;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;javax.annotation.&lt;SPAN&gt;PostConstruct&lt;/SPAN&gt;;&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;javax.inject.&lt;SPAN&gt;Named&lt;/SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@Model&lt;/SPAN&gt;(adaptables = {SlingHttpServletRequest.&lt;SPAN&gt;class&lt;/SPAN&gt;, Resource.&lt;SPAN&gt;class&lt;/SPAN&gt;}, resourceType = {&lt;SPAN&gt;"weretail/components/content/heroimage"&lt;/SPAN&gt;}, defaultInjectionStrategy = DefaultInjectionStrategy.&lt;SPAN&gt;OPTIONAL&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;@Exporter&lt;/SPAN&gt;(name = &lt;SPAN&gt;"jackson"&lt;/SPAN&gt;, extensions = &lt;SPAN&gt;"json"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;public class &lt;/SPAN&gt;TestModel {&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;private static final &lt;/SPAN&gt;Logger &lt;SPAN&gt;log &lt;/SPAN&gt;= LoggerFactory.&lt;SPAN&gt;getLogger&lt;/SPAN&gt;(TestModel.&lt;SPAN&gt;class&lt;/SPAN&gt;);&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;@ValueMapValue&lt;BR /&gt;&lt;/SPAN&gt;    String &lt;SPAN&gt;buttonLinkTo&lt;/SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;@ValueMapValue&lt;BR /&gt;&lt;/SPAN&gt;    String &lt;SPAN&gt;fileReference&lt;/SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;@ValueMapValue&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    @Named&lt;/SPAN&gt;(&lt;SPAN&gt;"sling:resourceType"&lt;/SPAN&gt;)&lt;BR /&gt;    String &lt;SPAN&gt;slingResourceType&lt;/SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;@SlingObject&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;private &lt;/SPAN&gt;SlingHttpServletRequest &lt;SPAN&gt;request&lt;/SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;@PostConstruct&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;protected void &lt;/SPAN&gt;init() {&lt;BR /&gt;        &lt;SPAN&gt;log&lt;/SPAN&gt;.info(&lt;SPAN&gt;"***** :: init :: Start :: *****"&lt;/SPAN&gt;);&lt;BR /&gt;        &lt;SPAN&gt;if &lt;/SPAN&gt;(&lt;SPAN&gt;request &lt;/SPAN&gt;!= &lt;SPAN&gt;null&lt;/SPAN&gt;) {&lt;BR /&gt;            &lt;SPAN&gt;log&lt;/SPAN&gt;.info(&lt;SPAN&gt;"Request Path -&amp;gt; {}"&lt;/SPAN&gt;, &lt;SPAN&gt;request&lt;/SPAN&gt;.getRequestPathInfo());&lt;BR /&gt;        } &lt;SPAN&gt;else &lt;/SPAN&gt;{&lt;BR /&gt;            &lt;SPAN&gt;log&lt;/SPAN&gt;.error(&lt;SPAN&gt;"Request is NULL"&lt;/SPAN&gt;);&lt;BR /&gt;        }&lt;BR /&gt;        &lt;SPAN&gt;log&lt;/SPAN&gt;.info(&lt;SPAN&gt;"***** :: init :: End :: *****"&lt;/SPAN&gt;);&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;public &lt;/SPAN&gt;String getButtonLinkTo() {&lt;BR /&gt;        &lt;SPAN&gt;return &lt;/SPAN&gt;&lt;SPAN&gt;buttonLinkTo&lt;/SPAN&gt;;&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;public &lt;/SPAN&gt;String getSlingResourceType() {&lt;BR /&gt;        &lt;SPAN&gt;return &lt;/SPAN&gt;&lt;SPAN&gt;slingResourceType&lt;/SPAN&gt;;&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;public &lt;/SPAN&gt;String getFileReference() {&lt;BR /&gt;        &lt;SPAN&gt;return &lt;/SPAN&gt;&lt;SPAN&gt;fileReference&lt;/SPAN&gt;;&lt;BR /&gt;    }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://localhost:4502/content/we-retail/language-masters/en/experience/jcr:content/root/hero_image.model.json" target="_blank" rel="noopener"&gt;http://localhost:4502/content/we-retail/language-masters/en/experience/jcr:content/root/hero_image.model.json&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Response I get:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;buttonLinkTo&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;null&lt;/SPAN&gt;,&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;fileReference&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;"/content/dam/we-retail/en/activities/hiking-camping/trekker-ama-dablam.jpg"&lt;/SPAN&gt;,&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;slingResourceType&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;"weretail/components/content/heroimage"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Log:&lt;/P&gt;&lt;P&gt;25.05.2021 22:05:15.711 *INFO* [[0:0:0:0:0:0:0:1] [1621960515699] GET /content/we-retail/language-masters/en/experience/jcr:content/root/hero_image.model.json HTTP/1.1] com.community.core.models.TestModel ***** :: init :: Start :: *****&lt;BR /&gt;25.05.2021 22:05:15.711 *INFO* [[0:0:0:0:0:0:0:1] [1621960515699] GET /content/we-retail/language-masters/en/experience/jcr:content/root/hero_image.model.json HTTP/1.1] com.community.core.models.TestModel &lt;STRONG&gt;Request Path -&amp;gt; SlingRequestPathInfo: path='/content/we-retail/language-masters/en/experience/jcr:content/root/hero_image', selectorString='model', extension='json', suffix='null'&lt;/STRONG&gt;&lt;BR /&gt;25.05.2021 22:05:15.711 *INFO* [[0:0:0:0:0:0:0:1] [1621960515699] GET /content/we-retail/language-masters/en/experience/jcr:content/root/hero_image.model.json HTTP/1.1] com.community.core.models.TestModel ***** :: init :: End :: *****&lt;/P&gt;</description>
    <pubDate>Tue, 25 May 2021 16:37:45 GMT</pubDate>
    <dc:creator>Asutosh_Jena_</dc:creator>
    <dc:date>2021-05-25T16:37:45Z</dc:date>
    <item>
      <title>SlingHttpServletRequest returning null when using Jackson Exporter</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/slinghttpservletrequest-returning-null-when-using-jackson/m-p/409718#M3408</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Im using&amp;nbsp;SlingHttpServletRequest in my sling model class with jackson exporter. But the request object is always returning null. Can anyone help me on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@Model(adaptables = {SlingHttpServletRequest.class,Resource.class}, resourceType = { "sample/components/content/example_comp" }, defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL)&lt;BR /&gt;&lt;LI-USER uid="3484101" login="exporter"&gt;&lt;/LI-USER&gt;(name = "jackson", extensions = "json")&lt;BR /&gt;public class EESimWizardConfigModel {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;LI-USER uid="586265" login="inject"&gt;&lt;/LI-USER&gt;&lt;BR /&gt;SlingHttpServletRequest request;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;LI-USER uid="586265" login="inject"&gt;&lt;/LI-USER&gt;&lt;BR /&gt;private HashMap&amp;lt;String, String&amp;gt; productFamilyDetails;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;public Map&amp;lt;String, String&amp;gt; getProductFamilyDetails() {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (request != null) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//then do something&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 15:59:42 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/slinghttpservletrequest-returning-null-when-using-jackson/m-p/409718#M3408</guid>
      <dc:creator>maheswariv26797</dc:creator>
      <dc:date>2021-05-25T15:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: SlingHttpServletRequest returning null when using Jac...</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/slinghttpservletrequest-returning-null-when-using-jackson/m-p/409721#M3409</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="12024182"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you try with&amp;nbsp;&lt;STRONG&gt;@SlingObject&lt;/STRONG&gt; instead of&amp;nbsp;&lt;STRONG&gt;@Inject&lt;/STRONG&gt; once ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;@SlingObject&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;private SlingHttpServletRequest request;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sgaemsolutions.com/2017/06/sling-model-exporter-in-aem-63.html" target="_blank"&gt;http://www.sgaemsolutions.com/2017/06/sling-model-exporter-in-aem-63.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 16:12:57 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/slinghttpservletrequest-returning-null-when-using-jackson/m-p/409721#M3409</guid>
      <dc:creator>Asutosh_Jena_</dc:creator>
      <dc:date>2021-05-25T16:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: SlingHttpServletRequest returning null when using Jac...</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/slinghttpservletrequest-returning-null-when-using-jackson/m-p/409724#M3410</link>
      <description>&lt;P&gt;Hi &lt;LI-USER uid="7532759"&gt;&lt;/LI-USER&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes,i have used @SlingObject but still it did not work. Am i missing anything?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Maheswari&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 16:20:45 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/slinghttpservletrequest-returning-null-when-using-jackson/m-p/409724#M3410</guid>
      <dc:creator>maheswariv26797</dc:creator>
      <dc:date>2021-05-25T16:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: SlingHttpServletRequest returning null when using Jac...</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/slinghttpservletrequest-returning-null-when-using-jackson/m-p/409728#M3411</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="12024182"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just tried with the below code and it works for me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;org.apache.sling.api.SlingHttpServletRequest;&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;org.apache.sling.api.resource.Resource;&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;org.apache.sling.models.annotations.DefaultInjectionStrategy;&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;org.apache.sling.models.annotations.&lt;SPAN&gt;Exporter&lt;/SPAN&gt;;&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;org.apache.sling.models.annotations.&lt;SPAN&gt;Model&lt;/SPAN&gt;;&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;org.apache.sling.models.annotations.injectorspecific.&lt;SPAN&gt;SlingObject&lt;/SPAN&gt;;&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;org.apache.sling.models.annotations.injectorspecific.&lt;SPAN&gt;ValueMapValue&lt;/SPAN&gt;;&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;org.slf4j.Logger;&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;org.slf4j.LoggerFactory;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;javax.annotation.&lt;SPAN&gt;PostConstruct&lt;/SPAN&gt;;&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;javax.inject.&lt;SPAN&gt;Named&lt;/SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@Model&lt;/SPAN&gt;(adaptables = {SlingHttpServletRequest.&lt;SPAN&gt;class&lt;/SPAN&gt;, Resource.&lt;SPAN&gt;class&lt;/SPAN&gt;}, resourceType = {&lt;SPAN&gt;"weretail/components/content/heroimage"&lt;/SPAN&gt;}, defaultInjectionStrategy = DefaultInjectionStrategy.&lt;SPAN&gt;OPTIONAL&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;@Exporter&lt;/SPAN&gt;(name = &lt;SPAN&gt;"jackson"&lt;/SPAN&gt;, extensions = &lt;SPAN&gt;"json"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;public class &lt;/SPAN&gt;TestModel {&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;private static final &lt;/SPAN&gt;Logger &lt;SPAN&gt;log &lt;/SPAN&gt;= LoggerFactory.&lt;SPAN&gt;getLogger&lt;/SPAN&gt;(TestModel.&lt;SPAN&gt;class&lt;/SPAN&gt;);&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;@ValueMapValue&lt;BR /&gt;&lt;/SPAN&gt;    String &lt;SPAN&gt;buttonLinkTo&lt;/SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;@ValueMapValue&lt;BR /&gt;&lt;/SPAN&gt;    String &lt;SPAN&gt;fileReference&lt;/SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;@ValueMapValue&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    @Named&lt;/SPAN&gt;(&lt;SPAN&gt;"sling:resourceType"&lt;/SPAN&gt;)&lt;BR /&gt;    String &lt;SPAN&gt;slingResourceType&lt;/SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;@SlingObject&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;private &lt;/SPAN&gt;SlingHttpServletRequest &lt;SPAN&gt;request&lt;/SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;@PostConstruct&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;protected void &lt;/SPAN&gt;init() {&lt;BR /&gt;        &lt;SPAN&gt;log&lt;/SPAN&gt;.info(&lt;SPAN&gt;"***** :: init :: Start :: *****"&lt;/SPAN&gt;);&lt;BR /&gt;        &lt;SPAN&gt;if &lt;/SPAN&gt;(&lt;SPAN&gt;request &lt;/SPAN&gt;!= &lt;SPAN&gt;null&lt;/SPAN&gt;) {&lt;BR /&gt;            &lt;SPAN&gt;log&lt;/SPAN&gt;.info(&lt;SPAN&gt;"Request Path -&amp;gt; {}"&lt;/SPAN&gt;, &lt;SPAN&gt;request&lt;/SPAN&gt;.getRequestPathInfo());&lt;BR /&gt;        } &lt;SPAN&gt;else &lt;/SPAN&gt;{&lt;BR /&gt;            &lt;SPAN&gt;log&lt;/SPAN&gt;.error(&lt;SPAN&gt;"Request is NULL"&lt;/SPAN&gt;);&lt;BR /&gt;        }&lt;BR /&gt;        &lt;SPAN&gt;log&lt;/SPAN&gt;.info(&lt;SPAN&gt;"***** :: init :: End :: *****"&lt;/SPAN&gt;);&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;public &lt;/SPAN&gt;String getButtonLinkTo() {&lt;BR /&gt;        &lt;SPAN&gt;return &lt;/SPAN&gt;&lt;SPAN&gt;buttonLinkTo&lt;/SPAN&gt;;&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;public &lt;/SPAN&gt;String getSlingResourceType() {&lt;BR /&gt;        &lt;SPAN&gt;return &lt;/SPAN&gt;&lt;SPAN&gt;slingResourceType&lt;/SPAN&gt;;&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;public &lt;/SPAN&gt;String getFileReference() {&lt;BR /&gt;        &lt;SPAN&gt;return &lt;/SPAN&gt;&lt;SPAN&gt;fileReference&lt;/SPAN&gt;;&lt;BR /&gt;    }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://localhost:4502/content/we-retail/language-masters/en/experience/jcr:content/root/hero_image.model.json" target="_blank" rel="noopener"&gt;http://localhost:4502/content/we-retail/language-masters/en/experience/jcr:content/root/hero_image.model.json&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Response I get:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;buttonLinkTo&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;null&lt;/SPAN&gt;,&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;fileReference&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;"/content/dam/we-retail/en/activities/hiking-camping/trekker-ama-dablam.jpg"&lt;/SPAN&gt;,&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;slingResourceType&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;"weretail/components/content/heroimage"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Log:&lt;/P&gt;&lt;P&gt;25.05.2021 22:05:15.711 *INFO* [[0:0:0:0:0:0:0:1] [1621960515699] GET /content/we-retail/language-masters/en/experience/jcr:content/root/hero_image.model.json HTTP/1.1] com.community.core.models.TestModel ***** :: init :: Start :: *****&lt;BR /&gt;25.05.2021 22:05:15.711 *INFO* [[0:0:0:0:0:0:0:1] [1621960515699] GET /content/we-retail/language-masters/en/experience/jcr:content/root/hero_image.model.json HTTP/1.1] com.community.core.models.TestModel &lt;STRONG&gt;Request Path -&amp;gt; SlingRequestPathInfo: path='/content/we-retail/language-masters/en/experience/jcr:content/root/hero_image', selectorString='model', extension='json', suffix='null'&lt;/STRONG&gt;&lt;BR /&gt;25.05.2021 22:05:15.711 *INFO* [[0:0:0:0:0:0:0:1] [1621960515699] GET /content/we-retail/language-masters/en/experience/jcr:content/root/hero_image.model.json HTTP/1.1] com.community.core.models.TestModel ***** :: init :: End :: *****&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 16:37:45 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/slinghttpservletrequest-returning-null-when-using-jackson/m-p/409728#M3411</guid>
      <dc:creator>Asutosh_Jena_</dc:creator>
      <dc:date>2021-05-25T16:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: SlingHttpServletRequest returning null when using Jac...</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/slinghttpservletrequest-returning-null-when-using-jackson/m-p/409760#M3412</link>
      <description>&lt;P&gt;The problem is that you allow the model from being adapted from both the request and the resource, and on top of the injected request is optional.&lt;/P&gt;&lt;P&gt;That means, that it is very likely that the behind the scenes the adaption is not done by the request, but rather by the resource, and that the request field is not injected at all.&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 20:20:09 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/slinghttpservletrequest-returning-null-when-using-jackson/m-p/409760#M3412</guid>
      <dc:creator>Jörg_Hoh</dc:creator>
      <dc:date>2021-05-25T20:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: SlingHttpServletRequest returning null when using Jackson Exporter</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/slinghttpservletrequest-returning-null-when-using-jackson/m-p/409813#M3413</link>
      <description>&lt;P&gt;r&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 05:48:38 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/slinghttpservletrequest-returning-null-when-using-jackson/m-p/409813#M3413</guid>
      <dc:creator>raushan123</dc:creator>
      <dc:date>2021-05-26T05:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: SlingHttpServletRequest returning null when using Jackson Exporter</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/slinghttpservletrequest-returning-null-when-using-jackson/m-p/409814#M3414</link>
      <description>&lt;P&gt;&lt;LI-USER uid="12024182"&gt;&lt;/LI-USER&gt;Can you please try &lt;LI-USER uid="1961677"&gt;&lt;/LI-USER&gt; private SlingHttpServletRequest request; annotation like this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Raushan_0-1622008269078.png" style="width: 400px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/31933i5EA325D819BB7389/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Raushan_0-1622008269078.png" alt="Raushan_0-1622008269078.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 05:51:31 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/slinghttpservletrequest-returning-null-when-using-jackson/m-p/409814#M3414</guid>
      <dc:creator>Raushan</dc:creator>
      <dc:date>2021-05-26T05:51:31Z</dc:date>
    </item>
  </channel>
</rss>

