Expand my Community achievements bar.

LOG Back status issue

Avatar

Level 8

Hi,

 I downloaded sdk instance for cloud then I after i created a project with archtype34 and deployed into instance then im getting this issue 

*Logback Status* |-ERROR in org.apache.sling.commons.log.logback.internal.util.SlingRollingFileAppender[/logs/error.log] - Appender [/logs/error.log] failed to append. java.lang.NullPointerException
  at java.lang.NullPointerException
  at  at ch.qos.logback.core.OutputStreamAppender.writeBytes(OutputStreamAppender.java:199)
  at  at ch.qos.logback.core.OutputStreamAppender.subAppend(OutputStreamAppender.java:231)
  at  at ch.qos.logback.core.rolling.RollingFileAppender.subAppend(RollingFileAppender.java:235)
  at  at ch.qos.logback.core.OutputStreamAppender.append(OutputStreamAppender.java:102)
  at  at ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend(UnsynchronizedAppenderBase.java:84)
  at  at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:51)
  at  at ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:270)
  at  at ch.qos.logback.classic.Logger.callAppenders(Logger.java:257)
  at  at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:421)
  at  at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:383)
  at  at ch.qos.logback.classic.Logger.info(Logger.java:591)
  at  at org.apache.sling.installer.core.impl.OsgiInstallerImpl$1.log(OsgiInstallerImpl.java:843)
  at  at org.apache.sling.installer.factories.configuration.impl.ConfigInstallTask.execute(ConfigInstallTask.java:114)
  at  at org.apache.sling.installer.core.impl.OsgiInstallerImpl.doExecuteTasks(OsgiInstallerImpl.java:918)
  at  at org.apache.sling.installer.core.impl.OsgiInstallerImpl.executeTasks(OsgiInstallerImpl.java:755)
  at  at org.apache.sling.installer.core.impl.OsgiInstallerImpl.run(OsgiInstallerImpl.java:304)
  at  at java.base/java.lang.Thread.run(Thread.java:834) 
can anyone help me
3 Replies

Avatar

Community Advisor

Hi @Vani1012 

I have setup up AEMaaCS (2022.1.6198.20220113T173638Z-211100) on local and created wknd-spa-react project with archetype version 34, couldn't find such error. Please check if you are using same command for cloud as below.

mvn -B archetype:generate \
 -D archetypeGroupId=com.adobe.aem \
 -D archetypeArtifactId=aem-project-archetype \
 -D archetypeVersion=34 \
 -D appTitle="WKND SPA React" \
 -D appId="wknd-spa-react" \
 -D artifactId="aem-guides-wknd-spa.react" \
 -D groupId="com.adobe.aem.guides.wkndspa.react" \
 -D frontendModule="react" \
 -D aemVersion="cloud"


Regards,
Santosh

Avatar

Level 8

I created project using this command

mvn -B org.apache.maven.plugins:maven-archetype plugin:3.2.1:generate

-D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=34 -D appTitle="WKND SPA React" -D appId="wknd-spa-react" -D artifactId="aem-guides-wknd-spa.react" -D groupId="com.adobe.aem.guides.wkndspa.react" -D frontendModule="react" -D aemVersion="cloud"

 

 

Avatar

Community Advisor

Hi,

What java version are you using? AEMaaCS works with java11.



Arun Patidar