on 2017 Jun 22 6:41 PM
Build is successful but I see this error kind of messages frequently in Hybris 6.3.0.4.
Can any one tell me why I am getting this. Any problem if i get this kind of
=================================================================================
server: [echo] [echo] Configuring server at C:\Hybris_6\hybris\bin\platform/tomcat [echo] Using config set at C:\Hybris_6\hybris\config/tomcat [echo] [echo] copying from C:\Hybris_6\hybris\config/tomcat to C:\Hybris_6\hybris\bin\platform/tomcat [copy] Copying 12 files to C:\Hybris_6\hybris\bin\platform\tomcat [copy] Copying 3 files to C:\Hybris_6\hybris\bin\platform\tomcat [copy] Copying 5 files to C:\Hybris_6\hybris\bin\platform\tomcat [copy] Copying 1 file to C:\Hybris_6\hybris\bin\platform\tomcat\lib [mkdir] Created dir: C:\Hybris_6\hybris\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: [acceleratorcmshmc, acceleratorserviceshmc, b2bacceleratorserviceshmc, b2bapprovalprocesshmc, b2bcommercehmc, basecommercehmc, cms2hmc, commercesearchhmc, commerceserviceshmc, customerreviewhmc, hmc, platformhmc, promotionshmc, solrfacetsearchhmc, ticketsystemhmc, voucherhmc]
[java] ---------------------------------------------------------------
[java] Could not map vmid to user name
[java] shutting down hybris registry..
[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: [acceleratorcmshmc, acceleratorserviceshmc, b2bacceleratorserviceshmc, b2bapprovalprocesshmc, b2bcommercehmc, basecommercehmc, cms2hmc, commercesearchhmc, commerceserviceshmc, customerreviewhmc, hmc, platformhmc, promotionshmc, solrfacetsearchhmc, ticketsystemhmc,
voucherhmc]
[java] ---------------------------------------------------------------
[java] ERROR StatusLogger Cannot start ShutdownCallbackRegistry, already shutting down.
[java] ERROR StatusLogger Unable to create class de.hybris.platform.util.logging.log4j2.HybrisLog4j2LoggerContextFactory specified in file:/C:/Hybris_6/hybris/bin/platform/ext/core/resources/META-INF/log4j-provider.properties
[java] java.lang.IllegalStateException: Shutdown in progress
[java] at java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:66)
[java] at java.lang.Runtime.addShutdownHook(Runtime.java:211)
[java] at org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry.addShutdownHook(DefaultShutdownCallbackRegistry.java:151)
[java] at org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry.start(DefaultShutdownCallbackRegistry.java:137)
[java] at org.apache.logging.log4j.core.impl.Log4jContextFactory.initializeShutdownCallbackRegistry(Log4jContextFactory.java:125)
[java] at org.apache.logging.log4j.core.impl.Log4jContextFactory.<init>(Log4jContextFactory.java:92)
[java] at org.apache.logging.log4j.core.impl.Log4jContextFactory.<init>(Log4jContextFactory.java:58)
[java] at de.hybris.platform.util.logging.log4j2.HybrisLog4j2LoggerContextFactory.<init>(HybrisLog4j2LoggerContextFactory.java:22)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
[java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[java] at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
[java] at java.lang.Class.newInstance(Class.java:442)
[java] at org.apache.logging.log4j.LogManager.<clinit>(LogManager.java:94)
[java] at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:103)
[java] at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:43)
[java] at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:42)
[java] at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:29)
[java] at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:358)
[java] at de.hybris.platform.util.logging.HybrisLogger.<init>(HybrisLogger.java:104)
[java] at de.hybris.platform.util.logging.HybrisLoggerFactory.makeNewLoggerInstance(HybrisLoggerFactory.java:31)
[java] at org.apache.log4j.Hierarchy.getLogger(Hierarchy.java:275)
[java] at org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:670)
[java] at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:516)
[java] at de.hybris.platform.core.Log4JUtils.readConfig(Log4JUtils.java:103)
[java] at de.hybris.platform.core.Log4JUtils.startup(Log4JUtils.java:56)
[java] at de.hybris.platform.core.Registry.<clinit>(Registry.java:70)
[java] at de.hybris.platform.util.RedeployUtilities.shutdown(RedeployUtilities.java:74)
[java] at de.hybris.platform.util.RedeployUtilities$1.run(RedeployUtilities.java:38)
[java] ERROR StatusLogger Cannot start ShutdownCallbackRegistry, already shutting down.
[java] ERROR StatusLogger Unable to create class org.apache.logging.log4j.core.impl.Log4jContextFactory specified in jar:file:/C:/Hybris_6/hybris/bin/platform/ext/core/lib/log4j-core-2.7.jar!/META-INF/log4j-provider.properties
[java] java.lang.IllegalStateException: Shutdown in progress
[java] at java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:66)
[java] at java.lang.Runtime.addShutdownHook(Runtime.java:211)
[java] at org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry.addShutdownHook(DefaultShutdownCallbackRegistry.java:151)
[java] at org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry.start(DefaultShutdownCallbackRegistry.java:137)
[java] at org.apache.logging.log4j.core.impl.Log4jContextFactory.initializeShutdownCallbackRegistry(Log4jContextFactory.java:125)
[java] at org.apache.logging.log4j.core.impl.Log4jContextFactory.<init>(Log4jContextFactory.java:92)
[java] at org.apache.logging.log4j.core.impl.Log4jContextFactory.<init>(Log4jContextFactory.java:58)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
[java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[java] at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
[java] at java.lang.Class.newInstance(Class.java:442)
[java] at org.apache.logging.log4j.LogManager.<clinit>(LogManager.java:94)
[java] at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:103)
[java] at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:43)
[java] at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:42)
[java] at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:29)
[java] at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:358)
[java] at de.hybris.platform.util.logging.HybrisLogger.<init>(HybrisLogger.java:104)
[java] at de.hybris.platform.util.logging.HybrisLoggerFactory.makeNewLoggerInstance(HybrisLoggerFactory.java:31)
[java] at org.apache.log4j.Hierarchy.getLogger(Hierarchy.java:275)
[java] at org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:670)
[java] at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:516)
[java] at de.hybris.platform.core.Log4JUtils.readConfig(Log4JUtils.java:103)
[java] at de.hybris.platform.core.Log4JUtils.startup(Log4JUtils.java:56)
[java] at de.hybris.platform.core.Registry.<clinit>(Registry.java:70)
[java] at de.hybris.platform.util.RedeployUtilities.shutdown(RedeployUtilities.java:74)
[java] at de.hybris.platform.util.RedeployUtilities$1.run(RedeployUtilities.java:38)
[java] ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
[java] java.lang.ExceptionInInitializerError
[java] at de.hybris.platform.util.RedeployUtilities.shutdown(RedeployUtilities.java:74)
[java] at de.hybris.platform.util.RedeployUtilities$1.run(RedeployUtilities.java:38)
[java] Caused by: java.lang.ClassCastException: org.apache.logging.log4j.simple.SimpleLoggerContext cannot be cast to de.hybris.platform.util.logging.log4j2.HybrisLoggerContext
[java] at de.hybris.platform.util.logging.HybrisLogger.setLevel(HybrisLogger.java:512)
[java] at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:753)
[java] at org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:672)
[java] at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:516)
[java] at de.hybris.platform.core.Log4JUtils.readConfig(Log4JUtils.java:103)
[java] at de.hybris.platform.core.Log4JUtils.startup(Log4JUtils.java:56)
[java] at de.hybris.platform.core.Registry.<clinit>(Registry.java:70)
[java] ... 2 more
[java] Exception in thread "Thread-0" java.lang.ClassCastException: org.apache.logging.log4j.simple.SimpleLoggerContext cannot be cast to de.hybris.platform.util.logging.log4j2.HybrisLoggerContext
[java] at de.hybris.platform.util.RedeployUtilities.shutdownLog4j2(RedeployUtilities.java:85)
[java] at de.hybris.platform.util.RedeployUtilities.shutdown(RedeployUtilities.java:80)
[java] at de.hybris.platform.util.RedeployUtilities$1.run(RedeployUtilities.java:38)
all: [echo] Build finished on 22-June-2017 21:05:32. [echo]
BUILD SUCCESSFUL Total time: 6 minutes 47 seconds
C:\Hybris_6\hybris\bin\platform>
LoggerContextFactory = de.hybris.platform.util.logging.log4j2.HybrisLog4j2LoggerContextFactory Log4jAPIVersion = 2.0.0 FactoryPriority = 20
Request clarification before answering.
Hello this issue is fixed in 6.3.0.5 , see https://jira.hybris.com/browse/PATCH-3403
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
One reason this happens is somehow the server process crashed without removing ${HYBRIS_DATA_DIR}/hybristomcat.java.pid. When that happens, the next time you perform a full build or ant server, the build process thinks your server is running and tries to shut it down, only to be fooled. Once in that state all sorts of silly things ensue. Just delete the PID file and try again. For reference you can see platform/resources/ant/deploying.xml.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Roy,
Today i have seen these files in the data directory,
hybristomcat.java.id hybristomcat.java.pid hybristomcat.java.status hybristomcat.lock
I got the similar issue again, and I deleted this "hybristomcat.java.pid" file again do the ant clean all, not seen those issues now but that .pid file got generated again.
I don't think the problem is resolved permanently.
Is it a bug in 6.3.0.4 version ??
Same happen here on 6.3.0.0. Removing the file the ant all show no errors. But when launching hybris this is the stack trace.
GRAVE: Error configurando escuchador de aplicación de clase com.fsp.ecommerce.storefront.filters.HybrisStorefrontContextLoaderListener
java.lang.ExceptionInInitializerError
at de.hybris.platform.util.logging.log4j2.HybrisLog4j2ConfigurationFactory.getConfiguration(HybrisLog4j2ConfigurationFactory.java:55)
at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:427)
at org.apache.logging.log4j.core.config.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:265)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:599)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:620)
at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:226)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:152)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)
at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:103)
at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:43)
at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:42)
at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:29)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:358)
Now, I placed the file back and the ant all show no errors and hybris starts with no errors. This is so weird. We experienced this inconsistency on different environments, some show the error on the ant all, some does not.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kumar,
I also seen this error. But it was not giving any problem. Still i was able to start the server. Again in Hybris 6.4 on the same location i didnt find this file. It is only exists in 6.3.
You can remove this file to avoid this error.
C:/Hybris_6/hybris/bin/platform/ext/core/resources/META-INF/log4j-provider.properties
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.