Integrating performance evaluation with existing java code.

I have a few methods and I want to integrate a custom timer class which will measure the time taken for the method to execute. basically the timer class just starts the time at the start of the method and once the method completes it subtract the final time from the start time to give me total time spent in this method. I was wondering if there's a way by which i can integrate my timer without actually changing my methods.I have to start the timer when the method is going to execute and end the timer once it has finished executing. Any design pattern you think could help me?

If your topic doesn't change, please stay in your original post.

Similar Messages

  • Does anybody know what is wrong with my java code?

    Does anybody know what is wrong with my java code?
    --------------------Configuration: <Default>--------------------
    stockApplet.java:47: cannot find symbol
    symbol : variable M_pointThread
    location: class StockApplet
    if (M_pointThread==null)
    ^
    stockApplet.java:49: cannot find symbol
    symbol : variable M_pointThread
    location: class StockApplet
    M_pointThread=new Thread(this);
    ^
    stockApplet.java:50: cannot find symbol
    symbol : variable M_pointThread
    location: class StockApplet
    THE CODE:
    import java.applet.*;
    import java.awt.*;
    import java.io.*;
    import java.net.*;
    public class StockApplet extends java.applet.Applet implements Runnable
    int Move_Length=0,Move_Sum=0;
    String FileName,Name_Str,Content_Date;
    int SP[]=new int[2000];
    int KP[]=new int[2000];
    int JD[]=new int[2000];
    int JG[]=new int[2000];
    int Mid_Worth[]=new int[2000];
    String myDate[]=new String[2000];
    double CJL[]=new double[2000];
    double MaxCJL,MidCJL;
    Label label[]=new Label[10];
    int MaxWorth,MinWorth;
    int x_move0,x_move1,MaxLength=0;
    int x0,y0,X,Y,Record_Num;
    boolean Mouse_Move,Name_Change=true;
    int JX_Five1,JX_Five2,JX_Ten1,JX_Ten2;
    public void init()
    TextField text1=new TextField();
    Thread M_pointThread=null;
    setLayout(null);
    this.setBackground(Color.white);
    this.setForeground(Color.black);
    for(int i=1;i< 10;i++)
    label=new Label();
    this.add(label[i]);
    label[i].reshape(i*80-65,10,50,15);
    if(i==2){label[i].reshape(80,10,70,15);}
    if(i==7){label[i].reshape(510,10,80,15);}
    if(i >7){label[i].reshape((i-8)*490+45,380,70,15);}
    FileName="six";
    Name_Str="six";
    this.add(text1);
    text1.reshape(150,385,70,20);
    text1.getText();
    public void start()
    if (M_pointThread==null)
    M_pointThread=new Thread(this);
    M_pointThread.start();

    Welcome to the forum. I think that George123 has your problem and its solution well in hand. Follow his good advice and you will have solved this problem. One other thing though just for future reference. If you post your code, here, you are going to want someone to be able to read it easily. Please use code tags when posting next time and your code will be much easier on the eye. You can find out about them here:
    http://forum.java.sun.com/help.jspa?sec=formatting

  • Performance problems with new Java Tiger style recommendations

    Performance problems with jdk 1.5 on Linux plattform
    (not tested on Windows, might be the same)
    using the new style recommendations.
    I need fast Vector loops for high speed mathematical calculations, some
    hints about the fastest way to program that loop would be also great!
    After refactoring using the new features from java 1.5 (as recommended from
    SUN) I lost performance significantly:
    using a vector:
    public Vector<unit> units;
    The new code (recommended from SUN for Java Tiger for redesign):
    for (unit u: units) u.accumulate();
    runs more than 30% slower than the old code:
    for (int i = 0; i < units.size(); i++) units.elementAt(i).accumulate();
    I expected the opposite.
    Is there any information available that helps?
    The following additional information I got from Mr. Shankar Unni:
    I got some fairly anomalous results comparing ArrayList and Vector: for the
    1.5-style loops, ArrayList was faster then Vector, but for a loop with get()
    calls, Vector was faster. Vector was even faster than that using
    elementAt(), which was a surprise:
    For a million summing iterations over a 100-element array:
    vector elementAt loop took 3446 ms.
    vector get loop took 3796 ms.
    vector iterator loop took 5469 ms.
    arraylist get loop took 4136 ms.
    arraylist iterator loop took 4668 ms.

    If your topic doesn't change, please stay in your original post.

  • Use Sun Java Studio 2 with Existing Java Application

    I have started using Sun Java Studio 2 and having fun and little difficulty creating a new Java web application from scatch. My question is where do I find information on Java Studio configuration to allow Java Studio to load up and modify Java server pages/forms in an existing Java application that I did not write?
    The Java application has been created with Javabeans and using BEA Weblogic version 7, with a SQL-Server 2000 database backend.
    Below is a bit of code out of one of the main Java forms.
    <%@ page buffer="256kb" autoFlush="false" errorPage="../../common/system/error.jsp"
    import="psdi.jsp.beans.*, psdi.jsp.common.*, psdi.jsp.app.wotrack.*, psdi.jsp.util.* , psdi.mbo.* , psdi.util.* "%>
    I have looked around and have not found what I need to setup in Java Studio to allow me to load up a form and view it in the Visual designer, I keep getting errors on the psdi. references and cannot load up any pages.
    I see on the server install ia folder under the main root <DIR> called <apps>, and inside the <apps> folder is a folder called <jsp> and in the <jsp> folder are sub folders for each main module within the application with all the related .jsp files. I have been manually editing the .jsp files using Windows Notpad and saving the changes. Then I rebuild the .ear file and my changes work fine. Since I have a lot of changes to make there has to be a better way than using Notpad.
    My hope is somewhere is a point-by-point document on what to so I can use Sun Java Studio 2 to make my changes in a visual IDE.
    Any assistance would really be appreciated.

    Hi Giri,
    Yep, this I know,b ut when I do I get errors messages and am looking for some form of point-bypoint instuction that better explains how to setup up custom libraries in Sun Java Studio, custom tags, etc.

  • Help me with my java code

    i have an assignment from the book java programming d.s malik.
    problem:
    for research purposes and to assist students, the admissions office of your local university wants to determine the performance of the female and male students in certain courses. You receive a file that contains female and male students' GPAs for certain courses. Due to confidentiality, the letter code f is used for female and m is used for male. every file entry consists of a letter code followed by a GPA. each line has one entry. the number of entries in the file is unknown. write a program that computes and outputs the average gpa for both female and male students. format your result to two decimal places.
    solution:
    this is what i have come up with:
    import java.io.*;
    import java.util.*;
    class Assignment6
         public static void main(String[] args)
                                  throws FileNotFoundException
               String str,
                         gender;
               double counter = 0;
               double counter2 = 0;
               double gpa = 0;
               double sum1, sum2;
               double average1, average2;
               Scanner console = new Scanner(System.in);
               Scanner inFile = new Scanner(new FileReader("gpa.txt"));
               PrintWriter outFile = new PrintWriter("gpa.out");
               gender = inFile.next();
               gpa = inFile.nextDouble();
               while(gender.charAt(0) != 'x')
                    if(gender == 'm')
                        sum1+= gpa;
                       counter = counter + 1.0;
                       average1 = sum1/counter;
                   else if(gender == 'f')
                        sum2+= gpa;
                        counter2 = counter2 + 1.0;
                        average2 = sum2/counter2;
               System.out.println("The count is " + counter);
               System.out.println("The average is = " + average1);
               System.out.println("The count is " + counter2);
               System.out.println("The average is = " + average2);
              outFile.print("There are " + counter + " male students.");
             outFile.printf("Average GPA for male students is: " + average1);
             outFile.print("There are " + counter2 + " female students.");
             outFile.printf("Average GPA for female students is: " + average2);
             outFile.close();
    }and the text file is
    gpa.txt
    m 2.4
    f 3.2
    m 3.7
    m 4.0
    f 2.9
    f 1.8
    f 3.8
    m 1.7
    m 3.4
    f 2.6
    m 2.8
    m 1.7
    f 3.7
    m 3.9
    f 4.0
    f 3.6
    m 2.3
    f 2.9
    m 3.0
    m 2.7
    x
    question:
    i couldn't compile and run it, i get 2 errors:
    M:\School\CSCI - 111 - Classwork\Assignments\Java1\Assignment6.java:29: incomparable types: java.lang.String and char
                   if(gender == 'm')
                   ^
    M:\School\CSCI - 111 - Classwork\Assignments\Java1\Assignment6.java:35: incomparable types: java.lang.String and char
                   else if(gender == 'f')
    thanks

    okay i did everything, but i still couldn't get it to work. i wonder if im using a wrong solution. or is there anything i didn't know before even proceeding into this?
    update:
    import java.io.*;
    import java.util.*;
    class Assignment6
         public static void main(String[] args)
                                  throws FileNotFoundException
               String str,
                        gender;
               double cntMale = 0;
               double cntFemale = 0;
               double gpa = 0;
               double sumMale = 0, sumFemale = 0;
               double avgMale = 0, avgFemale = 0;
               Scanner console = new Scanner(System.in);
               Scanner inFile = new Scanner(new FileReader("gpa.txt"));
               PrintWriter outFile = new PrintWriter("gpa.out");
               gender = inFile.next();
               gpa = inFile.nextDouble();
               while(gender.charAt(0) != 'x')
                    if(gender.charAt(0) == 'm')
                        sumMale+= gpa;
                       cntMale = cntMale + 1.0;
                   else if(gender.charAt(0) == 'f')
                        sumFemale+= gpa;
                        cntFemale = cntFemale + 1.0;
              avgMale = sumMale/cntMale;
              avgFemale = sumFemale/cntFemale;
               System.out.println("The count is " + cntMale);
               System.out.println("The average is = " + avgMale);
               System.out.println("The count is " + cntFemale);
               System.out.println("The average is = " + avgFemale);
              outFile.print("There are " + cntMale + " male students.");
             outFile.printf("Average GPA for male students is: " + avgMale);
             outFile.print("There are " + cntFemale + " female students.");
             outFile.printf("Average GPA for female students is: " + avgFemale);
              inFile.close();
             outFile.close();
    }Edited by: spkenn5 on Nov 9, 2008 4:31 PM

  • JVM 1.4 seg faults with pure java code?

    Has anybody else seen JVM 1.4 seg fault when running pure java code? This seems like it shouldn't be possible, but I get the following at indeterminate times. Unfortunately, it is difficult to isolate since decreasing the size of the program avoids the problem. When the seg fault happens, the size in memory is ~1GB and there is plenty of real and virtual memory to spare.
    Unexpected Signal : 11 occurred at PC=0xDE88BC8E
    Function=[Unknown. Nearest: +0x100E]
    Library=/usr/j2se/jre/lib/i386/server/libjvm.so
    Dynamic libraries:
    0x8050000 java
    0xdfb60000 /usr/lib/libthread.so.1
    0xdfba0000 /usr/lib/libdl.so.1
    0xdfab0000 /usr/lib/libc.so.1
    0xde800000 /usr/j2se/jre/lib/i386/server/libjvm.so
    0xdfa40000 /usr/lib/libCrun.so.1
    0xdfa20000 /usr/lib/libsocket.so.1
    0xdf980000 /usr/lib/libnsl.so.1
    0xdf960000 /usr/lib/libm.so.1
    0xdfa70000 /usr/lib/libw.so.1
    0xdf920000 /usr/lib/libmp.so.2
    0xdf8f0000 /usr/j2se/jre/lib/i386/native_threads/libhpi
    .so
    0xdf8c0000 /usr/j2se/jre/lib/i386/libverify.so
    0xdf880000 /usr/j2se/jre/lib/i386/libjava.so
    0xdf860000 /usr/j2se/jre/lib/i386/libzip.so
    0xda890000 /usr/lib/nss_files.so.1
    Local Time = Tue May 14 16:03:38 2002
    Elapsed Time = 72
    # HotSpot Virtual Machine Error : 11
    # Error ID : 4F530E43505002D3
    # Please report this error at
    # http://java.sun.com/cgi-bin/bugreport.cgi
    # Java VM: Java HotSpot(TM) Server VM (1.4.0-rc-b91 mixed
    mode)
    # An error report file has been saved as hs_err_pid945.log.
    # Please refer to the file for further information.

    Hi sevenM,
    Did you figure out a workaround for this problem?. Did you get it solved with the SUN people?. Is it a known bug?.
    I've got exactly the same problem on the same function and VM library.
    Any info on this is very much welcome.
    Thx
    Krithiga
    I get the same error sometimes with tomcat-4.0.4 on a
    Slackware 8.0.0 and JDK 1.4.0. I don't user any JSPs,
    only servlets and the business calls a remote SLSB on
    a remote JBOSS server and afterwards select some data
    form a remote DB2 7.1 over JDBC.
    Here is the log:
    Unexpected Signal : 11 occurred at PC=0x40267D98
    Function=copy_to_survivor_space__16DefNewGenerationP7oo
    DescPP7oopDesc+0x28
    Library=/usr/local/j2sdk1.4.0/jre/lib/i386/client/libjv
    .so
    Current Java thread:
    at
    at java.net.PlainSocketImpl.socketAccept(Native
    tive Method)
    at
    at
    at
    t
    java.net.PlainSocketImpl.accept(PlainSocketImpl.java:34
    - locked <0x44ed3400> (a
    400> (a java.net.PlainSocketImpl)
    at
    at
    at
    t
    java.net.ServerSocket.implAccept(ServerSocket.java:438)
    at
    at
    at
    t java.net.ServerSocket.accept(ServerSocket.java:409)
    at
    at
    at
    t
    org.apache.catalina.core.StandardServer.await(StandardS
    rver.java:293)
    at
    at
    at
    t
    org.apache.catalina.startup.Catalina.start(Catalina.jav
    :794)
    at
    at
    at
    t
    org.apache.catalina.startup.Catalina.execute(Catalina.j
    va:681)
    at
    at
    at
    t
    org.apache.catalina.startup.Catalina.process(Catalina.j
    va:179)
    at
    at
    at
    t sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    at
    at
    at
    t
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMetho
    AccessorImpl.java:39)
    at
    at
    at
    t
    sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegat
    ngMethodAccessorImpl.java:25)
    at
    at
    at java.lang.reflect.Method.invoke(Method.java:324)
    at
    at
    at
    t
    org.apache.catalina.startup.Bootstrap.main(Bootstrap.ja
    a:243)
    Dynamic libraries:
    08048000-0804d000 r-xp 00000000 03:03 757599
    /usr/local/j2sdk1.4.0/bin/java
    0804d000-0804e000 rw-p 00004000 03:03 757599
    /usr/local/j2sdk1.4.0/bin/java
    40000000-40015000 r-xp 00000000 03:03 885142
    /lib/ld-2.2.3.so
    40015000-40016000 rw-p 00014000 03:03 885142
    /lib/ld-2.2.3.so
    40017000-40020000 r-xp 00000000 03:03 69536
    /usr/local/j2sdk1.4.0/jre/lib/i386/native_threads/libh
    i.so
    40020000-40021000 rw-p 00008000 03:03 69536
    /usr/local/j2sdk1.4.0/jre/lib/i386/native_threads/libh
    i.so
    40021000-40022000 r--p 00000000 03:03 33106
    /usr/lib/locale/en_US/LC_IDENTIFICATION
    40022000-40030000 r-xp 00000000 03:03 885133
    /lib/libpthread-0.9.so
    40030000-40038000 rw-p 0000d000 03:03 885133
    /lib/libpthread-0.9.so
    40038000-4003b000 r-xp 00000000 03:03 885149
    /lib/libdl-2.2.3.so
    4003b000-4003c000 rw-p 00002000 03:03 885149
    /lib/libdl-2.2.3.so
    4003c000-40143000 r-xp 00000000 03:03 885147
    /lib/libc-2.2.3.so
    40143000-40149000 rw-p 00106000 03:03 885147
    /lib/libc-2.2.3.so
    4014d000-40410000 r-xp 00000000 03:03 1150891
    /usr/local/j2sdk1.4.0/jre/lib/i386/client/libjvm.so
    40410000-40558000 rw-p 002c2000 03:03 1150891
    /usr/local/j2sdk1.4.0/jre/lib/i386/client/libjvm.so
    4056c000-4057d000 r-xp 00000000 03:03 885152
    /lib/libnsl-2.2.3.so
    4057d000-4057f000 rw-p 00010000 03:03 885152
    /lib/libnsl-2.2.3.so
    40581000-405b5000 r-xp 00000000 03:03 950285
    /usr/i386-slackware-linux/lib/libstdc++-2-libc6.1-1-2.
    .0.so
    405b5000-405c1000 rw-p 00033000 03:03 950285
    /usr/i386-slackware-linux/lib/libstdc++-2-libc6.1-1-2.
    .0.so
    405c3000-405e4000 r-xp 00000000 03:03 885138
    /lib/libm-2.2.3.so
    405e4000-405e5000 rw-p 00020000 03:03 885138
    /lib/libm-2.2.3.so
    405e5000-405f6000 r-xp 00000000 03:03 69542
    /usr/local/j2sdk1.4.0/jre/lib/i386/libverify.so
    405f6000-405f8000 rw-p 00010000 03:03 69542
    /usr/local/j2sdk1.4.0/jre/lib/i386/libverify.so
    405f8000-40619000 r-xp 00000000 03:03 69543
    /usr/local/j2sdk1.4.0/jre/lib/i386/libjava.so
    40619000-4061b000 rw-p 00020000 03:03 69543
    /usr/local/j2sdk1.4.0/jre/lib/i386/libjava.so
    4061c000-40630000 r-xp 00000000 03:03 69545
    /usr/local/j2sdk1.4.0/jre/lib/i386/libzip.so
    40630000-40633000 rw-p 00013000 03:03 69545
    /usr/local/j2sdk1.4.0/jre/lib/i386/libzip.so
    40633000-4063a000 r--s 00000000 03:03 890455
    /usr/local/jakarta-tomcat-4.0.4/bin/bootstrap.jar
    4063a000-40641000 r--s 00000000 03:03 890436
    /usr/local/jakarta-tomcat-4.0.4/common/lib/naming-comm
    n.jar
    40641000-40655000 r--s 00000000 03:03 890437
    /usr/local/jakarta-tomcat-4.0.4/common/lib/servlet.jar
    40655000-4065e000 r--s 00000000 03:03 890438
    /usr/local/jakarta-tomcat-4.0.4/common/lib/naming-reso
    rces.jar
    4065e000-40660000 r--s 00000000 03:03 890439
    /usr/local/jakarta-tomcat-4.0.4/common/lib/jdbc2_0-std
    xt.jar
    40660000-4066c000 r--s 00000000 03:03 890440
    /usr/local/jakarta-tomcat-4.0.4/common/lib/activation.
    ar
    4066c000-4066f000 r--s 00000000 03:03 890441
    /usr/local/jakarta-tomcat-4.0.4/common/lib/jta-spec1_0
    1.jar
    4066f000-4082a000 r--s 00000000 03:03 890443
    /usr/local/jakarta-tomcat-4.0.4/common/lib/xerces.jar
    4082a000-40874000 r--s 00000000 03:03 890444
    /usr/local/jakarta-tomcat-4.0.4/common/lib/tyrex-0.9.7
    0.jar
    40874000-408b9000 r--s 00000000 03:03 890445
    /usr/local/jakarta-tomcat-4.0.4/common/lib/mail.jar
    408b9000-408d2000 r--s 00000000 03:03 890446
    /usr/local/jakarta-tomcat-4.0.4/common/lib/jndi.jar
    408d2000-40958000 r--s 00000000 03:03 890482
    /usr/local/jakarta-tomcat-4.0.4/common/lib/db2java.jar
    40958000-4096e000 r--s 00000000 03:03 890483
    /usr/local/jakarta-tomcat-4.0.4/common/lib/jboss-clien
    .jar
    4096e000-4097c000 r--s 00000000 03:03 890484
    /usr/local/jakarta-tomcat-4.0.4/common/lib/jboss-j2ee.
    ar
    4097c000-40996000 r--s 00000000 03:03 890485
    /usr/local/jakarta-tomcat-4.0.4/common/lib/jaas.jar
    40996000-409a0000 r--s 00000000 03:03 890486
    /usr/local/jakarta-tomcat-4.0.4/common/lib/jbosssx-cli
    nt.jar
    409a0000-409a6000 r--s 00000000 03:03 890487
    /usr/local/jakarta-tomcat-4.0.4/common/lib/jnp-client.
    ar
    409a6000-40d10000 r--s 00000000 03:03 890488
    /usr/local/jakarta-tomcat-4.0.4/common/lib/jt400_3.0.j
    r
    40d10000-40d37000 r--s 00000000 03:03 890489
    /usr/local/jakarta-tomcat-4.0.4/common/lib/log4j.jar
    40d37000-423af000 r--s 00000000 03:03 69634
    /usr/local/j2sdk1.4.0/jre/lib/rt.jar
    423f1000-42408000 r--s 00000000 03:03 69566
    /usr/local/j2sdk1.4.0/jre/lib/sunrsasign.jar
    42408000-42476000 r--s 00000000 03:03 69568
    /usr/local/j2sdk1.4.0/jre/lib/jsse.jar
    42476000-42489000 r--s 00000000 03:03 69567
    /usr/local/j2sdk1.4.0/jre/lib/jce.jar
    42489000-4270a000 r--s 00000000 03:03 69632
    /usr/local/j2sdk1.4.0/jre/lib/charsets.jar
    447b2000-447b3000 r--p 00000000 03:03 33104
    /usr/lib/locale/en_US/LC_MEASUREMENT
    447b3000-447b4000 r--p 00000000 03:03 33102
    /usr/lib/locale/en_US/LC_TELEPHONE
    447b4000-447b5000 r--p 00000000 03:03 33103
    /usr/lib/locale/en_US/LC_ADDRESS
    447b5000-447b6000 r--p 00000000 03:03 33100
    /usr/lib/locale/en_US/LC_NAME
    447b6000-447b7000 r--p 00000000 03:03 33109
    /usr/lib/locale/en_US/LC_PAPER
    447b7000-447b8000 r--p 00000000 03:03 459106
    /usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES
    447b8000-447b9000 r--p 00000000 03:03 33110
    /usr/lib/locale/en_US/LC_MONETARY
    447b9000-447bf000 r--p 00000000 03:03 33107
    /usr/lib/locale/en_US/LC_COLLATE
    447bf000-447c0000 r--p 00000000 03:03 33101
    /usr/lib/locale/en_US/LC_TIME
    4c840000-4c841000 r--p 00000000 03:03 33105
    /usr/lib/locale/en_US/LC_NUMERIC
    4c841000-4c85c000 r--p 00000000 03:03 33108
    /usr/lib/locale/en_US/LC_CTYPE
    4c85c000-4c85e000 r--s 00000000 03:03 36766
    /usr/local/j2sdk1.4.0/jre/lib/ext/dnsns.jar
    4c85e000-4c866000 r--s 00000000 03:03 890421
    /usr/local/jakarta-tomcat-4.0.4/server/lib/jakarta-reg
    xp-1.2.jar
    4c866000-4c867000 r--s 00000000 03:03 890422
    /usr/local/jakarta-tomcat-4.0.4/server/lib/servlets-co
    mon.jar
    4c867000-4c871000 r-xp 00000000 03:03 885148
    /lib/libnss_compat-2.2.3.so
    4c871000-4c873000 rw-p 00009000 03:03 885148
    /lib/libnss_compat-2.2.3.so
    4c89e000-4c8bb000 r--s 00000000 03:03 36765
    /usr/local/j2sdk1.4.0/jre/lib/ext/sunjce_provider.jar
    4c8bb000-4c95e000 r--s 00000000 03:03 36767
    /usr/local/j2sdk1.4.0/jre/lib/ext/localedata.jar
    4c95e000-4c96c000 r--s 00000000 03:03 36768
    /usr/local/j2sdk1.4.0/jre/lib/ext/ldapsec.jar
    4c96c000-4ce06000 r--s 00000000 03:03 298906
    /usr/local/j2sdk1.4.0/lib/tools.jar
    4ce06000-4ce0c000 r--s 00000000 03:03 890423
    /usr/local/jakarta-tomcat-4.0.4/server/lib/commons-log
    ing.jar
    4ce0c000-4ce0e000 r--s 00000000 03:03 890424
    /usr/local/jakarta-tomcat-4.0.4/server/lib/servlets-in
    oker.jar
    4ce0e000-4ce11000 r--s 00000000 03:03 890425
    /usr/local/jakarta-tomcat-4.0.4/server/lib/servlets-ma
    ager.jar
    4ce11000-4ce19000 r--s 00000000 03:03 890426
    /usr/local/jakarta-tomcat-4.0.4/server/lib/warp.jar
    4ce19000-4ceab000 r--s 00000000 03:03 890427
    /usr/local/jakarta-tomcat-4.0.4/server/lib/catalina.ja
    4ceab000-4ceb4000 r--s 00000000 03:03 890428
    /usr/local/jakarta-tomcat-4.0.4/server/lib/tomcat-http
    1.jar
    4ceb4000-4ceb9000 r--s 00000000 03:03 890429
    /usr/local/jakarta-tomcat-4.0.4/server/lib/servlets-de
    ault.jar
    4ceb9000-4cec9000 r--s 00000000 03:03 890430
    /usr/local/jakarta-tomcat-4.0.4/server/lib/tomcat-ajp.
    ar
    4cec9000-4ceed000 r--s 00000000 03:03 890431
    /usr/local/jakarta-tomcat-4.0.4/server/lib/tomcat-util
    jar
    4ceed000-4cefb000 r--s 00000000 03:03 890432
    /usr/local/jakarta-tomcat-4.0.4/server/lib/tomcat-coyo
    e.jar
    4cefb000-4cf01000 r--s 00000000 03:03 890434
    /usr/local/jakarta-tomcat-4.0.4/server/lib/servlets-we
    dav.jar
    4cf01000-4cf13000 r-xp 00000000 03:03 69548
    /usr/local/j2sdk1.4.0/jre/lib/i386/libnet.so
    4cf13000-4cf14000 rw-p 00011000 03:03 69548
    /usr/local/j2sdk1.4.0/jre/lib/i386/libnet.so
    4cf14000-4cf25000 r--s 00000000 03:03 890458
    /usr/local/jakarta-tomcat-4.0.4/lib/jasper-runtime.jar
    4cf25000-4cf59000 r--s 00000000 03:03 890459
    /usr/local/jakarta-tomcat-4.0.4/lib/jasper-compiler.ja
    4cf59000-4cf5e000 r--s 00000000 03:03 890460
    /usr/local/jakarta-tomcat-4.0.4/lib/naming-factory.jar
    4cf5e000-4cf5f000 r--s 00000000 03:03 789670
    /usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46958.tm
    (deleted)
    4cf5f000-4cf60000 r--s 00000000 03:03 789673
    /usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46959.tm
    (deleted)
    4cf60000-4cf63000 r--s 00000000 03:03 430785
    /usr/local/jakarta-tomcat-4.0.4/webapps/reporter/WEB-I
    F/lib/arenajobs.jar
    4cf63000-4d067000 r--s 00000000 03:03 430786
    /usr/local/jakarta-tomcat-4.0.4/webapps/reporter/WEB-I
    F/lib/arenatrading.jar
    4d067000-4d08c000 r--s 00000000 03:03 430787
    /usr/local/jakarta-tomcat-4.0.4/webapps/reporter/WEB-I
    F/lib/quartz.jar
    4d08c000-4d08e000 r--s 00000000 03:03 430788
    /usr/local/jakarta-tomcat-4.0.4/webapps/reporter/WEB-I
    F/lib/scheduler.jar
    4d08e000-4d091000 r--s 00000000 03:03 790391
    /usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46960.tm
    (deleted)
    4d091000-4d195000 r--s 00000000 03:03 790392
    /usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46961.tm
    (deleted)
    4d195000-4d1ba000 r--s 00000000 03:03 790394
    /usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46962.tm
    (deleted)
    4d1ba000-4d1bc000 r--s 00000000 03:03 790395
    /usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46963.tm
    (deleted)
    4d1bc000-4d1bd000 r-xp 00000000 03:03 69559
    /usr/local/j2sdk1.4.0/jre/lib/i386/librmi.so
    4d1bd000-4d1be000 rw-p 00000000 03:03 69559
    /usr/local/j2sdk1.4.0/jre/lib/i386/librmi.so
    4d1be000-4d1c2000 r-xp 00000000 03:03 69558
    /usr/local/j2sdk1.4.0/jre/lib/i386/libioser12.so
    4d1c2000-4d1c3000 rw-p 00003000 03:03 69558
    /usr/local/j2sdk1.4.0/jre/lib/i386/libioser12.so
    4d1c9000-4d1d2000 r-xp 00000000 03:03 885155
    /lib/libnss_files-2.2.3.so
    4d1d2000-4d1d3000 rw-p 00008000 03:03 885155
    /lib/libnss_files-2.2.3.so
    Local Time = Tue Oct 8 18:57:29 2002
    Elapsed Time = 32640
    # HotSpot Virtual Machine Error : 11
    # Error ID : 4F530E43505002D3
    # Please report this error at
    # http://java.sun.com/cgi-bin/bugreport.cgi
    # Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed
    mode)
    # An error report file has been saved as
    hs_err_pid26505.log.
    # Please refer to the file for further information.

  • Problems with backing Java Code

    Earlier I manually deleted the processChange event handler method for a textfield from the backing java code. As I had no plans to use that event handler. Now my page abends with a message stating that the process chnage method is not available. I tried to add via the event handler for the textbox using the GUI but it does not add the process change event handler method. Using an another process change method as a model I manually entered the code to handle process change for the text bos. Now I am getting an internal server exception - Null in one of the parameters. PLEASE HELP. What are my options - Delete and re-create the entire page

    Hi,
    Yes I am using the recommeded code: The Text field generating the null exception is addDataSourceTF. Whenever we click on the addDataSourceBTN we get an Internal exception.
    Thanks very much for looking into this problem. Any advice will be greatly appreciated.
    <h:panelGrid binding="#{MainPage.gridPanel1}" cellpadding="3" cellspacing="2" columnClasses="" id="gridPanel1" style="background-color: rgb(204, 255, 204); left: 48px; top: 312px; position: absolute">
    <h:inputText binding="#{MainPage.addDataSourceTF}" id="addDataSourceTF" style="font-family: Arial,Helvetica,sans-serif"
    validator="#{MainPage.addDataSourceTF_validate}" valueChangeListener="#{MainPage.addDataSourceTF_processValueChange}"/>
    <h:commandButton action="#{MainPage.addDataSourceBTN_action}" binding="#{MainPage.addDataSourceBTN}" id="addDataSourceBTN"
    image="resources/button32.jpg" value="Add Data Source"/>
    <h:selectOneMenu binding="#{MainPage.deleteDataSourceDD}" id="deleteDataSourceDD" immediate="true" onchange="this.form.submit();"
    style="height: 23px; width: 164px" valueChangeListener="#{MainPage.deleteDataSourceDD_processValueChange}">
    <f:selectItems binding="#{MainPage.dropdown1SelectItems}" id="dropdown1SelectItems" value="#{MainPage.database_infoRowSet.selectItems['DB_SRC,DB_SRC']}"/>
    </h:selectOneMenu>
    <h:commandButton action="#{MainPage.deleteDataSourceBTN_action}" binding="#{MainPage.deleteDataSourceBTN}" id="deleteDataSourceBTN"
    image="resources/delete.jpg" value="Submit"/>
    </h:panelGrid>
    Backing Java Code:
    * MainPage.java
    * Created on December 15, 2004, 1:45 AM
    * Copyright adear1
    package dissertation;
    import javax.faces.*;
    import com.sun.jsfcl.app.*;
    import javax.faces.component.html.*;
    import com.sun.jsfcl.data.*;
    import javax.faces.component.*;
    import javax.faces.event.*;
    import com.sun.sql.rowset.*;
    import javax.faces.context.FacesContext;
    import javax.faces.application.FacesMessage;
    import javax.faces.convert.*;
    import java.sql.*;
    import javax.naming.*;
    import javax.sql.DataSource;
    import java.lang.*;
    import javax.faces.context.*;
    public class MainPage extends AbstractPageBean {
    // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Definition">
    private int __placeholder;
    private HtmlForm form1 = new HtmlForm();
    public HtmlForm getForm1() {
    return form1;
    public void setForm1(HtmlForm hf) {
    this.form1 = hf;
    private HtmlCommandButton addDataSourceBTN = new HtmlCommandButton();
    public HtmlCommandButton getAddDataSourceBTN() {
    return addDataSourceBTN;
    public void setAddDataSourceBTN(HtmlCommandButton hcb) {
    this.addDataSourceBTN = hcb;
    private HtmlCommandButton searchDataBTN = new HtmlCommandButton();
    public HtmlCommandButton getSearchDataBTN() {
    return searchDataBTN;
    public void setSearchDataBTN(HtmlCommandButton hcb) {
    this.searchDataBTN = hcb;
    private HtmlCommandButton scrubbingRulesBTN = new HtmlCommandButton();
    public HtmlCommandButton getScrubbingRulesBTN() {
    return scrubbingRulesBTN;
    public void setScrubbingRulesBTN(HtmlCommandButton hcb) {
    this.scrubbingRulesBTN = hcb;
    private HtmlCommandButton scrubDataSourceBTN = new HtmlCommandButton();
    public HtmlCommandButton getScrubDataSourceBTN() {
    return scrubDataSourceBTN;
    public void setScrubDataSourceBTN(HtmlCommandButton hcb) {
    this.scrubDataSourceBTN = hcb;
    private HtmlCommandButton uploadDataSourceBTN = new HtmlCommandButton();
    public HtmlCommandButton getUploadDataSourceBTN() {
    return uploadDataSourceBTN;
    public void setUploadDataSourceBTN(HtmlCommandButton hcb) {
    this.uploadDataSourceBTN = hcb;
    private HtmlCommandButton deleteDataSourceBTN = new HtmlCommandButton();
    public HtmlCommandButton getDeleteDataSourceBTN() {
    return deleteDataSourceBTN;
    public void setDeleteDataSourceBTN(HtmlCommandButton hcb) {
    this.deleteDataSourceBTN = hcb;
    private HtmlInputText addDataSourceTF = new HtmlInputText();
    public HtmlInputText getAddDataSourceTF() {
    return addDataSourceTF;
    public void setAddDataSourceTF(HtmlInputText hit) {
    this.addDataSourceTF = hit;
    private HtmlSelectOneMenu deleteDataSourceDD = new HtmlSelectOneMenu();
    public HtmlSelectOneMenu getDeleteDataSourceDD() {
    return deleteDataSourceDD;
    public void setDeleteDataSourceDD(HtmlSelectOneMenu hsom) {
    this.deleteDataSourceDD = hsom;
    private DefaultSelectItemsArray dropdown1DefaultItems = new DefaultSelectItemsArray();
    public DefaultSelectItemsArray getDropdown1DefaultItems() {
    return dropdown1DefaultItems;
    public void setDropdown1DefaultItems(DefaultSelectItemsArray dsia) {
    this.dropdown1DefaultItems = dsia;
    private UISelectItems dropdown1SelectItems = new UISelectItems();
    public UISelectItems getDropdown1SelectItems() {
    return dropdown1SelectItems;
    public void setDropdown1SelectItems(UISelectItems uisi) {
    this.dropdown1SelectItems = uisi;
    private HtmlPanelGrid gridPanel1 = new HtmlPanelGrid();
    public HtmlPanelGrid getGridPanel1() {
    return gridPanel1;
    public void setGridPanel1(HtmlPanelGrid hpg) {
    this.gridPanel1 = hpg;
    private HtmlPanelGrid gridPanel2 = new HtmlPanelGrid();
    public HtmlPanelGrid getGridPanel2() {
    return gridPanel2;
    public void setGridPanel2(HtmlPanelGrid hpg) {
    this.gridPanel2 = hpg;
    private HtmlOutputText welcomeOT = new HtmlOutputText();
    public HtmlOutputText getWelcomeOT() {
    return welcomeOT;
    public void setWelcomeOT(HtmlOutputText hot) {
    this.welcomeOT = hot;
    private JdbcRowSetXImpl database_infoRowSet = new JdbcRowSetXImpl();
    public JdbcRowSetXImpl getDatabase_infoRowSet() {
    return database_infoRowSet;
    public void setDatabase_infoRowSet(JdbcRowSetXImpl jrsxi) {
    this.database_infoRowSet = jrsxi;
    private DefaultSelectItemsArray listbox1DefaultItems1 = new DefaultSelectItemsArray();
    public DefaultSelectItemsArray getListbox1DefaultItems1() {
    return listbox1DefaultItems1;
    public void setListbox1DefaultItems1(DefaultSelectItemsArray dsia) {
    this.listbox1DefaultItems1 = dsia;
    private HtmlSelectOneListbox dataSourceLB = new HtmlSelectOneListbox();
    public HtmlSelectOneListbox getDataSourceLB() {
    return dataSourceLB;
    public void setDataSourceLB(HtmlSelectOneListbox hsol) {
    this.dataSourceLB = hsol;
    private DefaultSelectItemsArray listbox1DefaultItems2 = new DefaultSelectItemsArray();
    public DefaultSelectItemsArray getListbox1DefaultItems2() {
    return listbox1DefaultItems2;
    public void setListbox1DefaultItems2(DefaultSelectItemsArray dsia) {
    this.listbox1DefaultItems2 = dsia;
    private UISelectItems listbox1SelectItems = new UISelectItems();
    public UISelectItems getListbox1SelectItems() {
    return listbox1SelectItems;
    public void setListbox1SelectItems(UISelectItems uisi) {
    this.listbox1SelectItems = uisi;
    private JdbcRowSetXImpl database_infoRowSet1 = new JdbcRowSetXImpl();
    public JdbcRowSetXImpl getDatabase_infoRowSet1() {
    return database_infoRowSet1;
    public void setDatabase_infoRowSet1(JdbcRowSetXImpl jrsxi) {
    this.database_infoRowSet1 = jrsxi;
    private JdbcRowSetXImpl user_tableRowSet = new JdbcRowSetXImpl();
    public JdbcRowSetXImpl getUser_tableRowSet() {
    return user_tableRowSet;
    public void setUser_tableRowSet(JdbcRowSetXImpl jrsxi) {
    this.user_tableRowSet = jrsxi;
    private HtmlMessages messageList1 = new HtmlMessages();
    public HtmlMessages getMessageList1() {
    return messageList1;
    public void setMessageList1(HtmlMessages hm) {
    this.messageList1 = hm;
    private HtmlOutputText welcomeOT1 = new HtmlOutputText();
    public HtmlOutputText getWelcomeOT1() {
    return welcomeOT1;
    public void setWelcomeOT1(HtmlOutputText hot) {
    this.welcomeOT1 = hot;
    // </editor-fold>
    public MainPage() {
    // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Initialization">
    try {
    database_infoRowSet.setDataSourceName("java:comp/env/jdbc/mySQL");
    database_infoRowSet.setCommand("SELECT ALL database_info.DB_SRC, database_info.USER_ID FROM database_info WHERE database_info.USER_ID = ?");
    database_infoRowSet1.setDataSourceName("java:comp/env/jdbc/mySQL");
    database_infoRowSet1.setCommand("SELECT ALL database_info.DB_SRC, database_info.DB_URL, database_info.DB_SCHEMA, database_info.DB_TYPE, database_info.USER_ID FROM database_info WHERE database_info.USER_ID = ?");
    user_tableRowSet.setDataSourceName("java:comp/env/jdbc/mySQL");
    user_tableRowSet.setCommand("SELECT * FROM user_table");
    } catch (Exception e) {
    log("MainPage Initialization Failure", e);
    throw e instanceof javax.faces.FacesException ? (FacesException) e: new FacesException(e);
    // </editor-fold>
    // Additional user provided initialization code
    try{
    database_infoRowSet.setString(1, getSessionBean1().getSbUserID());
    database_infoRowSet1.setString(1, getSessionBean1().getSbUserID());
    database_infoRowSet.execute();
    database_infoRowSet1.execute();
    database_infoRowSet1.first();
    if (database_infoRowSet.next()) {
    // If no row found then make the following button's as readonly
    database_infoRowSet.first();
    else {
    FacesContext fc =
    javax.faces.context.FacesContext.getCurrentInstance();
    fc.addMessage(null, new FacesMessage(
    "Please Add Data Source to Begin Processing", ""));
    searchDataBTN.setDisabled(true);
    scrubbingRulesBTN.setDisabled(true);
    scrubDataSourceBTN.setDisabled(true);
    uploadDataSourceBTN.setDisabled(true);
    catch (Exception ex){
    log("Error in initializing database_info Row Set", ex);
    protected dissertation.ApplicationBean1 getApplicationBean1() {
    return (dissertation.ApplicationBean1)getBean("ApplicationBean1");
    protected dissertation.SessionBean1 getSessionBean1() {
    return (dissertation.SessionBean1)getBean("SessionBean1");
    * Bean cleanup.
    protected void afterRenderResponse() {
    user_tableRowSet.close();
    database_infoRowSet1.close();
    database_infoRowSet.close();
    public String searchDataBTN_action() {
    // TODO Following code was replaced by static navigation
    // TODO Replace with your code
    //if no value selected then we prompt them to select a row
    if (dataSourceLB.getValue().equals("")||dataSourceLB.getValue()== null){
    // return error msg to select a row before continuing
    FacesContext fc =
    javax.faces.context.FacesContext.getCurrentInstance();
    fc.addMessage(null, new FacesMessage("Please select a data source to process", ""));
    return null;
    else {
    // call method to retrieve the db_schema from the
    getDbDetails();
    getDbDriver();
    return "searchcriticaldata";
    public String scrubbingRulesBTN_action() {
    // TODO Replace with your code
    if (dataSourceLB.getValue().equals("")||dataSourceLB.getValue()== null){
    // return error msg to select a row before continuing
    FacesContext fc =
    javax.faces.context.FacesContext.getCurrentInstance();
    fc.addMessage(null, new FacesMessage("Please select a data source to process", ""));
    return null;
    else {
    // call method to retrieve the db_schema from the
    getDbDetails();
    getDbDriver();
    return "definecolumnrules";
    public String scrubDataSourceBTN_action() {
    // TODO Replace with your code
    if (dataSourceLB.getValue().equals("")||dataSourceLB.getValue()== null){
    // return error msg to select a row before continuing
    FacesContext fc =
    javax.faces.context.FacesContext.getCurrentInstance();
    fc.addMessage(null, new FacesMessage("Please select a data source to process", ""));
    return null;
    else {
    // call method to retrieve the db_schema from the
    getDbDetails();
    getDbDriver();
    return "scrubdata";
    public String uploadDataSourceBTN_action() {
    // TODO Replace with your code
    if (dataSourceLB.getValue().equals("")||dataSourceLB.getValue()== null){
    // return error msg to select a row before continuing
    FacesContext fc =
    javax.faces.context.FacesContext.getCurrentInstance();
    fc.addMessage(null, new FacesMessage("Please select a data source to process", ""));
    return null;
    else {
    // call method to retrieve the db_schema from the
    getDbDetails();
    getDbDriver();
    return "uploaddata";
    public String addDataSourceBTN_action() {
    // TODO Following code was replaced by static navigation
    if ( false) {
    // TODO Replace with your code
    if (addDataSourceTF.getValue().equals("")){
    FacesContext fc =
    javax.faces.context.FacesContext.getCurrentInstance();
    fc.addMessage(null, new FacesMessage(
    "Please specify Data Source to Add", ""));
    return null;
    else {
    String woSpaces = ((String)addDataSourceTF.getValue()).replace(' ', '_');
    getSessionBean1().setSbDataSrc(woSpaces);
    return "adddatasrc";
    return "adddatasrc";
    public void getDbDetails(){
    try {
    Context ctx = new InitialContext();
    if (ctx == null) throw new NamingException("No Initial Context");
    DataSource ds = (DataSource) ctx.lookup("java:comp/env/jdbc/mySQL");
    if (ds == null) throw new NamingException("No Data Source mySQL");
    Connection conn = ds.getConnection();
    if (conn == null)
    throw new SQLException("Unable to establish connection");
    String sql = "Select db_src, db_url, db_schema, db_type user_id, src_password from database_info where db_src=?";
    PreparedStatement pstmt = conn.prepareStatement(sql);
    pstmt.setString(1, (String) dataSourceLB.getValue());
    ResultSet rs = pstmt.executeQuery();
    if (rs.next()){
    getSessionBean1().setSbDataSrc(rs.getString("db_src"));
    getSessionBean1().setSbDb_Schema(rs.getString("db_schema"));
    getSessionBean1().setSbDb_Type(rs.getString("db_type"));
    getSessionBean1().setSbDb_Userid(rs.getString("user_id"));
    getSessionBean1().setSbDb_Password(rs.getString("src_password"));
    else
    java.lang.System.out.println("DB_Schema not found for db_src " +
    (String) dataSourceLB.getValue());
    rs.close();
    pstmt.close();
    conn.close();
    catch (SQLException ex) {
    java.lang.System.out.println("\n ----- SQL Exception caught ------\n");
    while (ex !=null){
    java.lang.System.out.println("Message: " + ex.getMessage());
    java.lang.System.out.println("SQLState: " + ex.getSQLState());
    java.lang.System.out.println("ErrorCode: " + ex.getErrorCode());
    ex = ex.getNextException();
    java.lang.System.out.println("");
    catch (NamingException e){
    java.lang.System.out.println("messge unable to establish context in changepassword.jsp");
    public void getDbDriver(){
    try {
    Context ctx = new InitialContext();
    if (ctx == null) throw new NamingException("No Initial Context");
    DataSource ds = (DataSource) ctx.lookup("java:comp/env/jdbc/mySQL");
    if (ds == null) throw new NamingException("No Data Source mySQL");
    Connection conn = ds.getConnection();
    if (conn == null)
    throw new SQLException("Unable to establish connection");
    String sql = "Select db_driver from database_type where db_type=?";
    PreparedStatement pstmt = conn.prepareStatement(sql);
    pstmt.setString(1, getSessionBean1().getSbDb_Type());
    ResultSet rs = pstmt.executeQuery();
    if (rs.next()){
    getSessionBean1().setSbDb_Driver(rs.getString("db_driver"));
    else
    java.lang.System.out.println("DB_Driver not found for db_src " +
    (String) dataSourceLB.getValue());
    rs.close();
    pstmt.close();
    conn.close();
    catch (SQLException ex) {
    java.lang.System.out.println("\n ----- SQL Exception caught ------\n");
    while (ex !=null){
    java.lang.System.out.println("Message: " + ex.getMessage());
    java.lang.System.out.println("SQLState: " + ex.getSQLState());
    java.lang.System.out.println("ErrorCode: " + ex.getErrorCode());
    ex = ex.getNextException();
    java.lang.System.out.println("");
    catch (NamingException e){
    java.lang.System.out.println("messge unable to establish context in changepassword.jsp");
    public String deleteDataSourceBTN_action() {
    // TODO Replace with your code
    try {
    Context ctx = new InitialContext();
    if (ctx == null) throw new NamingException("No Initial Context");
    DataSource ds = (DataSource) ctx.lookup("java:comp/env/jdbc/mySQL");
    if (ds == null) throw new NamingException("No Data Source mySQL");
    Connection conn = ds.getConnection();
    if (conn == null)
    throw new SQLException("Unable to establish connection");
    String sql = "Delete from database_info where db_src=?";
    PreparedStatement pstmt = conn.prepareStatement(sql);
    pstmt.setString(1, (String) deleteDataSourceDD.getValue());
    pstmt.executeUpdate();
    pstmt.close();
    conn.close();
    return "success";
    catch (SQLException ex) {
    java.lang.System.out.println("\n ----- SQL Exception caught ------\n");
    while (ex !=null){
    java.lang.System.out.println("Message: " + ex.getMessage());
    java.lang.System.out.println("SQLState: " + ex.getSQLState());
    java.lang.System.out.println("ErrorCode: " + ex.getErrorCode());
    ex = ex.getNextException();
    java.lang.System.out.println("");
    return "failure";
    catch (NamingException e){
    java.lang.System.out.println("messge unable to establish context in changepassword.jsp");
    return "failure";
    public void addDataSourceTF_processValueChange(ValueChangeEvent vce) {
    // TODO Replace with your code
    public void deleteDataSourceDD_processValueChange(ValueChangeEvent vce) {
    // TODO Replace with your code
    public void addDataSourceTF_validate(FacesContext fc, UIComponent uic, Object o) {
    // TODO Replace with your code
    }

  • Re-installation with existing product code/disk but no disk drive.

    I have a new laptop and need to re-register my Photoshop C6 student and teachers edition, can I do this with my existing product code?
    Also if it is possible, how do I then re-install Photoshop with no disk drive? (I originally just popped the disk in and entered my product code.)
    (Additional information: Both my laptop and Photoshop are for Windows.)

    Hello,
    if you are able to do that, you should deactivate (Help -> Deactivate) the Adobe software before you lose the machine to it being reset.  You will still use the same serial number to activate the soiftware when you get the application(s) reinstalled.
    If you need any help with activation you can contact Adobe Support directly by chat or phone.
    Here is a link to a page with options to help make contact: (Contact Support – Download and Installation)
    http://www.adobe.com/support/download-install/supportinfo/
    Hans-Günter

  • Creation of 2 new company codes in continuation with existing compny code.

    Hi
    Our company has got 2 locations but we are using only one company code for both the locations from the last 4 years.
    Now due to expansion of business we have extended our business to one more location. So.now are planning to use 3 company codes.
    Now I want to know the following things:-
    1. What are the things that are to be done before creating these two additional company codes?
    2. What will be the impact of  these new company codes on the existing company codes?
    3. How the present reports can be used for the new company codes?
    4. How the GL balances will be uploaded for the new compny codes?
    5. How the master data will be created for the new company codes?
    6. What will be the impact of the new company codes on other modules like MM, SD and HR which are already in use?
    Please guide me on the above issue co months of experience.
    considering the fact that I am a fresher in SAP FI and I have
    only 8 months of experience.
    Regards
    Vikram sairam

    Hi Vikcy,
    Company Code is legal Entity and core component in FI.
    Now u r planning create new company codes, just check below:
    01. Chart of Accounts:
         - You may use existing chart of account for new com. code
    02. Controlling Area:
          -  Check the feasibility of cross company code controlling or not. If you maintain one:one relation in existing controlling area, u need to create new one.
    03. SD:  Core component is Sale Organization.  U need to assign them to ur Company Codes. So check accordingly.
    03. MM/ PP:  Plants and Purchasing Organization need to assign to Company Codes.
    Hope it will give you idea on a whole to plan, how u need plan to go ahead.
    Regards,
    Venkat

  • Integration Webdynpro ABAP with Webdynpro Java in Portal

    Hi All,
    I am facing problem while integrating WDA application with WDJ. I can integrate successfuly one application and trying to invoke other one with different parameters, i am facing the problem
    There is no iView available for system "XXXX_SAP_XXX": object "xxx.xxxx.xxx.xxxx". For more information, contact your administrator.
    I am passing the parameters
    system                      
    object_type                
    object_value_name          
    operation
    Thanks in advance

    Hi Samir,
    Pls look into these threads -
    IE8 problem (WebDynpro ABAP iView call)
    WebDynpro for ABAP and IE 8.0
    Regards,
    Sen

  • Implementing DOM Interface with existing Java classes

    I had planned on using some tree-like Java classes as a Document Object Model, which would give me access to all sorts of XML and DOM tools like parsers and XSLT transformers. Initially, I thought all that would be neccessary is to implement all the DOM Interfaces in org.w3c.dom and then I would have a set of classes that conformed to DOM Level 1. It was my understanding that interfaces such as DOMImplementation and Document would interface with various XML tools, allowing creation of a class that implements Document and then Document would have its various factory methods that know how to create the various DOM nodes such as Element, Attr, Text, NamedNodeMap, NodeList, etc.
    The problem I'm seeing now is that the JAXP specification (which is what the latest Xerces and Xalan tools conform to) has something called a DocumentBuilder and DocumentBuilderFactory that appear to be necessary to tell the framework what type of class to instantiate that implements the Document DOM interface. Those appear to have a lot of methods that deal with parsing of XML documents and I didn't really want to write or even subclass any existing Parsers in order to get the functionality of traversing and transforming a set of classes that implement the DOM interface.
    Am I missing something here? Is it possible to plug in any (set of classes for) DOMImplementation and get them to work with the various DOM and XML tools out there?
    Is there an easier way to allow parts of an application access to internal data structures but have the more generic tools or APIs, such as XSL transformers, access that same set of classes as a DOM with the generic DOM interface methods?
    Can someone provide me with some guidance here? I'm in the process of finalizing some design on a system and need to know if this is possible or if I need to alter my design.
    Thanks.

    If I understand you correctly, I think I am working on a similar issue. I am unhappy with the methods given by the DOM for retrieving data from the XML file and for building a file. Our software has a bunch of code that uses these classes and it is extremely ugly. My solution was to create a facade on top of the DOM model. Essentially I have some simple classes that store all the pertinent info (for me) about the XML structure. Essentially that is the element or attribute name, its values and in the case of the element, it's children. This makes it easier for me to build and retreive the data. What I then built was a loader class and a builder class. The loader takes an XML file and parses it in using the DOM classes and builds a structure using my classes and returns the root element. The builder takes a root element and creates a DOM object out of it. This frees me of having to code around the DOM classes all over the place and makes it simple to upgrade our XML code if the DOM changes or a better DOM is released. I am using factories to facilitate this and allow me to have loaders for specific types of XML documents so that I can have a class for each which further simplifies the XML related tasks of other developers on my team.

  • Performance issue with pl/sql code

    Hi Oracle Gurus,
    I am in need of your recommendations for a performance issue that I am facing in production envrionment. There is a pl/sql procedure which executes with different elapsed time at different executions. Elapsed Times are 30minutes , 40 minutes, 65 minutes , 3 minutes ,3 seconds.
    Expected elapsed time is maximum of 3 minutes. ( But some times it took 3 seconds too...! )
    Output on all different executions are same that is deletion and insertion of 12K records into a table.
    Here is the auto trace details of two different scenarios.
    Slow execution - 33.65 minutes
    Stat Name                                Statement   Per Execution % Snap
    Elapsed Time (ms)                         1,712,343    1,712,342.6    41.4
    CPU Time (ms)                             1,679,689    1,679,688.6    44.7
    Executions                                        1            N/A     N/A
    Buffer Gets                              ##########  167,257,973.0    86.9
    Disk Reads                                    1,284        1,284.0     0.4
    Parse Calls                                       1            1.0     0.0
    User I/O Wait Time (ms)                       4,264            N/A     N/A
    Cluster Wait Time (ms)                        3,468            N/A     N/A
    Application Wait Time (ms)                        0            N/A     N/A
    Concurrency Wait Time (ms)                        6            N/A     N/A
    Invalidations                                     0            N/A     N/A
    Version Count                                     4            N/A     N/A
    Sharable Mem(KB)                                 85            N/A     N/A
              -------------------------------------------------------------Fast Exection : 5 seconds
    Stat Name                                Statement   Per Execution % Snap
    Elapsed Time (ms)                            41,550       41,550.3     0.7
    CPU Time (ms)                                40,776       40,776.3     1.0
    Executions                                        1            N/A     N/A
    Buffer Gets                               2,995,677    2,995,677.0     4.2
    Disk Reads                                       22           22.0     0.0
    Parse Calls                                       1            1.0     0.0
    User I/O Wait Time (ms)                         162            N/A     N/A
    Cluster Wait Time (ms)                          621            N/A     N/A
    Application Wait Time (ms)                        0            N/A     N/A
    Concurrency Wait Time (ms)                       55            N/A     N/A
    Invalidations                                     0            N/A     N/A
    Version Count                                     4            N/A     N/A
    Sharable Mem(KB)                                 85            N/A     N/A
              -------------------------------------------------------------For security reasons, I cannot share the actual code. Its a report generating code that deletes and load the data into table using insert into select statement.
    Delete from table ;
    cursor X to get the master data ( 98 records )
    For each X loop
    insert into tableA select * from tables where a= X.a and b= X.b and c=X.c ..... ;
    -- 12 K records inserted on average
    insert into tableB select * from tables where a= X.a and b= X.b and c=X.c ..... ;
    -- 12 K records inserted on average
    end loop ;1. The select query is complex with bind variables ( explain plan varies for each values )
    2. I have checked the tablespace of the tables involved, it is 82% used. DBA confirmed that it is not the reason.
    3. Disk reads are high during long execution.
    4. At long running times, I can see a db sequential read wait event on a index object. This index is on the table where data is inserted.
    All I need to find is why this code is taking 3 seconds and 60 minutes on the same day and on the consecutive executions ?
    Is there any other approach to find the root cause of this behaviour and to fix it ? Kindly adivse.
    Thanks in advance your help.
    Regards,
    Hari
    Edited by: BluShadow on 26-Sep-2012 08:24
    edited to add {noformat}{noformat} tags.  You've been a member long enough to know to do this yourself... so please do so in future.  ({message:id=9360002})                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hariharan ST wrote:
    Hi Oracle Gurus,
    I am in need of your recommendations for a performance issue that I am facing in production envrionment. There is a pl/sql procedure which executes with different elapsed time at different executions. Please reedit your post and add some code tags around the trace information. This would improve readability greatly and will help us to help you
    example
    {<b></b>code}
    select * from dual;{<b></b>code}
    Based upon your description I can imagine two things.
    a) The execution plan for the select query does change frequently.
    A typical reason can be not up to date statistics.
    b) Some locking / wait conflict. For example upon a UK index.
    Are there any other operations going on while it is slow? If anybody inserts a value, then your session will wait, if the same (PK/UK) value also is to be inserted.
    Those wait events can be recognized using standard tools like oracle sql developer or enterprise manager while the query is slow.
    Also go through the links that are in the FAQ. They tell you how to get better information for makeing a tuning request.
    SQL and PL/SQL FAQ
    Edited by: Sven W. on Sep 25, 2012 6:41 PM

  • Needed help with updating java code

    Hello all,
    Let me begin by let you know I am not a programmer and I have tried to solve this by reading on the net. I am a network admin so I tech knowledge but no programming.
    I have a webcam sending a Jpg to an FTP site and there I have used an applet called view.class to refresh once a second.
    site:http://70.154.170.253/webcamold.html
    My problems is now that it refreshes the same image over and over. It refreshes the cached image not the new image.
    From reading I suspect that it has to do with the newer version of java (it used to work fine).
    I have tried using JavaCam but same issue it just refreshes cached image. Also image flickers, the applet I am trying to fix was really smooth.
    I have also tried to compile code that I found on this forum but I got error dealing with deprecated code.
    Any help would be greatly appreciated!!!
    Code:
    import java.applet.Applet;
    import java.awt.*;
    import java.io.PrintStream;
    public class View extends Applet
    implements Runnable
    public void init()
    setBackground(Color.white);
    String s = getParameter("refresh");
    if(s == null)
    update = 30;
    else
    try
    update = Integer.parseInt(s);
    catch(Exception _ex)
    update = 30;
    filename = getParameter("picture");
    if(filename == null)
    System.out.println("No filename given as parameter.");
    md = new MediaTracker(this);
    off = createImage(size().width, size().height);
    refreshImage();
    public void paint(Graphics g)
    g.drawImage(off, 0, 0, this);
    public void update(Graphics g)
    paint(g);
    public void refreshImage()
    img = getImage(getDocumentBase(), filename);
    md.addImage(img, 0);
    try
    md.waitForID(0);
    catch(Exception exception)
    exception.printStackTrace();
    Graphics g = off.getGraphics();
    g.drawImage(img, 0, 0, this);
    img.flush();
    public void run()
    while(th != null)
    try
    refreshImage();
    repaint();
    Thread.sleep(update * 1000);
    catch(Exception exception)
    System.out.println("Error when thread was supposed to sleep: " + exception.getMessage());
    public void start()
    if(th == null)
    th = new Thread(this);
    try
    th.start();
    return;
    catch(Exception exception)
    System.out.println("Couldn't start thread: " + exception.getMessage());
    return;
    } else
    return;
    public void stop()
    if(th != null)
    th.stop();
    th = null;
    public void destroy()
    stop();
    public View()
    update = 30;
    Thread th;
    String filename;
    int update;
    Image img;
    Image off;
    MediaTracker md;

    This is compile error free code and regarding your issues i don't think am good at this stuff
    import java.applet.Applet;
    import java.awt.Color;
    import java.awt.Graphics;
    import java.awt.Image;
    import java.awt.MediaTracker;
    public class View extends Applet implements Runnable {
         Thread th;
         String filename;
         int update;
         Image img;
         Image off;
         MediaTracker md;
         public void init() {
              setBackground(Color.white);
              String s = getParameter("refresh");
              if (s == null) {
                   update = 30;
              } else {
                   try {
                        update = Integer.parseInt(s);
                   } catch (Exception _ex) {
                        update = 30;
              filename = getParameter("picture");
              if (filename == null) {
                   System.out.println("No filename given as parameter.");
              md = new MediaTracker(this);
              off = createImage(size().width, size().height);
              refreshImage();
         public void paint(Graphics g) {
              g.drawImage(off, 0, 0, this);
         public void update(Graphics g) {
              paint(g);
         public void refreshImage() {
              img = getImage(getDocumentBase(), filename);
              md.addImage(img, 0);
              try {
                   md.waitForID(0);
              } catch (Exception exception) {
                   exception.printStackTrace();
              Graphics g = off.getGraphics();
              g.drawImage(img, 0, 0, this);
              img.flush();
         public void run() {
              while (th != null) {
                   try {
                        refreshImage();
                        repaint();
                        Thread.sleep(update * 1000);
                   } catch (Exception exception) {
                        System.out.println("Error when thread was supposed to sleep: "
                                  + exception.getMessage());
         public void start() {
              if (th == null) {
                   th = new Thread(this);
                   try {
                        th.start();
                        return;
                   } catch (Exception exception) {
                        System.out.println("Couldn't start thread: "
                                  + exception.getMessage());
                   return;
              } else {
                   return;
         public void stop() {
              if (th != null) {
                   th.stop();
                   th = null;
         public void destroy() {
              stop();
         public View() {
              update = 30;
    }

  • How can i retrieve a computer name with a java code

    hello friends,
    please, can i get help on how i can rtrieve the name of a computer(any at all) using java - a code will be appreciated.
    i also wish to ask if you know how i can use the JFileChooser class, such that when i click on a file to select it and then click on the open button, the file will open / show in a TextArea which i have already created.
    Moreso, how can i use the JFileChooser to save something i've written in a TextArea, as file to a system.
    thanks in advance for your useful advice. quite grateful.

    'result' is a String I think.
    As for your JFileChooser question...
    Create your take the file returned from JFileChooser, open it in a BufferedReader (I'm assuming it's text as you want to display it in a JTextArea) then read the lines out.
    JFileChooser fc = new JFileChooser();
    fc.showOpenDialog(null);
    File file = fc.getSelectedFile();
    if (file != null) {
    try {
    BufferedReader in = new BufferedReader(new FileReader(file));
    String inputLine;
    String total = "";
    while ((inputLine = in.readLine()) != null)
    total+=inputLine;
    in.close();
    textarea.setText(total); // textarea = your JTextArea
    } catch (Exception e) {
    System.err.println("Error: "+e);
    }

  • Error in deploying BPEL Process with Embedded Java code

    Hi all,
    I am trying to do a simple sample BPEL Process which invokes a Java class.i have placed the jar file in the classpath and the Process compiles and builds in the BPELDesigner,but when deployed it shows the below error in the BPEL console.The beauty here is it show a success message in the BPEL Designer after deployment.
    <2007-07-19 05:03:07,640> <INFO> <production.collaxa.cube.compiler> validating "C:\OraHome_1\integration\orabpel\domains\production\tmp\.bpel_Employee_1.0.jar\Employee.bpel" ...
    <2007-07-19 05:03:09,187> <ERROR> <production.collaxa.cube.engine.deployment> <CubeProcessFactory::generateProcessClass>
    Process "Employee" (revision "1.0") compilation failed.
    <2007-07-19 05:03:09,187> <ERROR> <production.collaxa.cube.engine.deployment> <CubeProcessLoader::create> Failed to compile classes.
    Failed to compile the generated BPEL classes for "Employee".
    <2007-07-19 05:03:09,187> <ERROR> <production.collaxa.cube.engine.deployment> Process "Employee" (revision "1.0") load FAILED!!
    <2007-07-19 05:03:09,203> <ERROR> <production.collaxa.cube> <BaseCubeSessionBean::logError> Error while invoking bean "domain manager": Error while loading process.
    The process domain encountered the following errors while loading the process "Employee" (revision "1.0"): Failed to compile classes.
    Failed to compile the generated BPEL classes for "Employee".
    If you have installed a patch to the server, please check that the bpelcClasspath domain property includes the patch classes.
    ORABPEL-05215
    Error while loading process.
    The process domain encountered the following errors while loading the process "Employee" (revision "1.0"): Failed to compile classes.
    Failed to compile the generated BPEL classes for "Employee".
    If you have installed a patch to the server, please check that the bpelcClasspath domain property includes the patch classes.
         at com.collaxa.cube.engine.deployment.CubeProcessHolder.bind(CubeProcessHolder.java:1269)
         at com.collaxa.cube.engine.deployment.CubeProcessHolder.loadAndBind(CubeProcessHolder.java:882)
         at com.collaxa.cube.engine.deployment.CubeProcessHolder.loadArchive(CubeProcessHolder.java:824)
         at com.collaxa.cube.engine.CubeEngine.loadProcessArchive(CubeEngine.java:939)
         at com.collaxa.cube.ejb.impl.BPELDomainManagerBean.loadProcessArchive(BPELDomainManagerBean.java:390)
         at IBPELDomainManagerBean_StatelessSessionBeanWrapper34.loadProcessArchive(IBPELDomainManagerBean_StatelessSessionBeanWrapper34.java:2157)
         at com.collaxa.cube.engine.deployment.CubeProcessMonitorWork.run(CubeProcessMonitorWork.java:130)
         at oracle.tip.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
         at oracle.tip.adapter.fw.common.ThreadPool.run(ThreadPool.java:267)
         at java.lang.Thread.run(Thread.java:534)
    <2007-07-19 05:03:09,234> <ERROR> <production.collaxa.cube.engine.deployment> <CubeProcessMonitorWork::run> Error while loading process archive C:\OraHome_1\integration\orabpel\domains\production\deploy\bpel_Employee_1.0.jar
    ORABPEL-05215
    Error while loading process.
    The process domain encountered the following errors while loading the process "Employee" (revision "1.0"): Failed to compile classes.
    Failed to compile the generated BPEL classes for "Employee".
    If you have installed a patch to the server, please check that the bpelcClasspath domain property includes the patch classes.
         at com.collaxa.cube.engine.deployment.CubeProcessHolder.bind(CubeProcessHolder.java:1269)
         at com.collaxa.cube.engine.deployment.CubeProcessHolder.loadAndBind(CubeProcessHolder.java:882)
         at com.collaxa.cube.engine.deployment.CubeProcessHolder.loadArchive(CubeProcessHolder.java:824)
         at com.collaxa.cube.engine.CubeEngine.loadProcessArchive(CubeEngine.java:939)
         at com.collaxa.cube.ejb.impl.BPELDomainManagerBean.loadProcessArchive(BPELDomainManagerBean.java:390)
         at IBPELDomainManagerBean_StatelessSessionBeanWrapper34.loadProcessArchive(IBPELDomainManagerBean_StatelessSessionBeanWrapper34.java:2157)
         at com.collaxa.cube.engine.deployment.CubeProcessMonitorWork.run(CubeProcessMonitorWork.java:130)
         at oracle.tip.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
         at oracle.tip.adapter.fw.common.ThreadPool.run(ThreadPool.java:267)
         at java.lang.Thread.run(Thread.java:534)
    Your sugegstions are appreciated..
    Plzz help...
    Regards
    Subramanian

    Hi all..
    Thanks for ur response,but still my problem is not solved...
    Below is the BPEL file and the java class (which isinvoked from the process)
    BPEL FILE
    <!-- Employee -->
    <process name="BusinessTravelProcess" targetNamespace="http://packtpub.com/bpel/travel/" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:emp="http://packtpub.com/service/employee/" xmlns:bpelx="http://schemas.oracle.com/bpel/extension">
    <bpelx:exec import="org.w3c.dom.Element"/>
    <bpelx:exec import="com.packtpub.EmployeeStatus"/>
    <partnerLinks>
    <partnerLink name="employeeTravelStatus" partnerLinkType="emp:employeeLT" myRole="employeeTravelStatusService"/>
    </partnerLinks>
    <variables><!-- input for this process -->
    <variable name="EmployeeTravelStatusRequest" messageType="emp:EmployeeTravelStatusRequestMessage"/><!-- output from the Employee Travel Status web service -->
    <variable name="EmployeeTravelStatusResponse" messageType="emp:EmployeeTravelStatusResponseMessage"/>
    </variables>
    <sequence><!-- Receive the initial request for business travel from client -->
    <receive partnerLink="employeeTravelStatus" portType="emp:EmployeeTravelStatusPT" operation="EmployeeTravelStatus" variable="EmployeeTravelStatusRequest" createInstance="yes"/><!-- Prepare the output -->
    <assign>
    <copy>
    <from>
    <travelClass xmlns="http://packtpub.com/service/employee/">Economy
    </travelClass>
    </from>
    <to variable="EmployeeTravelStatusResponse" part="travelClass"/>
    </copy>
    </assign><!-- Invoke the EmployeeStatus Java class instead of web service -->
    <bpelx:exec name="Java_Embedding_1" language="Java" version="1.4"><![CDATA[
    EmployeeStatus e = new EmployeeStatus();
    String firstName = ((Element)getVariableData(
    "EmployeeTravelStatusRequest", "employee",
    "/employee/FirstName")).getNodeValue();
    String lastName = ((Element)getVariableData(
    "EmployeeTravelStatusRequest", "employee",
    "/employee/LastName")).getNodeValue();
    String empStatus = e.getTravelStatus(firstName, lastName);
    addAuditTrailEntry("Employee status is: " + empStatus);
    setVariableData("EmployeeTravelStatusResponse", "travelClass",
    "/travelClass", empStatus);]]>
    </bpelx:exec>
    <reply partnerLink="employeeTravelStatus" portType="emp:EmployeeTravelStatusPT" operation="EmployeeTravelStatus" variable="EmployeeTravelStatusResponse"/>
    </sequence>
    </process>
    Java File:
    package com.packtpub;
    public class EmployeeStatus {
    public String getTravelStatus (String firstName, String lastName) {
    return "Economy";
    }

Maybe you are looking for

  • How can I set up a separate Apple account from my husband

    MMy husband and I set up a joint Apple account years ago. Can he keep that account in tact and can I create a separate one? If so how do I do that?

  • Understanding Server Log

    I am really grateful to members of this forum in helping and guiding me in setting up my first server. Everything appears to be running smoothly so far.  The monitoring strategy and understanding the server log will be critical. Can anyone point me t

  • Error 404 when trying to watch Macworld's Keynote 2009

    Hi guys, I was trying to watch the '09 Keynote Address from Apple's site on both IE and Safari. On IE, I can enter the site (http://events.apple.com.edgesuite.net/0901ouabdcaw/event/index.html) but right after it goes to a page not found (http 404 er

  • Using Arrow Keys in Folders

    In Tiger I could use the left and right arrow keys to open and close folders. Now I have installed Lion I can no longer do this, and it is quite annoying not being able to. Is there any way of doing this in Lion?

  • JDeveloper And weblogic

    Hi I have question Can I work on Jdeveloper 11g 11.1.1.3 and using webLogic 10.3.0?