cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ant initialize fails - ConfigurationException

Former Member
1,261

Hello,

after an macos and brew update, I can't start my local server anymore. After a while I noticed that even the initializing process fails:

 initialize:
     [input] skipping input as property tenant has already been set.
     [mkdir] Created dir: /Users/paul.kalbing/project/temp/hybris/client
      [java] ---------------------------------------------------------------
      [java] Warning: you're using at least one deprecated extension!
      [java] Please note that they may not be available in future releases.
      [java]
      [java] Deprecated extensions: [admincockpit, b2badmincockpit, cmscockpit, cockpit]
      [java] ---------------------------------------------------------------
      [java] ---------------------------------------------------------------
      [java] Warning: you're using at least one deprecated extension!
      [java] Please note that they may not be available in future releases.
      [java]
      [java] Deprecated extensions: [admincockpit, b2badmincockpit, cmscockpit, cockpit]
      [java] ---------------------------------------------------------------
      [java] Exception in thread "main" java.lang.reflect.InvocationTargetException
      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [java]     at java.lang.reflect.Method.invoke(Method.java:498)
      [java]     at de.hybris.bootstrap.loader.Loader.execute(Loader.java:142)
      [java]     at de.hybris.bootstrap.loader.Loader.main(Loader.java:118)
      [java] Caused by: java.lang.ExceptionInInitializerError
      [java]     at de.hybris.platform.core.threadregistry.SuspendResumeServices.<clinit>(SuspendResumeServices.java:28)
      [java]     at de.hybris.platform.core.threadregistry.RegistrableThread.registerThread(RegistrableThread.java:104)
      [java]     at de.hybris.platform.core.threadregistry.RegistrableThread.registerThread(RegistrableThread.java:99)
      [java]     at de.hybris.platform.util.ClientExecuter.execute(ClientExecuter.java:31)
      [java]     ... 6 more
      [java] Caused by: org.apache.logging.log4j.core.config.ConfigurationException: No name attribute provided for Logger ImpExImportReader
      [java]     at org.apache.logging.log4j.core.config.properties.PropertiesConfigurationBuilder.createLogger(PropertiesConfigurationBuilder.java:255)
      [java]     at org.apache.logging.log4j.core.config.properties.PropertiesConfigurationBuilder.build(PropertiesConfigurationBuilder.java:167)
      [java]     at org.apache.logging.log4j.core.config.properties.PropertiesConfigurationFactory.getConfiguration(PropertiesConfigurationFactory.java:52)
      [java]     at de.hybris.platform.util.logging.log4j2.HybrisLog4j2ConfigurationFactory.loadConfigFromProperties(HybrisLog4j2ConfigurationFactory.java:87)
      [java]     at de.hybris.platform.util.logging.log4j2.HybrisLog4j2ConfigurationFactory.getConfiguration(HybrisLog4j2ConfigurationFactory.java:64)
      [java]     at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:353)
      [java]     at org.apache.logging.log4j.core.config.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:260)
      [java]     at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:613)
      [java]     at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:634)
      [java]     at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:229)
      [java]     at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:152)
      [java]     at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)
      [java]     at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
      [java]     at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:122)
      [java]     at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:43)
      [java]     at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:46)
      [java]     at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:29)
      [java]     at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:358)
      [java]     at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:383)
      [java]     at de.hybris.platform.core.threadregistry.ThreadRegistry.<clinit>(ThreadRegistry.java:35)
      [java]     ... 10 more
      [java] Exception in thread "Thread-0" java.lang.NoClassDefFoundError: Could not initialize class de.hybris.platform.core.threadregistry.SuspendResumeServices
      [java]     at de.hybris.platform.core.threadregistry.RegistrableThread.registerThread(RegistrableThread.java:104)
      [java]     at de.hybris.platform.core.threadregistry.RegistrableThread.run(RegistrableThread.java:131)

I'm using hybris 6.7, Java 1.8 and ant 1.9

has anyone an idea what I could do wrong?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi paul.kalbing and andreeagligorrrr,

Were you able to solve this? I just upgraded to version 6.7 and started having this issue. I have the same Ant and Java version as you and my xml-apis version is already 1.4.01 as Karthik suggested. Still having this error.

I would appreciate the help.

Thanks!

andreeagligorrrr
Explorer
0 Kudos

yes, for me the error came from areco, it was set to fail if impexes failed at initialize. I changed the buildcallbacks.xml of areco to flase if there are errors on init

<yrun failonerror="false">
0 Kudos

Hi @paul.kalbing, @andreeagligorrrr

This is an issue with xml-apis jar defined in /samlsinglesignon/external-dependencies.xml file

Make sure you have this version entry in the above mentioned file.

<xml-apis.version>1.4.01</xml-apis.version>

Also, override this jar (xml-apis-1.4.01.jar) in the lib directory of /samlsinglesignon/ extension.