The new NodeBox forum is live! Everything from support.nodebox.net moved here: sign in with the same email to pick up your old posts. Something not working? Write to forum-support@nodebox.net.

NodeBox 3From the old forum

java.lang.IllegalArgumentException

1 reply Last reply

  1. Hi,

    I was trying out the spirograph example and when I add a copy node and connect the output of the reflect node to the copy node I get the following error.

    java.lang.IllegalArgumentException: java.lang.ClassCastException@1b5c3de
    at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at nodebox.function.JavaLibrary$StaticMethodFunction.invoke(Unknown Source)
    at nodebox.node.NodeContext.invokeFunction(Unknown Source)
    at nodebox.node.NodeContext.invokeNode(Unknown Source)
    at nodebox.node.NodeContext.invokeNode(Unknown Source)
    at nodebox.node.NodeContext.renderNode(Unknown Source)
    at nodebox.node.NodeContext.renderChild(Unknown Source)
    at nodebox.node.NodeContext.renderNode(Unknown Source)
    at nodebox.node.NodeContext.renderNode(Unknown Source)
    at nodebox.client.NodeBoxDocument$8.run(Unknown Source)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

    Copy link
  2. NodeBox team

    There are two reflect nodes: one works just with numbers (the greenish one) and one that works with geometry (the black one). You've probably selected the wrong one. (in general, black nodes need to be connected to other black nodes)

    The type of a node is quite important. NodeBox will try to convert between types, but in this case the two nodes do different things, even though their names are equal.

    You can read more about types and type conversion on our "How NodeBox Works" page.

    Copy link

Know something that helps?

Sign in with your email address to reply. No password needed.

Sign in to reply