hybris应用程序中的stackoverflow问题

时间:2016-12-29 06:26:43

标签: java hybris

我们有时会收到stackoverflow错误。 (无法在本地系统中复制)。

以下登录错误文件:

error getting de.hybris.platform.jalo.user.UserGroup.members : null
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.599 | [mde.hybris.platform.jalo.JaloSystemException: error getting de.hybris.platform.jalo.user.UserGroup.members : null[HY-0]
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.599 |     at de.hybris.platform.jalo.type.ReflectionAttributeAccess$AttributeMethod.invokeGetter(ReflectionAttributeAccess.java:770)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.599 |     at de.hybris.platform.jalo.type.ReflectionAttributeAccess.getValue(ReflectionAttributeAccess.java:925)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.599 |     at de.hybris.platform.jalo.Item.getAttribute(Item.java:1840)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.599 |     at de.hybris.platform.servicelayer.internal.converter.impl.ItemModelConverter.readSingleAttribute(ItemModelConverter.java:1157)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.599 |     at de.hybris.platform.servicelayer.internal.converter.impl.ItemAttributeProvider.getAttribute(ItemAttributeProvider.java:101)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.599 |     at de.hybris.platform.servicelayer.model.ItemModelContextImpl.loadUnlocalizedAttribute(ItemModelContextImpl.java:236)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.599 |     at de.hybris.platform.servicelayer.model.ItemModelContextImpl.getValue(ItemModelContextImpl.java:227)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.599 |     at de.hybris.platform.core.model.security.PrincipalGroupModel.getMembers(PrincipalGroupModel.java:148)

INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 |     at java.lang.Thread.run(Thread.java:745)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 | Caused by: java.lang.StackOverflowError
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 |     at java.lang.String.toUpperCase(String.java:2833)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 |     at de.hybris.platform.persistence.flexiblesearch.FromClause.translateNested(FromClause.java:58)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 |     at de.hybris.platform.persistence.flexiblesearch.ParsedText$2.translate(ParsedText.java:269)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 |     at de.hybris.platform.persistence.flexiblesearch.FlexibleSearchTools.replace(FlexibleSearchTools.java:310)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 |     at de.hybris.platform.persistence.flexiblesearch.ParsedText.translate(ParsedText.java:263)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 |     at de.hybris.platform.persistence.flexiblesearch.FromClause.translate(FromClause.java:48)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 |     at de.hybris.platform.persistence.flexiblesearch.ParsedQuery.translate(ParsedQuery.java:401)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 |     at de.hybris.platform.persistence.flexiblesearch.ParsedQuery.getTranslatedQuery(ParsedQuery.java:181)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 |     at de.hybris.platform.persistence.flexiblesearch.QueryParser.translateQuery(QueryParser.java:229)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 |     at de.hybris.platform.jalo.flexiblesearch.FlexibleSearch.translate(FlexibleSearch.java:2007)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 |     at de.hybris.platform.jalo.flexiblesearch.FlexibleSearch.search(FlexibleSearch.java:1412)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 |     at de.hybris.platform.jalo.link.LinkManager.getLinkedItems(LinkManager.java:422)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 |     at de.hybris.platform.jalo.link.LinkManager.getLinkedItems(LinkManager.java:368)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 |     at de.hybris.platform.jalo.link.LinkManager.getLinkedItems(LinkManager.java:338)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 |     at de.hybris.platform.jalo.link.LinkManager.getLinkedItems(LinkManager.java:249)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 |     at de.hybris.platform.jalo.security.PrincipalGroup$1.compute(PrincipalGroup.java:85)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 |     at de.hybris.platform.cache.AbstractCacheUnit.privateGetNoLock(AbstractCacheUnit.java:302)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 |     at de.hybris.platform.cache.AbstractCacheUnit.privateGet(AbstractCacheUnit.java:275)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 |     at de.hybris.platform.cache.AbstractCacheUnit.get(AbstractCacheUnit.java:182)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 |     at de.hybris.platform.jalo.JaloTypeCacheUnit.getCached(JaloTypeCacheUnit.java:86)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 |     at de.hybris.platform.jalo.security.PrincipalGroup.getMembers(PrincipalGroup.java:96)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 |     at de.hybris.platform.jalo.user.UserManager.loadAllAdminUserPKs(UserManager.java:1090)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 |     at de.hybris.platform.jalo.user.UserManager.isAdminNoCache(UserManager.java:1047)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 |     at de.hybris.platform.jalo.user.UserManager.isAdmin(UserManager.java:1018)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 |     at de.hybris.platform.jalo.user.User.isAdmin(User.java:1075)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 |     at de.hybris.platform.jalo.flexiblesearch.FlexibleSearch.getUserFilters(FlexibleSearch.java:1891)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 |     at de.hybris.platform.jalo.flexiblesearch.FlexibleSearch.getQueryFilters(FlexibleSearch.java:1047)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 |     at de.hybris.platform.persistence.flexiblesearch.typecache.impl.DefaultFlexibleSearchTypeCacheProvider.getQueryFilters(DefaultFlexibleSearchTypeCacheProvider.java:185)
INFO   | jvm 1    | main    | 2016/12/15 13:28:51.600 |     at de.hybris.platform.persistence.flexiblesearch.ParsedType.createParsedSubtypesAndRestrictionClauses(ParsedType.java:187)

可能出现什么问题?

1 个答案:

答案 0 :(得分:0)

由于未正确终止的递归调用,可能会出现此错误。基于您发布的堆栈跟踪,很可能在您的代码中的某个位置,您以递归方式调用PrincipalGroupModel.getMembers。