Search Engine: Elastic

Article ID: 131681, created on Oct 27, 2017, last review on Apr 16, 2018

  • Applies to:
  • Operations Automation 7.2
  • Business Automation 7.2
  • Business Automation 7.3


With C++ SDK upgraded to version 7.2, an atempt to build a plug-in with C++ SDK fails. The error description is similar to the following:

    Error: ../LISA/ type must has Packer suffix. JAVA Type is Object. attribute type is INT
    Waf: Leaving directory `/root/DomainPlugins/SOMEPLUGIN/.build'
    Build failed: LISA compiler exit code '1' is non-zero. CMD is '['--info', '--server', '--amt', '--postgre'] /root/DomainPlugins/SOMEPLUGIN/SOMEPLUGIN.lsa'

Possible causes

1) A new JAVA attribute was introduced for LISA types, and the Domain Plug-in SDK for C++ was not reconfigured so that it should not build Java wrappers for public methods.

2) The file LOCKHINT.lsa is missing


In the first case, try this solution first:

  1. Change the current working directory to the plug-in source directory.

  2. Run grep -r 'LISA.new_task_gen' | grep wscript

  3. For every match found, after line features = 'lsaprogram', add the following line: install_java_dir = None,

    Alternatively, in diff format, the change should look like:

    --- a/wscript
    +++ b/wscript
    @@ -79,6 +79,7 @@ def build(bld):
    cnttask = LISA.new_task_gen(bld,
                    features        = 'lsaprogram',
    +               install_java_dir= None,
                    source          = '@@PROJECT@.lsa',
                    bodies          = [ '' ],
                    internals       = [ '', 'plugin.cpp' ],

If the above solution does not work, try this solution:

  1. Generate a new plug-in code sample using the script shipped with the SDK package as described in OA Premium Domain Plug-in SDK.

  2. Copy the file PLUGINBASE.type from the newly generated plug-in folder and replace with it the file with the same name in your original plug-in folder.

In the second case, if the file LOCKHINT.lsa is missing:

  1. Make sure file /root/EcommercePlugins//BM/lockHints/LOCKHINT.lsa exists with the following content:

    Virtual Class LockHint "LockHints" { Attributes { Virtual STR HintResult; } Methods { const OrderStatusChangeLockHint(SalesOrder.OrderID, SalesOrder.OrderStatusID) return LockHint.HintResult; const ETransactionCaptureLockHint(Payment) return LockHint.HintResult; const CreateServiceLockHint(OItem.OIID) return LockHint.HintResult; const OnServiceCreatedLockHint(OItem.OIID, Subscription.ExecStatus, SubscriptionServStatusHist.Comment, SubscriptionServStatusHist.LongComment, Subscription.vGateID) return LockHint.HintResult; const AccountPropagateLockHint(Account.AccountID) return LockHint.HintResult; const CheckCreditHoldAccountLockHint(Account.AccountID) return LockHint.HintResult; const SubscriptionResetUsageLockHint(Subscription) return LockHint.HintResult; } }

  2. If there is no such file, create it with the above content.

After you perform the above actions, try to build the plug-in again.

198398b282069eaf2d94a6af87dcb3ff caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07 31987597efff5a3a9ce779cc203bbe5e 5356b422f65bdad1c3e9edca5d74a1ae 1941880841f714e458ae4dc3d9f3062d ef171e3fccb12bd8e09076a7b49212c0 b2c3b33425dfc50c7d41a2efaa7f84f3 1def515ca613a5505aa21a4affa96e6b

Email subscription for changes to this article
Save as PDF