Skip to content

No viable implementation for SolverFactory in JS (IllegalStateException) #716

@Gilbocc

Description

@Gilbocc

I'm encountering a systematic issue where, when invoking from JavaScript, I consistently receive the following error:

IllegalStateException: No viable implementation for SolverFactory in [./2p-solve-classic:it.unibo.tuprolog.solve.classic.ClassicSolverFactory, 2p-solve-classic:it.unibo.tuprolog.solve.classic.ClassicSolverFactory]

It seems like the JS is unable to locate the correct implementation of SolverFactory. I'm on version 1.0.4.

Stacktrace:

IllegalStateException: No viable implementation for SolverFactory in [./2p-solve-classic:it.unibo.tuprolog.solve.classic.ClassicSolverFactory, 2p-solve-classic:it.unibo.tuprolog.solve.classic.ClassicSolverFactory]    
at solverFactory (http://localhost:8080/vendors-node_modules_tuprolog_arg2p-core_arg2p-core_js.bundle.js:31319:13)
at classicSolverFactory (http://localhost:8080/vendors-node_modules_tuprolog_arg2p-core_arg2p-core_js.bundle.js:31298:12)    
at Solver$Companion$prolog$delegate$lambda (http://localhost:8080/vendors-node_modules_tuprolog_arg2p-core_arg2p-core_js.bundle.js:18909:12)
at protoOf.r2 (http://localhost:8080/vendors-node_modules_tuprolog_arg2p-core_arg2p-core_js.bundle.js:53010:43)    
at protoOf.b1y (http://localhost:8080/vendors-node_modules_tuprolog_arg2p-core_arg2p-core_js.bundle.js:18943:19)
at prolog (http://localhost:8080/vendors-node_modules_tuprolog_arg2p-core_arg2p-core_js.bundle.js:11316:64)    
at protoOf.t3i (http://localhost:8080/vendors-node_modules_tuprolog_arg2p-core_arg2p-core_js.bundle.js:41783:12)
at protoOf.u3i (http://localhost:8080/vendors-node_modules_tuprolog_arg2p-core_arg2p-core_js.bundle.js:41787:35)    
at protoOf.w3i (http://localhost:8080/vendors-node_modules_tuprolog_arg2p-core_arg2p-core_js.bundle.js:41992:16)
at protoOf.m2j (http://localhost:8080/vendors-node_modules_tuprolog_arg2p-core_arg2p-core_js.bundle.js:41995:17)

The stacktrace refers to the solve method implemented here and called from a Chrome browser through the JS library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.0.4bugSomething isn't workingjs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions