Skip to content

Instantly share code, notes, and snippets.

@ethanbustad
Created August 6, 2014 23:01
Show Gist options
  • Save ethanbustad/b647778146bddc378016 to your computer and use it in GitHub Desktop.
Save ethanbustad/b647778146bddc378016 to your computer and use it in GitHub Desktop.
stacktrace
java.lang.NoSuchMethodError: com.liferay.alloy.mvc.AlloyServiceInvoker.fetchModel(J)Ljava/lang/Object;
at com.liferay.alloy.mvc.BaseAlloyIndexer.doReindex(BaseAlloyIndexer.java:95)
at com.liferay.portal.kernel.search.BaseIndexer.reindex(BaseIndexer.java:433)
at com.liferay.portal.search.SearchPermissionCheckerImpl.doUpdatePermissionFields(SearchPermissionCheckerImpl.java:469)
at com.liferay.portal.search.SearchPermissionCheckerImpl.updatePermissionFields(SearchPermissionCheckerImpl.java:142)
at com.liferay.portal.kernel.search.SearchEngineUtil.updatePermissionFields(SearchEngineUtil.java:807)
at com.liferay.portal.service.impl.ResourceLocalServiceImpl.addResources(ResourceLocalServiceImpl.java:913)
at com.liferay.portal.service.impl.ResourceLocalServiceImpl.addResources(ResourceLocalServiceImpl.java:265)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
@ethanbustad
Copy link
Author

Found some help here: http://stackoverflow.com/questions/2945862/interpreting-java-lang-nosuchmethoderror-message

Seems that somehow java lost access to AlloyServiceInvoker? After adding a system out to see if I had access to AlloyServiceInvoker.class.getMethods(), and if so, what they were, it randomly started working, and I haven't been able to reproduce since.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment