Skip to Content
0
Former Member
Nov 17, 2017 at 01:38 PM

Error initializing Recipe in 6.5

336 Views

Hello, I'm trying to initialize Hybris recipe b2c_acc in a Linux machine and I'm receiving the error below. Can anybody help?

  [java] INFO  [Thread-0] [HybrisContextFactory] Initializing <<global>> Spring ApplicationContext took: (14.48 μs)
  [java] ERROR [Thread-0] [RegionCacheAdapter] Unable to clear cache. Failed on region null. Last key null null
  [java]  org.springframework.beans.FatalBeanException: Context hybris Global Context Factory  couldn't  be created correctly due to, Error creating bean with name 'defaultSolrServerService' defined in class path resource [global-solrserver-spring.xml]: Invocation of init method failed; nested exception is de.hybris.platform.solrserver.SolrServerException: Error while executing Solr start command for instance [name: default, hostname: localhost, port: 8983]
  [java]     at de.hybris.platform.core.HybrisContextFactory.build(HybrisContextFactory.java:314) ~[coreserver.jar:?]
  [java]     at de.hybris.platform.core.HybrisContextFactory$GlobalContextFactory.buildSelf(HybrisContextFactory.java:186) ~[coreserver.jar:?]
  [java]     at de.hybris.platform.core.HybrisContextFactory$GlobalContextFactory.build(HybrisContextFactory.java:172) ~[coreserver.jar:?]
  [java]     at de.hybris.platform.core.HybrisContextHolder.getGlobalInstanceCached(HybrisContextHolder.java:131) ~[coreserver.jar:?]
  [java]     at de.hybris.platform.core.HybrisContextHolder.getGlobalInstance(HybrisContextHolder.java:110) ~[coreserver.jar:?]
  [java]     at de.hybris.platform.core.Registry.getSingletonGlobalApplicationContext(Registry.java:1079) ~[coreserver.jar:?]
  [java]     at de.hybris.platform.cache.impl.RegionCacheAdapter.getController(RegionCacheAdapter.java:73) ~[coreserver.jar:?]
  [java]     at de.hybris.platform.cache.impl.RegionCacheAdapter.clear(RegionCacheAdapter.java:285) [coreserver.jar:?]
  [java]     at de.hybris.platform.cache.impl.RegionCacheAdapter.destroy(RegionCacheAdapter.java:518) [coreserver.jar:?]
  [java]     at de.hybris.platform.core.AbstractTenant.shutdownCache(AbstractTenant.java:1098) [coreserver.jar:?]
  [java]     at de.hybris.platform.core.AbstractTenant.doShutdown(AbstractTenant.java:962) [coreserver.jar:?]
  [java]     at de.hybris.platform.core.AbstractTenant.doShutDown(AbstractTenant.java:905) [coreserver.jar:?]
  [java]     at de.hybris.platform.core.Registry.destroy(Registry.java:320) [coreserver.jar:?]
  [java]     at de.hybris.platform.util.RedeployUtilities.shutdown(RedeployUtilities.java:75) [coreserver.jar:?]
  [java]     at de.hybris.platform.util.RedeployUtilities$1.internalRun(RedeployUtilities.java:39) [coreserver.jar:?]
  [java]     at de.hybris.platform.core.threadregistry.RegistrableThread.run(RegistrableThread.java:135) [coreserver.jar:?]
  [java] INFO  [Thread-0] [DefaultClusterNodeManagementService] Unregistering assigned cluster node id 0...
  [java]

BUILD FAILED /hybris/hybris/bin/platform/build.xml:123: The following error occurred while executing this line: /hybris/hybris/bin/platform/resources/ant/antmacros.xml:1023: The following error occurred while executing this line: /hybris/hybris/bin/platform/resources/ant/platformadministration.xml:51: The following error occurred while executing this line: /hybris/hybris/bin/platform/resources/ant/antmacros.xml:880: Java returned: 255

Total time: 2 minutes 4 seconds :recipes/b2c_acc_plus:initialize FAILED

FAILURE: Build failed with an exception.

  • Where: Build file '/hybris/installer/recipes/b2c_acc_plus/build.gradle' line: 136

  • What went wrong: Execution failed for task ':recipes/b2c_acc_plus:initialize'.

    external process returned non-zero exit code, command: [sh, -c, export PLATFORM_HOME="/hybris/hybris/bin/platform" && export ANT_OPTS="-Xmx1024m" && export ANT_HOME="/hybris/hybris/bin/platform/apache-ant-1.9.1" && chmod +x "/hybris/hybris/bin/platform/apache-ant-1.9.1/bin/ant" && export PATH="$ANT_HOME/bin:$PATH" && ant initialize]

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 5 mins 38.687 secs Problem with java process - finished with non-zero exit code (1) shybris-poc[root] /hybris/installer # node -v If 'node' is not a typo you can use command-not-found to lookup the package that contains it, like this: cnf node shybris-poc[root] /hybris/installer # . ./install.sh -r b2c_acc_plus initialize