Re: ersatz - can not access a member

2012-01-30 Thread Alexander Burger
Hi Joe, I have a new proof of concept that allows ersatz to be embedded into a java program which then allows it to be multi-threaded ( I think. Cool idea. Still testing ). My assumption is that the static variables caused everything to be shared across the process. Removing the static

Re: ersatz - can not access a member

2012-01-28 Thread Joe Bogner
This is the java example I'm trying to duplicate: http://www.simpleframework.org/doc/tutorial/tutorial.php import org.simpleframework.http.core.Container; import org.simpleframework.transport.connect.Connection; import org.simpleframework.transport.connect.SocketConnection; import

Re: ersatz - can not access a member

2012-01-28 Thread Alexander Burger
Hello Joe, I'm trying to write a simple java web server using the simpleframework. I'm close, but I process anything in the method handler: OK. I can't reproduce the problem, as I don't have access to that framework. But perhaps I can give some hints to help locate the problem. (de handler

Re: ersatz - can not access a member

2012-01-28 Thread Joe Bogner
Hi Alex, Thanks for the response! Here's the output from trace. It's neat to see, but I don't know enough to interpret it: java -DPID=42 -cp .;picolisp.jar;simple-4.1.21.jar PicoLisp lib.l go.l + interface : org.simpleframework.http.core.Container handle ((Request Response) (java Response

Re: ersatz - can not access a member

2012-01-28 Thread Alexander Burger
Hi Joe, Another question: I started down an alternate path to use java.net.ServerSocket but it doesn't seem to like threads/thread pool calls. Here's a really simple example: : (setq Thread (java java.lang.Thread T (interface java.lang.Runnable 'run '(() (prinl hi)) - $Thread

Re: ersatz - can not access a member

2012-01-28 Thread Alexander Burger
Hi Joe, Thanks for the response! Here's the output from trace. It's neat to see, but I don't know enough to interpret it: OK, this looks helpful (a little ;) If I intermix the previous code with the trace output in the editor (not just in mind as usual), I get: (de handler (Request

Re: ersatz - can not access a member

2012-01-28 Thread Joe Bogner
Thanks! Regarding threading, I stepped away for a few and the thought crossed my mind as well. I came back tried the main thread do this: (loop (setq Method nope)) And I can see that Method gets overwritten in child threads. Neither bind nor job helps either. Is there any way around this? I

Re: ersatz - can not access a member

2012-01-28 Thread Jakob Eriksson
On January 28, 2012 at 1:18 PM Alexander Burger a...@software-lab.de wrote: Hello Joe, I'm trying to write a simple java web server using the simpleframework. I'm close, but I process anything in the method handler:   And this excellent discussion is why we could say that we have