Skip to content

REQ.PROD and RESP.PROD messages do not work with GMSEC Connection "request/reply" API  #42

Description

@pmccauley1

Environment: Java/Windows

When attempting to send a REQ.PROD message using the Connection.publish API, I receive the following error:

2024-337-11:18:52.831 [ERROR] [Publisher.java:258] GmsecException: [2,7,0] : Cannot publish message with non-PUBLISH message kind.

I believe this is correct since this is a product "request/reply" message pair. However, when changing the Connection.publish call to a Connection.request, I do not receive a response message, i.e. the request call times out.

I think this is due to the REQ.PROD message not defining a RESPONSE field, which is what the GMSEC code seems to require in order to register for a response message (see call here and implementation here). Because the REQ.PROD message does not have (and does not allow) a RESPONSE field, the response callback never gets created.

Note that instead of a RESPONSE flag, the REQ.PROD message uses a RESPOND-VIA-MSG field whose values may be MSG.PROD or RESP.PROD. I think the latter needs to be considered by the GMSEC framework when creating a response listener.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions