Foren
Liferay Webservices: problem getting user roles
Andrea Manzi, geändert vor 13 Jahren.
Liferay Webservices: problem getting user roles
New Member Beitrag: 1 Beitrittsdatum: 25.01.11 Neueste Beiträge
Hello,
I'm working in a project where we are still using axis 1.2, and in order to contact Liferay WS I generated axis 1.2 stubs for some of Liferay WSDLs.
When I tried to contact Liferay WS from my Web Service using generated stubs, I have an exception retrieving roles given a user. The Exception is the following:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.ArrayStoreException: [Lorg.gcube.portal.liferay.stubs.roleservice.RoleSoap;
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.lang.ArrayStoreException: [Lorg.gcube.portal.liferay.stubs.roleservice.RoleSoap;
at org.apache.axis.utils.JavaUtils.convert(JavaUtils.java:407)
at org.apache.axis.client.Call.invoke(Call.java:2480)
at org.apache.axis.client.Call.invoke(Call.java:2309)
at org.apache.axis.client.Call.invoke(Call.java:1766)
at org.gcube.portal.liferay.stubs.roleservice.Portal_RoleServiceSoapBindingStub.getUserRoles(Portal_RoleServiceSoapBindingStub.java:562)
at org.gcube.messaging.common.consumer.liferay.LiferayClient.main(LiferayClient.java:76)
{http://xml.apache.org/axis/}hostname:pcd4science3.cern.ch
java.lang.ArrayStoreException: [Lorg.gcube.portal.liferay.stubs.roleservice.RoleSoap;
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.client.Call.invoke(Call.java:1782)
at org.gcube.portal.liferay.stubs.roleservice.Portal_RoleServiceSoapBindingStub.getUserRoles(Portal_RoleServiceSoapBindingStub.java:562)
where org.gcube.portal.liferay.stubs is the package I generated from Lifaray wsdls.
The exception is generated by the following code:
//retrieving user role
RoleSoap [] roles = role.getUserRoles("userid");
where "role" is the RoleServiceSoap service.
I can only see this exception on client side, while on server side no logs are printed.
Have you ever experienced similar problems?
thanks
Andrea
I'm working in a project where we are still using axis 1.2, and in order to contact Liferay WS I generated axis 1.2 stubs for some of Liferay WSDLs.
When I tried to contact Liferay WS from my Web Service using generated stubs, I have an exception retrieving roles given a user. The Exception is the following:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.ArrayStoreException: [Lorg.gcube.portal.liferay.stubs.roleservice.RoleSoap;
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.lang.ArrayStoreException: [Lorg.gcube.portal.liferay.stubs.roleservice.RoleSoap;
at org.apache.axis.utils.JavaUtils.convert(JavaUtils.java:407)
at org.apache.axis.client.Call.invoke(Call.java:2480)
at org.apache.axis.client.Call.invoke(Call.java:2309)
at org.apache.axis.client.Call.invoke(Call.java:1766)
at org.gcube.portal.liferay.stubs.roleservice.Portal_RoleServiceSoapBindingStub.getUserRoles(Portal_RoleServiceSoapBindingStub.java:562)
at org.gcube.messaging.common.consumer.liferay.LiferayClient.main(LiferayClient.java:76)
{http://xml.apache.org/axis/}hostname:pcd4science3.cern.ch
java.lang.ArrayStoreException: [Lorg.gcube.portal.liferay.stubs.roleservice.RoleSoap;
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.client.Call.invoke(Call.java:1782)
at org.gcube.portal.liferay.stubs.roleservice.Portal_RoleServiceSoapBindingStub.getUserRoles(Portal_RoleServiceSoapBindingStub.java:562)
where org.gcube.portal.liferay.stubs is the package I generated from Lifaray wsdls.
The exception is generated by the following code:
//retrieving user role
RoleSoap [] roles = role.getUserRoles("userid");
where "role" is the RoleServiceSoap service.
I can only see this exception on client side, while on server side no logs are printed.
Have you ever experienced similar problems?
thanks
Andrea