Highlighted
Honored Contributor.
Honored Contributor.
374 views

BPM 9.3 fails to run window socket protocol

I have a scrpt with window socket protocol.  It is really simple.  Like this

lr_start_transaction("VHIRON3-PING-25");
      lrs_create_socket("socket0", "TCP", "RemoteHost=<IP>:25",  LrsLastArg);
    lrs_close_socket("socket0");   
 lr_end_transaction("VHIRON3-PING-25", LR_AUTO);

It runs fine in Vugen 12.53 or for that matter, any other Vugen I tried.  However, when I ran it in BPM 9.3, it throws an error

02/10/2017 13:24:03 Error: CCI compilation error -c:\programdata\hp\bpm\workspace\invocation\3\2841_1\res\pre_cci.c: Action.c:5: error: undeclared identifier `LrsLastArg'. [MsgId: MERR-19799] 
02/10/2017 13:24:03 Error: CCI compilation error -c:\programdata\hp\bpm\workspace\invocation\3\2841_1\res\pre_cci.c: c:\\programdata\\hp\\bpm\\workspace\\invocation\\3\\2841_1\\res\\combined_hbus_internet_email.c:4: error: 1 errors, not writing pre_cci.ci. [MsgId: MERR-19799] 
02/10/2017 13:24:03 Error: Vuser compilation failed. Please set CCIDebug to Off in CCI section of mdrv.dat file. [MsgId: MERR-19797] 
02/10/2017 13:24:03 Warning: Extension cciext.dll reports error -19797 on call to function ExtPerProcessInitialize [MsgId: MWAR-10485] 
02/10/2017 13:24:03 Error: Thread Context: Call to service of the driver failed, reason - thread context wasn't initialized on this thread. [MsgId: MERR-10176] 

I see a post to add #include "lrs.h".  I already have this file in the globals.h

Any advice ?

Thanks,

Rufeng

 

Rufeng
0 Likes
2 Replies
Highlighted
Honored Contributor.
Honored Contributor.

Re: BPM 9.3 fails to run window socket protocol

It sounds like an instalation issue.

Please check that you have the lrs.h in the include folder on the bpm machine and that the wsrun32.dll version.

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Re: BPM 9.3 fails to run window socket protocol

Thanks.  I figured this out.

You are right that we need to include lrs.h.  In fact this line #include "lrs.h" is the global.h file already.  I found that I need to include this line in the action.c file and then manually zip the directory, then it works.

I created the same script in Vugen 12.02, and exported the zip file. The action.c includes this line, and the script runs on BPM 9.25 and 9.3.

In Vugen 12.50 or 12.53, the export no longer includes this line in the action.c, though it is still in the global.h file.  The script is running fine in Vugen, however it fails in BPM.

Therefore, I am not sure if it is a Vugen issue or BPM issue.  I would think it is a BPM issue since it should recognize #include "lrs.h" is the global.h file. 

Thanks,

Rufeng

Rufeng
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.