Re: JNI pthreads problem

2000-12-14 Thread Valerio Ferrucci
Hi, thanks for your help. Generally I'm thinking that my code doesn't feel so comfortable in apache module. I already had a similar headache-problem with libmysqlclient.so (that linked against pthreads and made crash apache) and I think I will have more and more problems in the future if i don't

Re: Socket Exception out of Nowhere !!

2000-12-14 Thread Santosh Dawara
Phew, I thought someone unsubscribed me from the list because of the question, I had not received any reply for four days straight. To be honest I can't retry the read operation because I would go into a Hard loop if a real SocketException occured due to some other reason. So I will use a count

Re: JNI pthreads problem

2000-12-14 Thread Paul Mclachlan
At 9:52 12 Dec 2000 -0500, Rousseau, John wrote: > It's a very strange model in which Apache sends a request to your > module and you start up a VM to handle it. You probably should start > your VM as a seperate process and use a socket to communicate. I don't think this is so strange. While J

Re: Socket Exception out of Nowhere !!

2000-12-14 Thread Udo K Schuermann
I don't know if my own experience has a significantly different cause, but I get a SocketException with a "Resource temporarily unavailable" message if I'm waiting for input and the thread is interrupted. Merely catching the exception and retrying the read operation is all that is required; what t

Re: JNI pthreads problem

2000-12-14 Thread Valerio Ferrucci
Hi John, ok, I have an application that uses invocation API. But there I have another problem. When I launch it I see the logs message [Dynamic-linking... [Dynamic-linking... ... [Dynamic-linking native method java/lang/Double.longBitsToDouble...JNI] SIGSEGV11* segmentation violation si_

Re: JNI pthreads problem

2000-12-14 Thread Rousseau, John
On Thursday Dec 14, 2000, Valerio Ferrucci wrote: > "Rousseau, John" wrote: > > > libhpi.so is the threading package. The one in native_threads is the > > LinuxThreads version. The one in green_threads (amazingly enough) is > > the Green (Sun's all-user-space package) threads version. > > Whic

Re: JNI pthreads problem

2000-12-14 Thread Valerio Ferrucci
"Rousseau, John" wrote: > libhpi.so is the threading package. The one in native_threads is the > LinuxThreads version. The one in green_threads (amazingly enough) is > the Green (Sun's all-user-space package) threads version. Which one have I to use? native or green? Where are the API of these t

Re: JNI pthreads problem

2000-12-14 Thread Rousseau, John
libhpi.so is the threading package. The one in native_threads is the LinuxThreads version. The one in green_threads (amazingly enough) is the Green (Sun's all-user-space package) threads version. Why does Apache "not like" modules using libpthreads.so? It probably (very probably) uses it itself.

Re: JNI pthreads problem

2000-12-14 Thread Valerio Ferrucci
Hi, I'm in trouble with thie JNI pthreads problem. Can someone help me on my JNI pthreads problem? Or perhaps can you point me to some other (more appropriate for this topic) mailing-list? Or some other source of support? Thanks > >Hi, > >I have a problem. > >I'm building a module for apache. a