Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
6 replies
Subscribers
5 subscribers
Views
2645 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
I got a smart service (with 4 inputs and 4 outputs) deployed in an environment.
mayankk718
over 9 years ago
I got a smart service (with 4 inputs and 4 outputs) deployed in an environment. After sometime I updated the smart service code and added 2 inputs and 2 outputs (that makes 6 inputs and 6 outputs in smart service), and created the new version of that service. Whan an attempt is made to deploy it (in the same environment), the following error came :-
com.appiancorp.process.admin.IncompatibleSmartServiceRegistrationException: The Smart Service Module was invalid: Smart service input and output count does not match the count for the existing smart service registered.
Do I need to get all the versions removed from the environment first, prior to getting the latest version deployed ?
Any inputs ?
OriginalPostID-192979
OriginalPostID-192979
Discussion posts and replies are publicly visible
0
Carlos Santander
A Score Level 2
over 9 years ago
You don't need to delete the previous versions, but you need to deploy the plugin with a new plugin key
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sayedh
over 9 years ago
If backward compatibility is not a concern, then you can simply increment the local-id attribute on the <smart-service> in the appian-plugin.xml file. If backward compatibility is a concern, then you should change the plugin-key.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
niharika.bitra
Appian Employee
over 9 years ago
The best way to deploy plugins would be to:
1. Rename previous versions with the extension .bak
2. Check the server.log (if using jboss) to make sure that the old plugin has been successfully uninstalled
3. Deploy the new plugin
4. Check the server.log (if using jboss) to make sure that the new plugin has been successfully installed
Ex. plugin-1.0.jar would be renamed to plugin-1.0.jar.bak and then you can place the plugin-1.1.jar into the plugins directory.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mayankk718
over 9 years ago
Hi carloss,
My original appian-plugin.xml file is as follows :-
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mayankk718
over 9 years ago
<appian-plugin name="SamplesFetcher" key="com.nbty.samplesfetcher">
<plugin-info>
<description>SamplesFetcher</description>
<vendor name="Appian Corporation" url="
http://www.appian.com"
/>
<version>1.0.1</version>
<application-version min="6.1.0" />
</plugin-info>
<smart-service name="Fetch Samples" key="FetchSamples"
class="com.nbty.samplesfetcher.SamplesFetcher" />
</appian-plugin>
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mayankk718
over 9 years ago
If I change the plugin key in this XML and do not change anything anywhere else, would it work ? Or, do I need to change the Java package name as well ?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel