• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

System Hangs (JNI Calls)

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have an application which has the following information flow
Java C ---> Java Program 1 ---> Java program 1.1
Program ----> Program ---> Java Program 2 ---> Java Program 2.1
The application starts with a java program invoking the C program through JNI. The Inovked C program thereby Invokes some other java classes (Program 1 and Program 2) which invokes another java class(Program 1.1 & 2.1). I have been caching the JVM so as to prevent the creation of multiple JVMs. I could manage to make the calls from java-c and c-java, but whenever there are multiple invocations from c to java, the system hangs after the first few calls.
I would be grateful to all, who can help me get out of this situation.
Cheers
sai.
 
reply
    Bookmark Topic Watch Topic
  • New Topic