Forum Discussion
Hi tlikarish,
I am able to deploy the demo snap pack and the snaps are executing without issue, however when i create a new java code by copy pasting of Doc generator demo code and changed the class name, loaded into snap packs i am error.
For creating new snap, 4 steps i have followed,
- I have copied the Doc generator demo code and changed the name to DoubleDocGenerator.java and didn’t changed any logic inside the code.
- The java class name is added into pom.xml file like this(
<snap.classes>
com.snaplogic.snaps.CharacterCounter,
com.snaplogic.snaps.CurrencyConverter,
com.snaplogic.snaps.DocConsumer,
com.snaplogic.snaps.DocGenerator,
com.snaplogic.snaps.DoubleDocGenerator,
com.snaplogic.snaps.PropertyTypes,
com.snaplogic.snaps.SchemaExample,
com.snaplogic.snaps.SingleDocGenerator,
com.snaplogic.snaps.SnapWithAccount,
com.snaplogic.snaps.Suggest,
com.snaplogic.snaps.TwoInputs,
com.snaplogic.snaps.TwoInputsTwoOutputs
</snap.classes>)
step 3: compiled and re created the demo snap pack.zip file using given command (mvn clean install -D skipTests=true)
step 4: deleted the existing demo snap pack in the manager section and uploaded the newly created demo snap pack.
After following all the steps, only snap logic given demo snaps are working but not my snap.
When i am executing DoubleDocGenerator snap, i am getting following error.
Failure: Cannot find class com.snaplogic.snaps.DoubleDocGenerator in snap pack demosnappack-snap-1-0001.zip, Reason: com.snaplogic.snaps.DoubleDocGenerator, Resolution: Please file a defect against the snap.
please suggest me, if you have any clues.
I think you’ll need to bump the version on your snap pack for each build.
mvn clean install -Dsl_build=0002
The JCC (thing that is executing pipelines) will only read and load a snap pack once as they generally are immutable if not being developed. By increasing the version number, it should cause the JCC to load the new version.