Fórum

Service Builder method generation

thumbnail
Junaida Sulaiman, modificado 9 Anos atrás.

Service Builder method generation

New Member Postagens: 14 Data de Entrada: 27/05/14 Postagens Recentes
I've seen thread on this issue but there's no further reply, so I create new thread for this.

Did anyone able to solved this?

I encounter this problem right after applying the patch from https://issues.liferay.com/browse/LPS-13073.
The patch works but then this error appears.


ERROR [ClassLoaderProxy:73] java.lang.NoSuchMethodException: com.leadingside.portal.barterfli.portlet.action.service.Msg_mailInboxLocalService.viewMailInbox(com.leadingside.portal.barterfli.portlet.action.model.Msg_mailInbox)
java.lang.NoSuchMethodException: com.leadingside.portal.barterfli.portlet.action.service.Msg_mailInboxLocalService.viewMailInbox(com.leadingside.portal.barterfli.portlet.action.model.Msg_mailInbox)
        at java.lang.Class.getMethod(Unknown Source)
        at com.liferay.portal.kernel.util.MethodCache._get(MethodCache.java:107)
        at com.liferay.portal.kernel.util.MethodCache.get(MethodCache.java:62)
        at com.liferay.portal.kernel.util.MethodHandler.invoke(MethodHandler.java:79)
        at com.liferay.portal.kernel.util.ClassLoaderProxy.invoke(ClassLoaderProxy.java:67)


I have moved my lib to tomcat/lib/ext as suggested in here https://www.liferay.com/community/forums/-/message_boards/message/12774890 but still got same error.

Using Liferay portal 6.0.6 + tomcat

Thanks
Oliver Bayer, modificado 9 Anos atrás.

RE: Service Builder method generation

Liferay Master Postagens: 894 Data de Entrada: 18/02/09 Postagens Recentes
Hi Junaida,

maybe you're running into a similar classloading issue I've faced a while ago.
Take a look at the following jira ticket.

HTH Oli
thumbnail
Junaida Sulaiman, modificado 9 Anos atrás.

RE: Service Builder method generation

New Member Postagens: 14 Data de Entrada: 27/05/14 Postagens Recentes
Hi Oli,

Thanks. I've tried the suggested approach but the problem still persists.

The NoSuchMethodException error in my case comes from the xx-service portlet jar (jar created by the service builder). I've checked the jar files - the class and method is there. I really am not sure why it cant find the method.
thumbnail
Junaida Sulaiman, modificado 9 Anos atrás.

RE: Service Builder method generation

New Member Postagens: 14 Data de Entrada: 27/05/14 Postagens Recentes
Hi,

FYI, Im currently in the process of migrating 5.2.3 to 6.0.6.

I'm stuck with the above mentioned error.

I've tried:
1. Re-upgrading the db (success)
2. Re-Build service & deploy ext plugins (success)
3. Re-Build & deploy all service portlets and other portlets.

But the problem still persist emoticon

Is this a bug in 6.0.6?

Help, please.

Thanks.