RE: unable to call some screenlets

thumbnail
Prakash Kumar Singh, modified 7 Years ago. Junior Member Posts: 85 Join Date: 1/30/15 Recent Posts

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 

thumbnail
Victor Galan, modified 7 Years ago. Regular Member Posts: 144 Join Date: 6/14/16 Recent Posts

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

thumbnail
Prakash Kumar Singh, modified 7 Years ago. Junior Member Posts: 85 Join Date: 1/30/15 Recent Posts
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 

 

 

 

 

thumbnail
Victor Galan, modified 7 Years ago. Regular Member Posts: 144 Join Date: 6/14/16 Recent Posts

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

 

thumbnail
Prakash Kumar Singh, modified 7 Years ago. Junior Member Posts: 85 Join Date: 1/30/15 Recent Posts

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 ?

thumbnail
Victor Galan, modified 7 Years ago. Regular Member Posts: 144 Join Date: 6/14/16 Recent Posts

Can you share your server_context.xml?

thumbnail
Prakash Kumar Singh, modified 7 Years ago. Junior Member Posts: 85 Join Date: 1/30/15 Recent Posts
Victor Galan:

Can you share your server_context.xml?

Please find attached xml file.

 

 

 

 

thumbnail
Victor Galan, modified 7 Years ago. Regular Member Posts: 144 Join Date: 6/14/16 Recent Posts

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!

thumbnail
Prakash Kumar Singh, modified 7 Years ago. Junior Member Posts: 85 Join Date: 1/30/15 Recent Posts

Video file URL is Here. In which we have shown what we are doing.

thumbnail
Victor Galan, modified 7 Years ago. Regular Member Posts: 144 Join Date: 6/14/16 Recent Posts

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

thumbnail
Prakash Kumar Singh, modified 7 Years ago. Junior Member Posts: 85 Join Date: 1/30/15 Recent Posts

We ran 'lb screens' command on the gogo shell and it returned 'No matching bundles found'

Attachments:

thumbnail
Victor Galan, modified 7 Years ago. Regular Member Posts: 144 Join Date: 6/14/16 Recent Posts

I was wrong, Liferay Screens Plugin is not included in the dxp bundle, you have to install it from the marketplace

 

thumbnail
Prakash Kumar Singh, modified 7 Years ago. Junior Member Posts: 85 Join Date: 1/30/15 Recent Posts

We had also installed the Screens Plugin once, but it doesn't gets activated. Plugin is attached below...

thumbnail
Victor Galan, modified 7 Years ago. Regular Member Posts: 144 Join Date: 6/14/16 Recent Posts

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

 

thumbnail
Prakash Kumar Singh, modified 7 Years ago. Junior Member Posts: 85 Join Date: 1/30/15 Recent Posts

yes, now we are getting mobile services activated . but in case of asset list screenlet always showing blank list in interactor . 

thumbnail
Victor Galan, modified 7 Years ago. Regular Member Posts: 144 Join Date: 6/14/16 Recent Posts

Can you show me how are you doing it?

thumbnail
Prakash Kumar Singh, modified 7 Years ago. Junior Member Posts: 85 Join Date: 1/30/15 Recent Posts
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 

 

 

 

 

thumbnail
Victor Galan, modified 7 Years ago. Regular Member Posts: 144 Join Date: 6/14/16 Recent Posts

Hi!

 

There is a listener method

onListRowsReceived

in the Screenlet, can you check if you are receiving any data here?

thumbnail
Prakash Kumar Singh, modified 7 Years ago. Junior Member Posts: 85 Join Date: 1/30/15 Recent Posts
Victor Galan:

Hi!

 

There is a listener method

onListRowsReceived

in the Screenlet, can you check if you are receiving any data here?

yes , i checked , it showing empty list. 

 

 

 

 

thumbnail
Victor Galan, modified 7 Years ago. Regular Member Posts: 144 Join Date: 6/14/16 Recent Posts

Hi!

 

are you receiving any data in your connector? can you share the implementation of the connector and the interactor?

thumbnail
Prakash Kumar Singh, modified 7 Years ago. Junior Member Posts: 85 Join Date: 1/30/15 Recent Posts
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. 

 

 

 

thumbnail
Victor Galan, modified 7 Years ago. Regular Member Posts: 144 Join Date: 6/14/16 Recent Posts

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