We use a smart service called "Append Text to File" from the "Text File Utilities" plug-in. It seems to have stopped working since the latest release a few days ago. Are there any alternatives?
Discussion posts and replies are publicly visible
What happens when you try?
It doesn't produce an exception but it does not append the given text to the given file.
Did you already check tomcat-stdOut.log to see if there's any issue, error or exception listed there? Did you check the target folder to verify that no new file was created?
Yes, checked the tomcat log, and there are no exceptions. The service is meant to append text to existing files, so it wouldn't create a new file.
in my case, I am indeed seeing NullPointerException in the application server log. There must be something wrong in the new version of the plugin.
2024-10-23 10:17:25,298 [Appian Work Item - 794645 - WorkID 292 - execution02 - process 2775155 - model 12462 : UnattendedJavaActivityRequest] ERROR com.appiancorp.ps.plugins.textutilities.AppendTextToFile - java.lang.NullPointerException: Cannot invoke "com.appiancorp.suiteapi.content.ContentService.download(java.lang.Long, java.lang.Integer, java.lang.Boolean)" because "cs" is null java.lang.NullPointerException: Cannot invoke "com.appiancorp.suiteapi.content.ContentService.download(java.lang.Long, java.lang.Integer, java.lang.Boolean)" because "cs" is null at com.appiancorp.ps.plugins.textutilities.AppianUtils.getDocumentFromAppian(AppianUtils.java:15) at com.appiancorp.ps.plugins.textutilities.AppendTextToFile.run(AppendTextToFile.java:48) at com.appiancorp.process.runtime.framework.DefaultActivityExecutor$1.lambda$call$0(DefaultActivityExecutor.java:138) at com.appiancorp.plugins.PluginUsageLogger.runWithPluginInformation(PluginUsageLogger.java:54) at com.appiancorp.process.runtime.framework.DefaultActivityExecutor$1.call(DefaultActivityExecutor.java:138) at com.appiancorp.process.runtime.framework.DefaultActivityExecutor$1.call(DefaultActivityExecutor.java:132) at com.appiancorp.common.ContextClassLoaderSwitcher.runInContext(ContextClassLoaderSwitcher.java:30) at com.appiancorp.process.runtime.framework.DefaultActivityExecutor.execute(DefaultActivityExecutor.java:132) at com.appiancorp.process.engine.UnattendedJavaActivityRequest.execute(UnattendedJavaActivityRequest.java:101) at com.appiancorp.process.engine.UnattendedJavaActivityRequestResponseCreator.getJavaActivityResultResponse(UnattendedJavaActivityRequestResponseCreator.java:23) at com.appiancorp.process.engine.UnattendedJavaActivityRequest.getJavaActivityResultResponse(UnattendedJavaActivityRequest.java:80) at com.appiancorp.process.engine.UnattendedJavaActivityRequest.execute0(UnattendedJavaActivityRequest.java:67) at com.appiancorp.common.persistence.data.AppianDataUserContextProvider.executeWithConsistentDataReads(AppianDataUserContextProvider.java:143) at com.appiancorp.process.engine.ProcessContinuationRequest.executeOuter(ProcessContinuationRequest.java:68) at com.appiancorp.process.engine.ActivityRequest.executeOuter(ActivityRequest.java:41) at com.appiancorp.process.engine.ContinuationRequest.execute(ContinuationRequest.java:136) at com.appiancorp.process.engine.AsyncEnabledActivityRequest.execute(AsyncEnabledActivityRequest.java:22) at com.appiancorp.process.workpoller.UnattendedRequestHandlerBean.onMessage(UnattendedRequestHandlerBean.java:36) at com.appiancorp.process.workpoller.WorkItem.run(WorkItem.java:110) at org.springframework.jca.work.SimpleTaskWorkManager$DelegatingWorkAdapter.run(SimpleTaskWorkManager.java:241) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840)