I have a very simple workflow that runs the tag cloud node fine in KNIME with the GUI but breaks in batch. (to simplify: Table Creator w/ String, Double; String to Tag node; Tag Cloud; ... image save to file -- see sample attached)
Two Questions:
Has anyone gotten tag clouds working with KNIME_BATCH_APPLICATION? If so, can you please let me know your config. below so I can try it?
Is there a recommended way to handle the .knimeLock that's being left? (Once I get this running, I'm planning to run with the workingFile attribute pointing at a .zip of the workflow instead of workingDir attribute, so maybe this isn't too much of a concern, assuming the .knimeLock file won't be left in the .zip file.)
From the dump log (attached), the error appears to be swing/awt related, I think. The last item in the stack is:
This makes a certain amount of sense to me because KNIME is running headless, so if the tag cloud node is using swing/awt to place words, maybe it needs a graphical environment.
I'm running on a Windows Server 2012 R2 (i.e., Windows 8.1) with Java 64-bit (the v7u60 that comes with the KNIME download) and KNIME v.2.11.1 (64-bit). I'm running w/ 512MB max perm and 6GB max heap.
For what it's worth, I found a workaround to my TagCloud question and figured I'd share:
Workaround: I had success creating a Java snippet in my workflow that set the UI look and feel prior to calling the TagCloud node -- I connected them via flow ports so I was sure it was completed first:
try {
UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException e) {
//do nothing for test
}
Not an ideal solution, but it is allowing me to move forward...
Background and Log File:
AFAIK, the problem only occurs (i) on Windows machines while (ii) running in KNIME_BATCH_APPLICATION mode.
I could run successfully on Linux in batch mode.
I could run successfully on Windows (Server 2012 and Win 7) with KNIME GUI -- i.e., not in batch mode
I could not run in batch mode on either Windows Server 2012 or Win 7
From the log, I noticed that my problem is related to the TagCloud node using the system default LookAndFeel, which on my machines appears to be the com.sun.java.swing.plaf.windows.WindowsLookAndFeel look and feel (this is from the log file I attached to my original post):
I had the same issues while trying to use TagClound in batch mode. Thank you very much for the workaround, it works. I am attaching the log-file which led me to the TagCloud: hs_err_pid7000.log.