Debugging the weaving

16 views
Skip to first unread message

Lasaro Camargos

unread,
May 8, 2020, 9:26:46 PM5/8/20
to kilimthreads
Hi
I am facing an InternalError when trying to weave a project that contains the apache curator.
Any suggestions on how to go about debugging this?
Thanks

     [java] Error weaving <PROJECT>
     [java] java.lang.InternalError: org.apache.curator.framework.recipes.locks.InterProcessSemaphoreMutex
     [java]     at kilim.analysis.TypeDesc.commonSuperType(TypeDesc.java:254)
     [java]     at kilim.analysis.TypeDesc.mergeType(TypeDesc.java:196)
     [java]     at kilim.analysis.Value.merge(Value.java:83)
     [java]     at kilim.analysis.Frame.merge(Frame.java:89)
     [java]     at kilim.analysis.BasicBlock.merge(BasicBlock.java:1146)
     [java]     at kilim.analysis.BasicBlock.mergeSuccessors(BasicBlock.java:1131)
     [java]     at kilim.analysis.BasicBlock.interpret(BasicBlock.java:1096)
     [java]     at kilim.analysis.MethodFlow.dataFlow(MethodFlow.java:531)
     [java]     at kilim.analysis.MethodFlow.analyze(MethodFlow.java:165)
     [java]     at kilim.analysis.ClassFlow.analyze(ClassFlow.java:112)
     [java]     at kilim.analysis.ClassWeaver.weave(ClassWeaver.java:70)
     [java]     at kilim.tools.Weaver.weaveFile(Weaver.java:174)
     [java]     at kilim.tools.Weaver.doMain(Weaver.java:120)
     [java]     at kilim.tools.Weaver.main(Weaver.java:80)

nqzero

unread,
May 8, 2020, 9:57:49 PM5/8/20
to kilimthreads
just took a quick glance and it looks as though it means that that class isn't on the classpath. if you're using java 11, kilim doesn't currently support reading from the module path, so that could be the cause if curator uses modules. otherwise, just provide it on the classpath

Lasaro Camargos

unread,
May 8, 2020, 10:55:00 PM5/8/20
to kilimthreads
Thanks you for your prompt response. Indeed it was the classpath.
Maybe we could have a more descriptive message? :)
Cheers
Reply all
Reply to author
Forward
0 new messages