Skip to Content
author's profile photo Former Member
Former Member

Local Hybris instance with MySQL

After switching from hsqldb to MySQL (Version 5.7), adjust the project.properties, "ant updatesystem" and starting hybrisserver without any failure, it breaks after calling the website on localhost with those message on Tomcats Stack Trace:

java.lang.NullPointerException java.util.concurrent.ConcurrentHashMap.get(Unknown Source) de.hybris.platform.persistence.property.PersistenceInfoCache.getCachedExternalTableTypes(PersistenceInfoCache.java:70) de.hybris.platform.persistence.property.DBPersistenceManager.getExternalTableTypes(DBPersistenceManager.java:883) de.hybris.platform.persistence.flexiblesearch.typecache.impl.DefaultFlexibleSearchTypeCacheProvider.getExternalTableTypes(DefaultFlexibleSearchTypeCacheProvider.java:137) de.hybris.platform.persistence.flexiblesearch.ParsedType.(ParsedType.java:93) de.hybris.platform.persistence.flexiblesearch.ParsedType.(ParsedType.java:78) de.hybris.platform.persistence.flexiblesearch.FromClause.createSingleType(FromClause.java:89) de.hybris.platform.persistence.flexiblesearch.FromClause.translateNested(FromClause.java:73) de.hybris.platform.persistence.flexiblesearch.ParsedText$2.translate(ParsedText.java:269) de.hybris.platform.persistence.flexiblesearch.FlexibleSearchTools.replace(FlexibleSearchTools.java:310) de.hybris.platform.persistence.flexiblesearch.ParsedText.translate(ParsedText.java:263) de.hybris.platform.persistence.flexiblesearch.FromClause.translate(FromClause.java:48) de.hybris.platform.persistence.flexiblesearch.ParsedQuery.translate(ParsedQuery.java:401) de.hybris.platform.persistence.flexiblesearch.ParsedQuery.getTranslatedQuery(ParsedQuery.java:181) de.hybris.platform.persistence.flexiblesearch.QueryParser.translateQuery(QueryParser.java:229) de.hybris.platform.jalo.flexiblesearch.FlexibleSearch.translate(FlexibleSearch.java:2007) de.hybris.platform.jalo.flexiblesearch.FlexibleSearch.search(FlexibleSearch.java:1412) de.hybris.platform.jalo.flexiblesearch.FlexibleSearch.search(FlexibleSearch.java:1628) de.hybris.platform.servicelayer.search.impl.DefaultFlexibleSearchService$2.execute(DefaultFlexibleSearchService.java:374) de.hybris.platform.servicelayer.search.impl.DefaultFlexibleSearchService$2.execute(DefaultFlexibleSearchService.java:1) de.hybris.platform.servicelayer.session.impl.DefaultSessionService.executeInLocalView(DefaultSessionService.java:91) de.hybris.platform.servicelayer.search.impl.DefaultFlexibleSearchService.getJaloResult(DefaultFlexibleSearchService.java:363) de.hybris.platform.servicelayer.search.impl.DefaultFlexibleSearchService.search(DefaultFlexibleSearchService.java:164) de.hybris.platform.servicelayer.internal.dao.AbstractItemDao.search(AbstractItemDao.java:70) de.hybris.platform.cms2.servicelayer.daos.impl.DefaultCMSSiteDao.findAllCMSSites(DefaultCMSSiteDao.java:42) de.hybris.platform.cms2.servicelayer.services.impl.DefaultCMSSiteService.getSites(DefaultCMSSiteService.java:317) de.hybris.platform.cms2.servicelayer.services.impl.DefaultCMSSiteService.getSiteForURL(DefaultCMSSiteService.java:269) de.hybris.platform.acceleratorcms.context.impl.DefaultContextInformationLoader.initializeSiteFromRequest(DefaultContextInformationLoader.java:98) de.sick.storefront.filters.cms.CMSSiteFilter.updateSessionSite(CMSSiteFilter.java:212) de.sick.storefront.filters.cms.CMSSiteFilter.processNormalRequest(CMSSiteFilter.java:169) de.sick.storefront.filters.cms.CMSSiteFilter.doFilterInternal(CMSSiteFilter.java:98) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:226) de.hybris.platform.servicelayer.web.SessionFilter.doFilter(SessionFilter.java:73) de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:226) de.hybris.platform.servicelayer.web.Log4JFilter.doFilter(Log4JFilter.java:47) de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:226) de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain.doFilterInternal(AbstractPlatformFilterChain.java:156) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344) org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) de.hybris.platform.servicelayer.web.XSSFilter.doFilter(XSSFilter.java:230)

The console displays some more information:
FATAL: Servlet.service() for servlet [DispatcherServlet] in context with path [] threw exception [Error while processing internal filterchain. Exception occurred at chain position: 3 of 15. Current filter: 'de.sick.storefront.filters.cms.CMSSiteFilter@889fd51'!; nested exception is java.lang.NullPointerException] with root cause java.lang.NullPointerException

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 19, 2015 at 09:48 AM

    From your description I can see that you haven't run 'ant initialize -Dtenant=master'

    You could try running this command to create your hybris db schema and data within your new mysql instance.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 18, 2015 at 03:39 PM

    I'd also note that you aren't using a supported mysql version. Depending on what hybris version you are using, our latest 5.5.1 release only supports mysql 5.5 and 5.6. See https://wiki.hybris.com/display/general/Third-Party+Compatibility+-+Release+5.5.1

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 18, 2015 at 03:27 PM

    Hi Felix,

    have you called the storefront with the correct url parameter (e.g. "/?site=apparel-de") ?

    best regards, Raphael

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 19, 2015 at 02:26 PM

    Thank you, Paul. That was the missing I was searching for!

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.