Expand my Community achievements bar.

HanL
HanL
Online
Type
  • All
  • Questions
  • Discussions
  • Ideas
  • Blogs
Filter by user contributions
  • That worked, thanks for the help!

    Type

    Questions

    Views

    140

    Likes

    2

    Replies

    0
  • Hi SureshFor those two annotations, I am using:import org.osgi.service.component.annotations.Component;import org.apache.felix.scr.annotations.Reference;In the log, an exception was thrown java.lang.NullPointerException: nullat  MessageGateway<HtmlEmail> messageGateway = messageGatewayService.g...

    Type

    Questions

    Views

    162

    Like

    1

    Replies

    2
  • Hi I am created an email servlet in AEM and it works fine when I tested it on my local 4502,but when I test this servlet on company DEV environment, the messageGateway is always null MessageGateway<HtmlEmail> messageGateway = messageGatewayService.getGateway(HtmlEmail.class); Here's my code:@co...

    Type

    Questions

    Views

    201

    Likes

    0

    Replies

    4
  • Hi I having an issue on the sling date:<sly data-sly-test.startingDate="${'dd-MMM-yyyy' @ i18n, format=pnp.firstDayOfYear, locale=countryPage.languageCode, type='date'}"></sly>the firstDayOfYear value comes from Java method: public Calendar getFirstDayOfYear(){ Calendar c = Calendar.getIn...

    Type

    Questions

    Views

    142

    Likes

    0

    Replies

    1
  • Hi I am trying to setup an email function servlet on AEM, it grabs nodes info in AEM and save them is a excel file. The servlet works fine on local, but somehow it's not working on live environment, here's my code: package com.fidelity.cms.aem.reports; import java.io.ByteArrayOutputStream; import j...

    Type

    Questions

    Views

    119

    Likes

    0

    Replies

    2
  • Sure, Here's the codeimport org.apache.sling.api.servlets.SlingAllMethodsServlet; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.Date; import javax.jcr.Session; import javax.jcr.query.Query; import javax.jcr.query.QueryManager; import javax.jcr.query.QueryResult; import ...

    Type

    Questions

    Views

    366

    Like

    1

    Replies

    1
  • Hi I am trying to create a servlet in AEM to unplish some pages. The servlet keeps throwing the nullpointer at:replicator.replicate(session, ReplicationActionType.DEACTIVE, path);  I found the root cause is the replictor is null, here's how I set it:@referenceReplicator replicator;I tried to do mave...

    Type

    Questions

    Views

    395

    Likes

    0

    Replies

    6
  • Hi I want to add a property in some nodes in AEM, those nodes were created using a template and I already added that property to the template. The question is how can I change the existing nodes created using that template? Here's my code: String queryString = "SELECT [jcr:path] FROM [cq:Page] AS s ...

    Type

    Questions

    Views

    262

    Likes

    0

    Replies

    3
Top badges earned by HanL
Customize the badges you want to showcase on your profile