This section outlines some common problems that can arise when working
with user-defined extensions. It contains advice for dealing with these problems:
You cannot deploy one of your user-defined nodes, despite having a
plug-in LIL in the correct directory.
Scenario: You cannot deploy one of your user-defined nodes,
despite having a plug-in LIL in the correct directory.
Explanation: You have memset() the data area to zero and
have not initialized the CNI_VFT structure with the initialization constant {CNI_VFT_DEFAULT}.
Solution: Initialize by copying a predefined initialization
structure over the function table area, as follows:static
CNI_VFT virtualFunctionTable = {CNI_VFT_DEFAULT};
In addition,
implement logging from your user-defined node so that you can see if the plug-in
API is producing error codes; the broker does not log these to its own log,
unless you take a service trace.