Page 1 of 1

Integrator Repository Viewer - No Data Message

Posted: Tue Feb 07, 2017 5:19 am
by jyoung
I'm experimenting with creating JSON types and was following along in the LANSA Integrator Guide 7.22.2 where it mentioned using the Repository Viewer to map JSON Elements to LANSA Fields.

I am getting a "No data returned from service" error in the JSMDirect logs.

Here is what I've done so far:

Created a Repository Project and updated the File List URL in the Configuration Tab to point to my local server.
Created JSMLR04 (File List) from 7.24.2.

Side Note: It would have been really helpful if the documentation mentioned that the Functions have to be RDML not RDMLX, or better yet, already installed.

Added the direct service.
Capture1.PNG
Capture1.PNG (19.05 KiB) Viewed 5458 times
Refresh the Files and I get a "JSMDirect Message"
Capture2.PNG
Capture2.PNG (22.15 KiB) Viewed 5458 times
Looked at the jsmdirect.log in C:\Program Files (x86)\LANSA\Integrator\JSMCGI and see the following:
06324 2017-02-06 12:01:48.335 ERR3014 JSMLR04 LOCALHOST:8080 127.0.0.1 No data returned from service
06324 2017-02-06 12:01:48.344 EXECUTE JSMLR04 LOCALHOST:8080 127.0.0.1 ERROR
There are of course quite a few files in the Repository.

The JSON Service Tutorial, when mapping the fields, it does not mention using the Repository Viewer.

Is using the Repository Viewer something that is recommended? If so, how do I get it "Repository Viewer" to work?

Re: Integrator Repository Viewer - No Data Message

Posted: Thu Feb 09, 2017 10:25 am
by alick
Is using the Repository Viewer something that is recommended ?

It is personal preference, if you have a small number of fields or already have the field names available then it might be easier to type them in.

The repository viewer requires configuration and setting up of the backend RDML/RDMLX programs to read the repository.

The no data message means that no data was returned to the HTTP server, the LANSA program either did not start or ended abnormally.

You will need to enable tracing and determine the cause.

Re: Integrator Repository Viewer - No Data Message

Posted: Fri Feb 10, 2017 1:51 am
by jyoung
Hi, The Repository Viewer is not required. You can type the field names in. However, the documentation here http://docs.lansa.com/14/EN/lansa093/in ... 9_0090.htm in step 9 states:
9. Assign program fields to the JSON object fields. You can also use the 7.24 Repository Viewer to drag and drop a LANSA field name onto a node.
Thinking that would be a better and less error prone option, I wanted to try it out.

I followed your suggestion and enabled tracing and discovered an error was being thrown.
Feature is not enabled : integrator.service.class.com.lansa.jsm.service.RFIDataSourceService (0K6da1YGjTojzHbDRl4ThV7Z)
com.lansa.jsm.JSMFatalException: JSM server is not licenced for service
at com.lansa.jsm.JSMManager.long(Unknown Source)
at com.lansa.jsm.f.if(Unknown Source)
at com.lansa.jsm.f.if(Unknown Source)
at com.lansa.jsm.f.run(Unknown Source)
I then double checked the code that the documentation had suggested http://docs.lansa.com/14/EN/lansa093/in ... 9_0145.htm and sure enough it is using the RFIDataSource service which is NOT included in the default Integrator licensing.

I think the documentation should be updated to to one of the following:
  • Do not include the text about the repository view
  • Change the documented code to not use the RFIDataSource and instead use on the the supplied "default" services like the HttpService
  • Include the RFIDataSource as part of the default Integrator license
Thanks,
Joe