Please help me debug.....

I will love you forever if you can tell me what's wrong with my programme......
public class picalculator2
     public static void main(String[] args)
               int terms = 2;
               int count = 1;
               double currentDivided = 1;
               int numerator;
               int denominator;
               int numOne;
               int numTwo;
          while ( count < terms )
               numOne=count;
               numTwo=count+1;
               if (numOne%2 = 0)
               numOne = numerator;
               numTwo = denominator;
     else
                    numOne = denominator;
                    numTwo = numerator;
               currentDivided = currentDivided*(numerator/denominator);               
                    count++;
               System.out.println(currentDivided);
}

Please use code tags when you post code.
Also, please include all error messages when you make a post.
I assume your problem is that you are doing this:
if (numOne%2 = 0) and mean to compare instead of assign. Like this:
if (numOne%2 == 0)
Once you correct this I believe you will find other problems that you will need to handle.

Similar Messages

  • Please help with Debug procedure

    Could someone please guide me ..... I am a first timer.  I have an app that runs in Xcode and before I send it off to Apple I would like to (in an ideal world) debug it on both my 5s and my iPad.  I am sure that there is probably an easy procedure that I have to go through in order to put it on both devices but never having done it before I am a bit in the dark.  Would someone who has done this before please give me a hand.  Latest OS is on the phone and iPad and iTunes connect is on the MBP, not sure if that is key.  Many thanks

    There's not too much to say. Just change your target to your devices and build. Hopefully you won't have to do too much debugging. Have you reviewed all of the hoops necessary to submit an app? You will need video previews and screenshots. I find that once I get an app stable enough to complete this process, it is pretty much ready to go.

  • Please help noob debug why updating template duplicates content

    Please go to
    http://www.mmssupplier.com/
    to read the code and help me figure out how to stop my pages from
    duplicating content or a partial table whenever I update my
    template. It only does this to some of the pages that I built from
    the template. I'm not a code expert and cannot figure out why it is
    doing this. On that link the header and content on the bottom is
    the one I want, not all that top duplication, thanks, I really need
    help.

    Hmm - then it's hard to imagine what you might be doing to
    cause this
    anomaly.
    The good news is that your template is pretty OK. The
    validator only finds
    5 errors there -
    1. Error Line 69, Column 41: there is no attribute "height".
    … <td><table width="100%" height="110"
    border="0" cellpadding="0"
    cellspa
    There is NO 'height' attribute in any HTML specification for
    the table
    tag. Since you cannot reliably use this attribute, you should
    just remove
    it from your code.
    2. Error Line 88, Column 320: value of attribute "align"
    cannot be
    "absmiddle"; must be one of "top", "middle", "bottom",
    "left", "right".
    …ight="37" border="0" align="absmiddle" id="home2"
    /></a><br />
    The absmiddle attribute is similar to the table height
    attribute - supported
    by some browsers, but not valid HTML. Just remove it.
    3. Error Line 92, Column 260: value of attribute "name" must
    be a single
    token.
    …jpg" alt="health_issues" name="health issues"
    width="130" height="37"
    border=
    You cannot assign a name value that contains spaces.
    4. Error Line 92, Column 314: value of attribute "id" must
    be a single
    token.
    …30" height="37" border="0" id="health issues"
    /></a><br />
    You cannot assign an ID value that contains spaces.
    5. Error Line 127, Column 61: required attribute "alt" not
    specified.
    …ea shape="rect" coords="2,2,125,31" href="/index.html"
    />
    All images on the page should have either a descriptive alt
    attribute value,
    or an empty one, e.g., <img alt=""....
    Fix those errors, please. Then we can re-examine how you
    might be stumbling
    onto this duplication in your pages.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "stephanierolfe" <[email protected]> wrote
    in message
    news:[email protected]...
    > no, I don't apply to existing child page. I create new
    page each time,
    > based on
    > that template.
    > And yes, I'm starting to get that. I thought I knew
    enough HTML to pull it
    > off
    > and created one large site already,
    http://www.nutritionarticlesonline.com
    > and
    > it works great, no problems with corrupted templates.
    I'd like to persist
    > with
    > DW since I've invested over 6 months already using it.
    Despite the 91
    > errors,
    > it works fine except this updating template problem.
    >

  • Please help me debug this program unit!!!!!

    dear sir,
    i tried diligently to find and to debug this tiny program unit,although my observation to the coding rules of the packages ,compilation error still occur.
    therefore,kindly i'm asking you sir to learn me how to correct it.
    thank you.
    create or replace package test_pack is
    type emp_table_type is table of emp.sal%type
    index by binary_integer;
    emp_list emp_table_type;
    function test_sal
    (v_sal in emp.sal%type)
    return emp_table_type;
    end test_pack;
    create or replace package body test_pack is
    temp emp.sal%type;
    cursor emp_cursor is
    select sal from emp;
    i number :=1;
    j number :=1;
    function test_sal
    (v_sal in emp.sal%type)
    return emp_table_type
    is
    open emp_cursor;
    loop
    fetch emp_cursor into temp;
    if temp < v_sal then
    emp_list(i):=temp;
    bms_output.put_line('rowcount i='||emp_cursor%rowcount);
    dbms_output.put_line('iterator i='||i);
    i:=i+1;
    else
    dbms_output.put_line('rowcount j='||emp_cursor%rowcount);
    dbms_output.put_line('iterator j='||j);
    j:=j+1;
    end if;
    if emp_cursor%notfound then
    dbms_output.put_line('cursor closed...');
    close emp_cursor;
    return emp_list;
    exit;
    end if;
    end loop;
    end test_pack;

    You can use "show err" to show the errors after compilation errors occur:
    SQL> create or replace package test_pack is
      2    type emp_table_type is table of emp.sal%type index by binary_integer;
      3    emp_list emp_table_type;
      4    function test_sal(v_sal in emp.sal%type) return emp_table_type;
      5  end test_pack;
      6  /
    Package is aangemaakt.
    SQL> create or replace package body test_pack is
      2    temp emp.sal%type;
      3    cursor emp_cursor is
      4    select sal from emp;
      5    i number :=1;
      6    j number :=1;
      7
      8    function test_sal
      9    (v_sal in emp.sal%type)
    10    return emp_table_type
    11    is
    12      open emp_cursor;
    13      loop
    14        fetch emp_cursor into temp;
    15        if temp < v_sal then
    16          emp_list(i):=temp;
    17          bms_output.put_line('rowcount i='||emp_cursor%rowcount);
    18          dbms_output.put_line('iterator i='||i);
    19          i:=i+1;
    20        else
    21          dbms_output.put_line('rowcount j='||emp_cursor%rowcount);
    22          dbms_output.put_line('iterator j='||j);
    23          j:=j+1;
    24        end if;
    25        if emp_cursor%notfound then
    26          dbms_output.put_line('cursor closed...');
    27          close emp_cursor;
    28          return emp_list;
    29          exit;
    30        end if;
    31      end loop;
    32  end test_pack;
    33  /
    Waarschuwing: package-body is aangemaakt met compilatiefouten.
    SQL> show err
    Fouten voor PACKAGE BODY TEST_PACK:
    LINE/COL ERROR
    14/7     PLS-00103: Symbool "FETCH" aangetroffen terwijl een van de
             volgende werd verwacht:
             constant exception <een ID>
             <een scheidingsteken-ID tussen dubbele aanhalingstekens>
             table LONG_ double ref char time timestamp interval date
             binary national character nchar
    32/5     PLS-00103: Symbool "TEST_PACK" aangetroffen terwijl een van de
             volgende werd verwacht:
             ;To make your program compile, add a begin and end and fix the typo (in bold):
    SQL> create or replace package body test_pack is
      2    temp emp.sal%type;
      3    cursor emp_cursor is
      4    select sal from emp;
      5    i number :=1;
      6    j number :=1;
      7
      8    function test_sal
      9    (v_sal in emp.sal%type)
    10    return emp_table_type
    11    is
    12    begin
    13      open emp_cursor;
    14      loop
    15        fetch emp_cursor into temp;
    16        if temp < v_sal then
    17          emp_list(i):=temp;
    18          dbms_output.put_line('rowcount i='||emp_cursor%rowcount);
    19          dbms_output.put_line('iterator i='||i);
    20          i:=i+1;
    21        else
    22          dbms_output.put_line('rowcount j='||emp_cursor%rowcount);
    23          dbms_output.put_line('iterator j='||j);
    24          j:=j+1;
    25        end if;
    26        if emp_cursor%notfound then
    27          dbms_output.put_line('cursor closed...');
    28          close emp_cursor;
    29          return emp_list;
    30          exit;
    31        end if;
    32      end loop;
    33    end;
    34  end test_pack;
    35  /
    Package-body is aangemaakt.
    SQL> declare
      2    t test_pack.emp_table_type;
      3  begin
      4    t := test_pack.test_sal(2000);
      5    for i in 1..t.count
      6    loop
      7      dbms_output.put_line(t(i));
      8    end loop;
      9  end;
    10  /
    rowcount i=1
    iterator i=1
    rowcount i=2
    iterator i=2
    rowcount i=3
    iterator i=3
    rowcount j=4
    iterator j=1
    rowcount i=5
    iterator i=4
    rowcount j=6
    iterator j=2
    rowcount j=7
    iterator j=3
    rowcount j=8
    iterator j=4
    rowcount j=9
    iterator j=5
    rowcount i=10
    iterator i=5
    rowcount i=11
    iterator i=6
    rowcount i=12
    iterator i=7
    rowcount j=13
    iterator j=6
    rowcount i=14
    iterator i=8
    rowcount i=14
    iterator i=9
    cursor closed...
    800
    1600
    1250
    1250
    1500
    1100
    950
    1300
    1300
    PL/SQL-procedure is geslaagd.To fix the bug of the last iteration and put the variables in the sections they belong:
    SQL> create or replace package test_pack is
      2    type emp_table_type is table of emp.sal%type index by binary_integer;
      3    function test_sal(v_sal in emp.sal%type) return emp_table_type;
      4  end test_pack;
      5  /
    Package is aangemaakt.
    SQL> create or replace package body test_pack
      2  is
      3    function test_sal(v_sal in emp.sal%type) return emp_table_type
      4    is
      5      emp_list emp_table_type;
      6      temp emp.sal%type;
      7      cursor emp_cursor is select sal from emp;
      8      i number :=1;
      9      j number :=1;
    10    begin
    11      open emp_cursor;
    12      loop
    13        fetch emp_cursor into temp;
    14        if emp_cursor%notfound then
    15          dbms_output.put_line('cursor closed...');
    16          exit;
    17        end if;
    18        if temp < v_sal then
    19          emp_list(i):=temp;
    20          dbms_output.put_line('rowcount i='||emp_cursor%rowcount);
    21          dbms_output.put_line('iterator i='||i);
    22          i:=i+1;
    23        else
    24          dbms_output.put_line('rowcount j='||emp_cursor%rowcount);
    25          dbms_output.put_line('iterator j='||j);
    26          j:=j+1;
    27        end if;
    28      end loop;
    29      close emp_cursor;
    30      return emp_list;
    31    end;
    32  end test_pack;
    33  /
    Package-body is aangemaakt.
    SQL> declare
      2    t test_pack.emp_table_type;
      3  begin
      4    t := test_pack.test_sal(2000);
      5    for i in 1..t.count
      6    loop
      7      dbms_output.put_line(t(i));
      8    end loop;
      9  end;
    10  /
    rowcount i=1
    iterator i=1
    rowcount i=2
    iterator i=2
    rowcount i=3
    iterator i=3
    rowcount j=4
    iterator j=1
    rowcount i=5
    iterator i=4
    rowcount j=6
    iterator j=2
    rowcount j=7
    iterator j=3
    rowcount j=8
    iterator j=4
    rowcount j=9
    iterator j=5
    rowcount i=10
    iterator i=5
    rowcount i=11
    iterator i=6
    rowcount i=12
    iterator i=7
    rowcount j=13
    iterator j=6
    rowcount i=14
    iterator i=8
    cursor closed...
    800
    1600
    1250
    1250
    1500
    1100
    950
    1300
    PL/SQL-procedure is geslaagd.To be really efficient and not care about looping, using counters and dbms_output, and assuming the emp table won't ever be a big table (else use the LIMIT clause):
    SQL> create or replace package body test_pack
      2  is
      3    function test_sal(v_sal in emp.sal%type) return emp_table_type
      4    is
      5      emp_list emp_table_type;
      6    begin
      7      select sal bulk collect into emp_list
      8        from emp
      9       where sal < v_sal
    10      ;
    11      return emp_list;
    12    end;
    13  end;
    14  /
    Package-body is aangemaakt.
    SQL> declare
      2    t test_pack.emp_table_type;
      3  begin
      4    t := test_pack.test_sal(2000);
      5    for i in 1..t.count
      6    loop
      7      dbms_output.put_line(t(i));
      8    end loop;
      9  end;
    10  /
    800
    1600
    1250
    1250
    1500
    1100
    950
    1300
    PL/SQL-procedure is geslaagd.Hope it helps.
    Regards,
    Rob.

  • Please help a debug

    Hello,
    make a pl/sql, get an error
    --first, create a function to find days intervals between dates
    create or replace function test_schema.find_interval(from_date in date, to_date in date)
    return number as
    begin
    return abs(trunc(to_date) - trunc(from_date));
    end;
    (function created)
    --then
    SYS@xxx> declare
    2 V_insert_date date;
    3 v_sysdate date :=sysdate;
    4 v_retention_num number :=21;
    5 v_extended_retention number :=0;
    6 purge_nbr Number := 0;
    7 v_interval_days number :=0;
    8 begin
    9
    10 select to_char(max(INSERT_DT), 'DD-Mon-YYYY')
    11 INTO V_insert_date
    12 FROM test_schema.STAT_CD;
    13
    14
    15 IF v_insert_date > sysdate THEN
    16
    17 select test_schema.find_interval(v_insert_date,to_date(sysdate, 'mm/dd/yyyy')) into v_interval_days from dual;
    18 v_extended_retention := v_retention_num + v_interval_days;
    19 select ltrim(to_char(sysdate - v_extended_retention,'ddd'),'0') into purge_nbr from dual;
    20 DBMS_OUTPUT.PUT_LINE('truncated partition' ||purge_nbr);
    21
    22 ELSE
    23
    24 select ltrim(to_char(sysdate - v_retention_num,'ddd'),'0') into purge_nbr from dual;
    25 DBMS_OUTPUT.PUT_LINE('truncated partition' || purge_nbr);
    26
    END IF;
    27 28 end;
    29 /
    declare
    ERROR at line 1:
    ORA-01858: a non-numeric character was found where a numeric was expected
    ORA-06512: at line 17
    why...?
    thank you

    one more question:
    when run this
    declare
    V_insert_date date;
    v_sysdate date :=sysdate;
    v_retention_num number :=21;
    v_extended_retention number :=0;
    purge_nbr Number := 0;
    v_interval_days number :=0;
    begin
    select max(INSERT_DT)
    INTO V_insert_date
    FROM test_schema.STAT_CD;
    IF v_insert_date > sysdate THEN
    select test_schema.find_interval(v_insert_date,sysdate) into v_interval_days from dual;
    v_extended_retention := v_retention_num + v_interval_days;
    select ltrim(to_char(sysdate - v_extended_retention,'ddd'),'0') into purge_nbr from dual;
    DBMS_OUTPUT.PUT_LINE('truncated partition' ||purge_nbr);
    ELSE
    select ltrim(to_char(sysdate - v_retention_num,'ddd'),'0') into purge_nbr from dual;
    DBMS_OUTPUT.PUT_LINE('truncated partition' || purge_nbr);
    END IF;
    end;
    truncated partition101
    PL/SQL procedure successfully completed.
    --then, want to give this PL/SQL a name to create a named procedure, and add two parameters  (one is table name, the other is retention days number), do like
    CREATE OR REPLACE procedure test_schema.truncate_partition
    (p_table_name IN VARCHAR2 ,
    p_retention_num IN NUMBER)
    IS
    V_insert_date date;
    v_sysdate date :=sysdate;
    v_retention_num number := p_retention_num;
    v_extended_retention number :=0;
    purge_nbr Number := 0;
    v_interval_days number :=0;
    begin
    select max(INSERT_DT)INTO V_insert_date
    FROM p_table_name;
    IF v_insert_date > sysdate THEN
    select test_schema.find_interval(v_insert_date,sysdate) into v_interval_days from dual;
    v_extended_retention := v_retention_num + v_interval_days;
    select ltrim(to_char(sysdate - v_extended_retention,'ddd'),'0') into purge_nbr from dual;
    DBMS_OUTPUT.PUT_LINE('truncated partition' ||purge_nbr);
    ELSE
    select ltrim(to_char(sysdate - v_retention_num,'ddd'),'0') into purge_nbr from dual;
    DBMS_OUTPUT.PUT_LINE('truncated partition' || purge_nbr);
    END IF;
    END;
    end truncate_partition;
    Warning: Procedure created with compilation errors.
    then debug,
    Errors for PROCEDURE TEST_SCHEMA.TRUNCATE_PARTITION:
    LINE/COL ERROR
    13/1 PL/SQL: SQL Statement ignored
    14/6 PL/SQL: ORA-00942: table or view does not exist
    seems like problem is here..
    select max(INSERT_DT)INTO V_insert_date
    FROM p_table_name;
    my question is how to overcome?
    thank you
    Edited by: ROY123 on May 2, 2012 1:12 PM

  • Please help me debug this code!

    HELP! I can't figure out where I'm going wrong. Thank you.
    import java.lang.Math.*;
    import java.io.*;
    public class Feature_Recognizer {
         Vertices vertices;   /* storage bin for vertices*/
         Edges edges;         /* storage bin for edges*/
         Faces faces;         /* storage bin for faces*/
         /*** Reads file and stores data into vertices, edges, and faces bins ***/
         void readFile(String file)
              BufferedReader inputFile = null; /*start reading the input file*/
              String[] info;
              String temp;
              /*need to fix io exceptions in java.lang
               * They need to be caught or declared to be thrown*/
              try{
                   inputFile = new BufferedReader(new FileReader(file));
              catch (FileNotFoundException e){
                   System.out.println("File named"+file+"does not exist");
                   return;
              catch (IOException e){
                   System.out.println("IO Exception.  Error reading from:"+file);
                   return;
                  /*begin reading in data array, set into vertices/edges/faces*/                         
                   inputFile.readLine();                                   /* will skip comments in input files*/
                   temp = inputFile.readLine();                            /* store number of vertices*/
                   vertices = new Vertices(Integer.parseInt(temp.trim())); /* initialize the vertices based on data array*/
                   inputFile.readLine();                                   /* will skip comments in input files*/
                   /* store vertices*/
                   int i=0;
                   while(i++<vertices.total)
                        temp = inputFile.readLine();
                        info = temp.split(" ");
                        vertices.addVertex(Double.parseDouble(info[0]),Double.parseDouble(info[1]),Double.parseDouble(info[2]));
                   inputFile.readLine();                             /* will skip comments in input files*/
                   temp = inputFile.readLine();                      /* store number of edges*/
                   edges = new Edges(Integer.parseInt(temp.trim())); /* initialize the edges based on the data array*/
                   inputFile.readLine();                             /* will skip comments in input files*/
                   /* store edges*/
                   int i1=0;
                   while(i1++<edges.total)
                        temp = inputFile.readLine();
                        info = temp.split(" ");
                        edges.addEdge(vertices.getVertex(Integer.parseInt(info[0])),
                             vertices.getVertex(Integer.parseInt(info[1])),
                             Integer.parseInt(info[2]));
                   inputFile.readLine();                             /* will skip comments in input files*/
                   temp = inputFile.readLine();                      /* store number of faces*/
                   faces = new Faces(Integer.parseInt(temp.trim())); /* initialize faces based on the data array*/
                   inputFile.readLine();                             /* will skip comments in input files*/
                   /* store faces*/
                   int i2=0;
                   while(i2++<faces.total)
                        /* input # of edges*/
                        temp = inputFile.readLine();
                        faces.addFace(Integer.parseInt(temp.trim()));
                        /* input faces*/
                        temp = inputFile.readLine();
                        info = temp.split(" ");
                        int j=0;
                        while(j++<faces.getFace(i2).Edge_Totals)
                             if(Integer.parseInt(info[j]) < 0)
                                  faces.getFace(i2).edges.addEdge(edges.getEdge(Math.abs(Integer.parseInt(info[j]))),true);
                             else
                                  faces.getFace(i2).edges.addEdge(edges.getEdge(Math.abs(Integer.parseInt(info[j]))),false);
                        /* input normal vector*/
                        temp = inputFile.readLine();
                        info = temp.split(" ");
                        int j1=0;
                        while(j1++<3)
                             faces.getFace(i2).normal[j1] = Integer.parseInt(info[j1]);
                   /***possibly place another IO exception in here
                   catch (IOException e){
                   System.out.println("IO Exception");
                   return;
         /*** State Classes: edge, face, vertex ***/
         /* Nested Edge object class*/
         class Edge{
                   int identity,           /* identity of edge*/
                        type;               /* concave or convex?*/
                   Vertices vertices;      /* vertices that make up the edge*/
                   Faces faces;            /* faces corresponding to the edge*/
                   double length;          /* length of edge*/
                   /* Edge class constructor*/
                   Edge(int IDENTITY, Vertex A, Vertex B, int TYPE)
                        identity = IDENTITY;
                        vertices = new Vertices(2);
                        vertices.addVertex(A);
                        vertices.addVertex(B);
                        type = TYPE;
                        faces = new Faces(2);
                   /* Length_Calculator will compute the length of edge*/
                 void Length_Calculator()
                        length = Math.pow( (vertices.getVertex(2).x - vertices.getVertex(1).x)*(vertices.getVertex(2).x - vertices.getVertex(1).x)
                                 + (vertices.getVertex(2).y - vertices.getVertex(1).y)*(vertices.getVertex(2).y - vertices.getVertex(1).y)
                                  + (vertices.getVertex(2).z - vertices.getVertex(1).z)*(vertices.getVertex(2).z - vertices.getVertex(1).z)
                                 , .5 );
                   /* getFaces finds the faces which are related to the edge
                   (returns the runtime class of an object)*/
                 void getFaces()
                        int i=1;
                        while( i++ <=Feature_Recognizer.this.faces.total){
                             int j=1;
                             while(     j++<=Feature_Recognizer.this.faces.getFace(i).Edge_Totals){
                                  if(identity == Feature_Recognizer.this.faces.getFace(i).edges.getEdge(j).identity){
                                       faces.addFace(Feature_Recognizer.this.faces.getFace(i));
         /* Edges object class (Edge bin)nested Edges Class*/
         class Edges
                   int index,       /* current index in array*/
                        total;       /* total number of edges*/
                   Edge[] edges;    /* actual edges bin*/
                   boolean[] sign;  /* positive or negative (for face object)*/
                   /* Edges class constructor*/
                   Edges(int Edge_Totals)
                        index = 0;
                        total = Edge_Totals;
                        edges = new Edge[Edge_Totals];
                        sign = new boolean[Edge_Totals];
                   /* method to add an already existing Edge object*/
                   void addEdge(Edge e)
                        edges[index++] = e;
                   /* method to an already existing Edge object*/
                   /* and state if it is negative or positive (for faces only)*/
                   void addEdge(Edge e, boolean isNegative)
                        sign[index] = isNegative;
                        edges[index++] = e;
                   /* method to create and add an Edge object*/
                   void addEdge(Vertex a, Vertex b, int type)
                        edges[index++] = new Edge(index,a,b,type);
                   /* returns the Edge corresponding to its identity*/
                   Edge getEdge(int identity)
                        return edges[identity-1];
                   /* finds the lengths and faces of each Edge in the bin*/
                   void Edge_Stats()
                        int i=0;
                        while(i++<total){
                             edges.Length_Calculator();
                             edges[i].getFaces();
         /* Face object class nested face class*/
         class Face
                   int identity, /* edge identity*/
                        Edge_Totals; /* number of edges that make up the face*/
                   Edges edges; /* edges that make up the face*/
                   int[] normal; /* the vector of the normal to the face*/
                   /* Face class constructor*/
                   Face(int IDENTITY, int numE)
                        identity = IDENTITY;
                        Edge_Totals = numE;
                        edges = new Edges(numE);
                        normal = new int[3];
         /* Faces object class (Face bin)nested faces class*/
         class Faces
                   int index, /* current index in array*/
                        total; /* total number of Faces*/
                   Face[] faces; /* actual faces bin*/
                   /* Faces class constructor*/
                   Faces(int numFaces)
                        index = 0;
                        total = numFaces;
                        faces = new Face[numFaces];
                   /* method to sum an already existing Face object*/
                   void addFace(Face f)
                        faces[index++] = f;
                   /* method to create and sum a Face object*/
                   void addFace(int numE)
                        faces[index++] = new Face(index,numE);
                   /* returns the Face corresponding to its identity*/
                   Face getFace(int identity)
                        return faces[identity-1];
         /* Vertex object class nested vertex class*/
         class Vertex
                   int identity; /* vertex identity*/
                   double x,y,z; /* coordinates*/
                   /* Vertex class constructor*/
                   Vertex(int IDENTITY, double X, double Y, double Z)
                        identity = IDENTITY;
                        x = X;
                        y = Y;
                        z = Z;
              /* Vertices object class (Vertex bin)nested vertices bin*/
         class Vertices
                   int index, /* current index in array*/
                        total; /* total number of vertices*/
                   Vertex[] points; /* actual Vertex bin*/
                   /* Vertices class constructor*/
                   Vertices(int numVertices)
                        index = 0;
                        total = numVertices;
                        points = new Vertex[numVertices];
                   /* method to add an already existing Vertex object*/
                   void addVertex(Vertex v)
                        points[index++] = v;
                   /* method to create and add a Vertex object*/
                   void addVertex(double x, double y, double z)
                        points[index++] = new Vertex(index,x,y,z);
                   /* returns the Vertex corresponding to it's identity*/
                   Vertex getVertex(int identity)
                        return points[identity-1];
    /* displays each edge's type based on data array and the corresponding faces to that edge*/
         void printEdges_Found(){
              String shape;
              System.out.println("Edge\tType\tFaces");
              int i=0;
              while(i++<edges.total){
                   if(edges.getEdge(i).type == 0)
                        shape = "Concave";
                   if(edges.getEdge(i).type == 1)
                        shape = "Convex";
                   else
                        println("Input file must have 0 or 1 for shape type");
                   System.out.println(i + "\t" + shape + "\t" + edges.getEdge(i).faces.getFace(1).identity
                                       + ", " + edges.getEdge(i).faces.getFace(2).identity + "\t");
              System.out.println();
         /* VRML output file maker*/
         void VRML_Output(String file)
              PrintStream outputFile = null;
                   outputFile = new PrintStream(new FileOutputStream(file));
              outputFile.println("#VRML V2.0 utf8");
              outputFile.println("\tShape{");
              outputFile.println("\t\tgeometry IndexedFaceSet{");
              outputFile.println("\t\t\tcoord Coordinate{");
              outputFile.print("\t\t\t\tpoint[  ");
              int i=0;
              while(i++<vertices.total){
                   if(i > 0)
                        if(i%4 == 0) {
                             outputFile.println("\n");
                             outputFile.print("\t\t\t\t\t");
                   outputFile.print(vertices.getVertex(i+1).x + " " + vertices.getVertex(i+1).y
                                       + " " + vertices.getVertex(i+1).z);
                   if(i != vertices.total-1)
                        outputFile.print(",");
              outputFile.println("]");
              outputFile.println("\t\t\t}");
              outputFile.print("\t\t\tcoordIndex[");
              int i3=1;
              while(i3++<=faces.total){
                   int j2=0;
                   while(j2++<faces.getFace(i3).edges.total){
                        if(faces.getFace(i3).edges.sign[j2])
                             outputFile.print(faces.getFace(i3).edges.getEdge(j2+1).vertices.getVertex(1).identity-1 + ", ");
                        else
                             outputFile.print(faces.getFace(i3).edges.getEdge(j2+1).vertices.getVertex(2).identity-1 + ", ");
                   outputFile.println("-1");
                   if(i != faces.total)
                        outputFile.print("\t\t\t\t ");
              outputFile.println("\t\t\t]");
              outputFile.println("\t\t}");
              outputFile.println("\t}");
              outputFile.close();
         /*** feature recognition step:***/
         /* finds the slots*/
         void Slot_Finder()
              int i=1;
                   while(i++<=edges.total){
                   double L=0.0, W=0.0, H=0.0;
                   if(edges.getEdge(i).type == 0) {
                        int vertexID = edges.getEdge(i).vertices.getVertex(1).identity;
                        int j=1;
                        while(j++<=edges.total)
                             if(vertexID == edges.getEdge(j).vertices.getVertex(1).identity || vertexID == edges.getEdge(j).vertices.getVertex(2).identity){
                                  if(edges.getEdge(j).vertices.getVertex(1).z - edges.getEdge(j).vertices.getVertex(2).z != 0)
                                       H = edges.getEdge(j).length;
                                  else
                                       if(edges.getEdge(j).length > L){
                                            W = L;
                                            L = edges.getEdge(j).length;
                                       else
                                            W = edges.getEdge(j).length;
                        System.out.println("A slot was found at edge #" + i + " with length " + L + ", width " + W + " and height " + H);
         /* finds the bases*/
         void Base_Finder()
              int i=1;
              while(i++<=faces.total)
                   if(faces.getFace(i).normal[2] == -1)
                        double L, W;
                        if (faces.getFace(i).edges.getEdge(1).length >= faces.getFace(i).edges.getEdge(2).length )
                             L = faces.getFace(i).edges.getEdge(1).length; W = faces.getFace(i).edges.getEdge(2).length;
                        else
                             L = faces.getFace(i).edges.getEdge(2).length; W = faces.getFace(i).edges.getEdge(1).length;
                        System.out.println("A base was found at face #" + i + " with length " + L + " and width " + W);
    /* finds the ribs*/
         void Rib_Finder()
              int i=1;
              while(i++<=faces.total){
                   if(faces.getFace(i).normal[2] == 1) {
                        double L, W;
                        if ( faces.getFace(i).edges.getEdge(1).length >= faces.getFace(i).edges.getEdge(2).length ){
                             L = faces.getFace(i).edges.getEdge(1).length; W = faces.getFace(i).edges.getEdge(2).length;
                        else {
                             L = faces.getFace(i).edges.getEdge(2).length; W = faces.getFace(i).edges.getEdge(1).length;
                        if(W < 1.5 && faces.getFace(i).edges.getEdge(1).type == 1 && faces.getFace(i).edges.getEdge(2).type == 1)
                             System.out.println("A rib was found at face #" + i + " with length " + L + " and width " + W);
         /*** main program***/
         public static void main(String[] args) {
                   Feature_Recognizer a = new Feature_Recognizer();
                   a.readFile(args[0]);
                   a.edges.Edge_Stats();
                   a.Edges_Found();
                   a.VRML_Output(args[1]);
                   a.Slot_Finder();
                   a.Base_Finder();
                   a.Rib_Finder();
         }/*main ends here*/

    Try formatting your code better. Or use an auto formatter.
    You have too many '}' before this statement delete one.
    There is no such package as java.lang.Math
    You have about 4 more bugs to fix to get it to compile.
    Nearly there.

  • Please help me debug my code

    Hi guys! Kindly Check my codes. I'm having a hard time to debug it. I have the same records on the first 2 rows. 
      DATA: BEGIN OF lt_skills OCCURS 0,
                  qid TYPE hrobjid,
                  qkid TYPE hrobjid,
                  qgrp TYPE stext,
                  qname     TYPE stext,
                  scale_id TYPE     scale_id,
                  adatanr TYPE hradatanr,
                  pstext     TYPE profc_text,
                  rating     TYPE rating.
      DATA: END OF lt_skills.
    Qualification Name                 - QID, QNAME
      SELECT DISTINCT x~objid
                      y~stext
                      x~adatanr
         INTO (lt_skills-qid,
               lt_skills-qname,
               lt_skills-adatanr)
        FROM HRP1001 as x JOIN HRP1000 as y
               ON xobjid = yobjid
               AND xotype = yotype
               AND xotjid = yotjid
               AND xplvar = yplvar
        WHERE y~langu = 'E'
         AND x~sobid = employee_no
          AND x~plvar = '01'
         AND x~subty = 'B032'
          AND x~otype = 'Q'.
    Qualification Group                - QKID, QGRP
        IF lt_skills-qid IS NOT INITIAL.
          SELECT SINGLE x~objid
                        y~stext
           INTO (lt_skills-qkid,
                 lt_skills-qgrp)
          FROM HRP1001 as x JOIN HRP1000 as y
                 ON xobjid = yobjid
                 AND xotype = yotype
         WHERE y~langu = 'E'
            AND x~sobid = lt_skills-qid
           AND x~subty = 'BO30'
            AND y~otype = 'QK'.
    SCALE                         -  SCALE
          IF lt_skills-qkid IS NOT INITIAL.
            SELECT SINGLE scale
            INTO lt_skills-scale_id
            FROM HRP1033
            WHERE objid = lt_skills-qkid
              AND  otype = 'QK'.
    RATING                               - RATING
            IF lt_skills-scale_id IS NOT INITIAL.
              SELECT SINGLE chara
              INTO lt_skills-rating
              FROM HRPAD31
              WHERE adatanr = lt_skills-adatanr.
    PROFICIENCY                      - PROFICIENCY TXT
              IF lt_skills-rating IS NOT INITIAL.
                SELECT SINGLE pstext
                INTO lt_skills-pstext
                FROM T77TP
                WHERE langu = 'E'
                AND scale_id = lt_skills-scale_id
                AND rating = lt_skills-rating.
                IF sy-subrc EQ 0.
                  APPEND lt_skills.
                  CLEAR lt_skills.
                ENDIF.
              ENDIF.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDSELECT.
    Move Internal Table to SKILLS
      DATA:         limit TYPE string,
            qgroup TYPE string.
      READ TABLE lt_skills.
      LOOP AT lt_skills.
        CASE lt_skills-scale_id.
    SKILLS
          WHEN '9' OR '10'.
            skills-qid = lt_skills-qid.
            skills-qname = lt_skills-qname.
            skills-scale_id  = lt_skills-scale_id.
            IF sy-subrc IS NOT INITIAL.
              APPEND skills.
              CLEAR skills.
            ENDIF.
        ENDCASE.
      ENDLOOP.
    THE OUTPUT:
          7    Entries                                                                               
    QNAME                QID      SCALE_ID    
    Layout               50000372 00000009    
    Layout               50000372 00000009    
    Cutting              50000373 00000009    
    Machining            50000374 00000009    
    Assembly             50000375 00000009    
    Pipe Installation    50000376 00000009    
    Welding/Gouging      50000380 00000010   
    THANKS!

    Hi,
    The duplicate entries could be coming from the first SELECT on HRP1001.. You can get rid of duplicate entries as follows..
    sort skills by qid qname scale_id.
    delete adjacent duplicates from skills.
    Regards,
    Suresh Datti

  • Please help debug

    ****newbie****
    can someone please please help me debug this small piece of java code?
    it may only take you 2 sec!? been trying to do it for hours!
    theres three errors i can't fix,
    theres an error in the 1st statement with EasyIn
    and 2 in the last statement.
    this line:
    if (found) System.out.println("The number was found");
    and error with "}" in the last line
    public class seqSearch {
          * @param args
              // TODO Auto-generated method stub
              private int numbers2search[] = new int[10];
              private double nearest;
              public void fillArray(){
                        for (int i=0; i<numbers2search.length-1; i++){
                             System.out.println ("Please enter number");
                             numbers2search= EasyIn.getInt();
    public void find(int num){
         boolean found = false;
         for (int i=0; i<numbers2search.length-1; i++){
              if (numbers2search[i]==num)found=true;
    public void display(){
         if (found) System.out.println("The number was found");
         else{
              System.out.println("The number was not found");

    You could have posted this as a reply in the other thread, rather than starting a new thread. And you still haven't posted the exact error messages.
    For the third one, however, you need an additional "}" to "close" the class definition. (And you should probably enclose the statement in the if side of the block with braces, if you are going to do it on the else side).
    As far as the second error, I am assuming that it concerns the fact that you have declared found in one method and are trying to access it in another, you cannot do that.
    And I will assume that the first error is because you haven't imported the "EasyIn" class.
    I think you need to read all of the basic tutorials, before you attempt to continue.
    Edit: Okay, now you provided, at least sketchy, error messages.

  • PLEASE HELP me with my Client/Server problem !!!

    I have a method that can currently only recieve one file at a time, but I need it to be able to recieve multiple incomming files. My problem is that it can recieve the first file, but when the send file is sent to this method, it freezes. Can somebody please help me debug it!! I need to get this working by tonight. Thanks!
    public class A implements Runnable {
            String hostname;
            private Thread runner;
            public A () {}
            public void receive() throws IOException {
                    try {
                            while (true) {
                                    Socket s = ss.accept();            
                                    s.close();
                    } catch (Exception e) {
                            System.out.println(e);
            public void run() {
                    try {
                            ServerSocket ss = new ServerSocket(1111);
                            while (true) {
                                    receive();
                    } catch (IOException ioe) {
                            System.out.println("IOException in run()\n" + ioe.getMessage());
            private void stop() {Runner = null;}
            public void request(String fileName) {
                    if(runner == null) {
                   runner = new Thread(this);
                   runner.start();
                            try {
                                    send(fileName);
                            } catch (Exception e) {
                                System.out.println("Exception in run()\n" + e.getMessage());
    }

    you have a while(true) in your receive, so you accept the socket, do the // ... stuff, close it, and then sit there waiting to accept another one again. Am I seeing that correctly?

  • Please help Javamail

    javax.mail.MessagingException: 550 5.7.1 Sender rejected: [email protected] is not a valid from address
    Can anyone please help me debug this problem....
    this is the code that im using
    <%@ page import="java.util.*, javax.mail.*, javax.mail.internet.*" %>
    <%
    Properties props = new Properties();
    props.put("mail.smtp.host", "mail.emirates.net.ae");
    Session s = Session.getInstance(props,null);
    MimeMessage message = new MimeMessage(s);
    InternetAddress from = new InternetAddress("[email protected]");
    message.setFrom(from);
    InternetAddress to = new InternetAddress("[email protected]");
    message.addRecipient(Message.RecipientType.TO, to);
    message.setSubject("Test from JavaMail.");
    message.setText("Hello from JavaMail!");
    Transport.send(message);
    %>
    <html>
    <p align="center">A Message has been sent.<br>Check your inbox.</p>
    <p align="center">Click here to send another!</p>
    </html>

    I'm sorry, I can't be bothered to read this unformatted gibberish. Is this the same as in this thread: http://forum.java.sun.com/thread.jspa?threadID=760970 ?

  • Can't decode JSP Server Error Please help!

    Hi,
    I wrote this code and I get this huge server error when I run it and I can't for the life of me figure out what's wrong, can someone please help me debug my jsp or explain to me what any of those errors mean?
    Here is the error message:
    type Exception report
    message
    description
    The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:536)
    root cause
    java.lang.NullPointerException
         at org.apache.jsp.Pdb_Add_jsp._jspService(Pdb_Add_jsp.java:530)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:536)
    Apache Tomcat/4.1.24
    Here is the code: Pdb_Add.jsp
    <%@ include file="authenticate.jsp" %>
    <%@ page import="java.sql.*" %>
    <%
    String connectionURL = "jdbc:mysql://localhost:3306/xxxxx?user=****&password=***";
    Connection connection = null;
    Statement statement = null;
    ResultSet rs = null;
    %>
    <html>
    <head>
    <title>Project Portal Confirm New Project</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link href="style.css" rel="stylesheet" type="text/css">
    <link type="text/css" rel="stylesheet" href="xtree.css">
    <script src="xtree.js"></script>
    </head>
    <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
    <table bgcolor="#ffffff" width="761" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="337" valign="top">
         <table width="761" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="11" valign="top"><IMG height=1 src="images/spacer.gif" width=1></td></tr>
          <tr>
            <td height="291" valign="top">
              <table width="761" border="0" cellspacing="0" cellpadding="0">
                   <tr>
                        <td width="10"><IMG height=1 src="images/spacer.gif" width=1></td>
                        <td width="399" valign="top">
                        <table width="399" border="0" cellspacing="0" cellpadding="0">
                        <TBODY>
                             <tr><!--IMAGE SQUARE ONE: TOP -->
                                  <td height="300" background="images/BB7250.jpg"><IMG height=1 src="images/spacer.gif" width="100%"></td>
                             </tr>
                             <tr>
                                  <td height="0" valign="top">
                                       <table width="300" height="200" border="0" cellpadding="0" cellspacing="0">
                                       </tr>
                                       </table>
                                  </td>
                             </tr>
                        <tr></tr>
         </table>
         </td>
                      <td width="340" valign="top">
                        <table width="340" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                      <td height="91" valign="top">
                          <table width="340" height="88" border="0" cellpadding="0" cellspacing="0">
                          <tr>
                            <td width="3"><IMG height=1 src="images/spacer.gif" width=1></td>
                            <td width="167" valign="top" background="images/S1.gif">
                                       <table width="167" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                 <td width="80"> </td>
                                                 <td width="86" valign="top" class="text2" style="PADDING-TOP: 24px"></td>
                                            </tr>
                                       </table>
                                  </td>
                                  <td width="3"><IMG height=1 src="images/spacer.gif" width=1></td>
                            <td width="167" valign="top" background="images/V.gif">
                                       <table width="167" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                 <td width="70"> </td>
                                                 <td width="95" valign="top" class="text2" style="PADDING-TOP: 23px"></td>
                                            </tr>
                                       </table>
                                  </td>
                          </tr>
                     </table>
                         </td>
                   </tr>
                      <tr>
                      <td height="88" valign="top">
                          <table width="340" height="88" border="0" cellpadding="0" cellspacing="0">
                          <tr>
                            <td width="3"><IMG height=50 src="images/spacer.gif" width=1></td>
                            <td width="77" valign="top" background="images/and.gif">
                                       <table width="167" border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                             <td width="80"> </td>
                                              <td width="86" valign="top" class="text2" style="PADDING-TOP: 21px"></td>
                                            </tr>
                                       </table>
                                  </td>
                                  <td width="3"><IMG height=1 src="images/spacer.gif" width=1></td>
                            <td width="167" valign="top" background="images/V.gif">
                                       <table width="167" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                            <td width="77"> </td>
                                            <td width="90" valign="top" class="text2" style="PADDING-TOP: 21px"></td>
                                            </tr>
                                       </table>
                                  </td>
                         </tr>
                      </table>
                          </td>
                   </tr>
                      <tr>
                      <td valign="top" style="PADDING-LEFT: 4px">
                          <table width="336" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td width="300" height="4" valign="top" background="images/spacer.gif">
                                 </td>
                          </tr>
                               <tr>
                            <td width="300" height="116" valign="top" background="images/portalspiral.jpg">
                                 </td>
                          </tr>
                      </table>
                          </td>
                   </tr>
                </table></td>
                <td><IMG height=1 src="images/spac" width=1></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td valign="top">
              <table width="761" height="35" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td width="10" valign="top"> </td>
                <td width="517" valign="top">
                   <table width="517" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td valign="top">
                        <table width="517" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td height="3" bgcolor="#000000">
                             <IMG height=1 src="images/spacer.gif" width=1></td>
                      </tr>
                      <tr>
                        <td valign="top">
                             <table width="250" border="0" cellspacing="0" cellpadding="1">
                            <tr>
                              <td width="75" valign="top">
                                       <A href="PIndex.html"><IMG height=31 src="images/but2.gif" width=99 border=0></A></td>
                              <td width="80" valign="top" style="PADDING-RIGHT: 1px">
                                       <A href="ProjectPortal_Add.html"><IMG height=31 src="images/but3.gif" width=104 border=0></A></td>
                              <td width="100" valign="top" style="PADDING-RIGHT: 6px">
                                       <A href="index-2.html"><IMG height=31 src="images/but4.gif" width=104 border=0></A></td>
                              <td width="100" valign="top">
                                       <A href="PDir.html"><IMG id=IMG1 height=31 src="images/but5.gif" width=134 border=0 ></A></td>
                              <td width="75" valign="top">
                                       <A href="index-4.html"><IMG height=31 src="images/but6.gif" width=99 border=0></A></td>
                            </tr>
                        </table></td>
                      </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td height="1" bgcolor="#e3e3e3">
                        <IMG height=1 src="images/spacer.gif" width=1></td>
                  </tr>
                </table></td>
                <td width="150" valign="top">
                   <table width="150" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="3" bgcolor="#000000"><IMG height=1 src="images/spacer.gif" width=1></td>
                  </tr>
                  <tr>
                    <td height="1"><IMG height=1 src="images/spacer.gif" width=1></td>
                  </tr>
                  <tr>
                    <td height="31" valign="top">
                        <table width="150" height="31" border="0" cellpadding="0" cellspacing="0" background="images/spacer.gif" bgcolor="#ffffff">
                      <tr>
                        <td width="80" valign="top" style="PADDING-TOP: 7px"><IMG height=25 src="images/spacer.gif" width=56></td>
                        <td width="100" valign="top" style="PADDING-RIGHT: 4px; PADDING-TOP: 8px"
                               ><input name="textfield" class="form" ></td>
                        <td valign="top" style="PADDING-TOP: 5px">
                             <A href="#"><IMG height=21 src="images/minis.gif" width=20 border=0></A></td>
                      </tr>
                    </table></td>
                  </tr><tr>
                       <td height="1" bgcolor="#e3e3e3"><IMG height=1 src="images/spacer.gif" width=1></td>
                      </tr>
                </table></td>
                <td><IMG height=1 src="images/spacer.gif" width=1></td>
              </tr>
            </table></td>
          </tr>
        </table></TD></TR>
      <tr>
        <td height="362" valign="top">
         <table width="761" height="362" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="218" valign="top">
              <table width="218" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="12" valign="top">
                    <IMG height=1 src="images/spacer.gif" width=1></td>
                <td width="218" valign="top">
              <table width="218" border="0" cellspacing="0" cellpadding="0" style="WIDTH: 218px; HEIGHT: 472px">
              <tr>
                <td width="12" valign="top"><IMG height=1 src="images/spacer.gif" width=1></td>
                <td width="205" valign="top">
                <IMG alt="" src="file://C:\Documents and Settings\atavakkolie\Desktop\Project Portal\images\PDir.gif"
                      id=IMG1
                     >
                      <DIV id=DIV1
                      style="PADDING-RIGHT: 5px; PADDING-LEFT: 15px; LEFT: 5px; PADDING-BOTTOM: 5px; OVERFLOW: auto; WIDTH: 200px; PADDING-TOP: 0px; POSITION: relative; TOP: 10px; HEIGHT: 100%"><!-- js file containing the tree content, edit this file to alter the menu,
                        the menu will be inserted where this tag is located in the document -->
                      <SCRIPT src="tree.js"></SCRIPT>
                      </DIV></td>
                     <td>
                        </td>
              </tr>
            </table></td>
              </tr>
            </table></td>
            <td width="1" valign="top"><table width="1" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="2"><IMG height=1 src="images/spacer.gif" width=1></td>
              </tr>
              <tr>
                <td height="920" bgcolor="#e3e3e3"><IMG height=1 src="images/spacer.gif" width=1></td>
              </tr>
              <tr>
                <td height="2"><IMG height=1 src="images/spacer.gif" width=1></td>
              </tr>
            </table></td>
            <td width="542" valign="top">
              <table width="542" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="530" valign="top">
                   <table width="530" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td valign="top">
                        <table width="530" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td height="41" valign="top" style="PADDING-TOP: 6px"><IMG id=IMG1
                                  style="LEFT: 409px; TOP: 552px" height
                                  =44 src="images/Addp.gif" width=207></td>
                      </tr><!-- Form starts here-->
                      <tr>
                        <td valign="top"
                                >
                             <table width="530" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td class="text" style="PADDING-LEFT: 18px">
                                      <!-- ***** START EDITABLE REGION  -->
    <%
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    connection = DriverManager.getConnection(connectionURL, "", "");
    statement = connection.createStatement();
    String name = request.getParameter("name");
    String email = request.getParameter("email");
    String pname = request.getParameter("pname");
    String pmanager = request.getParameter("pmanager");
    String svvpp = request.getParameter("svvpp");
    String pdphase = request.getParameter("pdphase");
    String pdptarget = request.getParameter("pdptarget");
    String etimecode = request.getParameter("etimecode");
    if( request.getParameter("name").equals("") || request.getParameter("email").equals("") || request.getParameter("pname").equals("")
    || request.getParameter("pmanager").equals("") || request.getParameter("svvpp").equals("") || request.getParameter("pdphase").equals("")
    || request.getParameter("pdptarget").equals("") || request.getParameter("etimecode").equals(""))
    out.println("<b>ERROR:</b> All fields were not filled out. Please go back and try again.");
    else
    try
      int retval = statement.executeUpdate("INSERT INTO project VALUES('" + name + "," + email + "," + pmanager + "," +  svvpp + "," + pname + "," + pdphase + "," + pdptarget + "," + etimecode + "')");
      out.println("<b>SUCCESS:</b> Your changes have been successfully written to the database.");
      session.putValue("entry", "<b>" + pname + " (Add Project)</b>: added user with email: " + email + ", pmanager: " + pmanager + ", svvpp: " + svvpp + ", pdphase: " + pdphase + ", pdptarget: " + pdptarget + ", etimecode: " + etimecode);
      %>
      <jsp:include page="log.jsp" />
      </jsp:include>
      <%
      catch (SQLException e)
       if (e.getErrorCode() == 1062)
       { out.println("<p><b>ERROR:</b> There is something wrong. Please go back and try again.</p>");
       else
        out.println("<p><b>ERROR:</b> Unexpected error <b>" + e.getErrorCode() + "</b> occurred.</p>");
        out.println("<p>" + e + "</p>");
    %>
                        </td>
                         </tr>
                        </table>
                            </td>
                      </tr>
                    </table></td>
                  </tr>
                </table></td>
                <td width="12"> </td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="71" valign="top"><table width="761" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td valign="top"><table width="761" height="25" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td width="13">
                   <IMG height=1 src="images/spacer.gif" width=1></td>
                <td width="738" align="middle" background="images/back_4.gif" bgcolor="#808080" class="links">
                   <A class=links href="index.html"><strong> Home page</strong></A> 
                   |  <A class=links href="index-1.html"><strong>About us</strong></A> 
                   |  <A class=links href="index-2.html"><strong>Search</strong></A> 
                   | <A class=links href="index-3.html"><strong> Contact</strong></A> 
                   |  <A class=links href="#"><strong>SV&V Links</strong></A> 
                   |  <A class=links href="index-4.html"><strong>Help</strong></A> 
                   |  <A class=links href="#"><strong>Site map</strong></A> 
                   |  <A class=links href="#"><strong>Links</strong></A></td>
                <td width="10">
                   <IMG height=1 src="images/spacer.gif" width=1></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="18" valign="top"><IMG height=1 src="images/spacer.gif" width=1></td>
          </tr>
          <tr>
            <td align="middle" valign="top" class="copy">
              <A class=copy style="TEXT-DECORATION: none" href="index-5.html" >Copyright 2004-2005 � SV&V Project Portal. All rights reserved.</A></td>
          </tr>
        </table></td>
      </tr></TBODY></TABLE></TABLE>
    </body>
    <script>
    function addNode() {
         if (tree.getSelected()) {
              tree.getSelected().add(new WebFXTreeItem('New'));
    function addNodes() {
         if (tree.getSelected()) {
              var foo = tree.getSelected().add(new WebFXTreeItem('New'));
              var bar = foo.add(new WebFXTreeItem('Sub 1'));
    function delNode() {
         if (tree.getSelected()) {
              tree.getSelected().remove();
    </script>
    </html>

    request.getParameter("name").equals("")You are using this in your 'if' statement. But if a parameter by the name "name" is not found, it would return a null reference and calling equals() would call a NullPointerException.
    I observed that you are already assigning those parameters to Strings. You should add null checking for each of them. :)

  • [Urgent] Please help me verify the debug output on E&M interface.

    Hello,
        I've got a problem when trying to make a call from the E&M interface on the router to PABX(Panasonic). I've got any dail-tone back. Please help me verify the logging output. It seemed to already send the digits.
    ###########################debug vpm signal####################
    .Sep 20 06:43:43.911: htsp_process_event: [0/0/0, EM_ONHOOK, E_DSP_SIG_1100]em_onhook_offhook htsp_setup_ind
    .Sep 20 06:43:43.911: [0/0/0] get_local_station_id calling num= calling name= calling time=09/20 13:43  orig called=
    .Sep 20 06:43:43.915: htsp_timer - 3000 msec
    .Sep 20 06:43:43.923: htsp_process_event: [0/0/0, EM_WAIT_SETUP_ACK, E_HTSP_SETUP_ACK]em_wait_setup_ack_get_ack
    .Sep 20 06:43:43.923: htsp_timer_stop interdigit timer cfgd to 3000
    .Sep 20 06:43:44.183: htsp_digit_ready: digit = 38
    .Sep 20 06:43:44.183: htsp_process_event: [0/0/0, EM_OFFHOOK, E_VTSP_DIGIT]em_offhook_digit_collect
    .Sep 20 06:43:44.443: htsp_digit_ready: digit = 39
    .Sep 20 06:43:44.443: htsp_process_event: [0/0/0, EM_OFFHOOK, E_VTSP_DIGIT]em_offhook_digit_collect
    .Sep 20 06:43:44.724: htsp_digit_ready: digit = 30
    .Sep 20 06:43:44.724: htsp_process_event: [0/0/0, EM_OFFHOOK, E_VTSP_DIGIT]em_offhook_digit_collect
    .Sep 20 06:43:44.996: htsp_digit_ready: digit = 38
    .Sep 20 06:43:44.996: htsp_process_event: [0/0/0, EM_OFFHOOK, E_VTSP_DIGIT]em_offhook_digit_collect
    .Sep 20 06:43:45.004: htsp_process_event: [0/0/0, EM_OFFHOOK, E_HTSP_PROCEEDING]
    .Sep 20 06:43:46.224: htsp_call_bridged invokedhtsp_progress_notify
    .Sep 20 06:43:46.228: htsp_process_event: [0/0/0, EM_OFFHOOK, E_HTSP_VOICE_CUT_THROUGH]em_offhook_voice_cut
    .Sep 20 06:43:51.184: htsp_process_event: [0/0/0, EM_OFFHOOK, E_DSP_SIG_0000]em_offhook_onhook, HF duration=480
    .Sep 20 06:43:51.184: mlpp_detection_enabled MLPP is not supported on this interface
    .Sep 20 06:43:51.184: em_start_timer: 480 ms
    .Sep 20 06:43:51.184: htsp_timer - 480 msec
    .Sep 20 06:43:51.664: htsp_process_event: [0/0/0, EM_OFFHOOK, E_HTSP_EVENT_TIMER]em_offhook_wait_release_req
    .Sep 20 06:43:51.664: htsp_timer_stop
    .Sep 20 06:43:51.664: htsp_timer_stop2
    .Sep 20 06:43:51.676: htsp_process_event: [0/0/0, EM_RLS_WAIT_RLS_REQ, E_HTSP_RELEASE_REQ]em_wait_rls_release em_onhook (0)
    .Sep 20 06:43:51.676: [0/0/0] set signal state = 0x0 timestamp = 0
    .Sep 20 06:43:51.676: em_start_timer: 400 ms
    .Sep 20 06:43:51.676: htsp_timer - 400 msec
    .Sep 20 06:43:52.076: htsp_process_event: [0/0/0, EM_WAIT_CLR_DONE, E_HTSP_EVENT_TIMER]em_clr_done
    .Sep 20 06:43:52.076: htsp_process_event: [0/0/0, EM_ONHOOK, E_DSP_SIG_0000]em_onhook_onhook
    ##########################debug vpip vtsp all####################
    .Sep 20 07:02:51.640: //44/D16BA46380FC/VTSP:(0/0/1):-1:-1:-1/vtsp_timer_stop:
       Timer Stop Time=23417277
    .Sep 20 07:02:51.640: //-1/D16BA46380FC/VTSP:(0/0/1):-1:-1:-1/vtsp_free_cdb:
       CDB=0x47575388
    .Sep 20 07:02:55.416: //-1/xxxxxxxxxxxx/VTSP:(0/0/1):-1:-1:-1/vtsp_allocate_cdb:
       CDB=0x47574E08
    .Sep 20 07:02:55.416: //-1/xxxxxxxxxxxx/VTSP:(0/0/1):-1:-1:-1/vtsp_insert_cdb:
    .Sep 20 07:02:55.416: //-1/xxxxxxxxxxxx/VTSP:(0/0/1):-1:-1:-1/vtsp_process_event:
       [state:INVALID STATE MACHINE, event:E_CC_SETUP_REQ]
    .Sep 20 07:02:55.416: htsp_timer_stop3
    .Sep 20 07:02:55.416: //48/E9FE7CA28104/VTSP:(0/0/1):-1:-1:-1/vtsp_og_call_req:
       Echo Cancel=TRUE, Gain Control=0
       Auto Gain Control=FALSE, Dual Tone Detect Mask=0x0, Seq Tone Detect=FALSE
    .Sep 20 07:02:55.416: //48/E9FE7CA28104/VTSP:(0/0/1):-1:-1:-1/vtsp_do_call_setup_req:
    .Sep 20 07:02:55.420: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_opened_cb:
    .Sep 20 07:02:55.420: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
       [state:S_SETUP_REQ_PEND, event:E_VTSP_DSM_OPEN_SUCCESS]
    .Sep 20 07:02:55.420: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_setup_req_pend_succ:
    .Sep 20 07:02:55.420: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_request_call:
       Mode=0, Peer=2
    .Sep 20 07:02:55.420: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_create_call_active_on_setup_req:
       Target Carrier ID=
    .Sep 20 07:02:55.420: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_create_call_active_on_setup_req:
       Source Carrier ID=htsp_setup_req
    .Sep 20 07:02:55.420: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_request_call:
       Progress Indication=3, Info Trans Capability=16
       Calling Number=, TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed
       Called Number=7744, TON=Unknown, NPI=ISDN
    .Sep 20 07:02:55.420: htsp_process_event: [0/0/1, EM_ONHOOK, E_HTSP_SETUP_REQ]em_onhook_setup
    .Sep 20 07:02:55.424: em_offhook (0)
    .Sep 20 07:02:55.424: [0/0/1] set signal state = 0x8 timestamp = 0
    .Sep 20 07:02:55.424: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
       [state:S_SETUP_REQUEST, event:E_TSP_PROCEEDING]
    .Sep 20 07:02:55.424: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_setup_pend_proceeding:
    .Sep 20 07:02:55.424: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_timer:
       Timer Start Time=23417655, Timer Value=10000(ms)
    .Sep 20 07:02:55.424: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_setup_pend_proceeding:
       Peer=2, Progress Indication=0, Return Code=2
    .Sep 20 07:02:55.424: htsp_process_event: [0/0/1, EM_BRANCH, EM_EVENT_IMMEDIATE]em_branch_immediate
    .Sep 20 07:02:55.424: htsp_timer - 300 msec
    .Sep 20 07:02:55.424: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_opened_cb:
    .Sep 20 07:02:55.424: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
       [state:S_NULL, event:E_VTSP_DSM_OPEN_SUCCESS]
    .Sep 20 07:02:55.424: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_setup_req_wait_pend_success:
       Event=72
    .Sep 20 07:02:55.424: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_timer_stop:
       Timer Stop Time=23417655
    .Sep 20 07:02:55.724: htsp_process_event: [0/0/1, EM_WAIT_DIALOUT_DELAY, E_HTSP_EVENT_TIMER]em_imm_send_digits  em_send_digits  htsp_dial
    .Sep 20 07:02:55.724: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
       [state:S_SETUP_REQ_PROC, event:E_TSP_DIAL]
    .Sep 20 07:02:55.724: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_setup_pend_dial:
       Digits=7744, Tone Mode=0
    .Sep 20 07:02:55.724: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dial:
    .Sep 20 07:02:55.724: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/ds_do_dial:
       Digits To Dial=7744
    .Sep 20 07:02:56.568: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_dial_done_cb:
    .Sep 20 07:02:56.568: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
       [state:S_DS_DIALING, event:E_VTSP_DSM_DIALING_COMPLETE]
    .Sep 20 07:02:56.568: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/ds_dialing:
    .Sep 20 07:02:56.568: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/ds_do_dial:
       Digits To Dial=
    .Sep 20 07:02:56.568: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_setup_pend_dial_comp:
    .Sep 20 07:02:56.568: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/ds_do_dial:exit@556
    .Sep 20 07:02:56.568: htsp_process_event: [0/0/1, EM_WAIT_DIAL_DONE, E_DSP_DIALING_DONE]em_offhook_digit_done
    .Sep 20 07:02:56.568: htsp_timer_stop2 htsp_progress
    .Sep 20 07:02:56.568: htsp_timer2 - 850 msec
    .Sep 20 07:02:56.568: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
       [state:S_SETUP_REQ_PROC, event:E_TSP_PROGRESS]
    .Sep 20 07:02:56.568: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_setup_pend_progress:
       Progress Indication=8, Signal Indication=2, cdb->answer_supervision=0
    .Sep 20 07:02:56.568: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_ring_noan_timer_start:
       Timer Start Time=23417770, No Answer Timer Value=180000(ms)
    .Sep 20 07:02:56.568: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_bridge_check_cb:
    .Sep 20 07:02:56.572: htsp_call_bridged invoked
    .Sep 20 07:02:56.572: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_bridge_check_cb:exit@1187
    .Sep 20 07:02:56.572: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_bridge_status_cb:
    .Sep 20 07:02:56.572: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_save_fax_config:
    .Sep 20 07:02:56.572: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_save_fax_config:
       Fax Relay=ENABLED
       Primary Fax Protocol=CISCO_FAX_RELAY, Fallback Fax Protocol=NONE_FAX_RELAY
       Fax Relay CM Suppression :=ENABLED, Fax Parameters Set By=Global Settings
    .Sep 20 07:02:56.572: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_set_fax_feat_param:
    .Sep 20 07:02:56.572: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_save_tty_config:
    .Sep 20 07:02:56.572: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_save_tty_config:
       Save TTY configuration
    .Sep 20 07:02:56.572: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_set_tty_feat_param:
    .Sep 20 07:02:56.572: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_set_tty_feat_param:
       Set TTY feat parameters
    .Sep 20 07:02:56.572: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
       [state:S_SETUP_REQ_PROC, event:E_CC_DO_CAPS_IND]
    .Sep 20 07:02:56.576: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_peer_event_cb:
       Event=E_DSM_CC_CAPS_ACK
    .Sep 20 07:02:56.576: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
       [state:S_SETUP_REQ_PROC, event:E_CC_CAPS_IND]
    .Sep 20 07:02:56.576: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_peer_event_cb:
       Event=E_DSM_CC_CALL_MODIFY
    .Sep 20 07:02:56.580: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_feature_notify_cb:
       Feature ID=0, Feature Status=1
    .Sep 20 07:02:56.580: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_reactivate_ringback:
    .Sep 20 07:02:56.580: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_reactivate_ringback:exit@996
    .Sep 20 07:02:56.580: htsp_process_event: [0/0/1, EM_WAIT_FOR_ANSWER, E_HTSP_VOICE_CUT_THROUGH]
    .Sep 20 07:02:56.580: htsp_timer_stop2
    .Sep 20 07:03:13.913: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_bridge_status_cb:
    .Sep 20 07:03:13.913: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
       [state:S_SETUP_REQ_PROC, event:E_CC_DISCONNECT]
    .Sep 20 07:03:13.913: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_disconnect:
       Cause Value=16
    .Sep 20 07:03:13.913: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_ring_noan_timer_stop:
       Timer Stop Time=23419504
    .Sep 20 07:03:13.913: htsp_timer_stop3
    .Sep 20 07:03:13.925: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
       [state:S_WAIT_STATS, event:E_VTSP_DSM_STATS_COMPLETE]
    .Sep 20 07:03:13.925: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_dsm_dsp_stats_complete:
    .Sep 20 07:03:13.925: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_timer:
       Timer Start Time=23419505, Timer Value=60000(ms)
    .Sep 20 07:03:13.929: htsp_process_event: [0/0/1, EM_WAIT_FOR_ANSWER, E_HTSP_RELEASE_REQ]em_wait_answer_release
    .Sep 20 07:03:13.929: em_stop_timers
    .Sep 20 07:03:13.929: htsp_timer_stop
    .Sep 20 07:03:13.929: htsp_timer_stop2 em_onhook (0)
    .Sep 20 07:03:13.929: [0/0/1] set signal state = 0x0 timestamp = 0
    .Sep 20 07:03:13.929: em_start_timer: 400 ms
    .Sep 20 07:03:13.929: htsp_timer - 400 msec
    .Sep 20 07:03:14.329: htsp_process_event: [0/0/1, EM_GUARD_ALL, E_HTSP_EVENT_TIMER]em_guard_all_timer
    .Sep 20 07:03:14.329: em_stop_timers
    .Sep 20 07:03:14.329: htsp_timer_stop
    .Sep 20 07:03:14.329: em_start_timer: 3000 ms
    .Sep 20 07:03:14.329: htsp_timer - 3000 msec
    .Sep 20 07:03:14.329: htsp_process_event: [0/0/1, EM_PARK, E_DSP_SIG_0000]em_park_onhook
    .Sep 20 07:03:14.329: htsp_timer_stop
    .Sep 20 07:03:14.329: htsp_timer_stop2 htsp_report_onhook_sig
    .Sep 20 07:03:14.329: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
       [state:S_WAIT_RELEASE, event:E_TSP_CALL_FEATURE_IND]
    .Sep 20 07:03:14.329: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_call_feature_ind:
       Feature Type=6
    .Sep 20 07:03:14.329: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
       [state:S_WAIT_RELEASE, event:E_TSP_DISCONNECT_CONF]
    .Sep 20 07:03:14.329: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_wrelease_release:
    .Sep 20 07:03:14.329: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_play_busy_timer_stop:
       Timer Stop Time=23419546
    .Sep 20 07:03:14.329: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_timer_stop:
       Timer Stop Time=23419546
    .Sep 20 07:03:14.329: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_do_call_history:
    .Sep 20 07:03:14.329: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_do_call_history:
       Coder Rate=16
    .Sep 20 07:03:14.333: //48/E9FE7CA28104/VTSP:(0/0/1):-1:-1:-1/vtsp_dsm_closed_cb:
    .Sep 20 07:03:14.333: //48/E9FE7CA28104/VTSP:(0/0/1):-1:-1:-1/vtsp_process_event:
       [state:S_CLOSE_DSPRM, event:E_VTSP_DSM_CLOSE_COMPLETE]
    .Sep 20 07:03:14.333: //48/E9FE7CA28104/VTSP:(0/0/1):-1:-1:-1/act_terminate:
    .Sep 20 07:03:14.333: //48/E9FE7CA28104/VTSP:(0/0/1):-1:-1:-1/vtsp_timer_stop:
       Timer Stop Time=23419546
    .Sep 20 07:03:14.333: //-1/E9FE7CA28104/VTSP:(0/0/1):-1:-1:-1/vtsp_free_cdb:
       CDB=0x47574E08
    Thanks in advance.
    Toshi

    EDIT:
                I've not got any dial-tone back from PABX.
    Thanks in advance
    Toshi

  • How to DEBUG a function module running in background mode? Please help!

    Hi Experts,
       I am calling a function module in my ABAP code in background module using the following syntax:
      CALL FUNCTION 'YBBC2_CREATE_SNAPSHOT' IN BACKGROUND TASK
              TABLES
                itab_std_format_inv = itab_std_format_inv
                itab_snapshot_inv = itab_snapshot_inv.
            COMMIT WORK.
    If I put the breakpoint in the CALL FUNCTION line and execute the program, the debugger does not take me to the valled function module. This may be because I am running the function module as background task.
    I cannot comment this  "IN BACKGROUND TASK" statement as well since i am debugging in Quality system where I don't have change access.
    So how to DEBUG a function module running in background mode? Please help!
    Thanks
    Gopal

    Hi,
    You could try to use the following trick:
    (1) Put an endless loop into the coding of your function module where you want to start debugging, e.g.
      DATA:
        lx_exit_loop(1)     TYPE c.
      lx_exit_loop = ' '.
      DO.
        IF ( lx_exit_loop = 'X' ).
          EXIT.
        ENDIF.
      ENDDO.
    (2) Call your function module in background task
    (3) Call transaction SM50 and search for the background process.
    (3) Choose from menu Program/Mode -> Program -> Debugging
    Now you the debugger should bring you right to your endless loop. Set lx_loop_exit = 'X' in the debugger and continue (F5 or F6).
    <b>Reward points</b>
    Regards

  • How to debug a RFC function  when the user is non-dialog type? Please help!

    hi Experts,
      I am calling a RFC FM residing in B from R/3 system A.
    R/3 A -
    Call FM residing in B----
    > R/3 B
    The user attached to the remote destination is a non-dialog type.
    I cannot change the user type of this user.
    Therefore how to debug the RFC FM in System A?
    Are there any alternatives?
    Please help
    Thanks
    Gopal

    in your RFC FM, code an endlees loop.
    something like:
    data: gv_x  type xfeld value 'X'.
    do.
      if gv_x = space.
        exit.
      endif.
    enddo.
    now you can catch the mode in TA SM50, go in it, change gv_x to space and debug what is coming further.

  • Please help me on Debugging the Form

    Hi All,.
    Can anyone please give the steps for Debugging the Form:
    -Actually i am trying to know what is happening when we are working with the Forms(Front End) and
    -what are the triggers firing in the backend
    - What are the Program Units are calling
    -What is complete flow,..
    -How the data get populated on to the screen from backend
    Please give the complete steps, coz i am new to the Forms & Resports.
    Please help me on this with complete steps & Documentation.
    Thanks,
    grac

    hi
    i hope it will help u too.
    here is the instructions.
    -Click on Button “Debug” on toolbar of forms, (icon like a “bug”), will active debug_mode;
    2-Execute the forms (Run);
    3-The Forms will show a windows “Forms Debugger” with 3 panels: -The first is “SOURCE PANE”, showing your source code of procedure or trigger that is running; - The second, is “Navigator Pane”, shows a tree of objects to debug; - The third is “INTERPRETER PANE”, where you do pl/sql code to run; Go to second frame(Navigator Pane) and expand node “+MODULE”, select your forms module(click on it);
    4-Open the tree, navigate until your trigger that you want to debug (or to debug ALL CODE select menu “DEBUG” -> “Trigger” and choose Location=”Every Statement”, and write “raise debug.break;” on field trigger_boddy)
    5-If you want to debug a specific trigger of a text_item, go to block, select the text_item, then select the trigger, the source code will show in “source pane”;
    6-Go to menu “DEBUG” -> “TRIGGER” and write “raise debug.break;” on field trigger_boddy (or do a double click over a line code that can be debuged); When the forms run, and run this trigger, the run mode will be “suspend” and forms return to this page of “DEBUG”, where you can view values of any variable, values of block_itens, values of SYSTEM variables and go to a “step by step” running your code line to line, and view changes on variables;
    7-In this step, you setup the debugger, to run now, click on red “X” to close debugger, the forms will be run;
    8-You go run until the code marked to break; The cursor will stop on first line that is running (Source pane) with a signal => on the line;
    9-Now you can run line by line; entire block or return to normal run (see buttons enables);
    When debugging, explore the Navigator, and see anothers variables values like :system.current_record; :system.record_status; :sytem.message_level; Global variableshttp://www.orafaq.com/forum/t/140073/0/
    sarah

Maybe you are looking for

  • Devolução de Nota Fiscal de Compra

    Boa Noite pessoal. Ao realizar uma devolução de nota fiscal de entrada, na aba logística ao invés do endereço de entrega ser a do fornecedor, está sendo retornada a da própria empresa. Sendo assim, o usuário tem que entrar nos "3 pontinhos" e informa

  • XI introductory Guide needed.

    Hi everybody i am vey new to XI can any one please share me the usefull meterial to get into XI initially . When i look at the sap.help.com , its rather  confusing me. Thankyou in Advance . Edited by: krishnakanth kakarla on Sep 8, 2008 1:41 PM

  • Passing User Parameters through Run_Report_Object

    hi, How to pass multiple user parameters through run_report_object.example i have to pass 20 parameters, have i write 20 statements? is there any way to come in single statement.i am using Forms 6i. thks in advance,

  • Is this true that iphone 5 is gonna get released by this year end??

    Is this true that iphone 5 is gonna get released by this year end??

  • Hello! pls tell me any report related to VAT.

    hello! pla tell me any report related to VAT. is there any report for VAT ... pls give source code for the vAT