Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: unable to call some screenlets
Hi,
i am using liferay screen 3.1.0 with liferay dxp enterprise edition . I am calling some of screenlets from android app , but i am getting like below type error " [http-nio-8080-exec-4][JSONWebServiceServiceAction:121] No JSON web service action with path /screens-web.screensassetentry/get-asset-entries and method null for screens-web " .
as i know screens api inbuilt with liferay dxp then why this error appearing and even i tried with lower screen version but same error is appearing.
Regards
Prakash kumar Singh
Hey,
It seems that your screenlets are using the v62 connectors, you have to specify the version 70 in the server_context file, like in this one
I hope it helps,
Regards
Victor Galan:Hey,
It seems that your screenlets are using the v62 connectors, you have to specify the version 70 in the server_context file, like in this one
I hope it helps,
Regards
I have already used version number 70 in server context file, but still same problem occurring.
Regards
Prakash kumar singh
Hey
Are you setting the versionFactory property in the server_context?
I think something its failing here: https://github.com/liferay/liferay-screens/blob/develop/android/library/src/main/java/com/liferay/mobile/screens/util/ServiceProvider.java#L37
Can you put a breakpoint in that method and see if something its failing?
You can also try setting the version manually with
LiferayServerContext.setPortalVersion(LiferayPortalVersion.VERSION_70);
I hope it helps
Regards
Liferay Screens Compatibility Plugin (CE or EE, depending on your Liferay edition). This app is preinstalled in Liferay 7.0 CE and Liferay DXP instances.
this written on https://dev.liferay.com/develop/reference/-/knowledge_base/7-0/assetlistscreenlet-for-android
as i checked no Compatibility plugin installed with liferay dxp instance .
Even Liferay Screens Compatibility Plugin downloaded from marketplace and used with dxp , but it's not workable.
So now how to proceed ?
Can you share your server_context.xml?
Victor Galan:Can you share your server_context.xml?
Please find attached xml file.
Attachments:
Hey
Did you try to debug this line to see if something is failing?: https://github.com/liferay/liferay-screens/blob/develop/android/library/src/main/java/com/liferay/mobile/screens/util/ServiceProvider.java#L37
If you can provide us a reproducible sample we can debug it
Thanks!
The video is showing a different error than what you indicated, but now it makes more sense.
Can you access your gogo shell and try to run 'lb screens', I think the services are not being activated
We ran 'lb screens' command on the gogo shell and it returned 'No matching bundles found'
Attachments:
I was wrong, Liferay Screens Plugin is not included in the dxp bundle, you have to install it from the marketplace
We had also installed the Screens Plugin once, but it doesn't gets activated. Plugin is attached below...
Attachments:
Hey,
Is it possible for you to use a newer version of the Liferay DXP bundle so? These problems are fixed in those versions
Regards
yes, now we are getting mobile services activated . but in case of asset list screenlet always showing blank list in interactor .
Can you show me how are you doing it?
Victor Galan:Can you show me how are you doing it?
Actually when i am taking classNameid of blog and document media . it is working fine and when i am taking classname id of web content article , it is showing blank list , in my case class name id is 30801. I have attached one image here.
thanks
Prakash
Attachments:
Hi!
There is a listener method
onListRowsReceived
in the Screenlet, can you check if you are receiving any data here?
Victor Galan:Hi!
There is a listener method
onListRowsReceivedin the Screenlet, can you check if you are receiving any data here?
yes , i checked , it showing empty list.
Hi!
are you receiving any data in your connector? can you share the implementation of the connector and the interactor?
Victor Galan:Hi!
are you receiving any data in your connector? can you share the implementation of the connector and the interactor?
i am using liferay asset list screenlet and set 30801 in class name id for journal article list .
There are 2 case:
1.) when i set document media and blog class name id it shows list.
2.) when i set journal article class name id , it does not shows list.
Hi!
Can you try some things to see if the service is working properly, please?
- First of all execute this to check the classNameId:
curl http://screens.liferay.org.es/api/jsonws/classname/fetch-class-name \ -u test@liferay.com:test \ -d value='com.liferay.journal.model.JournalArticle
- Perform the same request that the asset list:
curl http://screens.liferay.org.es/api/jsonws/assetentry/get-entries \ -u test@liferay.com:test11 \ -d entryQuery="{\"classNameIds\":<your-journal-class-name-id>, \"groupIds\":<your-group-id>, \"visible\":true, \"end\":50, \"start\":0}"
Regards
Powered by Liferay™