Java Program Hangs

Hi,
I am running into a strange problem. We have scheduled a Java program to using BQPlus scheduler. The program hangs some time at a particular statement, while most of the time it works. If we run it directly from command line it always works.
The statement where program hangs some time uses the put method of Properties object. I do not see any thing there which should make the program hang (Database connection or file read write).
I am using java version "1.4.2_02" on AIX
Any help on how to further investigate would be great!
Abhinav

Here is the code that hangs. It hangs on the following statement:
props.put(APIConst.TAG_JDBC_URL, ApplicationProperties.JREPORT_TAG_JDBC_URL);
ReportConfig reportConfig= ReportConfigFactory.instance.getReportConfig(repBean.getReportName());
          if(reportConfig==null){
               throw new IllegalStateException ("The report configuration for " +
                         "the name=" + repBean.getReportName() + " " +
                         "could not be found. Please " +
                         "check the reportconfig.xml file");
          Properties props = new Properties();
          String pdfFileName;
          if(logger.isDebugEnabled()){
               logger.debug("Report is going to be generated for config=:\n \t" + 
                         reportConfig.getName());
          logger.info("Before putting properties values");
          props.put(APIConst.TAG_JDBC_DRIVER,ApplicationProperties.JREPORT_TAG_JDBC_DRIVER);
          logger.info("Setting property value for ApplicationProperties.JREPORT_TAG_JDBC_DRIVER "+ApplicationProperties.JREPORT_TAG_JDBC_DRIVER);
          props.put(APIConst.TAG_JDBC_URL, ApplicationProperties.JREPORT_TAG_JDBC_URL);
          logger.info("Setting property value for ApplicationProperties.JREPORT_TAG_JDBC_URL "+ApplicationProperties.JREPORT_TAG_JDBC_URL);
          props.put(APIConst.TAG_DB_USER,ApplicationProperties.JREPORT_TAG_DB_USER);
          logger.info("Setting property value for ApplicationProperties.JREPORT_TAG_DB_USER "+ApplicationProperties.JREPORT_TAG_DB_USER);
          props.put(APIConst.TAG_DB_PSWD,ApplicationProperties.JREPORT_TAG_DB_PSWD);          
          logger.info("Setting property value for ApplicationProperties.JREPORT_TAG_DB_PSWD "+ApplicationProperties.JREPORT_TAG_DB_PSWD);
          props.put(APIConst.TAG_TASK_CLASS, APIConst.TASK_TO_FILE);     
          logger.info("Setting property value for APIConst.TASK_TO_FILE "+APIConst.TASK_TO_FILE);
          props.put(APIConst.TAG_CATALOG, reportConfig.getCatalog());
          logger.info("Setting property value for reportConfig.getCatalog() "+reportConfig.getCatalog());
          props.put(APIConst.TAG_REPORT, reportConfig.getCls());
          logger.info("Setting property value for reportConfig.getCls() "+reportConfig.getCls());
          props.put(APIConst.TAG_TO_DISK, String.valueOf(true));
          logger.info("Setting property value for String.valueOf(true) "+String.valueOf(true));
          props.put(APIConst.TAG_TO_PDF, String.valueOf(true));
          logger.info("Setting property value for String.valueOf(true)"+String.valueOf(true));
          //Set to disk type is "1" which means publish to real disk path, default is "0"
          //which means publish to JReport Server resource path
          logger.info("After setting the db related properties");
          //check for printer setting values

Similar Messages

  • Java program hangs up

    Hi,
    I have a jar file which seems to work with version 1.3.0-01 but not with higher versions. It is a demo program provided by Natural Micro Systems a leading telecommunications solutions provider. It is a conference demo program and the NMS(Natural Micro Systems) guys say that it will work for higher versions also, but it just hangs up.
    The program consists of 3 dlls which are used by JNI to access NMS API's.
    It also consists of 3 jar files which act as interface for NMS API's.
    If any one can help me please help me and let me know if any additional information is required.
    This demo program is very useful for our testing purposes so we badly need it.
    Thanks,
    Ranjith.

    Hi,
    I have a jar file which seems to work with version 1.3.0-01 but not with higher versions. It is a demo program provided by Natural Micro Systems a leading telecommunications solutions provider. It is a conference demo program and the NMS(Natural Micro Systems) guys say that it will work for higher versions also, but it just hangs up.
    The program consists of 3 dlls which are used by JNI to access NMS API's.
    It also consists of 3 jar files which act as interface for NMS API's.
    If any one can help me please help me and let me know if any additional information is required.
    This demo program is very useful for our testing purposes so we badly need it.
    Thanks,
    Ranjith.

  • Program hanged while attempting to send java mail

    Java program hanges while atempting to send mail and below is the stack track. Can you please let us know what might using program to hang state.
    java.lang.Thread.State: RUNNABLE
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:129)
    at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:110)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
    - locked <0xb3b1a680> (a java.io.BufferedInputStream)

    Thanks, for your response.
    Yes its keep on listening state and not getting any data. Also we have set the timeout configuration and still program hangs.
    Not throwing any exception. Each time we have to take the jstack trace to check the error before killing the process id.

  • Ore program makes my Java Program crash, which uses lots of memory (Urgent

    I use a very huge HashMap to calculate something, and the HashMap size
    may be increased dynamically.
    And I start the program with -Xms300M -Xmx300M (The OS is Win2000).
    When I start some programs which may use more memory , My program shows
    that the free memory is absolutely enough , but suddenly, The thread to
    handle the HashMap seems to be hanged, and the free memory is shown to be
    reduced continuously.
    At this time, I can't stop the program, Sometimes I can't kill it by the
    Task Management Manager.
    It seems that my java program is robbed with physical memory, and
    encounter memory problem, and can't restore from it?
    Would you please tell me how to fix this problem?
    Thank you very much!
    Sincerely,
    Fang Jing
    [email protected]

    Looks more like an endless loop to me.
    Can you post the code where the problem occurs?

  • How to use another java program to stop this running prpgram???

    Dear Sir:
    I have following code and I run it success,
    import java.util.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.io.*;
    public class CertainAndRepeatTime{
      public static void main(String[] args) throws IOException{
        int delay = 1;
        Timer timer = new Timer();
        ActionListener actionListener = new ActionListener() {
            public void actionPerformed(ActionEvent actionEvent) {
              System.out.println("Hello World Timer");
        System.out.println("What do you want (Certain time or Repeat time)?");
        System.out.print("Please enter \'C\' or \'R\' for that: ");
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String ans = in.readLine();
        System.out.print("Please enter  ans=" + ans  + " IsTrue=  " + (ans.equals("R") || ans.equals("r")) +"\n");
        if (ans.equals("C") || ans.equals("c")){
          //System.out.println("This line is printed only once start...");
          timer.schedule(new TimerTask(){
            public void run(){
              System.out.println("This line is printed only once.");
          },delay,1);
        else if(ans.equals("r") || ans.equals("R")){
            timer.scheduleAtFixedRate(new TimerTask(){
              public void run(){
                System.out.println("This line is printed repeatedly.");
            },delay, 1000);
          while(true){
               //System.out.println("Charles print This line is printed repeatedly.");          
          } //This will make your main thread hang.
        else{
          System.out.println("Invalid Entry.");
          System.exit(0);
        System.exit(0);
    }But I hope to use another java program to stop it when it is running instead of pressing CRTL + C to stop it.
    How to do it??
    Any example??
    Thanks a lot!!

    Sorry, I think i did not express cearly. It is my fault.
    I re-write my requirements again:
    I have
    Class AAA1.java,
    Class AAA2.java,
    Class AAA3.java,
    Class AAA20.java...
    etc
    they all look like the program I posted first time,, once executed, they will run for ever, and they will be stopped until I press CRTL + C;
    Now I hope to use another java class StopProgram.java to stop them 1 by 1 or at once instead of pressing CRTL + C;
    In this case, how to code this StopProgram.java ??
    Thanks

  • How to call a perl module from Java program.

    Hi,
    I create a simple java program as follows
    class test{
    public static void main(String args[])
    {try {                    
    Runtime r = Runtime.getRuntime();
    r.exec("perl test.pl");
    catch(Exception e)
    {e.printStackTrace();}
    and test.pl is located in the same directory as the java program. The program compiles but with no return as I execute it. I am not sure what is wrong.
    Thanks,

    I think the wrong line is here; r.exec("perl test.pl");
    Usually the JVM needs the full path.If the path for either the executable or the script was wrong then, given the code posted, it would not hang.
    >
    To automatticaly get the path (if the file is in the
    class path) use
    System.getProperty("java.class.path")
    That gets paths(plural).
    Try this:
    r.exec("perl " +
    System.getProperty("java.class.path") + "\test.pl");I am rather certain that that won't work on any standard operating system.

  • Using a UNIX shell script to run a Java program (packaged in a JAR)

    Hi,
    I have an application (very small) that connects to our database. It needs to run in our UNIX environment so I've been working on a shell script to set the class path and call the JAR file. I'm not making a lot of progress on my own. I've attached the KSH (korn shell script) file code.
    Thanks in advance to anyone who knows how to set the class path and / or call the JAR file.
    loggedinuser="$(whoami)"
    CFG_DIR="`dirname $0`"
    EXIT_STATUS=${SUCCESS}
    export PATH=/opt/java1.3/bin:$PATH
    OLDDIR="`pwd`"
    cd $PLCS_ROOT_DIR
    java -classpath $
    EXIT_STATUS=$?
    cd $OLDDIR
    echo $EXIT_STATUS
    exit $EXIT_STATUS

    Hi,
    I have an application (very small) that connects to
    our database. It needs to run in our UNIX environment
    so I've been working on a shell script to set the
    class path and call the JAR file.
    #!/bin/sh
    exec /your/path/to/java -cp your:class:paths:here -MoreJvmOptionsHere your.package.and.YourClass "$@"Store this is a file of any name, e.g. yuckiduck, and then change the persmissions to executechmod a+x yuckiduckThe exec makes sure the shell used to run the script does not hang around until that java program finishes. While this is only a minor thing, it is nevertheless infinite waste, because it does use some resources but the return on that investment is 0.
    CFG_DIR="`dirname $0`"You would like to fetch the directory of the installation out of $0. This breaks as soon as someone makes a (soft) link in some other directory to this script and calls it by its soft linked name. Your best bet if you don't know a lot of script programming is to hardcode CFG_DIR.
    OLDDIR="`pwd`"
    cd $PLCS_ROOT_DIRVery bad technique in UNIX. UNIX supports the notion of a "current directory". If your user calls this program in a certain directory, you should assume that (s)he does this on purpose. Making your application dependent on a start in a certain directory ignores the very helpful concept of 'current directory' and is therefore a bug.
    cd $OLDDIRThis has no effect at all because it only affects the next two lines of code and nothing else. These two lines, however, don't depend on the current directory. In particular this (as the cd above) does not change the current directory for the interactive shell your user is working in.
    echo $EXIT_STATUS
    exit $EXIT_STATUSEchoing the exit status is an interesting idea, but if you don't do this for a very specific purpose, I recommend not to do this for the simple reason that no other UNIX program does it.
    Harald.

  • Using DB2's import/export utilities in Java program

    DB2 database has build in utility called export, throgh which we can export the output of a Query directly onto a Lotus 123 file. But I beleive that , to invoke such DB2 utilities throgh a Java Program, we need to have APIs.
    My question is ,are such APIs available ?
    If so, what are the APIs necessary for calling this EXPORT and IMPORT utilities of DB2 ?

    Well, If you have to use Runtime.exec() and provide these as command lines, then the best option is to write a shell script( my Java application is on AIX platform) and then call the shell script through exec().
    But Shell scripts don't run well with Runtime.exec() right ?
    B'Cause, I tried it but the application did'nt throw up any exception. No message was flashed either. The process was just hanging.....so do you know a better method to actually run a shell script through a Java program ?

  • Java program in XP - Please Help

    Hi, I am not sure if I am in the right fourm. I am not a developer, but a network engineer trying to help out my wife. My wife uses a java program to monitor the company she works for web site, which is not linked to a web browser. When she received the java program, it came with Java 1.2.2. Our PC had Windows 98 installed. I purchased a new machine, with Windows XP on it, and installed the java program and JRE on to it. The program does not work. The programmer who wrote the program was fired a few months ago, so I started looking through the internet, and the Sun fourms for a solution. First, the XP machine does not have Microsoft VM on it. Second, I upgraded the java to 1.4.1_02, following the instructions, still with no success. There was a suggestion to dual boot with Windows 98, but I really do not want to do that. What happens is - when you log in to the program, it just freezes. It does not go into the server. Any help is greatly appreciated.

    Possible reasons for the program hanging up
    1) The version of the VM on the machine is not correct.
    2) Even if the version is correct and correctly installed, can you please check whether the PATH and CLASSPATH variables are set correctly on the machine where you are running the program.
    3) I use WINXP as well with the latest version of VM downloaded from Sun and NOT Microsoft.
    Hopefully this might solve the issue.

  • 32 bit compiled Java Program not connecting to 64 bit Oracle 11g

    Hi,
    I am using one java program to connect to Oracle 11g (64 bit version) using Oracle10g 32 bit client libraries using OCI calls. Below is the program. If I compile it using 64 bit Oracle 10g libraries ($ORACLE_HOME/lib and $ORACLE_HOME/rdbms/lib) , it perfectly connects to Oracle11g but when i compile it using $ORACLE_HOME/lib32 and $ORACLE_HOME/rdbms/lib32, it hangs and keeps trying and takes 100% cpu usage. it does nothing. Please suggest what is going wrong in the environment.
    ============================
    import java.sql.*;
    class dbAccess {
    public static void main (String args []) throws Exception
    Class.forName ("oracle.jdbc.OracleDriver");
    Connection conn = DriverManager.getConnection
    ("jdbc:oracle:oci8:@lvfd", "fde", "fde");
    // or oci7 @TNSNames_Entry, userid, password
    try {
    Statement stmt = conn.createStatement();
    try {
    ResultSet rset = stmt.executeQuery("select * from tab");
    try {
    while (rset.next())
    System.out.println (rset.getString(1)); // Print col 1
    } finally {
    try { rset.close(); } catch (Exception ignore) {}
    } finally {
    try { stmt.close(); } catch (Exception ignore) {}
    } finally {
    try { conn.close(); } catch (Exception ignore) {}
    ================================================

    >
    I am compiling like when LD_LIBRARY_PATH set to $ORACLE_HOME/lib32:$ORACLE_HOME/rdbms/lib32.
    javac -cp .:$ORACLE_HOME/jdbc/lib/ojdbc14.jar dbAccess.java
    as my program resides in current directory. I run it like :
    java -cp .:$ORACLE_HOME/jdbc/lib/ojdbc14.jar dbAccess
    Output: it hangs forever.
    I am compiling like when LD_LIBRARY_PATH set to $ORACLE_HOME/lib:$ORACLE_HOME/rdbms/lib
    javac -cp .:$ORACLE_HOME/jdbc/lib/ojdbc14.jar dbAccess.java
    as my program resides in current directory. I run it like :
    java -cp .:$ORACLE_HOME/jdbc/lib/ojdbc14.jar dbAccess
    Output: It gets connected and list all the tables as output.
    >
    The ojdbc14.jar file is for use with Java 1.4 VMs.
    Are you still using Java 1.4? If so, why?
    For Oracle 11g you should be using the latest JDBC jar file (ojdbc6.jar) and the latest version of Java 1.6.
    You are not only using an old JDBC driver and Java version but are also trying to mix 32 bit and 64 bit operations.
    I suggest you start using recommended practices and update your Java and JDBC versions and select EITHER 32 bit or 64 bit operations.
    See the Official JDBC FAQ for the details on the support available for various combinations of Oracle DB, Java and the JDBC drivers:
    http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-faq-090281.html

  • Sample Program hangs while executing mining task

    Hi, we installed 9i (9.2.0.3, JServer Release 9.2.0.3.0) DM option. The two users related to ODM have been created by installation and been unlocked. I am trying to run the sample programs on the AIX UNIX server. I could succesfully compile these java programs but when I run them, they hang (for more than 1 hour) just after executing wait-on-task statement.
    On this server I could compile test java programs on O/S. I could store and execute those classes as java stored procedures.
    I suspect the reason is because ODM_MONITOR gives the following error:
    begin ODM.DMT_ODM.MONITOR_MAIN;end;
    ERROR at line 1:
    ORA-29541: class ODM.oracle/dmt/odm/internal/task/DMSMonitor could not be
    resolved
    ORA-06512: at "ODM.DMT_ODM", line 0
    ORA-06512: at line 1
    The reason could be that 72 Java classes under ODM DB account (including the corresponding class) are invalid. Even after reinstallation, they remain invalid. Anyone has any ideas as to why it is happening? Is there anything that I am missing? Any help is appreciated
    Thanks,
    Kiran

    Hi Kiran,
    Oracle Data Mining is not ported 9.2.0.3.0 release to AIX. The invalid objects are caused because AIX 9.2.0.3.0 relapse is using older version of the ODM libraries.
    Two possible solutions are:
    1. Use AIX 9.2.0.1 release (to which ODM was ported).
    2. Request Oracle support for a 9.2.0.3.0 port of ODM.

  • My j2me program hangs --need help

    hi.my program hangs whenever i run my midlet and i get a message like this
    Warning: To avoid potential deadlock, operations that may block, such as
    networking, should be performed in a different thread than the
    commandAction() handler.
    below is my codes
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import java.io.*;
    import javax.microedition.io.file.*;
    import javax.microedition.io.*;
    public class TCPClient extends MIDlet implements CommandListener ,ItemCommandListener {
    private Display display;
    private Form form;
    private Command exit,set;
    private TextField txtField;
    private ChoiceGroup sImage;
    private int sIndex;
    private String strTxtField;
    private Image image;
    public TCPClient(){
    display=Display.getDisplay(this);
    form=new Form("TCPClient");
    txtField=new TextField("type what u want to send",null,30,TextField.ANY);
    sImage= new ChoiceGroup("pls select", Choice.EXCLUSIVE);
    sImage.append("no image",null); //=0
    sImage.append("image",null);  //=1
    exit=new Command("Exit",Command.EXIT,1);             //1= highest priority,
    form.append(txtField);
    form.append(sImage);
    form.addCommand(exit);
    form.setCommandListener(this);
    try{
         Image image= Image.createImage("/send.jpg");
         ImageItem imageItem=new ImageItem(null,image,Item.LAYOUT_CENTER ,null,Item.BUTTON);
         set =new Command("Set", Command.ITEM, 1);
         imageItem.setDefaultCommand( set);
         imageItem.setItemCommandListener(this);
         form.append(imageItem);
         }//end of try
    catch(IOException e){System.out.println("button error");}
         }// end of constructor
    public void startApp(){
    System.out.println("midlet started");
    ItemStateListener listener = new MyStateListener();
    form.setItemStateListener(listener);// register for events
            display.setCurrent(form);
    public void pauseApp(){}
    public void destroyApp(boolean unconditional){}
    public void commandAction(Command c, Displayable s){
    if(c==exit){
              destroyApp(false);
              notifyDestroyed();
    }  // end of commandAction
    public void commandAction(Command c, Item item){
    if(c==set){
         strTxtField=txtField.getString();
    System.out.println(strTxtField);
    try {
                      String filename = "file:///root1/commands.txt";
                              byte[] data = strTxtField.getBytes();
                    FileConnection filecon = (FileConnection)Connector.open(filename,Connector.READ_WRITE);
                    // Always check whether the file or directory exists.
                    if(!filecon.exists()) {
                       filecon.create();
                        OutputStream outputStream = filecon.openOutputStream();
                                           outputStream.write(data);
                                           outputStream.close();
                    filecon.close();
                 } catch(IOException ioe) {
               }//end of set
    }//emd of commandAction method
         private class MyStateListener implements ItemStateListener
                     boolean pictureIsShown=false; //Remember the state
                        int pictureIndex; //Remember the index
                     public void itemStateChanged(Item item)
                             if(item==sImage){
                                  sIndex=sImage.getSelectedIndex();
                                  switch(sIndex){
                                       case 0:System.out.println(sIndex);
                                              if (!pictureIsShown){
                                                        form.delete(pictureIndex);}
                                      break; // end of case0
                                       case 1:System.out.println(sIndex);
                                       if (!pictureIsShown){
                                           try{
                                             ImageItem logo= new ImageItem("",Image.createImage ("/misa.jpg"),      ImageItem.LAYOUT_CENTER,"");
                                       pictureIndex=form.append(logo);
                                       System.out.println("success");
                                       catch(IOException e)
                                       {System.out.println("error");}}//end of if
                                       break;
                                default: System.out.println("kiss my ___");
                                       }//end of switch
                                  }//end of if
                                //do something
                     }//donttouch
    }whenever it runs,it would hangs if i enable it to read my codes.
    any help/advise is greatly appreciate.thanks

    Hi
    Use thread while creating a connection -
    http://forum.java.sun.com/thread.jspa?threadID=5119680
    Check this link, ll get an idea - how you can use thread?
    Rohan Chandane

  • Program hangs, can't get thread dump

    Hello
    I have a Java program which sometimes works OK untill the very end, but sometimes just hangs in a random moment and doesn't react to Ctrl+C or Ctrl+Break. Process doesn't use CPU, so I guess it isn't something like infinite loop (I actually cannot think of places in my program where this kind of loop may occur). I tried to get thread dump to see if there are any deadlocks, but Ctrl+Break doesn't work and jstack doesn't work also (I've read that there is -F option, but it isn't available on Windows). Also I tried to connect to a process with Java Visual VM - doesn't help too (just says 'Connecting...' forever).
    What else can I do to find out what's going on in my programm and fix it?
    I tried to run it with JDK 1.6.0_07 and 1.6.0_16. I'm using Windows Vista Enterprise SP1, 64-bit.
    Thanks in advance, Yulia.
    Edited by: Yulia_Dubinina on Oct 26, 2009 11:58 PM
    Edited by: Yulia_Dubinina on Oct 27, 2009 12:13 AM

    Yulia_Dubinina wrote:
    Yesterday I tried to start my program, connect with Java Visual VM to it and see how threads visualisation will look like in a moment when program hangs. My programm died after about 50 min and all info which I was able to see was about this period of time (e.g. a timeline diagram stopped changing and the last time mark was 49:23), but Java Visual VM was still connected to a process. I tried to press Thread Dump button, it worked, but there was nothing 'criminal' on the dump it provided. So I guess maybe it's not actual thread dump, it's something that Java Visual VM was able to get before process hanged.
    I don't have much experience in resolving this kind of problems, so any advices will be great appreciated.
    Edited by: Yulia_Dubinina on Oct 27, 2009 2:14 PMTurn on verbose GC and see if you got lots and lots of full GC when the freeze happens. A full GC can take several minutes if you have a bad configuration (where e.g. memory has been paged out to disk)

  • Java program "textcite" anyone had success running this program

    hi,
    i have installed java via pacman jre
    I try to start the text citation program TextCite which requires java 1.5 (i have 1.6.0.10).
    anyone
    http://textcite.sourceforge.net/
    I start this program from the terminal with:
    java -jar TextCite-1.3.jar
    Spash screen appears but than the program hangs. Wondering now if
    anyone had success. This is one of my "must have" applications
    thanks for your help

    I just started playing Warcraft quite a bit on my MBP 2008 15". I customized my MBP pretty nice with 4GB RAM, etc.
    I have generally had no problems. In fact, my MBP performs better than the rather nicely spec'd PC I used to run Warcraft on. I can set the Warcraft video settings pretty high and still get at least decent framerates. Crowded cities the FR goes down to maybe around 20 which is no biggie - where you want your FR's good is in instances/raids. My FR's in those go way up to 50-70...smooth, even with effect settings pretty high and max resolution on my external monitor I'm running the game on.
    My MBP will indeed get hot, fans whir, etc. Especially in cities. I ordered one of those Zephr's or whatever their called - a fan/heatsink built for MBP's to sit on to keep them a bit cooler. That should arrive soon.
    In the meantime I've been propping up my MPB off the desk service so that it gets plenty of air circulation underneath it...that seems to help with the heat actually quite a bit.

  • Multi-threaded program hangs in Linux with green thread when doing I/O

    Hi,
    I am using green thread(jdk1.3.1) on Linux. My program is in multi-threaded model and has some I/O operations. I am runing one java program using Runtime.exec("java <program>"). Actually the <program> prompts user with some question like "enter location" and waits for the input. Now in my code I am constantly reading the input stream of the process. Once I get the string like "enter location", immediately I send the location through Process o/p stream. But the process is not able to read this and hangs there for ever.
    Please help, what could be the problem? If you need the source code, pls let me know.
    Thanks in advance,
    Sisir

    I had a similar issue few weeks back... If I could see the source I would have a better understanding of the problem and think I could help out. If you want to send it, send it to [email protected]
    thanks,
    JP

Maybe you are looking for