Got errors when running udf with spring boot

Hi,

I have a problem when I use Aerospike to build a restful service (referenced instruction).

The main problem is that, when I want to apply udf, I will get following run-time errors:

com.aerospike.client.AerospikeException: Failed to read resource: udf/compat52.lua
at com.aerospike.client.lua.LuaCache.getSystemStream(LuaCache.java:81)
at com.aerospike.client.lua.LuaCache.getInputStream(LuaCache.java:62)
at com.aerospike.client.lua.LuaCache.loadPackage(LuaCache.java:53)
at com.aerospike.client.lua.LuaInstance.load(LuaInstance.java:105)
at com.aerospike.client.lua.LuaInstance.<init>(LuaInstance.java:79)
at com.aerospike.client.lua.LuaCache.getInstance(LuaCache.java:42)
at com.aerospike.client.query.QueryAggregateExecutor.runThreads(QueryAggregateExecutor.java:89)
at com.aerospike.client.query.QueryAggregateExecutor.run(QueryAggregateExecutor.java:81)
at java.lang.Thread.run(Thread.java:745)

Could anyone help me?

Hi,

Did you clone the github repo with:

git clone GitHub - aerospike-examples/build-restful-web-service-with-spring-boot: Sample code for blog post @ http://www.aerospike.com/blog/build-restful-web-service-with-spring-boot/

The POM file has been updated with the latest Aerospike Java Client.

In the root directory run:

mvn clean package

and a runnable JAR will be produced in the target directory.

See if this helps

Hi,

After I update my pom.xml from your github, everything works fine! Now, I can keep working on udf! Thank you very much!