Hi, We are on Appian 7.9. We have internally developed a smartservice plugi

Hi,
We are on Appian 7.9. We have internally developed a smartservice plugin which was working so far. We applied an Appian Hotfix yesterday (06/04/2015) and the plugin stopped working. When we tried to redeploy the plugin we got the following error. I think the hotfix inherently updated the datatype which is causing the plugins to fail. Please note there was no change the cdt that we use in our process. Kindly suggest how to resolve the issue.

21:01:58,514 INFO [stdout] (Appian Plugin Hot Deploy) 2015-06-05 21:01:58,514 [Appian Plugin Hot Deploy] ERROR com.atlassian.plugin.manager.DefaultPluginManager - There was an error loading the descriptor 'Generate WD Xml File' of plugin 'botw.cmpo.plugins.wd'. Disabling.
21:01:58,514 INFO [stdout] (Appian Plugin Hot Deploy) com.atlassian.plugin.PluginException: com.appiancorp.process.admin.IncompatibleSmartServiceRegistrationException: The Smart Service Module was invalid: Illegal attempt to change the data type...

OriginalPostID-151717

OriginalPostID-151717

  Discussion posts and replies are publicly visible

  • ... for smart service botw.cmpo.plugins.wd.GenerateWDXmlV21, input or output named mainWDObj (APNX-1-4104-005)
    21:01:58,514 INFO [stdout] (Appian Plugin Hot Deploy) at com.appiancorp.plugins.ExceptionHandlingModuleDescriptor.enabled(ExceptionHandlingModuleDescriptor.java:63)
    21:01:58,514 INFO [stdout] (Appian Plugin Hot Deploy) at com.atlassian.plugin.manager.DefaultPluginManager.notifyModuleEnabled(DefaultPluginManager.java:1447)
    21:01:58,515 INFO [stdout] (Appian Plugin Hot Deploy) at com.appiancorp.plugins.AppianPluginManager.notifyModuleEnabled(AppianPluginManager.java:65)
    21:01:58,515 INFO [stdout] (Appian Plugin Hot Deploy) at com.atlassian.plugin.manager.DefaultPluginManager.enableConfiguredPluginModule(DefaultPluginManager.java:1254)
    21:01:58,515 INFO [stdout] (Appian Plugin Hot Deploy) at com.atlassian.plugin.manager.DefaultPluginManager.enableConfiguredPluginModules(DefaultPluginManager.java:1220)
    21:01:58,515 INFO [stdout] (Appian Plugin Hot Deplo...
  • ...y) at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:722)
    21:01:58,515 INFO [stdout] (Appian Plugin Hot Deploy) at com.atlassian.plugin.manager.DefaultPluginManager.scanForNewPlugins(DefaultPluginManager.java:446)
    21:01:58,515 INFO [stdout] (Appian Plugin Hot Deploy) at com.appiancorp.plugins.AppianPluginManager.scanForNewPlugins0(AppianPluginManager.java:121)
    21:01:58,515 INFO [stdout] (Appian Plugin Hot Deploy) at com.appiancorp.plugins.AppianPluginManager.scanForNewPlugins(AppianPluginManager.java:113)
    21:01:58,515 INFO [stdout] (Appian Plugin Hot Deploy) at com.appiancorp.plugins.HotDeployerRunnable.run(HotDeployerRunnable.java:29)
    21:01:58,515 INFO [stdout] (Appian Plugin Hot Deploy) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    21:01:58,515 INFO [stdout] (Appian Plugin Hot Deploy) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
    21:01:58,515 INFO [stdout] (App...
  • ... ian Plugin Hot Deploy) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
    21:01:58,515 INFO [stdout] (Appian Plugin Hot Deploy) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
    21:01:58,515 INFO [stdout] (Appian Plugin Hot Deploy) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    21:01:58,515 INFO [stdout] (Appian Plugin Hot Deploy) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    21:01:58,515 INFO [stdout] (Appian Plugin Hot Deploy) at java.lang.Thread.run(Thread.java:745)
    21:01:58,515 INFO [stdout] (Appian Plugin Hot Deploy) Caused by: com.appiancorp.process.admin.IncompatibleSmartServiceRegistrationException: The Smart Service Module was invalid: Illegal attempt to change the data type for smart service botw.cmpo.plugins.wd.GenerateWDXmlV21, input or out...
  • ... put named mainWDObj (APNX-1-4104-005)
    21:01:58,516 INFO [stdout] (Appian Plugin Hot Deploy) at com.appiancorp.process.admin.LoadSmartNodeACSchemas.registerWithK(LoadSmartNodeACSchemas.java:188)
    21:01:58,516 INFO [stdout] (Appian Plugin Hot Deploy) at com.appiancorp.process.admin.LoadACSchemas.register(LoadACSchemas.java:154)
    21:01:58,516 INFO [stdout] (Appian Plugin Hot Deploy) at com.appiancorp.process.admin.LoadSmartNodeACSchemas.register(LoadSmartNodeACSchemas.java:78)
    21:01:58,516 INFO [stdout] (Appian Plugin Hot Deploy) at com.appiancorp.process.SmartServiceRegistryImpl.register(SmartServiceRegistryImpl.java:21)
    21:01:58,516 INFO [stdout] (Appian Plugin Hot Deploy) at com.appiancorp.process.SmartServiceRegistryImpl.register(SmartServiceRegistryImpl.java:8)
    21:01:58,516 INFO [stdout] (Appian Plugin Hot Deploy) at com.appiancorp.process.SmartServiceModuleDescriptor.enabledInternal(SmartServiceModuleDescriptor.java:265)
    21:01:58,516 INFO [stdout] (A...
  • ... ppian Plugin Hot Deploy) at com.appiancorp.plugins.ExceptionHandlingModuleDescriptor.enabled(ExceptionHandlingModuleDescriptor.java:61)
    21:01:58,516 INFO [stdout] (Appian Plugin Hot Deploy) ... 16 more
    21:01:58,519 INFO [stdout] (Appian Plugin Hot Deploy) 2015-06-05 21:01:58,519 [Appian Plugin Hot Deploy] ERROR com.appiancorp.plugins.LoggingPluginEventListener - Failed to enable Plug-in 'Bank Of The West Plugins for CMPO' (botw.cmpo.plugins.wd) version 2.1: 'The Smart Service Module was invalid: Illegal attempt to change the data type for smart service botw.cmpo.plugins.wd.GenerateWDXmlV21, input or output named mainWDObj (APNX-1-4104-005)'
  • It seems the CDT was deleted by mistake and then re-uploaded automatically by the plug-in. If you check the date published you'll confirm that's the case.

    More information in my comment in this post: forum.appian.com/.../e-145909
  • Hi Eduardo. Thanks for answering.The CDT was not changed/deleted. I checked the CDT's date published. Please note the same plugin was installed without any issues in our local environment.
    We have resolved the issue now. We just changed the unique key of the plugin and it was deployed successfully. There was no code change to the plugin and no CDT changes were made. But we have a minor glitch in the plugin now. The image or the plugin is missing in the environments which had the above issue. I have confirmed that the updated jar has the image and plugin in the local environment with the updated jar has the image.
    We think something got corrupted internally during the upgrade or patch install process of Appian.
  • Since you changed the key this is considered a new smart service and you have to drag and drop it again to update your existing models.

    Remember smart services are locally identified by <PLUG-IN_KEY>.<SMART_SERVICE_KEY>. Right now your models are pointing to the original key, meaning to the old smart service that you replaced with this "new one"
  • 0
    Certified Associate Developer
    in reply to Eduardo Fuentes

    HI   i have the same issue . plugin is working in older version but when we upgraded to 19.4v the plugin is not deployed . I haven't changed plugin/CDT's .  can you suggest how to change plugin key ?