[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference pamsrc::decmessageq

Title:NAS Message Queuing Bus
Notice:KITS/DOC, see 4.*; Entering QARs, see 9.1; Register in 10
Moderator:PAMSRC::MARCUSEN
Created:Wed Feb 27 1991
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2898
Total number of notes:12363

2796.0. "loop back test error" by TPOVC::GARYCHENG () Mon Mar 03 1997 08:46

    I got an error when running the DMQ 3.0A on VMS.
    The configuration is :
        OpenVMS V6.2 with DMQ 3.0A on one end
        WinNT V3.51 with DMQ 3.1 on the other end
    
    When I run the loop back test on OpenVMS, I got an error:
        Data verification error, word #1 send=1 rcvd=0
        Data verification error, word #2 send=2 rcvd=0
                        .
                        .
                        .
    
    I put a message from OpenVMS to WinNT thru test program provided by
    DMQ. On NT site, the message was received but with some unreconized
    code followed after the message, like "e|u". The code was not always
    same when put-get message between VMS and WinNT. In WinNT event watcher
    an event was captured:
         gcp, unsupported PAMS message type
    
    Where is the problem?
    
    Gary
T.RTitleUserPersonal
Name
DateLines
2796.1loopback not implemented on Unix/NTWHOS01::ELKINDSteve Elkind, Digital SI @WHOMon Mar 03 1997 12:186
    I used to try this too.  The simple answer is that loopback is not
    implmemented on the Unix/NT versions of DmQ.  I thought I was seeing
    success until I spotted the "unsupport PAMS message type" messages in
    my group log file on Unix, then tried turning verification "on" (I
    hadn't bothered with the latter, since applications were already
    exchanging messages successfully).
2796.2loop back test error happened on VMSTPOVC::GARYCHENGTue Mar 04 1997 05:036
    Actually, I did 2 kinds of different test.
    1. Loop back test on OpenVMS, and got an data verification error.
    2. Put-get message between OpenVMS and WinNT thru test program,
       and from WinNT side, I spotted the "unsupport PAMS message type".
    
    I think the problem is on the OpenVMS.
2796.3did you send to gcp?WHOS01::ELKINDSteve Elkind, Digital SI @WHOTue Mar 04 1997 11:1012
    In the past when I tried the loop back test, the VMS side sent
    PAMS-class test messages to the Unix COM server (gcp, queue 100?) with
    a PAMS message type that the gcp did not recognize; it logged them with
    "gcp, unsupport PAMS message type".  The COM server sent back some sort
    of error report or confirmation, which of course is different than the
    test data and will cause verification errors.
    
    When you used the test program (dmqtestc?), did you send data to queue
    100 on NT, or to some application queue on NT?  If the former, then I
    might expect to see the gcp rejecting it out-of-hand, and possibly logging
    the fact that it got something it didn't recognize - unless it was a
    properly composed public or proprietary message API message.
2796.4dmqtestc ?TPOVC::GARYCHENGThu Mar 06 1997 05:0612
    Yes, I use the test program dmqtestc both in VMS and NT.
    In NT, I config a queue with no.1 
    In VMS, I use the temporary queue.
    On most recently testing, I got something weird.
       I put a message from VMS to NT, if the message is less than 8 bytes
       then NT received it correctly. If it >= 8 bytes, then some unexpected
       code, like "|u", will append to the message received.
       When I put message from NT to VMS, the message received always one
       byte longer(always "." in the end).
    Is this normal ?
    
    Gary
2796.5My guess is...KLOVIA::MICHELSENBEA/DEC MessageQ EngineeringFri Mar 07 1997 12:009
re: .4

  Is that NT assumes null-terminated strings and VMS does not.  Therefore, the 
"|u" is some garbage leftover in NT's buffer until a null is encountered.  
Whereas, on VMS it will print exactly the number of characters it received upto
50.  If VMS detects an unprintable (i.e. a null) it will subsitute a ".".


Marty
2796.6parsing null string ?TPOVC::GARYCHENGMon Mar 10 1997 02:098
    re: .5
    
      Will the garbage leftover happen if I write a VB program (ver 4.0)
      and use the DMQ PAMS API to transmit the message between NT and
      VMS ?
      Does my application need to parsing the null string ?
    
    Gary
2796.7DmQ just moves a bunch of bytes...KLOVIA::MICHELSENBEA/DEC MessageQ EngineeringMon Mar 10 1997 11:3116
re: .6


>      Will the garbage leftover happen if I write a VB program (ver 4.0)
>      and use the DMQ PAMS API to transmit the message between NT and
>      VMS ?
>      Does my application need to parsing the null string ?


  Your application decides how to send the data, be it null terminated strings,
counted string or fix length structures.  What I am saying is that I believe
that the test program on NT needs and thus includes a null whereas the VMS test
program does not.


Marty