Jlama icon indicating copy to clipboard operation
Jlama copied to clipboard

FileNotFounException when running langchain4j example

Open wackmich opened this issue 6 months ago • 2 comments

Not sure what I doing wrong. I cloned the jlama-examples from the langchain4j repository and adjusted the jvm arguments as described for the preview release. I then tried to run the streaming example and this is what I get as error:

INFO  c.g.t.j.t.o.TensorOperationsProvider - Using Native SIMD Operations (OffHeap)
INFO  c.g.tjake.jlama.model.AbstractModel - Model type = Q4, Working memory type = F32, Quantized memory type = I8
Exception in thread "main" java.util.concurrent.CompletionException: java.io.IOError: java.io.FileNotFoundException: C:\Users\aiuser\AppData\Local\Temp\9524283943613415699\880850da-a396-4fb6-8512-d74882e7ece4-L0C0.page (Access denied)
        at java.base/java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:413)
        at java.base/java.util.concurrent.CompletableFuture.join(CompletableFuture.java:2118)
        at JlamaStreamingChatModelExamples$Simple_Streaming_Prompt.main(JlamaStreamingChatModelExamples.java:46)

I am at a loss right now.

wackmich avatar Jun 21 '25 12:06 wackmich

thanks for the report.

I will test this on windows

tjake avatar Jun 24 '25 13:06 tjake

I've seen this on some of the latest version of windows. Windows security defender blocks java programs from running in some directories. You might double check the windows security protection history and see if it's blocking access. If so allowing access usually fixes the issue

isaaca26 avatar Aug 16 '25 20:08 isaaca26