NoSuchElementException getting OrganizationLocalServiceUtil class

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

NoSuchElementException getting OrganizationLocalServiceUtil class

rubenlopez
Hi,

I'm trying to configure Orbeon in a Liferay 7 server using a Mysql database
but every time I try to add the Orbeon portlet to a page I get the following
exception:

13:33:10,821 ERROR [http-nio-8080-exec-9][render_portlet_jsp:131] null
java.util.NoSuchElementException: None.get
        at scala.None$.get(Option.scala:347)
        at scala.None$.get(Option.scala:345)
        at
org.orbeon.oxf.portlet.liferay.LiferayAPI$class.liferayClass(LiferayAPI.scala:53)
        at
org.orbeon.oxf.portlet.liferay.LiferayAPI$class.liferayMethod(LiferayAPI.scala:56)
        at
org.orbeon.oxf.portlet.liferay.LiferayAPI$class.org$orbeon$oxf$portlet$liferay$LiferayAPI$$getUserOrganizationsMethod(LiferayAPI.scala:62)

Looking at the Orbeon source code it seems that it's not able to get the
class for the OrganizationLocalServiceUtil when it does (className ⇒
Try(Class.forName(className))) collectFirst.

I've added the provider and datasource properties to connect to mysql and
I've deployed the orbeon.war webapp together with the orbeon-proxy into the
Liferay container, but it doesn't seem to be enough. Am I missing any
configuration?

Thanks,

Ruben


--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: NoSuchElementException getting OrganizationLocalServiceUtil class

Erik Bruchez
Administrator
Which  Liferay SP is this? SP3 or SP4?

-Erik

--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: NoSuchElementException getting OrganizationLocalServiceUtil class

rubenlopez
It's SP4

--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: NoSuchElementException getting OrganizationLocalServiceUtil class

Erik Bruchez
Administrator
Got it. This is a known issue then. We don't support that version yet:

    https://github.com/orbeon/orbeon-forms/issues/3314

-Erik

--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: NoSuchElementException getting OrganizationLocalServiceUtil class

rubenlopez
Thanks.

I've managed to fix it by adding
/Import-Package=com.liferay.portal.kernel.service/ to the
liferay-plugin-package.properties of the proxy-portlet.

It seemed to be a missing dependency. I hope it helps.

Regards.

--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: NoSuchElementException getting OrganizationLocalServiceUtil class

Erik Bruchez
Administrator
Great to hear!

`com.liferay.portal.kernel.util` is used as well. Did you need to add that
pakcage as well?

-Erik

--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].