Giter Site home page Giter Site logo

Comments (3)

ulises avatar ulises commented on June 10, 2024

FYI, I came across this while writing some tests whereby actors expose their self via promises, e.g. (deliver an-external-promise (self)) or somesuch.

from pulsar.

ulises avatar ulises commented on June 10, 2024

Oh, another thing, if I add :bootstrap true to project.clj, then I get the NPE error mentioned in #43

Output from running a test with :bootstrap true:

lein test :only sliver.node-test/spawn-test

ERROR in (spawn-test) (ActorLoader.java:368)
Uncaught exception, not in assertion.
expected: nil
  actual: java.lang.NullPointerException: null
 at co.paralleluniverse.actors.ActorLoader.loadCurrentClass (ActorLoader.java:368)
    co.paralleluniverse.actors.ActorLoader.getCurrentClassFor (ActorLoader.java:392)
    co.paralleluniverse.actors.ActorLoader.getReplacementFor0 (ActorLoader.java:379)
    co.paralleluniverse.actors.ActorLoader.getReplacementFor (ActorLoader.java:117)
    co.paralleluniverse.actors.Actor.checkReplacement (Actor.java:135)
    co.paralleluniverse.actors.Actor.spawn (Actor.java:235)
    co.paralleluniverse.actors.Actor.spawn (Actor.java:203)
    sliver.node.Node.spawn (node.clj:182)
    sliver.node_test/fn (node_test.clj:87)
    clojure.test$test_var$fn__7187.invoke (test.clj:704)
    clojure.test$test_var.invoke (test.clj:704)
    clojure.test$test_vars$fn__7209$fn__7214.invoke (test.clj:722)
    sliver.node_test$epmd_erl_fixture.invoke (node_test.clj:15)
    clojure.test$compose_fixtures$fn__7181$fn__7182.invoke (test.clj:681)
    clojure.test$default_fixture.invoke (test.clj:674)
    clojure.test$compose_fixtures$fn__7181.invoke (test.clj:681)
    clojure.test$test_vars$fn__7209.invoke (test.clj:722)
    clojure.test$default_fixture.invoke (test.clj:674)
    clojure.test$test_vars.invoke (test.clj:718)
    clojure.test$test_all_vars.invoke (test.clj:728)
    clojure.test$test_ns.invoke (test.clj:747)
    clojure.core$map$fn__4245.invoke (core.clj:2559)
    clojure.lang.LazySeq.sval (LazySeq.java:40)
    clojure.lang.LazySeq.seq (LazySeq.java:49)
    clojure.lang.Cons.next (Cons.java:39)
    clojure.lang.RT.boundedLength (RT.java:1654)
    clojure.lang.RestFn.applyTo (RestFn.java:130)
    clojure.core$apply.invoke (core.clj:626)
    clojure.test$run_tests.doInvoke (test.clj:762)
    clojure.lang.RestFn.applyTo (RestFn.java:137)
    clojure.core$apply.invoke (core.clj:624)

from pulsar.

ulises avatar ulises commented on June 10, 2024

Aha! Silly me. I was calling (self) and not @self. This is a non-issue.

from pulsar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.