Java Automation Program Debugging help

Dear fellow members,
a ex-coworker has written a java applet for my system measuring automation. Unfortunatly it stopped working and i have no idea why. I will write down what the program is supposed to do and what it does. Thank you in advance for all your help, it is really apreciated. And excuse my english, this is not my native language.
HIOKI = Power consumption measuring device
The program hiok.jar looks into a specified directory (which is defined in the hioki.ini) for 4 files.
s0idle.txt
s0active.txt
s3.txt
s5.txt
First it looks for the s0idle.txt and starts the HIOKI device via the RS232c interface. It sets the voltage, current range etc.. and a integer for 5 minutes. After the measuring is completed it should print out the "resulats" and wait for the s0active.txt which then restarts the measuring process with different values.
The program used to work just fine, but for some odd reason it does not anymore. The first file "s0idle.txt" is found the measuring is initialized but it never prints out the results or continues to the s0active.txt file. After all 4 measurements are done it should create an xls file.
Below is the source code and maybe you can help me. Unfortunatly i have ABSOLUTE ZERO knowledge about java. I am not a programmer but have to fix this for my department. looks odd ;-)
Thanks
Florian
package hioki;
import java.io.*;
import javax.swing.*;
* @author Administrator
public class HIOKI_main {
     * @param args
     private static String mess="";
     private static HIOKI_excel excelDatei=null;
     private static String OutputFolder="C:\\HIOKI-Output";
     private static String InstructionFolder="X:\\Automat";
     private static int s0idleDelay=0;
     private static String s0idleMaxVolt="300";
     private static String s0idleMaxCurr="2";
     private static int s0activeDelay=80;
     private static String s0activeMaxVolt="300";
     private static String s0activeMaxCurr="2";
     private static int s3Delay=80;
     private static String s3MaxVolt="300";
     private static String s3MaxCurr="200.0E-3";
     private static int s5Delay=10;
     private static String s5MaxVolt="300";
     private static String s5MaxCurr="200.0E-3";
     private static String port="COM1";
     public static void main(String[] args) {
          boolean run=true;
          while(run)
               //ini-File lesen und auswerten
               File eingabedatei;
               FileReader fr;
               BufferedReader br;
               eingabedatei=new File("hioki.ini");
               //TODO
               System.out.println("wait + read: "+eingabedatei.getAbsolutePath());
               //Datei lesen und in Array abspeichern
               try{
                    fr=new FileReader(eingabedatei);
                    br=new BufferedReader(fr);
                    String input="";
                    while((input=br.readLine())!=null)
                         if(input.startsWith("OutputFolder:"))
                         {     OutputFolder=input.substring(input.indexOf(" ")+1);
                              //System.out.println(OutputFolder);
                         else if(input.startsWith("InstructionFolder:"))
                         {     InstructionFolder=input.substring(input.indexOf(" ")+1);
                              //System.out.println(InstructionFolder);
                         else if(input.startsWith("Port:"))
                         {     port=input.substring(input.indexOf(" ")+1);
                              //System.out.println(port);
                         else if(input.startsWith("s0idle-Delay:"))
                         {     s0idleDelay=Integer.valueOf(input.substring(input.indexOf(" ")+1)).intValue();
                              //System.out.println(s0idleDelay);
                         else if(input.startsWith("s0idle-maxVolt:"))
                         {     s0idleMaxVolt=input.substring(input.indexOf(" ")+1);
                              //System.out.println(s0idleMaxVolt);
                         else if(input.startsWith("s0idle-maxCurr:"))
                         {     s0idleMaxCurr=input.substring(input.indexOf(" ")+1);
                              //System.out.println(s0idleMaxCurr);
                         else if(input.startsWith("s0active-Delay:"))
                         {     s0activeDelay=Integer.valueOf(input.substring(input.indexOf(" ")+1)).intValue();
                              //System.out.println(s0activeDelay);
                         else if(input.startsWith("s0active-maxVolt:"))
                         {     s0activeMaxVolt=input.substring(input.indexOf(" ")+1);
                              //System.out.println(s0activeMaxVolt);
                         else if(input.startsWith("s0active-maxCurr:"))
                         {     s0activeMaxCurr=input.substring(input.indexOf(" ")+1);
                              //System.out.println(s0activeMaxCurr);
                         else if(input.startsWith("s3-Delay:"))
                         {     s3Delay=Integer.valueOf(input.substring(input.indexOf(" ")+1)).intValue();
                              //System.out.println(s3Delay);
                         else if(input.startsWith("s3-maxVolt:"))
                         {     s3MaxVolt=input.substring(input.indexOf(" ")+1);
                              //System.out.println(s3MaxVolt);
                         else if(input.startsWith("s3-maxCurr:"))
                         {     s3MaxCurr=input.substring(input.indexOf(" ")+1);
                              //System.out.println(s3MaxCurr);
                         else if(input.startsWith("s5-Delay:"))
                         {     s5Delay=Integer.valueOf(input.substring(input.indexOf(" ")+1)).intValue();
                              //System.out.println(s5Delay);
                         else if(input.startsWith("s5-maxVolt:"))
                         {     s5MaxVolt=input.substring(input.indexOf(" ")+1);
                              //System.out.println(s5MaxVolt);
                         else if(input.startsWith("s5-maxCurr:"))
                         {     s5MaxCurr=input.substring(input.indexOf(" ")+1);
                              //System.out.println(s5MaxCurr);
               catch(FileNotFoundException e){}
               catch(IOException e){}
               try
               {     Thread.sleep(2000);}
               catch(InterruptedException e)
               File instructionFile=new File(InstructionFolder);
               if(instructionFile.exists()==true)
                    String[] list=instructionFile.list();
                    for(int i=0;i<list.length;i++)
                         //Wenn Datei mit Namen exit vorhanden ist, dann Programm beenden
                         if(list.endsWith("exit"))
                              new File(InstructionFolder+"+\\exit").delete();
                              int ok=JOptionPane.showConfirmDialog(null,"Beenden","found",JOptionPane.OK_CANCEL_OPTION,JOptionPane.INFORMATION_MESSAGE);
                              if(ok==JOptionPane.OK_OPTION)
                              {     return;}
                         if(list[i].endsWith("s0idle.txt")==true)
                              //Excel-Datei initialisieren
                              try{     excelDatei=new HIOKI_excel();}
                              catch(IOException e){};
                              //s0idle Datei �ffnen
                              instructionFile=new File(InstructionFolder+"\\s0idle.txt");
                              if(instructionFile.exists()!=false)
                                   System.out.println("s0idle gefunden");
                                   //Hioki mit s0idle starten
                                   try
                                   {     Thread.sleep(s0idleDelay*1000);}
                                   catch(InterruptedException e)
                                   System.out.println("s0idle starten");
                                   mess=s0idle();
                                   System.out.println(mess);
                                   System.out.println("s0idle loeschen");
                                   instructionFile.delete();
                                   //s0active Datei �ffnen
                                   int s0idleExists=0;
                                   for(instructionFile=new File(InstructionFolder+"\\s0active.txt");instructionFile.exists()!=true;instructionFile=new File(InstructionFolder+"\\s0active.txt"))
                                        instructionFile=new File(InstructionFolder+"\\s0idle.txt");
                                        if(instructionFile.exists()==true)
                                        {     s0idleExists=1;
                                             break;
                                        //2 Sekunden schlafen bis weiter gesucht wird
                                        try{     Thread.sleep(2000);}
                                        catch(InterruptedException e){}
                                   //Wenn s0idle gefunden wird, dann von neuem beginnen
                                   if(s0idleExists==1)
                                   {     break;}
                                   System.out.println("s0active gefunden");
                                   //Hioki mit s0active starten
                                   try
                                   {     Thread.sleep(s0activeDelay*1000);}
                                   catch(InterruptedException e)
                                   System.out.println("s0active starten");
                                   mess=s0active();
                                   System.out.println(mess);
                                   System.out.println("s0active loeschen");
                                   instructionFile.delete();
                                   //s3
                                   s0idleExists=0;
                                   for(instructionFile=new File(InstructionFolder+"\\s3.txt");instructionFile.exists()!=true;instructionFile=new File(InstructionFolder+"\\s3.txt"))
                                        instructionFile=new File(InstructionFolder+"\\s0idle.txt");
                                        if(instructionFile.exists()==true)
                                        {     s0idleExists=1;
                                             break;
                                        try
                                        {     Thread.sleep(2000);}
                                        catch(InterruptedException e)
                                   //Wenn s0idle gefunden wird, dann von neuem beginnen
                                   if(s0idleExists==1)
                                   {     break;}
                                   System.out.println("s3 gefunden");
                                   //Hioki mit s3 starten
                                   try
                                   {     Thread.sleep(s3Delay*1000);}
                                   catch(InterruptedException e)
                                   System.out.println("s3 starten");
                                   mess=s3();
                                   System.out.println(mess);
                                   System.out.println("s3 loeschen");
                                   instructionFile.delete();
                                   //s5
                                   s0idleExists=0;
                                   for(instructionFile=new File(InstructionFolder+"\\s5.txt");instructionFile.exists()!=true;instructionFile=new File(InstructionFolder+"\\s5.txt"))
                                        instructionFile=new File(InstructionFolder+"\\s0idle.txt");
                                        if(instructionFile.exists()==true)
                                        {     s0idleExists=1;
                                             break;
                                        try
                                        {     Thread.sleep(2000);}
                                        catch(InterruptedException e)
                                   //Wenn s0idle gefunden wird, dann von neuem beginnen
                                   if(s0idleExists==1)
                                   {     break;}
                                   System.out.println("s5 gefunden");
                                   //Hioki mit s5 starten
                                   try
                                   {     Thread.sleep(s5Delay*1000);}
                                   catch(InterruptedException e)
                                   System.out.println("s5 starten");
                                   mess=s5();
                                   System.out.println(mess);
                                   System.out.println("s5 loeschen");
                                   instructionFile.delete();
                                   //Auftragsnummer abfragen
                                   String antwort=null;
                                   for(;antwort==null||antwort=="";)
                                   {     antwort = JOptionPane.showInputDialog(null, "Messung abgeschlossen!\nAuftragsnummer: ", "Messung abgeschlossen!", JOptionPane.QUESTION_MESSAGE);}
                                   //Excel Datei schreiben
                                   System.out.println("Excel Datei schreiben");
                                   try{     excelDatei.close(OutputFolder, antwort);}
                                   catch(IOException e){}
                              break;
     private static String s0idle()
          HIOKI_RS232 hioki=new HIOKI_RS232(port);
          System.out.println("start");
          hioki.sendString("*RST");
          hioki.sendString("RESP FAST");
          hioki.sendString("VOLT:AUTO OFF");
          hioki.sendString("VOLT:RANG "+s0idleMaxVolt);
          hioki.sendString("CURR:AUTO OFF");
          hioki.sendString("CURR:RANG "+s0idleMaxCurr);
          hioki.sendString("DISP V,A,W,WH");
          hioki.sendString("INTEG:TIME 0,5,0");
          hioki.sendString("INTEG:STAT START");
          //5 Minuten warten
          try
          {     Thread.sleep(5*60000);}          //=5 min
          catch(InterruptedException e)
          String erg="";
          for(;erg.indexOf("STATE STOP")==-1;)
               erg=hioki.sendStringAndGetAnswer("INTEG:STAT?");
          //Werte in Excel Datei schreiben
          hioki.sendString("HEAD OFF");
          String v=hioki.sendStringAndGetAnswer("MEAS? V");
          String a=hioki.sendStringAndGetAnswer("MEAS? A");
          String freq=hioki.sendStringAndGetAnswer("MEAS? FREQ");
          String w=hioki.sendStringAndGetAnswer("MEAS? W");
          String pwh=hioki.sendStringAndGetAnswer("MEAS? PWH");
          hioki.sendString("HEAD ON");
          v.substring(0, v.length()-2);
          a.substring(0, a.length()-2);
          freq.substring(0, freq.length()-2);
          w.substring(0, w.length()-2);
          pwh.substring(0, pwh.length()-2);
          excelDatei.setS0idle(v, a, freq, w, pwh);
          System.out.println("s0idle: U="+v+"V ; I="+a+"A ; Freq="+freq+"Hz ; P="+w+"W ; W="+pwh+"WH");
          erg=hioki.sendStringAndGetAnswer("MEAS?");
          hioki.disconnect();
          return erg;
     private static String s0active()
          HIOKI_RS232 hioki=new HIOKI_RS232(port);
          hioki.sendString("*RST");
          hioki.sendString("RESP FAST");
          hioki.sendString("VOLT:AUTO OFF");
          hioki.sendString("VOLT:RANG "+s0activeMaxVolt);
          hioki.sendString("CURR:AUTO OFF");
          hioki.sendString("CURR:RANG "+s0activeMaxCurr);
          hioki.sendString("DISP V,A,W,WH");
          hioki.sendString("INTEG:TIME 0,10,0");
          hioki.sendString("INTEG:STAT START");
          //10 Minuten warten
          try
          {     Thread.sleep(10*60000);}          //=10 min
          catch(InterruptedException e)
          String erg="";
          for(;erg.indexOf("STATE STOP")==-1;)
               erg=hioki.sendStringAndGetAnswer("INTEG:STAT?");
          //Werte in Excel Datei schreiben
          hioki.sendString("HEAD OFF");
          String v=hioki.sendStringAndGetAnswer("MEAS? V");
          String a=hioki.sendStringAndGetAnswer("MEAS? A");
          String freq=hioki.sendStringAndGetAnswer("MEAS? FREQ");
          String w=hioki.sendStringAndGetAnswer("MEAS? W");
          String pwh=hioki.sendStringAndGetAnswer("MEAS? PWH");
          hioki.sendString("HEAD ON");
          v.substring(0, v.length()-2);
          a.substring(0, a.length()-2);
          freq.substring(0, freq.length()-2);
          w.substring(0, w.length()-2);
          pwh.substring(0, pwh.length()-2);
          excelDatei.setS0active(v, a, freq, w, pwh);
          System.out.println("s0active: U="+v+"V ; I="+a+"A ; Freq="+freq+"Hz ; P="+w+"W ; W="+pwh+"WH");
          erg=hioki.sendStringAndGetAnswer("MEAS?");
          hioki.disconnect();
          return erg;
     private static String s3()
          HIOKI_RS232 hioki=new HIOKI_RS232("COM1");
          hioki.sendString("*RST");
          hioki.sendString("RESP FAST");
          hioki.sendString("VOLT:AUTO OFF");
          hioki.sendString("VOLT:RANG "+s3MaxVolt);
          hioki.sendString("CURR:AUTO OFF");
          hioki.sendString("CURR:RANG "+s3MaxCurr);
          hioki.sendString("DISP V,A,W,WH");
          hioki.sendString("INTEG:TIME 0,5,0");
          hioki.sendString("INTEG:STAT START");
          //5 Minuten warten
          try
          {     Thread.sleep(5*60000);}          //=5 min
          catch(InterruptedException e)
          String erg="";
          for(;erg.indexOf("STATE STOP")==-1;)
               erg=hioki.sendStringAndGetAnswer("INTEG:STAT?");
          //Werte in Excel Datei schreiben
          hioki.sendString("HEAD OFF");
          String v=hioki.sendStringAndGetAnswer("MEAS? V");
          String a=hioki.sendStringAndGetAnswer("MEAS? A");
          String freq=hioki.sendStringAndGetAnswer("MEAS? FREQ");
          String w=hioki.sendStringAndGetAnswer("MEAS? W");
          String pwh=hioki.sendStringAndGetAnswer("MEAS? PWH");
          hioki.sendString("HEAD ON");
          v.substring(0, v.length()-2);
          a.substring(0, a.length()-2);
          freq.substring(0, freq.length()-2);
          w.substring(0, w.length()-2);
          pwh.substring(0, pwh.length()-2);
          excelDatei.setS3(v, a, freq, w, pwh);
          System.out.println("s3: U="+v+"V ; I="+a+"A ; Freq="+freq+"Hz ; P="+w+"W ; W="+pwh+"WH");
          erg=hioki.sendStringAndGetAnswer("MEAS?");
          hioki.disconnect();
          return erg;
     private static String s5()
          HIOKI_RS232 hioki=new HIOKI_RS232(port);
          hioki.sendString("*RST");
          hioki.sendString("RESP FAST");
          hioki.sendString("VOLT:AUTO OFF");
          hioki.sendString("VOLT:RANG "+s5MaxVolt);
          hioki.sendString("CURR:AUTO OFF");
          hioki.sendString("CURR:RANG "+s5MaxCurr);
          hioki.sendString("DISP V,A,W,WH");
          hioki.sendString("INTEG:TIME 0,5,0");
          hioki.sendString("INTEG:STAT START");
          //5 Minuten warten
          try
          {     Thread.sleep(5*60000);}          //=5 min
          catch(InterruptedException e)
          String erg="";
          for(;erg.indexOf("STATE STOP")==-1;)
               erg=hioki.sendStringAndGetAnswer("INTEG:STAT?");
          //Werte in Excel Datei schreiben
          hioki.sendString("HEAD OFF");
          String v=hioki.sendStringAndGetAnswer("MEAS? V");
          String a=hioki.sendStringAndGetAnswer("MEAS? A");
          String freq=hioki.sendStringAndGetAnswer("MEAS? FREQ");
          String w=hioki.sendStringAndGetAnswer("MEAS? W");
          String pwh=hioki.sendStringAndGetAnswer("MEAS? PWH");
          v.substring(0, v.length()-2);
          a.substring(0, a.length()-2);
          freq.substring(0, freq.length()-2);
          w.substring(0, w.length()-2);
          pwh.substring(0, pwh.length()-2);
          hioki.sendString("HEAD ON");
          excelDatei.setS5(v, a, freq, w, pwh);
          System.out.println("s5: U="+v+"V ; I="+a+"A ; Freq="+freq+"Hz ; P="+w+"W ; W="+pwh+"WH");
          erg=hioki.sendStringAndGetAnswer("MEAS?");
          hioki.disconnect();
          return erg;

Dear fellow members,
a ex-coworker has written a java applet for my system measuring automation. Unfortunatly it stopped working and i have no idea why. I will write down what the program is supposed to do and what it does. Thank you in advance for all your help, it is really apreciated. And excuse my english, this is not my native language.
HIOKI = Power consumption measuring device
The program hiok.jar looks into a specified directory (which is defined in the hioki.ini) for 4 files.
s0idle.txt
s0active.txt
s3.txt
s5.txt
First it looks for the s0idle.txt and starts the HIOKI device via the RS232c interface. It sets the voltage, current range etc.. and a integer for 5 minutes. After the measuring is completed it should print out the "resulats" and wait for the s0active.txt which then restarts the measuring process with different values.
The program used to work just fine, but for some odd reason it does not anymore. The first file "s0idle.txt" is found the measuring is initialized but it never prints out the results or continues to the s0active.txt file. After all 4 measurements are done it should create an xls file.
Below is the source code and maybe you can help me. Unfortunatly i have ABSOLUTE ZERO knowledge about java. I am not a programmer but have to fix this for my department. looks odd ;-)
Thanks
Florian
package hioki;
import java.io.*;
import javax.swing.*;
* @author Administrator
public class HIOKI_main {
     * @param args
     private static String mess="";
     private static HIOKI_excel excelDatei=null;
     private static String OutputFolder="C:\\HIOKI-Output";
     private static String InstructionFolder="X:\\Automat";
     private static int s0idleDelay=0;
     private static String s0idleMaxVolt="300";
     private static String s0idleMaxCurr="2";
     private static int s0activeDelay=80;
     private static String s0activeMaxVolt="300";
     private static String s0activeMaxCurr="2";
     private static int s3Delay=80;
     private static String s3MaxVolt="300";
     private static String s3MaxCurr="200.0E-3";
     private static int s5Delay=10;
     private static String s5MaxVolt="300";
     private static String s5MaxCurr="200.0E-3";
     private static String port="COM1";
     public static void main(String[] args) {
          boolean run=true;
          while(run)
               //ini-File lesen und auswerten
               File eingabedatei;
               FileReader fr;
               BufferedReader br;
               eingabedatei=new File("hioki.ini");
               //TODO
               System.out.println("wait + read: "+eingabedatei.getAbsolutePath());
               //Datei lesen und in Array abspeichern
               try{
                    fr=new FileReader(eingabedatei);
                    br=new BufferedReader(fr);
                    String input="";
                    while((input=br.readLine())!=null)
                         if(input.startsWith("OutputFolder:"))
                         {     OutputFolder=input.substring(input.indexOf(" ")+1);
                              //System.out.println(OutputFolder);
                         else if(input.startsWith("InstructionFolder:"))
                         {     InstructionFolder=input.substring(input.indexOf(" ")+1);
                              //System.out.println(InstructionFolder);
                         else if(input.startsWith("Port:"))
                         {     port=input.substring(input.indexOf(" ")+1);
                              //System.out.println(port);
                         else if(input.startsWith("s0idle-Delay:"))
                         {     s0idleDelay=Integer.valueOf(input.substring(input.indexOf(" ")+1)).intValue();
                              //System.out.println(s0idleDelay);
                         else if(input.startsWith("s0idle-maxVolt:"))
                         {     s0idleMaxVolt=input.substring(input.indexOf(" ")+1);
                              //System.out.println(s0idleMaxVolt);
                         else if(input.startsWith("s0idle-maxCurr:"))
                         {     s0idleMaxCurr=input.substring(input.indexOf(" ")+1);
                              //System.out.println(s0idleMaxCurr);
                         else if(input.startsWith("s0active-Delay:"))
                         {     s0activeDelay=Integer.valueOf(input.substring(input.indexOf(" ")+1)).intValue();
                              //System.out.println(s0activeDelay);
                         else if(input.startsWith("s0active-maxVolt:"))
                         {     s0activeMaxVolt=input.substring(input.indexOf(" ")+1);
                              //System.out.println(s0activeMaxVolt);
                         else if(input.startsWith("s0active-maxCurr:"))
                         {     s0activeMaxCurr=input.substring(input.indexOf(" ")+1);
                              //System.out.println(s0activeMaxCurr);
                         else if(input.startsWith("s3-Delay:"))
                         {     s3Delay=Integer.valueOf(input.substring(input.indexOf(" ")+1)).intValue();
                              //System.out.println(s3Delay);
                         else if(input.startsWith("s3-maxVolt:"))
                         {     s3MaxVolt=input.substring(input.indexOf(" ")+1);
                              //System.out.println(s3MaxVolt);
                         else if(input.startsWith("s3-maxCurr:"))
                         {     s3MaxCurr=input.substring(input.indexOf(" ")+1);
                              //System.out.println(s3MaxCurr);
                         else if(input.startsWith("s5-Delay:"))
                         {     s5Delay=Integer.valueOf(input.substring(input.indexOf(" ")+1)).intValue();
                              //System.out.println(s5Delay);
                         else if(input.startsWith("s5-maxVolt:"))
                         {     s5MaxVolt=input.substring(input.indexOf(" ")+1);
                              //System.out.println(s5MaxVolt);
                         else if(input.startsWith("s5-maxCurr:"))
                         {     s5MaxCurr=input.substring(input.indexOf(" ")+1);
                              //System.out.println(s5MaxCurr);
               catch(FileNotFoundException e){}
               catch(IOException e){}
               try
               {     Thread.sleep(2000);}
               catch(InterruptedException e)
               File instructionFile=new File(InstructionFolder);
               if(instructionFile.exists()==true)
                    String[] list=instructionFile.list();
                    for(int i=0;i<list.length;i++)
                         //Wenn Datei mit Namen exit vorhanden ist, dann Programm beenden
                         if(list.endsWith("exit"))
                              new File(InstructionFolder+"+\\exit").delete();
                              int ok=JOptionPane.showConfirmDialog(null,"Beenden","found",JOptionPane.OK_CANCEL_OPTION,JOptionPane.INFORMATION_MESSAGE);
                              if(ok==JOptionPane.OK_OPTION)
                              {     return;}
                         if(list[i].endsWith("s0idle.txt")==true)
                              //Excel-Datei initialisieren
                              try{     excelDatei=new HIOKI_excel();}
                              catch(IOException e){};
                              //s0idle Datei �ffnen
                              instructionFile=new File(InstructionFolder+"\\s0idle.txt");
                              if(instructionFile.exists()!=false)
                                   System.out.println("s0idle gefunden");
                                   //Hioki mit s0idle starten
                                   try
                                   {     Thread.sleep(s0idleDelay*1000);}
                                   catch(InterruptedException e)
                                   System.out.println("s0idle starten");
                                   mess=s0idle();
                                   System.out.println(mess);
                                   System.out.println("s0idle loeschen");
                                   instructionFile.delete();
                                   //s0active Datei �ffnen
                                   int s0idleExists=0;
                                   for(instructionFile=new File(InstructionFolder+"\\s0active.txt");instructionFile.exists()!=true;instructionFile=new File(InstructionFolder+"\\s0active.txt"))
                                        instructionFile=new File(InstructionFolder+"\\s0idle.txt");
                                        if(instructionFile.exists()==true)
                                        {     s0idleExists=1;
                                             break;
                                        //2 Sekunden schlafen bis weiter gesucht wird
                                        try{     Thread.sleep(2000);}
                                        catch(InterruptedException e){}
                                   //Wenn s0idle gefunden wird, dann von neuem beginnen
                                   if(s0idleExists==1)
                                   {     break;}
                                   System.out.println("s0active gefunden");
                                   //Hioki mit s0active starten
                                   try
                                   {     Thread.sleep(s0activeDelay*1000);}
                                   catch(InterruptedException e)
                                   System.out.println("s0active starten");
                                   mess=s0active();
                                   System.out.println(mess);
                                   System.out.println("s0active loeschen");
                                   instructionFile.delete();
                                   //s3
                                   s0idleExists=0;
                                   for(instructionFile=new File(InstructionFolder+"\\s3.txt");instructionFile.exists()!=true;instructionFile=new File(InstructionFolder+"\\s3.txt"))
                                        instructionFile=new File(InstructionFolder+"\\s0idle.txt");
                                        if(instructionFile.exists()==true)
                                        {     s0idleExists=1;
                                             break;
                                        try
                                        {     Thread.sleep(2000);}
                                        catch(InterruptedException e)
                                   //Wenn s0idle gefunden wird, dann von neuem beginnen
                                   if(s0idleExists==1)
                                   {     break;}
                                   System.out.println("s3 gefunden");
                                   //Hioki mit s3 starten
                                   try
                                   {     Thread.sleep(s3Delay*1000);}
                                   catch(InterruptedException e)
                                   System.out.println("s3 starten");
                                   mess=s3();
                                   System.out.println(mess);
                                   System.out.println("s3 loeschen");
                                   instructionFile.delete();
                                   //s5
                                   s0idleExists=0;
                                   for(instructionFile=new File(InstructionFolder+"\\s5.txt");instructionFile.exists()!=true;instructionFile=new File(InstructionFolder+"\\s5.txt"))
                                        instructionFile=new File(InstructionFolder+"\\s0idle.txt");
                                        if(instructionFile.exists()==true)
                                        {     s0idleExists=1;
                                             break;
                                        try
                                        {     Thread.sleep(2000);}
                                        catch(InterruptedException e)
                                   //Wenn s0idle gefunden wird, dann von neuem beginnen
                                   if(s0idleExists==1)
                                   {     break;}
                                   System.out.println("s5 gefunden");
                                   //Hioki mit s5 starten
                                   try
                                   {     Thread.sleep(s5Delay*1000);}
                                   catch(InterruptedException e)
                                   System.out.println("s5 starten");
                                   mess=s5();
                                   System.out.println(mess);
                                   System.out.println("s5 loeschen");
                                   instructionFile.delete();
                                   //Auftragsnummer abfragen
                                   String antwort=null;
                                   for(;antwort==null||antwort=="";)
                                   {     antwort = JOptionPane.showInputDialog(null, "Messung abgeschlossen!\nAuftragsnummer: ", "Messung abgeschlossen!", JOptionPane.QUESTION_MESSAGE);}
                                   //Excel Datei schreiben
                                   System.out.println("Excel Datei schreiben");
                                   try{     excelDatei.close(OutputFolder, antwort);}
                                   catch(IOException e){}
                              break;
     private static String s0idle()
          HIOKI_RS232 hioki=new HIOKI_RS232(port);
          System.out.println("start");
          hioki.sendString("*RST");
          hioki.sendString("RESP FAST");
          hioki.sendString("VOLT:AUTO OFF");
          hioki.sendString("VOLT:RANG "+s0idleMaxVolt);
          hioki.sendString("CURR:AUTO OFF");
          hioki.sendString("CURR:RANG "+s0idleMaxCurr);
          hioki.sendString("DISP V,A,W,WH");
          hioki.sendString("INTEG:TIME 0,5,0");
          hioki.sendString("INTEG:STAT START");
          //5 Minuten warten
          try
          {     Thread.sleep(5*60000);}          //=5 min
          catch(InterruptedException e)
          String erg="";
          for(;erg.indexOf("STATE STOP")==-1;)
               erg=hioki.sendStringAndGetAnswer("INTEG:STAT?");
          //Werte in Excel Datei schreiben
          hioki.sendString("HEAD OFF");
          String v=hioki.sendStringAndGetAnswer("MEAS? V");
          String a=hioki.sendStringAndGetAnswer("MEAS? A");
          String freq=hioki.sendStringAndGetAnswer("MEAS? FREQ");
          String w=hioki.sendStringAndGetAnswer("MEAS? W");
          String pwh=hioki.sendStringAndGetAnswer("MEAS? PWH");
          hioki.sendString("HEAD ON");
          v.substring(0, v.length()-2);
          a.substring(0, a.length()-2);
          freq.substring(0, freq.length()-2);
          w.substring(0, w.length()-2);
          pwh.substring(0, pwh.length()-2);
          excelDatei.setS0idle(v, a, freq, w, pwh);
          System.out.println("s0idle: U="+v+"V ; I="+a+"A ; Freq="+freq+"Hz ; P="+w+"W ; W="+pwh+"WH");
          erg=hioki.sendStringAndGetAnswer("MEAS?");
          hioki.disconnect();
          return erg;
     private static String s0active()
          HIOKI_RS232 hioki=new HIOKI_RS232(port);
          hioki.sendString("*RST");
          hioki.sendString("RESP FAST");
          hioki.sendString("VOLT:AUTO OFF");
          hioki.sendString("VOLT:RANG "+s0activeMaxVolt);
          hioki.sendString("CURR:AUTO OFF");
          hioki.sendString("CURR:RANG "+s0activeMaxCurr);
          hioki.sendString("DISP V,A,W,WH");
          hioki.sendString("INTEG:TIME 0,10,0");
          hioki.sendString("INTEG:STAT START");
          //10 Minuten warten
          try
          {     Thread.sleep(10*60000);}          //=10 min
          catch(InterruptedException e)
          String erg="";
          for(;erg.indexOf("STATE STOP")==-1;)
               erg=hioki.sendStringAndGetAnswer("INTEG:STAT?");
          //Werte in Excel Datei schreiben
          hioki.sendString("HEAD OFF");
          String v=hioki.sendStringAndGetAnswer("MEAS? V");
          String a=hioki.sendStringAndGetAnswer("MEAS? A");
          String freq=hioki.sendStringAndGetAnswer("MEAS? FREQ");
          String w=hioki.sendStringAndGetAnswer("MEAS? W");
          String pwh=hioki.sendStringAndGetAnswer("MEAS? PWH");
          hioki.sendString("HEAD ON");
          v.substring(0, v.length()-2);
          a.substring(0, a.length()-2);
          freq.substring(0, freq.length()-2);
          w.substring(0, w.length()-2);
          pwh.substring(0, pwh.length()-2);
          excelDatei.setS0active(v, a, freq, w, pwh);
          System.out.println("s0active: U="+v+"V ; I="+a+"A ; Freq="+freq+"Hz ; P="+w+"W ; W="+pwh+"WH");
          erg=hioki.sendStringAndGetAnswer("MEAS?");
          hioki.disconnect();
          return erg;
     private static String s3()
          HIOKI_RS232 hioki=new HIOKI_RS232("COM1");
          hioki.sendString("*RST");
          hioki.sendString("RESP FAST");
          hioki.sendString("VOLT:AUTO OFF");
          hioki.sendString("VOLT:RANG "+s3MaxVolt);
          hioki.sendString("CURR:AUTO OFF");
          hioki.sendString("CURR:RANG "+s3MaxCurr);
          hioki.sendString("DISP V,A,W,WH");
          hioki.sendString("INTEG:TIME 0,5,0");
          hioki.sendString("INTEG:STAT START");
          //5 Minuten warten
          try
          {     Thread.sleep(5*60000);}          //=5 min
          catch(InterruptedException e)
          String erg="";
          for(;erg.indexOf("STATE STOP")==-1;)
               erg=hioki.sendStringAndGetAnswer("INTEG:STAT?");
          //Werte in Excel Datei schreiben
          hioki.sendString("HEAD OFF");
          String v=hioki.sendStringAndGetAnswer("MEAS? V");
          String a=hioki.sendStringAndGetAnswer("MEAS? A");
          String freq=hioki.sendStringAndGetAnswer("MEAS? FREQ");
          String w=hioki.sendStringAndGetAnswer("MEAS? W");
          String pwh=hioki.sendStringAndGetAnswer("MEAS? PWH");
          hioki.sendString("HEAD ON");
          v.substring(0, v.length()-2);
          a.substring(0, a.length()-2);
          freq.substring(0, freq.length()-2);
          w.substring(0, w.length()-2);
          pwh.substring(0, pwh.length()-2);
          excelDatei.setS3(v, a, freq, w, pwh);
          System.out.println("s3: U="+v+"V ; I="+a+"A ; Freq="+freq+"Hz ; P="+w+"W ; W="+pwh+"WH");
          erg=hioki.sendStringAndGetAnswer("MEAS?");
          hioki.disconnect();
          return erg;
     private static String s5()
          HIOKI_RS232 hioki=new HIOKI_RS232(port);
          hioki.sendString("*RST");
          hioki.sendString("RESP FAST");
          hioki.sendString("VOLT:AUTO OFF");
          hioki.sendString("VOLT:RANG "+s5MaxVolt);
          hioki.sendString("CURR:AUTO OFF");
          hioki.sendString("CURR:RANG "+s5MaxCurr);
          hioki.sendString("DISP V,A,W,WH");
          hioki.sendString("INTEG:TIME 0,5,0");
          hioki.sendString("INTEG:STAT START");
          //5 Minuten warten
          try
          {     Thread.sleep(5*60000);}          //=5 min
          catch(InterruptedException e)
          String erg="";
          for(;erg.indexOf("STATE STOP")==-1;)
               erg=hioki.sendStringAndGetAnswer("INTEG:STAT?");
          //Werte in Excel Datei schreiben
          hioki.sendString("HEAD OFF");
          String v=hioki.sendStringAndGetAnswer("MEAS? V");
          String a=hioki.sendStringAndGetAnswer("MEAS? A");
          String freq=hioki.sendStringAndGetAnswer("MEAS? FREQ");
          String w=hioki.sendStringAndGetAnswer("MEAS? W");
          String pwh=hioki.sendStringAndGetAnswer("MEAS? PWH");
          v.substring(0, v.length()-2);
          a.substring(0, a.length()-2);
          freq.substring(0, freq.length()-2);
          w.substring(0, w.length()-2);
          pwh.substring(0, pwh.length()-2);
          hioki.sendString("HEAD ON");
          excelDatei.setS5(v, a, freq, w, pwh);
          System.out.println("s5: U="+v+"V ; I="+a+"A ; Freq="+freq+"Hz ; P="+w+"W ; W="+pwh+"WH");
          erg=hioki.sendStringAndGetAnswer("MEAS?");
          hioki.disconnect();
          return erg;

Similar Messages

  • Java Mail Program - Please Help!

    Hi everyone, I am new to Java (been learnig for about 6 months) and I was hoping you could help me.
    I would like to write a program to be able to send and receive email (a basic version of outlook express), the prblem is that i have no idea on how to start such a program as i have only written programs such as calculators before.
    I was hoping someone could tell me how to begin such a challenging program, which java package is best to create such a program, Jbuilder or the normal javac compiler.
    Thanks everyone for your help

    See the Java mail API for more details (javax.mail if I remember well). This can be found at:
    http://java.sun.com/products/javamail/index.html
    Hope it helps,
    Stephane

  • Introduction to java class program assignment help

    We are susposed to be writing a program that calculates the best angle for firing a cannon ball to get the best distance through different substances. My teacher and i could not see why the program was not working and i was wondering if anyone could spot what is wrong with the code. The program is susposed to go through theta from 0 - 90 and remember the best theta for the best distance. we were testing with the drag constant as 0 because the theta should be 45 but the program outputs 81 instead. The big problem is that my x value goes negtive which should not happen and this is where my teacher gave up because he was unable to see why. my code is below for the program.
    Thanks for the help in advance
    Brian
    import javax.swing.*;
    public class Cannon2
        private static final double g = -9.8;
        public static void main(String[] args)
            int theta = 0; // initilizes theta
            int maxtheta = 0;
            double speed = 100; // initilizes speed
            double dt = 0.01;
            double time = 0.0;
            double vx, vy, vx1, vy1, xpos, ypos, oxpos, dragconst;
            double x = 0;
            double y = 0;
            ypos = 0;
            xpos = 0;
            oxpos = 0;
            dragconst = Double.parseDouble(JOptionPane.showInputDialog(null, "Enter drag constant:"));
            while (theta <= 90)
                vx = speed * Math.cos(theta);
                vy = -speed * Math.sin(theta);
                x = 0;
                y = 0;
                ypos = 0;
                xpos = 0;
                while (ypos >= 0)
                    ypos = y + vy * time; // y position
                    xpos = x + vx * time; // x position
                    time = time + dt; // increments time
                    x = xpos;
                    y = ypos;
                    vx = vx - Math.pow(vx, 2) * dragconst; // velosity calculator for x
                    vy = (vy + g * time) - (Math.pow(vy, 2) * dragconst); // velosity calculator for y
                    System.out.println(ypos);
                    System.out.println(xpos);
                    System.out.println(theta);
                if (xpos > oxpos)
                 oxpos = xpos;
                 maxtheta = theta;
                theta = theta + 1;
          System.out.println("The best angle is: " + maxtheta);
    }

    Simple. Reread the Math.cos (and Math.sin) documentation:
    cos
    public static double cos(double a)...
    Parameters:
    a - an angle, in radians.
    Returns:
    the cosine of the argument.
    I don't think 90 is what you want...

  • Help in starting Java Card Programming

    Hi all,
    I�m totally new here. I just started Java Card programming. However I don�t know how to start though I think I have enough stuff. I have installed Java 1.6.0_02, JCOP tool 3.1.2, run Eclipse 3.3.0. I also have a dual interface smart card reader SDI010 and some smart card (dual access). I activated JCOP Tool, created new Java Card project, but after I entered package AIDs and applet AIDs I don�t know what I should do next. I looked through several books in Eclipse (Eclipse for dummies�) but can�t find anything about Java Card. Anyone have experience in this area please help me to start. If you know any document that guides step by step, please let me know. I found source code in Sun website (wallet.java) but I really don�t know how to use it. Thanks a lot.

    Hi,
    select
    Project -> Build Automatically. It will build a .CAP file every time you changed your Java Card project code and save it. You will see it in the
    CAP file viewer in the left corner (but only in case you are developing your JC applet in Java Card in Eclipse project and opened one of the
    JCOP perspectives: either development or debug).
    P.S. I suppose, that u still haven't looked through the JCOP tools documentation in the Eclipse IDE Help menu.
    Best regards,
    Eve
    Edited by: Ieva on Nov 4, 2007 9:01 AM

  • �� I have a java applet program (yanhua.java) need help!!!

    �� I have a java applet program (yanhua.java) that use mouse click a area show a fireworks, the applet program that a java fan mail me. Now i find some bug in the program, can you help me? thank in advance!
    The backdrop of the question: The yanhua.java applet program works well. But one day, i install j2re 1.4.1 plugin for my microsfot Internet Explorer, i run the yanhua.java applet program again, it show difficult(i move my mouse in the area, slowness), the fireworks is not fluent. Then i try my best to find the cause , i get some information, the following: yanhua.java run in j2re 1.4.1 plugin,it will deplete 100% cpu; else yanhua.java does not run in j2re 1.4.1 plugin, it will deplete 90%--95% cpu too; but my computer c3 1G cpu and 256MB memory, without running other program at that time. So i can have the assurance to say that the yanhua.java have some bug or error. can you help me to find all bug in yanhua.java? thank you very much!!!
    i want to solve the question: finding all bug in yanhua.java
    NOTE:
    1��fireworks show specially good effect(a yanhua.java applet) you can look at:
    http://www.3ren.net/down/java/yanhua.html
    2��all program you can get from http://www.3ren.net/down/java/yanhua.rar
    /*************************yanhua.java******************************
    import java.applet.Applet;
    import java.applet.AudioClip;
    import java.awt.*;
    import java.awt.image.MemoryImageSource;
    import java.util.Random;
    public class yanhua extends Applet
    implements Runnable
    private int m_nAppX;
    private int m_nAppY;
    private int m_centerX;
    private int m_centerY;
    private int m_mouseX;
    private int m_mouseY;
    private int m_sleepTime;
    private boolean isError;
    private boolean m_isPaintFinished;
    boolean isRunning;
    boolean isInitialized;
    Thread runner;
    int pix0[];
    MemoryImageSource offImage;
    Image dbImg;
    int pixls;
    int pixls2;
    Random rand;
    int bits;
    double bit_px[];
    double bit_py[];
    double bit_vx[];
    double bit_vy[];
    int bit_sx[];
    int bit_sy[];
    int bit_l[];
    int bit_f[];
    int bit_p[];
    int bit_c[];
    int bit_max;
    int bit_sound;
    int ru;
    int rv;
    AudioClip sound1;
    AudioClip sound2;
    public yanhua()
    m_mouseX = 0;
    m_mouseY = 0;
    m_sleepTime = 5;
    isError = false;
    isInitialized = false;
    rand = new Random();
    bits = 10000;
    bit_px = new double[bits];
    bit_py = new double[bits];
    bit_vx = new double[bits];
    bit_vy = new double[bits];
    bit_sx = new int[bits];
    bit_sy = new int[bits];
    bit_l = new int[bits];
    bit_f = new int[bits];
    bit_p = new int[bits];
    bit_c = new int[bits];
    ru = 50;
    rv = 50;
    public void init()
    String s = getParameter("para_bits");
    if(s != null)
    bits = Integer.parseInt(s);
    s = getParameter("para_max");
    if(s != null)
    bit_max = Integer.parseInt(s);
    s = getParameter("para_blendx");
    if(s != null)
    ru = Integer.parseInt(s);
    s = getParameter("para_blendy");
    if(s != null)
    rv = Integer.parseInt(s);
    s = getParameter("para_sound");
    if(s != null)
    bit_sound = Integer.parseInt(s);
    m_nAppX = this.getSize().width;
    m_nAppY = this.getSize().height;
    m_centerX = m_nAppX / 2;
    m_centerY = m_nAppY / 2;
    m_mouseX = m_centerX;
    m_mouseY = m_centerY;
    resize(m_nAppX, m_nAppY);
    pixls = m_nAppX * m_nAppY;
    pixls2 = pixls - m_nAppX * 2;
    pix0 = new int[pixls];
    offImage = new MemoryImageSource(m_nAppX, m_nAppY, pix0, 0, m_nAppX);
    offImage.setAnimated(true);
    dbImg = createImage(offImage);
    for(int i = 0; i < pixls; i++)
    pix0[i] = 0xff000000;
    sound1 = getAudioClip(getDocumentBase(), "firework.au");
    sound2 = getAudioClip(getDocumentBase(), "syu.au");
    for(int j = 0; j < bits; j++)
    bit_f[j] = 0;
    isInitialized = true;
    start();
    public void run()
    while(!isInitialized)
    try
    Thread.sleep(200L);
    catch(InterruptedException interruptedexception) { }
    do
    for(int j = 0; j < pixls2; j++)
    int k = pix0[j];
    int l = pix0[j + 1];
    int i1 = pix0[j + m_nAppX];
    int j1 = pix0[j + m_nAppX + 1];
    int i = (k & 0xff0000) >> 16;
    int k1 = ((((l & 0xff0000) >> 16) - i) * ru >> 8) + i;
    i = (k & 0xff00) >> 8;
    int l1 = ((((l & 0xff00) >> 8) - i) * ru >> 8) + i;
    i = k & 0xff;
    int i2 = (((l & 0xff) - i) * ru >> 8) + i;
    i = (i1 & 0xff0000) >> 16;
    int j2 = ((((j1 & 0xff0000) >> 16) - i) * ru >> 8) + i;
    i = (i1 & 0xff00) >> 8;
    int k2 = ((((j1 & 0xff00) >> 8) - i) * ru >> 8) + i;
    i = i1 & 0xff;
    int l2 = (((j1 & 0xff) - i) * ru >> 8) + i;
    int i3 = ((j2 - k1) * rv >> 8) + k1;
    int j3 = ((k2 - l1) * rv >> 8) + l1;
    int k3 = ((l2 - i2) * rv >> 8) + i2;
    pix0[j] = i3 << 16 | j3 << 8 | k3 | 0xff000000;
    rend();
    offImage.newPixels(0, 0, m_nAppX, m_nAppY);
    try
    Thread.sleep(m_sleepTime);
    catch(InterruptedException interruptedexception1) { }
    } while(true);
    public void update(Graphics g)
    paint(g);
    public void paint(Graphics g)
    g.drawImage(dbImg, 0, 0, this);
    public void start()
    if(isError)
    return;
    isRunning = true;
    if(runner == null)
    runner = new Thread(this);
    runner.start();
    public void stop()
    if(runner != null)
    runner.stop();
    runner = null;
    public boolean mouseMove(Event event, int i, int j)
    m_mouseX = i;
    m_mouseY = j;
    return true;
    public boolean mouseDown(Event event, int i, int j)
    m_mouseX = i;
    m_mouseY = j;
    int k = (int)(rand.nextDouble() * 256D);
    int l = (int)(rand.nextDouble() * 256D);
    int i1 = (int)(rand.nextDouble() * 256D);
    int j1 = k << 16 | l << 8 | i1 | 0xff000000;
    int k1 = 0;
    for(int l1 = 0; l1 < bits; l1++)
    if(bit_f[l1] != 0)
    continue;
    bit_px[l1] = m_mouseX;
    bit_py[l1] = m_mouseY;
    double d = rand.nextDouble() * 6.2800000000000002D;
    double d1 = rand.nextDouble();
    bit_vx[l1] = Math.sin(d) * d1;
    bit_vy[l1] = Math.cos(d) * d1;
    bit_l[l1] = (int)(rand.nextDouble() * 100D) + 100;
    bit_p[l1] = (int)(rand.nextDouble() * 3D);
    bit_c[l1] = j1;
    bit_sx[l1] = m_mouseX;
    bit_sy[l1] = m_nAppY - 5;
    bit_f[l1] = 2;
    if(++k1 == bit_max)
    break;
    if(bit_sound > 1)
    sound2.play();
    return true;
    public boolean mouseExit(Event event, int i, int j)
    m_mouseX = i;
    m_mouseY = j;
    return true;
    void rend()
    boolean flag = false;
    boolean flag1 = false;
    boolean flag2 = false;
    for(int k = 0; k < bits; k++)
    switch(bit_f[k])
    default:
    break;
    case 1: // '\001'
    bit_vy[k] += rand.nextDouble() / 50D;
    bit_px[k] += bit_vx[k];
    bit_py[k] += bit_vy[k];
    bit_l[k]--;
    if(bit_l[k] == 0 || bit_px[k] < 0.0D || bit_py[k] < 0.0D || bit_px[k] > (double)m_nAppX || bit_py[k] > (double)(m_nAppY - 3))
    bit_c[k] = 0xff000000;
    bit_f[k] = 0;
    } else
    if(bit_p[k] == 0)
    if((int)(rand.nextDouble() * 2D) == 0)
    bit_set((int)bit_px[k], (int)bit_py[k], -1);
    } else
    bit_set((int)bit_px[k], (int)bit_py[k], bit_c[k]);
    break;
    case 2: // '\002'
    bit_sy[k] -= 5;
    if((double)bit_sy[k] <= bit_py[k])
    bit_f[k] = 1;
    flag2 = true;
    if((int)(rand.nextDouble() * 20D) == 0)
    int i = (int)(rand.nextDouble() * 2D);
    int j = (int)(rand.nextDouble() * 5D);
    bit_set(bit_sx[k] + i, bit_sy[k] + j, -1);
    break;
    if(flag2 && bit_sound > 0)
    sound1.play();
    void bit_set(int i, int j, int k)
    int l = i + j * m_nAppX;
    pix0[l] = k;
    /*********************************end*******************************

    no one help me???????????

  • Help with Java Inventory Program - I almost got it

    Hello, I'm new to the forum so please don't hang me if I'm not posting this correctly or in the right place. I'm writing a Java Inventory Program for class and everything was great until we had to modify it to sort by product name (in my case dvd's). The problem is my arrays for inventory count and price are thrown off when I sort by dvd name because they are predefined. I could cheat and just rearrange the array in a logical order according to the dvd title but that isn't really the answer for me. Can someone help me do where my inventory count and price don't go out of wack when I sort by dvd name, I really don't want to start over.
    Here is my code:
    // Java InventoryProgram2
    // Purpose of application is to Display DVD Inventory
    import java.util.Arrays;
    public class InventoryProgram2 // declare public class
    { // Start of public class InventoryProgram1
         String dvdName[] = { "The Departed", "The Dark Knight","The Mummy", "Minority Report"};
         double itemNum;
         float stockCount[] = {3, 5, 8,2};
         float totalValue [] = new float [4];
         float price[] = { 19, 22, 17, 14};
         float totInvVal;
              // Method for printing dvdName the dvdName
              public void DvdName ()
              { // Start of print method
                   // For loop to calculate total value
                   Arrays.sort(dvdName);
                   for( int itemNum = 0; itemNum < dvdName.length; itemNum ++ )
                        totalValue[itemNum] = stockCount[itemNum] * price[itemNum];
                   System.out.printf( "%s %15s %12s %12s %12s\n", "Item Number", "Dvd Name", "Price", "Stock", "Total"); // Prints title of column
                   for ( int itemNum = 0; itemNum <dvdName.length; itemNum ++ )
                        System.out.printf("%-8d %20s %10.02f %12.02f %12.02f\n", itemNum, dvdName[itemNum], price [itemNum],stockCount[itemNum], totalValue[itemNum]); // Calls the value of each column
         } // end of method to print dvdName
         // Method for total value of the inventory
         public void totalInvValue()
         { //start of method to calc total inv value
         totInvVal = stockCount [0] * price [0] + stockCount [1] * price [1] + stockCount [2] * price [2] + stockCount [3] * price [3];
         System.out.printf("%s", "The Total Value of the Inventory is:","%10.02f");
         System.out.printf("$%.02f", totInvVal);
         } // end of method to calc total inv value
    } // End of public class InventoryProgram1
    // Java InventoryProgram2_Test
    // Purpose of application is to Display DVD Inventory
    public class InventoryProgram2_Test
    { // Start Bracket for InventoryProgram1
    public static void main ( String args[] )
    { // Start Bracket for Public Main
         InventoryProgram2 myInventoryProgram2 = new InventoryProgram2(); // invokes InventoryProgram1
    myInventoryProgram2.DvdName (); // calls DvdName Method
         myInventoryProgram2.totalInvValue(); // call method total inventory value
    } // End Bracket for Public Main
    } // End Bracket for InventoryProgram1
    Edited by: ozzie2132 on Aug 11, 2008 6:57 PM
    Edited by: ozzie2132 on Aug 11, 2008 6:57 PM

    a_turingmachine wrote:
    naive ex:
    class DVD {
    String dvdName;
    float stockCount;
    float price;
    }--turing machine:
    Suggestion 1: If you are going to give code for someone doing homework, try not to give exactly what the OP needs but rather something similar. They will learn a lot more if they have to process your recommendations and then create their own code.
    Suggestion 2: When posting your code, please use code tags so that your code will retain its formatting and be readable. To do this, you will need to paste already formatted code into the forum, highlight this code, and then press the "code" button at the top of the forum Message editor prior to posting the message. You may want to click on the Preview tab to make sure that your code is formatted correctly. Another way is to place the tag &#91;code] at the top of your block of code and the tag &#91;/code] at the bottom, like so:
    &#91;code]
      // your code block goes here.
      // note the differences between the tag at the top vs the bottom.
    &#91;/code]or
    {&#99;ode}
      // your code block goes here.
      // note here that the tags are the same.
    {&#99;ode}

  • I am running Mac OS 10.6.7 I cannot run a java based program from the net when parental controls are set the error is The error is Load: class installer.CheckVersion 13. class not found  Help!

    I am running Mac OS 10.6.7 I cannot run a java based program from the net when parental controls are set the error is The error is Load: class installer.CheckVersion 13. class not found 

    Then, talk to the person running the lab.

  • Java.lang.OutOfMemoryError when running java concurrent program

    Hi,
    i had written a java concurrent program to create the content items into Oracle Content Manager (OCM). Process the records from interface table and create the content items into OCM by calling the API IBC_CITEM_ADMIN_GRP.upsert_item().
    I run the concurrent program with 2000 records in interface table, it's an one to one process, 563 records are processed and 563 content items are created successfully in OCM. After 563 records continuously throws the Exception
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.put_line('EX - bundle validation others--');
    x_return_status := FND_API.G_RET_STS_ERROR;
    FND_MESSAGE.Set_Name('IBC', 'A_BUNDLE_ERROR');
    FND_MESSAGE.set_token('SITUATION', 'VALIDATION');
    FND_MSG_PUB.ADD;
    IF IBC_DEBUG_PVT.debug_enabled THEN
    IBC_DEBUG_PVT.end_process(
    IBC_DEBUG_PVT.make_parameter_list(
    p_tag => 'OUTPUT',
    p_parms => JTF_VARCHAR2_TABLE_4000(
    'x_return_status', '*** EXCEPTION *** [' || SQLERRM || ']'
    END IF;
    in IBC_CITEM_ADMIN_GRP.validate_attribute_bundle() API.
    Again running the concurrent program it process another 563 records. Can any one help me to fix this issue?
    i figured out the exception. When debug the error, i got the actual error message like this
    ORA-29532: Java call terminated by uncaught Java exception: java.lang.OutOfMemoryError
    ORA-29532: Java call terminated by uncaught Java exception: java.lang.NullPointerException
    ORA-29532: Java call terminated by uncaught Java exception: java.lang.ArrayIndexOutOfBoundsException: -2048 < 0
    for this issue i increased the heap memory size up to 1024MB. Still i have the same issue. Can any one help to fix the issue?

    ORA-29532: Java call terminated by uncaught Java
    exception: java.lang.NullPointerException
    ORA-29532: Java call terminated by uncaught Java
    exception: java.lang.ArrayIndexOutOfBoundsException:
    -2048 < 0Aren't the null pointer and arrayindexoutofbounds, the ones which you get when you are trying to read beyond your array? (example: when your loop tries to access the 563rd element in your array, since your array index starts from 0)?
    May be if you can try to write out your elements in the array, you might see what it is croaking about.
    Thanks,
    Chiru

  • Facing error wen running Java Concurrent Program to insert data into  table

    Hi All,
    Its first time I am wrkng on Java Concurrent Programs. I created a java class with the below code:
    import oracle.apps.fnd.cp.request.*;
    import oracle.apps.iby.scheduler.*;
    import java.sql.*;
    import java.sql.Statement;
    import java.sql.Connection;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.cp.request.CpContext;
    import oracle.apps.fnd.cp.request.JavaConcurrentProgram;
    import oracle.apps.iby.database.DBWrapper;
    import oracle.apps.iby.ecapp.OraPmt;
    import oracle.apps.iby.exception.Log;
    import oracle.apps.iby.security.SecurityUtil;
    //package oracle.apps.ibe.util.key;
    //package oracle.apps.iby.scheduler;
    // Referenced classes of package oracle.apps.iby.scheduler:
    // SchedUtils
    public class XXIBE_KeyInsert
    implements JavaConcurrentProgram
    public XXIBE_KeyInsert()
    public void runProgram(CpContext cpcontext)
    try{
    String s;
    oracle.apps.fnd.cp.request.ReqCompletion reqcompletion;
    Connection connection;
    // s = "iby.scheduler.XXIBE_keyInsert.runProgram";
    reqcompletion = cpcontext.getReqCompletion();
    connection = null;
    OraPmt.init(cpcontext);
    Log.debug("Inserting Credit Card key", 1, "XXIBE_KeyInsert.java");
    byte abyte0[] = SecurityUtil.getSystemKey();
    connection = cpcontext.getJDBCConnection();
    Statement st = connection.createStatement();
    String sql = "Insert into xxibe_scodes values ("+abyte0+")";
    st.executeUpdate(sql);
    connection.commit();
    st.close();
    connection.close();
    Log.debug("done", 1, "XXIBE_KeyInsert.java");
    reqcompletion.setCompletion(reqcompletion.NORMAL, "Request Completed Normal");
    OraPmt.end();
    SchedUtils.setSuccess(reqcompletion);
    DBWrapper.closeDBConnection(connection);
    catch(Exception e){
    e.printStackTrace();
    //reqcompletion.setCompletion(ReqCompletion.ERROR, e.toString());
    I compiled the program and in the java_top/oracle/apps/../.. (in the pkg given). Now the class files and java files are in the said location. I created an executable of type "java concurent Prog" and location same as Package name.
    Created a Program and assigned it to the responsibility. Having done this when i run the CP I find it ends with an error msg. The log files show the below exceptions: "java.lang.ClassNotFound Exception".
    We are doing it in R12.0.6 and in Unix server. Pls help me where I am missing it. It turned to be an urgent requirement frm my end.
    Thanks,
    Abhishek.

    The Exception Stack is :
    java.lang.ClassNotFoundException: oracle.apps.iby.scheduler.test.XXIBE_KeyInsert
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:164)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:152).
    Please advice me on how to proceed.

  • Issue in Java concurrent program for Digital Signature Stamping

    Hi All,
    Im calling a Java concurrent program which does digital signature stamping on the PDF report generated.Program able to able to read the PDF file as input and also digital signature stored as file in the application but
    ends in error in create signature method , need help in this regard.
    Error:
    Parameter 0 is Request id of with out Digital signature file
    Parameter 1 is employee id of approver
    Parameter:0:99203256
    Parameter:1:1414603
    $$$$ start query fileinfo with callable statment
    programName>>>>>>>>BTPOPORPXML
    $$$$ Without digital Signature file Name $$$
    $/inst_top/finprod/apps/FINPROD_CPNQERPAAPZP10/logs/appl/conc/out/BTPOPORPXML_99203256_1.PDF
    PFX File Reading Start
    PFX File Reading Ends
    PFX File size is: 6460 Byte size is: 6460
    Elements present
    java.lang.NullPointerException
    at
    com.lowagie.text.pdf.PdfSignatureAppearance.getAppearance
    (Unknown Source)
    at
    com.lowagie.text.pdf.PdfSignatureAppearance.preClose
    (Unknown Source)
    at
    com.lowagie.text.pdf.PdfSignatureAppearance.preClose
    (Unknown Source)
    at com.lowagie.text.pdf.PdfStamper.close(Unknown
    Source)
    at
    btvl.oracle.apps.po.digsig.BTVLDigSign.runProgram
    (BTVLDigSign.java:151)
    at oracle.apps.fnd.cp.request.Run.main
    (Run.java:157)
    Edited by: 999033 on May 16, 2013 7:20 PM

    Hi Charls,
    I have successfully implemented at our end in 11i. Pl.try at your end.
    v_request_id := FND_REQUEST.SUBMIT_REQUEST (passed your arguments... );
    COMMIT;
    IF NVL( v_request_id , 0 ) = 0 THEN
    DBMS_OUTPUT.PUT_LINE( 'Item Assignment to Organization Program Not Submitted');
    p_status := 'FAILURE' ;
    p_err_msg := 'ERROR RAISED AFTER SUBMITTING THE IMPORT ITEM ORG.ASSIGNMENT CONCURRENT REQUEST ... ' ;          
    ELSE
    v_finished := FND_CONCURRENT.WAIT_FOR_REQUEST
    request_id => v_request_id,
    interval => 0,
    max_wait => 0,
    phase => v_phase,
    status => v_status,
    dev_phase => v_request_phase,
    dev_status => v_request_status,
    message => v_message
    LOOP
    EXIT WHEN ( UPPER(v_request_phase) = 'COMPLETE' OR v_phase = 'C');
    END LOOP;
    HTH                    
    Sanjay

  • Error occurred during execution of java concurrent program in R12.2 instance

    Hi All,
    The R12.2 instance is a cloned instance. I am getting the below error while compiling the java concurrent program in R12.2 instance.
    Has anybody had this error before?
    Any help or advice will be really appreciated.
    Thanks in advance.
    Kind regards,
    Ranjan

    Hi,
    The error could be because of the XSD attributes.
    In the Source message CustomerDetails, check the XSD attributes of the DataType CustNumber in the 'Detail' column in the IR. For example, it may have a pattern or whiteSpace or some other attribute.
    Then check the input file contents for the CustNumber node. One of those values may not match these attributes.
    Hope this helps,
    Bhanu

  • Inputting an excel file to the java servlet program

    Hi,
    How can I input an excel file into the java servlet program? I am using POI HSSF programming to read the content of that excel file.I have created a form that will accept the path from the user and in the servlet program, I have called a post method to retrieve the path of the file. I am getting the path of the file as a string.Then I have to access the file to read the data. But it is not working. What should I do?.Please help me.
    I have created an html file to create a form that will ask the path of the file to be loaded into the servlet program.Please give me a solution,thanks in advance. The servlet program that receives the file is shown below. It just only take the name of the file and prints if that is ok.
    <html>
    <body bgcolor="green">
    <center>
    <form method="post"  action="http://localhost:8080/examples/servlet/Ron1">
    <table>
    <tr>
    <td><B>ENTER THE PATH OF THE FILE</td>
    <td><input type=file name="path"></td>
    </tr>
    </table>
    <input type=submit value= "submit" >
    </form>
    </body>
    </html>
    import java.io.*;
    import javax.servlet.*;
    import java.lang.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.text.*;
    import java.util.*;
    import com.oreilly.servlet.MultipartRequest;
    import org.apache.poi.hssf.usermodel.*;
    public class Ron1 extends HttpServlet
       public void doPost(HttpServletRequest request, HttpServletResponse response)   throws IOException, ServletException
            response.setContentType("text/html");
            PrintWriter out = response.getWriter();
            String u = request.getParameter("FileToUpload");
            out.println("The Path is "+u);
            System.out.println("The path is "+u);
            MultipartRequest multi = new MultipartRequest(request,u,10 * 1024 * 1024);
            System.out.println("path is "+u);
            Enumeration files = multi.getFileNames();
            File fUploadedFile = null;
            String sFileName = "";
            out.println("path is "+u);
            while(files.hasMoreElements())
                            String name = (String)files.nextElement();
                            out.println("file is "+name);
                            sFileName = multi.getFilesystemName(name);
                            String type = multi.getContentType(name);
                            fUploadedFile = multi.getFile(name);
                    FileInputStream fis= new FileInputStream(fUploadedFile);
                   HSSFWorkbook wb=new HSSFWorkbook(fis);
                    System.out.println("The path is "+u);
                    out.println("File has identified successfully\n");
                    out.close();
       }

    Hi,
    Can you try to use classes from java.net package (URL, URLConnection) to pass the contents of excel file to servlet?
    HTH
    Vishal

  • Java Concurrent Program .class file location

    Hi frnds,
    I need to know the .class file location of a java concurrent prog. I know the filename from concurrent program executables and my concurrent program filepath is oracle.apps.xxogl.f04.cp.file. But I dont know where the exact location of the file is. pls help me.
    I searched for the same and found the following article in many places which doesnt seem to help me much.
    http://geektalkin.blogspot.com/2008/03/oracle-apps-java-concurrent-program.html
    pls help. thanks in advance.
    Lisan

    Hi;
    pls file can be found like
    /apps_st/appl/bom/12.0.0/patch/115/sql/
    Contains SQL*Plus scripts used to upgrade data, and .pkh, .pkb, and .pls scripts to create PL /SQL stored procedures.
    Regard
    Helios

  • Java Concurrent Program Errors out

    Hi All,
    Request you to help me in this issue as this is on high priority.
    we have registered a Java Concurrent Program Named Genus Merge Two P45 Pdf's which gives the output in pdf format.
    The concurrent program errors out showing the log as follows :
    GENUS Custom: Version : UNKNOWN
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    GEN_MERGE_TWO_PDFS module: Genus Merge Two P45 Pdf's
    Current system time is 10-MAR-2010 07:10:43
    Exception in static block of jtf.cache.appsimpl.AppsCacheLogger. Stack trace is: oracle.apps.fnd.common.AppsException: oracle.apps.fnd.common.PoolException: Exception creating new Poolable object.
         at oracle.apps.fnd.profiles.Profiles.getProfileOption(Profiles.java:1509)
         at oracle.apps.fnd.profiles.Profiles.getProfile(Profiles.java:362)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfileFromDB(ExtendedProfileStore.java:210)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfile(ExtendedProfileStore.java:169)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.getProfile(ExtendedProfileStore.java:148)
         at oracle.apps.fnd.common.logging.DebugEventManager.configureUsingDatabaseValues(DebugEventManager.java:1201)
         at oracle.apps.fnd.common.logging.DebugEventManager.configureLogging(DebugEventManager.java:1044)
         at oracle.apps.fnd.common.logging.DebugEventManager.internalReinit(DebugEventManager.java:1013)
         at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:980)
         at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:967)
         at oracle.apps.fnd.common.AppsLog.reInitialize(AppsLog.java:570)
         at oracle.apps.fnd.common.AppsContext.initLog(AppsContext.java:593)
         at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:570)
         at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:524)
         at oracle.apps.fnd.common.AppsContext.<init>(AppsContext.java:292)
         at oracle.apps.fnd.common.WebAppsContext.<init>(WebAppsContext.java:1002)
         at oracle.apps.jtf.cache.ArchitectureWrapper.createAppsContextWithDBCFile(ArchitectureWrapper.java:143)
         at oracle.apps.jtf.cache.ArchitectureWrapper.createDefaultAppsContext(ArchitectureWrapper.java:107)
         at oracle.apps.jtf.cache.ArchitectureWrapper.createAppsContext(ArchitectureWrapper.java:96)
         at oracle.apps.jtf.cache.appsimpl.AppsCacheLogger.<clinit>(AppsCacheLogger.java:43)
         at oracle.apps.jtf.cache.appsimpl.AppsCacheEnvironment.getCacheLogger(AppsCacheEnvironment.java:67)
         at oracle.apps.jtf.cache.CacheManager.initCache(CacheManager.java:711)
         at oracle.apps.jtf.cache.CacheManager.<clinit>(CacheManager.java:378)
         at oracle.apps.fnd.cache.Cache.setCacheFullName(Cache.java:228)
         at oracle.apps.fnd.cache.Cache.initCache(Cache.java:114)
         at oracle.apps.fnd.cache.Cache.<init>(Cache.java:89)
         at oracle.apps.fnd.cache.AppsCache.<init>(AppsCache.java:86)
         at oracle.apps.fnd.cache.AolCaches.getCache(AolCaches.java:155)
         at oracle.apps.fnd.profiles.Profiles.<clinit>(Profiles.java:241)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.init(ExtendedProfileStore.java:498)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.<init>(ExtendedProfileStore.java:119)
         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:494)
         at oracle.apps.fnd.common.AppsContext.instantiateProfileStore(AppsContext.java:3959)
         at oracle.apps.fnd.common.AppsContext.makeProfileStore(AppsContext.java:780)
         at oracle.apps.fnd.common.Context.setProfileStore(Context.java:767)
         at oracle.apps.fnd.common.Context.setProfileStore(Context.java:749)
         at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:564)
         at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:524)
         at oracle.apps.fnd.common.AppsContext.<init>(AppsContext.java:292)
         at oracle.apps.fnd.cp.request.CpContext.<init>(CpContext.java:141)
         at oracle.apps.fnd.cp.request.CpContext.<init>(CpContext.java:124)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:127)
    Caused by: oracle.apps.fnd.common.PoolException: Exception creating new Poolable object.
         at oracle.apps.fnd.common.Pool.createObject(Pool.java:1321)
         at oracle.apps.fnd.common.Pool.borrowObject(Pool.java:1062)
         at oracle.apps.fnd.security.DBConnObjPool.borrowObject(DBConnObjPool.java:752)
         at oracle.apps.fnd.security.AppsConnectionManager.borrowConnection(AppsConnectionManager.java:297)
         at oracle.apps.fnd.common.Context.borrowConnection(Context.java:1720)
         at oracle.apps.fnd.common.AppsContext.getPrivateConnectionFinal(AppsContext.java:2306)
         at oracle.apps.fnd.common.AppsContext.getPrivateConnection(AppsContext.java:2243)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:2101)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1910)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1754)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1767)
         at oracle.apps.fnd.common.Context.getJDBCConnection(Context.java:1453)
         at oracle.apps.fnd.cache.GenericCacheLoader.load(GenericCacheLoader.java:168)
         at oracle.apps.fnd.profiles.Profiles.getProfileOption(Profiles.java:1500)
         ... 44 more
    Caused by: java.lang.AbstractMethodError: oracle.sql.LnxLibThin.lnxnuc([BILjava/lang/String;)Ljava/lang/String;
         at oracle.sql.NUMBER.toInt(NUMBER.java:414)
         at oracle.jdbc.dbaccess.DBConversion.NumberBytesToInt(DBConversion.java:2959)
         at oracle.jdbc.driver.OracleStatement.getIntValue(OracleStatement.java:4596)
         at oracle.jdbc.driver.OracleResultSetImpl.getInt(OracleResultSetImpl.java:536)
         at oracle.apps.fnd.security.ConnectionManager.setClientData(ConnectionManager.java:1497)
         at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:1446)
         at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:1325)
         at oracle.apps.fnd.security.AppsConnectionManager.makeGwyuidConn(AppsConnectionManager.java:884)
         at oracle.apps.fnd.security.AppsConnectionManager.getGwyuidConn(AppsConnectionManager.java:962)
         at oracle.apps.fnd.security.AppsConnectionManager.makeGuestConnection(AppsConnectionManager.java:780)
         at oracle.apps.fnd.security.DBConnObj.<init>(DBConnObj.java:246)
         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:494)
         at oracle.apps.fnd.common.Pool.createObject(Pool.java:1308)
         ... 57 more
    Exception in static block of jtf.cache.CacheManager. Stack trace is: oracle.apps.jtf.base.resources.FrameworkException: oracle.apps.fnd.common.PoolException: Exception creating new Poolable object.
         at oracle.apps.jtf.cache.CacheManager.initCache(CacheManager.java:718)
         at oracle.apps.jtf.cache.CacheManager.<clinit>(CacheManager.java:378)
         at oracle.apps.fnd.cache.Cache.setCacheFullName(Cache.java:228)
         at oracle.apps.fnd.cache.Cache.initCache(Cache.java:114)
         at oracle.apps.fnd.cache.Cache.<init>(Cache.java:89)
         at oracle.apps.fnd.cache.AppsCache.<init>(AppsCache.java:86)
         at oracle.apps.fnd.cache.AolCaches.getCache(AolCaches.java:155)
         at oracle.apps.fnd.profiles.Profiles.<clinit>(Profiles.java:241)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.init(ExtendedProfileStore.java:498)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.<init>(ExtendedProfileStore.java:119)
         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:494)
         at oracle.apps.fnd.common.AppsContext.instantiateProfileStore(AppsContext.java:3959)
         at oracle.apps.fnd.common.AppsContext.makeProfileStore(AppsContext.java:780)
         at oracle.apps.fnd.common.Context.setProfileStore(Context.java:767)
         at oracle.apps.fnd.common.Context.setProfileStore(Context.java:749)
         at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:564)
         at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:524)
         at oracle.apps.fnd.common.AppsContext.<init>(AppsContext.java:292)
         at oracle.apps.fnd.cp.request.CpContext.<init>(CpContext.java:141)
         at oracle.apps.fnd.cp.request.CpContext.<init>(CpContext.java:124)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:127)
    Caused by: oracle.apps.jtf.base.resources.FrameworkException: oracle.apps.fnd.common.PoolException: Exception creating new Poolable object.
         at oracle.apps.jtf.base.resources.FrameworkException.convertException(FrameworkException.java:607)
         at oracle.apps.jtf.base.resources.FrameworkException.addException(FrameworkException.java:585)
         at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:66)
         at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:88)
         at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:202)
         at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:218)
         at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:249)
         ... 24 more
    Exception in thread "main" oracle.apps.fnd.common.PoolException: Exception creating new Poolable object.
         at oracle.apps.fnd.common.Pool.createObject(Pool.java:1321)
         at oracle.apps.fnd.common.Pool.borrowObject(Pool.java:1062)
         at oracle.apps.fnd.security.DBConnObjPool.borrowObject(DBConnObjPool.java:752)
         at oracle.apps.fnd.security.AppsConnectionManager.borrowConnection(AppsConnectionManager.java:297)
         at oracle.apps.fnd.common.Context.borrowConnection(Context.java:1720)
         at oracle.apps.fnd.common.AppsContext.getPrivateConnectionFinal(AppsContext.java:2306)
         at oracle.apps.fnd.common.AppsContext.getPrivateConnection(AppsContext.java:2243)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:2101)
         at oracle.apps.fnd.common.AppsContext.getLocalJDBCConnection(AppsContext.java:2481)
         at oracle.apps.fnd.common.AppsContext.getLocalJDBCConnection(AppsContext.java:2416)
         at oracle.apps.fnd.common.AppsContext.getLocalJDBCConnection(AppsContext.java:2397)
         at oracle.apps.fnd.common.ProfileCache.getProfileObject(ProfileCache.java:110)
         at oracle.apps.fnd.common.NativeProfileStore.getSpecificProfileFromDB(NativeProfileStore.java:375)
         at oracle.apps.fnd.common.NativeProfileStore.getProfile(NativeProfileStore.java:314)
         at oracle.apps.fnd.common.logging.DebugEventManager.configureUsingDatabaseValues(DebugEventManager.java:1201)
         at oracle.apps.fnd.common.logging.DebugEventManager.configureLogging(DebugEventManager.java:1044)
         at oracle.apps.fnd.common.logging.DebugEventManager.internalReinit(DebugEventManager.java:1013)
         at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:980)
         at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:967)
         at oracle.apps.fnd.common.AppsLog.reInitialize(AppsLog.java:570)
         at oracle.apps.fnd.common.AppsContext.initLog(AppsContext.java:593)
         at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:570)
         at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:524)
         at oracle.apps.fnd.common.AppsContext.<init>(AppsContext.java:292)
         at oracle.apps.fnd.cp.request.CpContext.<init>(CpContext.java:141)
         at oracle.apps.fnd.cp.request.CpContext.<init>(CpContext.java:124)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:127)
    Caused by: java.lang.AbstractMethodError: oracle.sql.LnxLibThin.lnxnuc([BILjava/lang/String;)Ljava/lang/String;
         at oracle.sql.NUMBER.toInt(NUMBER.java:414)
         at oracle.jdbc.dbaccess.DBConversion.NumberBytesToInt(DBConversion.java:2959)
         at oracle.jdbc.driver.OracleStatement.getIntValue(OracleStatement.java:4596)
         at oracle.jdbc.driver.OracleResultSetImpl.getInt(OracleResultSetImpl.java:536)
         at oracle.apps.fnd.security.ConnectionManager.setClientData(ConnectionManager.java:1497)
         at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:1446)
         at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:1325)
         at oracle.apps.fnd.security.AppsConnectionManager.makeGwyuidConn(AppsConnectionManager.java:884)
         at oracle.apps.fnd.security.AppsConnectionManager.getGwyuidConn(AppsConnectionManager.java:962)
         at oracle.apps.fnd.security.AppsConnectionManager.makeGuestConnection(AppsConnectionManager.java:780)
         at oracle.apps.fnd.security.DBConnObj.<init>(DBConnObj.java:246)
         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:494)
         at oracle.apps.fnd.common.Pool.createObject(Pool.java:1308)
         ... 26 more
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    oracle.apps.genus.utils.MergePdfs
    Program exited with status 1
    Executing request completion options...
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 10-MAR-2010 07:10:47
    ---------------------------------------------------------------------------

    Hi,
    FYI,
    I am not sure about this error,
    Use the following links, hope it may solve your problem,
    http://oracleappstechnology.blogspot.com/2007/09/oracleappsfndcommonpoolexception.html
    http://www.appsdbatechstuff.com/2008/06/java-workflow-mailer-does-not-startup.html
    http://it.toolbox.com/wiki/index.php/Oracle_Apps_-JavaConcurrent_Program
    Io exception: The Network Adapter could not establish the connection
    Regards,
    Hari

  • Java Concurrent Program - Output of BI publisher report

    Hi,
    I have a requirement of a Java Concurrent Program in Oracle apps to print the output of a BI Publisher Report. I need help in the following aspects
    1. Setting up my Jdeveloper for writing the Java code
    - I have downloaded xdo*,cabo*,jbo*,framework*,util* from $JAVA_TOP to my_classes (C:\JDeveloper\jdevhome\jdev\myclasses)
    - However my import statements are not working yet.
    2. I had a reference of similar program where I used it for generating PDF file (output of a XML publisher report) from OA Framework page
    This is a controller class which was generating the PDF output. Link is given below
    https://docs.google.com/leaf?id=0BxunA4-pnNcqNGY5NDNjNDItYjhlMi00ZDNlLTk1ZTctMWY4MjhjNTYwZDdh&hl=en_US
    Any help !!!!!!!!!!

    Hi Hussein,
    Helpful Links.. Yes I had studied them before I posted this. But my requirement is bit complex.
    Please check the following link
    Attachment Print along with xml output - Need help !!!
    Thanks,
    Neil

Maybe you are looking for

  • My Mail app sends me to home screen when I open it

    Let me tell you what I have done after reading all of the threads on this forum about this issue. • Closed the app mail and restarted it #RollEyes #duh • Turning phone off and turning it back on • Resetting Phone • Removing all of the mail accounts f

  • Command not found on running binary files.

    I have a very strange problem with my new arch installation, which I never faced on other linux installations/distros. I'm trying to execute binary files from android-sdk, which I have them from other distros and always worked, and I get always "comm

  • Facebook and Twitter thumbnails on Safari doesn't working!!!!

    Does anybody know why the thumbnails on Safari's top sites of facebook and twitter doesn't work?? I mean, when I open my Safari's top sites, i can see all my top sites with their respective pictures/thumbnails except for the facebook and twitter page

  • To activate blueetooth in toshiba satellite e105-s1402

    I have a laptop Toshiba satellite e105-s1402 want to use it but to the moment to install the driver of the bluetooth he(she) says to me that it(he,she) should activate the blutooth but I do not find anything to be able to activate it. I hope that the

  • Trouble installing CS6 on my mac

    Im having trouble installing CS6 onto my mac. I have tried each way a few times and it isnt downloading, it might get to half way and then it stops. Any ideas?