java.lang.IllegalArgumentException

Sushma Venkatesh's Avatar

Sushma Venkatesh

20 Dec, 2012 04:19 PM

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)
  1. Support Staff 1 Posted by Frederik De Ble... on 21 Dec, 2012 01:13 PM

    Frederik De Bleser's Avatar

    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.

  2. Frederik De Bleser closed this discussion on 21 Dec, 2012 01:13 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

10 Sep, 2024 03:41 AM
09 Sep, 2024 02:15 PM
07 Sep, 2024 05:16 AM
05 Sep, 2024 02:21 AM
04 Sep, 2024 05:01 AM

 

03 Sep, 2024 10:07 AM
02 Sep, 2024 05:56 AM
31 Aug, 2024 11:07 PM
27 Aug, 2024 12:08 AM
26 Aug, 2024 01:02 PM
26 Aug, 2024 07:18 AM