Created
January 25, 2011 20:35
-
-
Save jphastings/795599 to your computer and use it in GitHub Desktop.
Carnivore in Ruby Processing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'ruby-processing' | |
class ProcessingTest < Processing::App | |
load_library 'carnivore' | |
require 'packet_listener' | |
include Java::PacketListener | |
def setup | |
@carnivore = org.rsg.carnivore.CarnivoreP5.new(self) | |
@carnivore.setVolumeLimit(20) | |
end | |
def draw | |
end | |
def packetEvent(packet) | |
p packet | |
end | |
end | |
ProcessingTest.new :title => "testing!", :width => 50, :height => 50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java.lang.NoSuchMethodException: org.jruby.proxy.processing.core.PApplet$Proxy0.packetEvent(org.rsg.carnivore.CarnivorePacket) | |
at java.lang.Class.getMethod(Class.java:1605) | |
at org.rsg.carnivore.CarnivoreP5.<init>(CarnivoreP5.java:39) | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) | |
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) | |
at java.lang.reflect.Constructor.newInstance(Constructor.java:513) | |
at org.jruby.javasupport.JavaConstructor.newInstanceDirect(JavaConstructor.java:275) | |
at org.jruby.java.invokers.ConstructorInvoker.call(ConstructorInvoker.java:110) | |
at org.jruby.java.invokers.ConstructorInvoker.call(ConstructorInvoker.java:204) | |
at org.jruby.RubyClass.finvoke(RubyClass.java:472) | |
at org.jruby.javasupport.util.RuntimeHelpers.invoke(RuntimeHelpers.java:393) | |
at org.jruby.java.proxies.ConcreteJavaProxy$2.call(ConcreteJavaProxy.java:48) | |
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:320) | |
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:158) | |
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163) | |
at org.jruby.RubyClass$SpecificArityNew.call(RubyClass.java:709) | |
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:176) | |
at org.jruby.java.proxies.ConcreteJavaProxy$ConcreteNewMethod.call(ConcreteJavaProxy.java:170) | |
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:310) | |
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:149) | |
at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57) | |
at org.jruby.ast.InstAsgnNode.interpret(InstAsgnNode.java:95) | |
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104) | |
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) | |
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:112) | |
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:124) | |
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:144) | |
at org.jruby.RubyClass.finvoke(RubyClass.java:549) | |
at org.jruby.javasupport.util.RuntimeHelpers.invoke(RuntimeHelpers.java:418) | |
at org.jruby.javasupport.proxy.JavaProxyConstructor$2.invoke(JavaProxyConstructor.java:221) | |
at org.jruby.proxy.processing.core.PApplet$Proxy0.setup(Unknown Source) | |
at processing.core.PApplet.handleDraw(PApplet.java:1403) | |
at processing.core.PApplet.run(PApplet.java:1328) | |
at java.lang.Thread.run(Thread.java:680) | |
[org.rsg.carnivore.CarnivoreP5] starting carnivore core | |
[org.rsg.carnivore.Preferences] loading preference file: .carnivore_preferences.txt | |
[org.rsg.carnivore.Preferences] saving prefs to disk: .carnivore_preferences.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment