Adding 3rd party libs to flowable-task

Hello everyone !

I want to be able to save data from the flowable-task application to a file. I would us it as a debug tool.

I added the library file-saver.js (https://www.npmjs.com/package/file-saver) in the libs folder (/libs/file-saver_1.3.8/FileSaver.js).

I also added it to the index.html file, under the 3rd party libs section:

script src="…/libs/file-saver_1.3.8/FileSaver.js">

Since then I’m unable to launch my application, the logs are showing this :

10:46:59,932 [http-nio-8081-exec-165] INFO org.flowable.app.conf.AsyncConfiguration - Creating Async Task Executor
10:47:00,296 [http-nio-8081-exec-165] WARN org.springframework.web.context.support.AnnotationConfigWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘securityConfiguration.FormLoginWebSecurityConfigurerAdapter’: Injection of autowired dependencies failed; nested exception is java.lang.ClassFormatError: StackMapTable format error: reserved frame type
12-Jul-2018 10:47:00.299 GRAVE [http-nio-8081-exec-165] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
12-Jul-2018 10:47:00.299 GRAVE [http-nio-8081-exec-165] org.apache.catalina.core.StandardContext.startInternal Erreur de démarrage du contexte [/flowable-task] suite aux erreurs précédentes
10:47:00,301 [http-nio-8081-exec-165] INFO org.flowable.app.servlet.WebConfigurer - Destroying Web application

Am I missing something ? Is there something else to do in order for my application to work with this new library ?

Thank you

I don’t think including a javascript library has an impact on booting up the application.

However, in the stacktrace there is mention of ‘StackMapTable’. Searching for it online, seems to give some hits for the MySQL driver … did you add that one? Can you try with the H2 in-mem db to verify that’s not the problem?

Scratch that - seems to be something related to byte code of the JVM … what’s the environment you’re booting this up?

Well after a week away, my flowable-task is booting up ! I don’t know what was the issue but still, it’s up and running… but it doesn’t recognise ‘saveAs’ as a function, it’s showing me that it’s not defined. I only included it in the index.html file, do I need to set it up else where ?

Oh and regarding the MySQL driver you were talking about, I’m using a postgre database with the correct driver so I don’t know where I got this error from.