Help with J2EE Project Management

Hi,
We are about to begin a large J2EE project and are wondering if anyone could help with the following questions:
1. Given the division of labor on J2EE projects (JSP developers, EJB developers, application deployers, etc...), what are "best practices" for building a team and ensuring that they communicate well after the design phase? How will the left arm know what the right arm is doing?
2. What documentation should be produced during the design phase to give to the developers? Will this allow them to go off and develop independently of each other?
3. Is there a "best practices" document anywhere on J2EE project management?
Thanks in advance!!

Hi,
I feel any project to start with should have a prior planning,that too particularly for Object oriented programming projects,I feel UML is the best tool for entire process.I think rational software has got lot of Project Management Tools(PMT) and products at all stages.Please go through the rational.com site and hope you could find some info.I feel the answer to your second question is partly 'yes' and partly 'no'.The modules that you can split it up which have got some independent attributes,but it should not be too much in your project,then it affects the work matrix/There should be a optimal process to decide and that you can yourself formulate depending on the time frame,either way the last step of build or integration is not flexible enough that you should mind,modular flexibility can be there but the integration stage you are tied with a fixed process.So plan accordingly using a PMT tool for any project that matters and all the best.Bye
Hari

Similar Messages

  • HP Application LifeCycle Management - URL for use with another Project Management Tool

    I'm trying to find a way to get a ALM Requirement URL that will work with other applications.  The URL from the COPY URL option (when right-clicking on the requirement) works for e-mails but I can't seem to get it to work for another project management application (Daptiv).  We would like to insert the QC Requirement link to another application where the user can access the requirements directly when clicking on the QC hyperlink.
    We have HP Application Lifecycle Management Software Version 11.00 Enterprise Edition.
    Any help is greatly appreciated.
    Thanks.

    As Abhishek mentioned we dont need a calc manger or EPMA to migrate classic planning applications. You just need to log into shared services, expand file system and take a file system export, paste the export to the destination environment, now use it as a source and perform an import in the shared services of destination server. It worth having a look at:
    http://blogs.oracle.com/HyperionPlanning/entry/lifecycle_management_from_scratch
    Cheers...!!

  • Collage Students need help with Java project(Email Server) whats analysis?

    Hi im studying in collage at the moment and i have just started learning java this semester, the thing is my teacher just told us to do an project in java , since we just started the course and i dont have any prior knowledge about java i was wondering if some one could help me with the project.
    i choose Email Sevice as my project and we have to submit an analysis and design document , but how the hell am i suppose to know what analysis is ? i just know we use ER diagrams & DFD's in the design phase but i dont know what analysis means ?
    could some one tell me what analysis on an email service might be? and what analysis on a subject means? is it the codeing involved or some thing coz the teacher told us not to do any codeing yet so im completly stumped,
    oh and btw we are a group of 3 students who are asking u the help here coz all of us in our class are stupmed ?

    IN case any one is interested this is the analysis i wrote
    ANALYSIS
    Analysis means figuring out what the problem is, maybe what kinds of solutions might be appropriate
    1.     Introduction:-
    The very definition of analysis is an investigation of the component parts of a whole and their relations in making up the whole. The Analysis done here is for an emailing service called Flashmail, the emailing service is used to send out mails to users registered with our service, these users and there log activities will be stored in some where, the most desirable option at this time is a Database, but this can change as the scope of the project changes.
    2.     Customer Analysis:-
    We are targeting only 30 registered users at the moment but this is subject to change as the scale changes of the project .Each user is going to be entitled to 1MB of storage space at this time since we lack the desired infrastructure to maintain anything higher than 1MB but the end vision of the project is to sustain 1000 MB of storage space while maintaining a optimal bandwidth allocation to each user so as to ensure a high speed of activity and enjoyment for the Customer.
    The Service will empower the user to be able to send, read, reply, and forward emails to there specified locations. Since we are working on a limited budget we can�t not at this time enable the sending of attachments to emails, but that path is also left open by modularity of java language, so we can add that feature when necessary.
    3.     Processor Load Analysis:-
    The number of messages per unit time processing power will be determined on hand with various algorithms, since it is best not to waste processor power with liberally distributing messages per unit time. Hence the number of messages will vary with in proportion to the number of registered users online at any given time.
    4.     Database Decision Analysis:-
    The High level Requirements of the service will have to be decided upon, the details of which can be done when we are implementing the project itself. An example of high level requirements are database management, we have chosen not to opt for flat files because of a number of reasons, first off a flat files are data files that contain records with no structured relationships additional knowledge is required to interpret these files such as the file format properties. The disadvantages associated with flat files are that they are not fast, they can only be read from top to bottom, and usually they have to be read all the way through. Though there is are advantages of Flat files they are that it takes up less space than a structured file. However, it requires the application to have knowledge of how the data is organized within the file.
    Good databases have key advantage over flat files concurrency. When you just read stuff from file it�s easy, but tries to synchronize multiple updates or writes into flat file from scripts that run in different process spaces.
    Whereas a flat file is a relatively simple database system in which each database is contained in a single table. In contrast, relational database systems can use multiple tables to store information, and each table can have a different record format.
    5.     Networking Analysis:-
    Virtually every email sent today is sent using two popular protocols known as SMTP (Simple Mail Transfer Protocol) and MIME (Multipurpose Internet Mail Extensions).
    1.     SMTP (Simple Mail Transfer Protocol)
    The SMTP protocol is the standard used by mail servers for sending and receiving email. In order to send email we will first establish a network connection to our SMTP server. Once you have finished sending your email message it is necessary that you disconnect from the SMTP server
    2.     MIME (Multipurpose Internet Mail Extensions)
    The MIME protocol is the standard used when composing email messages.

  • Need help with calculator project for an assignment...

    Hi all, I please need help with my calculator project that I have to do for an assignment.
    Here is the project's specifications that I need to do"
    """Create a console calculator applicaion that:
    * Takes one command line argument: your name and surname. When the
    program starts, display the date and time with a welcome message for the
    user.
    * Display all the available options to the user. Your calculator must include
    the arithmetic operations as well as at least five scientific operations of the
    Math class.
    -Your program must also have the ability to round a number and
    truncate it.
    -When you multiply by 2, you should not use the '*' operator to perform the
    operation.
    -Your program must also be able to reverse the sign of a number.
    * Include sufficient error checking in your program to ensure that the user
    only enters valid input. Make use of the String; Character, and other
    wrapper classes to help you.
    * Your program must be able to do conversions between decimal, octal and
    hex numbers.
    * Make use of a menu. You should give the user the option to end the
    program when entering a certain option.
    * When the program exits, display a message for the user, stating the
    current time, and calculate and display how long the user used your
    program.
    * Make use of helper classes where possible.
    * Use the SDK to run your program."""
    When the program starts, it asks the user for his/her name and surname. I got the program to ask the user again and again for his/her name and surname
    when he/she doesn't insert anything or just press 'enter', but if the user enters a number for the name and surname part, the program continues.
    Now my question is this: How can I restrict the user to only enter 'letters' (and spaces of course) but allow NO numbers for his/her surname??
    Here is the programs code that I've written so far:
    {code}
    import java.io.*;
    import java.util.*;
    import java.text.*;
    public class Project {
         private static String nameSurname = "";     
         private static String num1 = null;
         private static String num2 = null;
         private static String choice1 = null;
         private static double answer = 0;
         private static String more;
         public double Add() {
              answer = (Double.parseDouble(num1) + Double.parseDouble(num2));
              return answer;
         public double Subtract() {
              answer = (Double.parseDouble(num1) - Double.parseDouble(num2));
              return answer;
         public double Multiply() {
              answer = (Double.parseDouble(num1) * Double.parseDouble(num2));
              return answer;
         public double Divide() {
              answer = (Double.parseDouble(num1) / Double.parseDouble(num2));
              return answer;
         public double Modulus() {
              answer = (Double.parseDouble(num1) % Double.parseDouble(num2));
              return answer;
         public double maximumValue() {
              answer = (Math.max(Double.parseDouble(num1), Double.parseDouble(num2)));
              return answer;
         public double minimumValue() {
              answer = (Math.min(Double.parseDouble(num1), Double.parseDouble(num2)));
              return answer;
         public double absoluteNumber1() {
              answer = (Math.abs(Double.parseDouble(num1)));
              return answer;
         public double absoluteNumber2() {
              answer = (Math.abs(Double.parseDouble(num2)));
              return answer;
         public double Squareroot1() {
              answer = (Math.sqrt(Double.parseDouble(num1)));
              return answer;
         public double Squareroot2() {
              answer = (Math.sqrt(Double.parseDouble(num2)));
              return answer;
         public static String octalEquivalent1() {
              int iNum1 = Integer.parseInt(num1);
    String octal1 = Integer.toOctalString(iNum1);
    return octal1;
         public static String octalEquivalent2() {
              int iNum2 = Integer.parseInt(num2);
              String octal2 = Integer.toOctalString(iNum2);
              return octal2;
         public static String hexadecimalEquivalent1() {
              int iNum1 = Integer.parseInt(num1);
              String hex1 = Integer.toHexString(iNum1);
              return hex1;
         public static String hexadecimalEquivalent2() {
              int iNum2 = Integer.parseInt(num2);
              String hex2 = Integer.toHexString(iNum2);
              return hex2;
         public double Round1() {
              answer = Math.round(Double.parseDouble(num1));
              return answer;
         public double Round2() {
              answer = Math.round(Double.parseDouble(num2));
              return answer;
              SimpleDateFormat format1 = new SimpleDateFormat("EEEE, dd MMMM yyyy");
         Date now = new Date();
         SimpleDateFormat format2 = new SimpleDateFormat("hh:mm a");
         static Date timeIn = new Date();
         public static long programRuntime() {
              Date timeInD = timeIn;
              long timeOutD = System.currentTimeMillis();
              long msec = timeOutD - timeInD.getTime();
              float timeHours = msec / 1000;
                   return (long) timeHours;
         DecimalFormat decimals = new DecimalFormat("#0.00");
         public String insertNameAndSurname() throws IOException{
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        while (nameSurname == null || nameSurname.length() == 0) {
                             for (int i = 0; i < nameSurname.length(); i++) {
                             if ((nameSurname.charAt(i) > 'a') && (nameSurname.charAt(i) < 'Z')){
                                       inputCorrect = true;
                        else{
                        inputCorrect = false;
                        break;
                        try {
                             BufferedReader inStream = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("Please enter your name and surname: ");
                             nameSurname = inStream.readLine();
                             inputCorrect = true;
                        }catch (IOException ex) {
                             System.out.println("You did not enter your name and surname, " + nameSurname + " is not a name, please enter your name and surname :");
                             inputCorrect = false;
                        System.out.println("\nA warm welcome " + nameSurname + " ,todays date is: " + format1.format(now));
                        System.out.println("and the time is now exactly " + format2.format(timeIn) + ".");
                        return nameSurname;
              public String inputNumber1() throws IOException {
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        try {
                             BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("\nPlease enter a number you want to do a calculation with and hit <ENTER>: ");
                             num1 = br.readLine();
                             double number1 = Double.parseDouble(num1);
                             System.out.println("\nThe number you have entered is: " + number1);
                             inputCorrect = true;
                        } catch (NumberFormatException nfe) {
                             System.out.println("\nYou did not enter a valid number: " + "\""+ num1 + "\" is not a number!!");
                             inputCorrect = false;
                        return num1;
         public String calculatorChoice() throws IOException {
              System.out.println("Please select an option of what you would like to do with this number from the menu below and hit <ENTER>: ");
              System.out.println("\n*********************************************");
              System.out.println("---------------------------------------------");
              System.out.println("Please select an option from the list below: ");
              System.out.println("---------------------------------------------");
              System.out.println("1 - Add");
              System.out.println("2 - Subtract");
              System.out.println("3 - Multiply");
              System.out.println("4 - Divide (remainder included)");
              System.out.println("5 - Maximum and minimum value of two numbers");
              System.out.println("6 - Squareroot");
              System.out.println("7 - Absolute value of numbers");
              System.out.println("8 - Octal and Hexadecimal equivalent of numbers");
              System.out.println("9 - Round numbers");
              System.out.println("0 - Exit program");
              System.out.println("**********************************************");
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        try {
                             BufferedReader inStream = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("Please enter your option and hit <ENTER>: ");
                             choice1 = inStream.readLine();
                             int c1 = Integer.parseInt(choice1);
                             System.out.println("\nYou have entered choice number: " + c1);
                             inputCorrect = true;
                        } catch (NumberFormatException nfe) {
                             System.out.println("You did not enter a valid choice number: " + "\""+ choice1 + "\" is not in the list!!");
                             inputCorrect = false;
                        return choice1;
         public String inputNumber2() throws IOException {
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        try {
                             BufferedReader br2 = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("\nPlease enter another number you want to do the calculation with and hit <ENTER>: ");
                             num2 = br2.readLine();
                             double n2 = Double.parseDouble(num2);
                             System.out.println("\nThe second number you have entered is: " + n2);
                             System.out.println("\nYour numbers are: " + num1 + " and " + num2);
                             inputCorrect = true;
                        } catch (NumberFormatException nfe) {
                             System.out.println("You did not enter a valid number: " + "\""+ num2 + "\" is not a number!!");
                             inputCorrect = false;
                        return num2;
         public int Calculator() {
              int choice2 = (int) Double.parseDouble(choice1);
              switch (choice2) {
                        case 1 :
                             Add();
                             System.out.print("The answer of " + num1 + " + " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 2 :
                             Subtract();
                             System.out.print("The answer of " + num1 + " - " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 3 :
                             Multiply();
                             System.out.print("The answer of " + num1 + " * " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 4 :
                             Divide();
                             System.out.print("The answer of " + num1 + " / " + num2 + " is: " + decimals.format(answer));
                             Modulus();
                             System.out.print(" and the remainder is " + decimals.format(answer));
                             break;
                        case 5 :
                             maximumValue();
                             System.out.println("The maximum number between the numbers " + num1 + " and " + num2 + " is: " + decimals.format(answer));
                             minimumValue();
                             System.out.println("The minimum number between the numbers " + num1 + " and " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 6 :
                             Squareroot1();
                             System.out.println("The squareroot of value " + num1 + " is: " + decimals.format(answer));
                             Squareroot2();
                             System.out.println("The squareroot of value " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 7 :
                             absoluteNumber1();
                             System.out.println("The absolute number of " + num1 + " is: " + decimals.format(answer));
                             absoluteNumber2();
                             System.out.println("The absolute number of " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 8 :
                             octalEquivalent1();
                             System.out.println("The octal equivalent of " + num1 + " is: " + octalEquivalent1());
                             octalEquivalent2();
                             System.out.println("The octal equivalent of " + num2 + " is: " + octalEquivalent2());
                             hexadecimalEquivalent1();
                             System.out.println("\nThe hexadecimal equivalent of " + num1 + " is: " + hexadecimalEquivalent1());
                             hexadecimalEquivalent2();
                             System.out.println("The hexadecimal equivalent of " + num2 + " is: " + hexadecimalEquivalent2());
                             break;
                        case 9 :
                             Round1();
                             System.out.println("The rounded number of " + num1 + " is: " + decimals.format(answer));
                             Round2();
                             System.out.println("The rounded number of " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 0 :
                             if (choice2 == 0) {
                                  System.exit(1);
                             break;
                   return choice2;
              public String anotherCalculation() throws IOException {
                   boolean inputCorrect = false;
                   while (inputCorrect == false) {
                             try {                              
                                  BufferedReader br3 = new BufferedReader (new InputStreamReader(System.in));
                                  System.out.print("\nWould you like to do another calculation? Y/N ");
                                  more = br3.readLine();
                                  String s1 = "y";
                                  String s2 = "Y";
                                  if (more.equals(s1) || more.equals(s2)) {
                                       inputCorrect = true;
                                       while (inputCorrect = true){
                                            inputNumber1();
                                            System.out.println("");
                                            calculatorChoice();
                                            System.out.println("");
                                            inputNumber2();
                                            System.out.println("");
                                            Calculator();
                                            System.out.println("");
                                            anotherCalculation();
                                            System.out.println("");
                                            inputCorrect = true;
                                  } else {
                                       System.out.println("\n" + nameSurname + " thank you for using this program, you have used this program for: " + decimals.format(programRuntime()) + " seconds");
                                       System.out.println("the program will now exit, Goodbye.");
                                       System.exit(0);
                             } catch (IOException ex){
                                  System.out.println("You did not enter a valid answer: " + "\""+ more + "\" is not in the list!!");
                                  inputCorrect = false;
              return more;
         public static void main(String[] args) throws IOException {
              Project p1 = new Project();
              p1.insertNameAndSurname();
              System.out.println("");
              p1.inputNumber1();
              System.out.println("");
              p1.calculatorChoice();
              System.out.println("");
              p1.inputNumber2();
              System.out.println("");
              p1.Calculator();
                   System.out.println("");
                   p1.anotherCalculation();
                   System.out.println("");
    {code}
    *Can you please run my code for yourself and have a look at how this program is constructed*
    *and give me ANY feedback on how I can better this code(program) or if I've done anything wrong from your point of view.*
    Your help will be much appreciated.
    Thanks in advance

    Smirre wrote:
    Now my question is this: How can I restrict the user to only enter 'letters' (and spaces of course) but allow NO numbers for his/her surname??You cannot restrict the user. It is a sad fact in programming that the worst bug always sits in front of the Computer.
    What you could do is checking the input string for numbers. If it contains numbers, just reprompt for the Name.
    AND you might want to ask yourself why the heck a calculator needs to know the users Name.

  • Help with J2EE SDK 1.4 Virtual Servers please!

    H!
    Are we doomed to have just one virtual server pointing to port 80??
    I have a Win2K computer with J2EE App Server 1.4. In this computer I stopped the IIS 5.0 in order to use the HTTP Server included with the product. I also run the DNS on the same machine with 3 domains. All name resolutions for these 3 domains work fine.
    Now I want to enter to any of the 3 domains freely and execute JSP apps. But I don't want to enter ports numbers like this:
    http://www.mytest.com:8081/hello.jsp
    I just want to enter:
    http://www.mytest.com/hello.jsp
    So I defined a new http-port listener pointing to the 80 port on this server. With no SSL support.
    Name: http-port80
    IP Address: 0.0.0.0
    POrt: : 80
    Then I defined a new virtual server using the http-port listener. I set the following fields:
    ID: mytest
    Hosts: www.mytest.com
    HTTP Listener: http-port80 (This is the name of the port listener)
    Everything seems to be fine. I can enter http://www.mytest.com and call the hello.jsp it's ok.
    But then I create a new virtual server for http://www.mytest2.com exactly as the one for the www.mytest.com, except for the host field: http://www.mytest2.com
    Then when I restart the app server I got the message on the log: "Port already in use".
    I don't want to enter http://www.mytest2.com:<port> but I've read that you cannot assign the same http-listener to 2 virtual servers, so I created another listener pointing to the same port 80. But I still have the same error.
    Any ideas how to handle this?
    Am I doing something wrong on the configuration?
    Thank you very much!!

    I can help you out with this, because I just solved this problem using the Apache web server 2.0 with mod_proxy and mod_proxy_http.
    this is how the configuration works.
    setup sunone creating one virtual host for each http-listener on a different port. and make sure these ports are any port except the 80. -- we will configure apache on this port and then use it as a reverse proxy to get to our hosts.
    like this
    virtual-listener-1 - port 8081
    virtual-listener-2 - port 8082
    virtual-listener-3 - port 8083
    virtual-host-1: www1.domain.com bind to: virtual-listener-1
    virtual-host-2: www2.domain.com bind to: virtual-listener-2
    virtual-host-3: www3.domain.com bind to: virtual-listener-3
    now download apache with all the modules http://www.apache.org
    in your httpd.conf add the following lines of code.
    #the code below will tell apache to enable the proxy for your host
    <IfModule mod_proxy.c>
    # Proxy Server directives. Uncomment the following lines to
    # enable the proxy server:
    ProxyRequests On
    <Proxy *>
    Order deny,allow
    Deny from all
    Allow from www1.domain.com
    Allow from www2.domain.com
    Allow from www3.domain.com
    </Proxy>
    # Enable/disable the handling of HTTP/1.1 "Via:" headers.
    # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
    # Set to one of: Off | On | Full | Block
    ProxyVia On
    # End of proxy directives.
    </IfModule>
    NameVirtualHost *:80
    <VirtualHost *:80>
    ServerName www1.domain.com
    <Location />
    Order allow,deny
    Allow from all
    ProxyPass http://sunoneserver:8081/
    </Location>
    </VirtualHost>
    <VirtualHost *:80>
    ServerName www2.domain.com
    <Location />
    Order allow,deny
    Allow from all
    ProxyPass http://sunoneserver:8082/
    </Location>
    </VirtualHost>
    <VirtualHost *:80>
    ServerName www3.domain.com
    <Location />
    Order allow,deny
    Allow from all
    ProxyPass http://sunoneserver:8083/
    </Location>
    </VirtualHost>
    note the sunone server indicates the server where you installed sunone-as (J2EE 1.4). this will give you the result you are looking for: all three of these sites will run on port 80 and each of them will respond to a different web application on sunone.
    there are naturally limits because when you run out of ports on your application server this won't work any more but then again there are about 60000 of those free and i don't think you will be able to run that many sites on one server anyway.
    Chris.

  • Need help with MS Project

    Hi All,
    My PM has asked me to prepare a project plan but I am quite new to MS project (in fact this is the first time I am creating a complete project plan) and any project management software as such.
    My requirements is that I have three different entities (A, B, C) responsible for the tasks in the project. I have created separate custom fields for each and entered their name against the tasks. Now, I need to include % of work completed for each of them
    separately so that each task can be independently tracked against the entity responsible. Some of them are combined tasks where in A & B are to complete those and some are individual.
    For example, Task 1: A - 50%, B - 30%, C - 60% 
    Task 2: B - 75% etc.
    So I added % of Work Completed against each entity (in adjacent columns), but when I update one it gets reflected in the other columns as well.
    Is this the right way to do it? Is there any other way to do it? Plz help.
    Regards,
    Ahmed

    Hi Ahmed,
    If I understand your question correctly, I think you can use Task Usage view to manage individual/entity % work completed against a particular task.
    I have tried to put together an example:
    I have assigned the entities (resources) against each task
    and then used the Task Usage where I've inserted the %work completed to track entities (resources) against each task
    There are also other options/views that can be used, like Resource Usage
    Hope this helps
    Paul

  • Help with GUI project.

    I need help with JcomboBox when I select the Exit in the File box it will open
    //inner class
    class exitListener implements ActionListener {
    I have the part of the parts of statement but I don't know how to assign the Keystoke. here is that part of the code
    filemenu.setMnemonic(KeyEvent.VK_X);Here is my code...
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class MyFrame extends JFrame {
         String[] file = { "New", "Open", "Exit" };//items for file
        String[] edit = { "Cut", "Copy", "Paste" };//items for edit
        JComboBox filemenu = new JComboBox();
        JComboBox editmenu = new JComboBox();
         public MyFrame(String title) {
              super(title);
              this.setSize(250, 250); //sets the size for the frame
              this.setLocation(200, 200);//location where frame is at
              this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              // setup contents
              makeComponents();
              initComponents();
              buildGUI();
              // display
              this.setVisible(true);
         private void makeComponents() {
              JPanel pane = new JPanel();
    //          file menu section
              filemenu = new JComboBox();
            JLabel fileLabel = new JLabel();
            pane.add(fileLabel);
            for (int i = 0; i < file.length; i++)
                 filemenu.addItem(file);
    pane.add(filemenu);
    add(pane);
    setVisible(true);
    //edit menu section
    editmenu = new JComboBox();
    JLabel editLabel = new JLabel();
    pane.add(editLabel);
    for (int i = 0; i < edit.length; i++)
         editmenu.addItem(edit[i]);
    pane.add(editmenu);
    add(pane);
    setVisible(true);
         private void initComponents() {
              filemenu.addActionListener(new exitListener());
         //inner class
    class exitListener implements ActionListener {
    public void actionPerformed(ActionEvent arg0) {
    int x = JOptionPane.showOptionDialog(MyFrame.this, "Exit Program?",
    "Exit Request", JOptionPane.YES_NO_OPTION,
    JOptionPane.QUESTION_MESSAGE, null, null,
    JOptionPane.NO_OPTION);
    if (x == JOptionPane.YES_OPTION) {
    MyFrame.this.dispose();
         private void buildGUI() {
              Container cont = this.getContentPane();// set gui components into the frame
              this.setLayout(new FlowLayout(FlowLayout.LEFT));// Comp are added to the frame
              cont.add(filemenu);
              cont.add(editmenu);
         // / inner classes
    public class ButtonFrame {
         public static void main(String[] args) {
              MyFrame f1 = new MyFrame("This is my Project for GUI");
    Thanks
    SandyR.

    One way is to
    1) pass a reference of the Window object to the USDListener class, and set a local Window variable say call it window, to this reference.
    2) Give the Window class a public method that returns a String and allows you to get the text from USDField. Same to allow you to set text on the euroField.
    3) Give the Listener class a Converter object.

  • HELP WITH J2EE

    YESTARDAY I WAS WORKING WITH THE VISUAL ADMI NISTRATOR. THE SERVER SHUTDOWN BECAUSE HAD A FAILD WITH THE ENERGY. WHEN THE SERVER START AGAIN, I CANNOT GET UP, THE J2EE, MY SYSTEM IS A PI 7.00, WHEN I TRY TO ENTER TO EXCHANGE PROFILE, I CANNOT, THE BROWSER SHOW ME, A MESSAGE THAT SAY THE URL DOES NOT EXIT. WHEN I SEE THE TRANSACTION SMMS, DOES NOT SHOW ME THE J2EE.
    SOMEONE COULD HELP ME.
    THANKS
    ATTM LITTLE JUANITO

    Thanks for your attention.
    my system is AIX 5.300.
    this is the content of  dev_server0
    [Thr 47292] ***LOG Q0I=> NiPConnect: connect (79: A remote host refused an attem
    pted connect operation.) [nixxi.cpp 2460]
    [Thr 47292] *** ERROR => NiPConnect: SiConnect failed for hdl 60 / sock 114
        (SI_ECONN_REFUSE/79; I4; ST; 172.16.204.56:3300) [nixxi.cpp    2460]
    [Thr 47292] *** ERROR => GwIConnect: GwConnect to sapsrqdb / sapgw00 failed (rc=
    NIECONN_REFUSED) [gwxx_mt.c    296]
    [Thr 47292] ***LOG S0T=> GwIConnect, GwConnect (-0010) [gwxx_mt.c    297]
    [Thr 47292] ***LOG S0R=> GwIConnect, GwConnect () [gwxx_mt.c    299]
    [Thr 47292] ***LOG S0S=> GwIConnect, GwConnect (sapgw00) [gwxx_mt.c    301]
    [Thr 47292] ***LOG S90=> SAP_CMREGTP3, GwIConnect ( 236) [r3cpic_mt.c  9624]
    [Thr 47292]
    [Thr 47292] *  ERROR       partner 'sapsrqdb:sapgw00' not reached
    [Thr 47292] *
    TIME        Tue Apr 15 15:51:48 2008
    [Thr 47292] *  RELEASE     700
    [Thr 47292] *  COMPONENT   NI (network interface)
    [Thr 47292] *  VERSION     38
    [Thr 47292] *  RC          -10
    [Thr 47292] *  MODULE      nixxi.cpp
    [Thr 47292] *  LINE        2460
    [Thr 47292] *  DETAIL      NiPConnect
    [Thr 47292] *  SYSTEM CALL connect
    [Thr 47292] *  ERRNO       79
    [Thr 47292] *  ERRNO TEXT  A remote host refused an attempted connect operation.
    [Thr 47292] *  COUNTER     55
    [Thr 47292] *
    [Thr 47292] ********************************************************************
    [Thr 47292] Tue Apr 15 15:51:50 2008
    [Thr 47292] ***LOG Q0I=> NiPConnect: connect (79: A remote host refused an attem
    pted connect operation.) [nixxi.cpp 2460]
    [Thr 47292] *** ERROR => NiPConnect: SiConnect failed for hdl 71 / sock 95
        (SI_ECONN_REFUSE/79; I4; ST; 172.16.204.56:3300) [nixxi.cpp    2460]
    [Thr 47292] *** ERROR => GwIConnect: GwConnect to sapsrqdb / sapgw00 failed (rc=
    NIECONN_REFUSED) [gwxx_mt.c    296]
    [Thr 47292] ***LOG S0T=> GwIConnect, GwConnect (-0010) [gwxx_mt.c    297]
    [Thr 47292] ***LOG S0R=> GwIConnect, GwConnect () [gwxx_mt.c    299]
    [Thr 47292] ***LOG S0S=> GwIConnect, GwConnect (sapgw00) [gwxx_mt.c    301]
    [Thr 47292] ***LOG S90=> SAP_CMREGTP3, GwIConnect ( 236) [r3cpic_mt.c  9624]
    [Thr 47292]
    [Thr 47292] *  ERROR       partner 'sapsrqdb:sapgw00' not reached
    [Thr 47292] *
    TIME        Tue Apr 15 15:51:50 2008
    [Thr 47292] *  RELEASE     700
    [Thr 47292] *  COMPONENT   NI (network interface)
    [Thr 47292] *  VERSION     38
    [Thr 47292] *  RC          -10
    [Thr 47292] *  MODULE      nixxi.cpp
    [Thr 47292] *  LINE        2460
    [Thr 47292] *  DETAIL      NiPConnect
    [Thr 47292] *  SYSTEM CALL connect
    [Thr 47292] *  ERRNO       79
    [Thr 47292] *  ERRNO TEXT  A remote host refused an attempted connect operation.
    [Thr 47292] *  COUNTER     57
    [Thr 47292] *
    [Thr 47292] ********************************************************************
    [Thr 47292] ***LOG Q0I=> NiPConnect: connect (79: A remote host refused an attem
    pted connect operation.) [nixxi.cpp 2460]
    [Thr 47292] *** ERROR => NiPConnect: SiConnect failed for hdl 71 / sock 95
        (SI_ECONN_REFUSE/79; I4; ST; 172.16.204.56:3300) [nixxi.cpp    2460]
    [Thr 47292] *** ERROR => GwIConnect: GwConnect to sapsrqdb / sapgw00 failed (rc=
    NIECONN_REFUSED) [gwxx_mt.c    296]
    [Thr 47292] ***LOG S0T=> GwIConnect, GwConnect (-0010) [gwxx_mt.c    297]
    [Thr 47292] ***LOG S0R=> GwIConnect, GwConnect () [gwxx_mt.c    299]
    [Thr 47292] ***LOG S0S=> GwIConnect, GwConnect (sapgw00) [gwxx_mt.c    301]
    [Thr 47292] ***LOG S90=> SAP_CMREGTP3, GwIConnect ( 236) [r3cpic_mt.c  9624]
    [Thr 47292]
    [Thr 47292] *  ERROR       partner 'sapsrqdb:sapgw00' not reached
    [Thr 47292] *
    TIME        Tue Apr 15 15:51:50 2008
    [Thr 47292] *  RELEASE     700
    [Thr 47292] *  COMPONENT   NI (network interface)
    [Thr 47292] *  VERSION     38
    [Thr 47292] *  RC          -10
    [Thr 47292] *  MODULE      nixxi.cpp
    [Thr 47292] *  LINE        2460
    [Thr 47292] *  DETAIL      NiPConnect
    [Thr 47292] *  SYSTEM CALL connect
    [Thr 47292] *  ERRNO       79
    [Thr 47292] *  ERRNO TEXT  A remote host refused an attempted connect operation.
    [Thr 47292] *  COUNTER     59
    [Thr 47292] *
    [Thr 47292] ********************************************************************
    [Thr 47292] ***LOG Q0I=> NiPConnect: connect (79: A remote host refused an attem
    pted connect operation.) [nixxi.cpp 2460]
    [Thr 47292] *** ERROR => NiPConnect: SiConnect failed for hdl 71 / sock 95
        (SI_ECONN_REFUSE/79; I4; ST; 172.16.204.56:3300) [nixxi.cpp    2460]
    [Thr 47292] *** ERROR => GwIConnect: GwConnect to sapsrqdb / sapgw00 failed (rc=
    NIECONN_REFUSED) [gwxx_mt.c    296]
    [Thr 47292] ***LOG S0T=> GwIConnect, GwConnect (-0010) [gwxx_mt.c    297]
    [Thr 47292] ***LOG S0R=> GwIConnect, GwConnect () [gwxx_mt.c    299]
    [Thr 47292] ***LOG S0S=> GwIConnect, GwConnect (sapgw00) [gwxx_mt.c    301]
    [Thr 47292] ***LOG S90=> SAP_CMREGTP3, GwIConnect ( 236) [r3cpic_mt.c  9624]
    [Thr 47292]
    [Thr 47292] *  ERROR       partner 'sapsrqdb:sapgw00' not reached
    [Thr 47292] *
    TIME        Tue Apr 15 15:51:50 2008
    [Thr 47292] *  RELEASE     700
    [Thr 47292] *  COMPONENT   NI (network interface)
    [Thr 47292] *  VERSION     38
    [Thr 47292] *  RC          -10
    [Thr 47292] *  MODULE      nixxi.cpp
    [Thr 47292] *  LINE        2460
    [Thr 47292] *  DETAIL      NiPConnect
    [Thr 47292] *  SYSTEM CALL connect
    [Thr 47292] *  ERRNO       79
    [Thr 47292] *  ERRNO TEXT  A remote host refused an attempted connect operation.
    [Thr 47292] *  COUNTER     61
    [Thr 47292] *
    [Thr 47292] ********************************************************************
    [Thr 47292] ***LOG Q0I=> NiPConnect: connect (79: A remote host refused an attem
    pted connect operation.) [nixxi.cpp 2460]
    [Thr 47292] *** ERROR => NiPConnect: SiConnect failed for hdl 71 / sock 95
        (SI_ECONN_REFUSE/79; I4; ST; 172.16.204.56:3300) [nixxi.cpp    2460]
    [Thr 47292] *** ERROR => GwIConnect: GwConnect to sapsrqdb / sapgw00 failed (rc=
    NIECONN_REFUSED) [gwxx_mt.c    296]
    [Thr 47292] ***LOG S0T=> GwIConnect, GwConnect (-0010) [gwxx_mt.c    297]
    [Thr 47292] ***LOG S0R=> GwIConnect, GwConnect () [gwxx_mt.c    299]
    [Thr 47292] ***LOG S0S=> GwIConnect, GwConnect (sapgw00) [gwxx_mt.c    301]
    [Thr 47292] ***LOG S90=> SAP_CMREGTP3, GwIConnect ( 236) [r3cpic_mt.c  9624]
    [Thr 47292]
    [Thr 47292] *  ERROR       partner 'sapsrqdb:sapgw00' not reached
    [Thr 47292] *
    TIME        Tue Apr 15 15:51:50 2008
    [Thr 47292] *  RELEASE     700
    [Thr 47292] *  COMPONENT   NI (network interface)
    [Thr 47292] *  VERSION     38
    [Thr 47292] *  RC          -10
    [Thr 47292] *  MODULE      nixxi.cpp
    [Thr 47292] *  LINE        2460
    [Thr 47292] *  DETAIL      NiPConnect
    [Thr 47292] *  SYSTEM CALL connect
    [Thr 47292] *  ERRNO       79
    [Thr 47292] *  ERRNO TEXT  A remote host refused an attempted connect operation.
    [Thr 47292] *  COUNTER     63
    [Thr 47292] *
    [Thr 47292] ********************************************************************
    [Thr 47292] Tue Apr 15 15:51:52 2008
    [Thr 47292] ***LOG Q0I=> NiPConnect: connect (79: A remote host refused an attem
    pted connect operation.) [nixxi.cpp 2460]
    [Thr 47292] *** ERROR => NiPConnect: SiConnect failed for hdl 71 / sock 96
        (SI_ECONN_REFUSE/79; I4; ST; 172.16.204.56:3300) [nixxi.cpp    2460]
    [Thr 47292] *** ERROR => GwIConnect: GwConnect to sapsrqdb / sapgw00 failed (rc=
    NIECONN_REFUSED) [gwxx_mt.c    296]
    [Thr 47292] ***LOG S0T=> GwIConnect, GwConnect (-0010) [gwxx_mt.c    297]
    [Thr 47292] ***LOG S0R=> GwIConnect, GwConnect () [gwxx_mt.c    299]
    [Thr 47292] ***LOG S0S=> GwIConnect, GwConnect (sapgw00) [gwxx_mt.c    301]
    [Thr 47292] ***LOG S90=> SAP_CMREGTP3, GwIConnect ( 236) [r3cpic_mt.c  9624]
    [Thr 47292]
    [Thr 47292] *  ERROR       partner 'sapsrqdb:sapgw00' not reached
    [Thr 47292] *
    TIME        Tue Apr 15 15:51:52 2008
    [Thr 47292] *  RELEASE     700
    [Thr 47292] *  COMPONENT   NI (network interface)
    [Thr 47292] *  VERSION     38
    [Thr 47292] *  RC          -10
    [Thr 47292] *  MODULE      nixxi.cpp
    [Thr 47292] *  LINE        2460
    [Thr 47292] *  DETAIL      NiPConnect
    [Thr 47292] *  SYSTEM CALL connect
    [Thr 47292] *  ERRNO       79
    [Thr 47292] *  ERRNO TEXT  A remote host refused an attempted connect operation.
    [Thr 47292] *  COUNTER     65
    [Thr 47292] *
    [Thr 47292] ********************************************************************
    [Thr 47292] ***LOG Q0I=> NiPConnect: connect (79: A remote host refused an attem
    pted connect operation.) [nixxi.cpp 2460]
    [Thr 47292] *** ERROR => NiPConnect: SiConnect failed for hdl 71 / sock 96
        (SI_ECONN_REFUSE/79; I4; ST; 172.16.204.56:3300) [nixxi.cpp    2460]
    [Thr 47292] *** ERROR => GwIConnect: GwConnect to sapsrqdb / sapgw00 failed (rc=
    NIECONN_REFUSED) [gwxx_mt.c    296]
    [Thr 47292] ***LOG S0T=> GwIConnect, GwConnect (-0010) [gwxx_mt.c    297]
    [Thr 47292] ***LOG S0R=> GwIConnect, GwConnect () [gwxx_mt.c    299]
    [Thr 47292] ***LOG S0S=> GwIConnect, GwConnect (sapgw00) [gwxx_mt.c    301]
    [Thr 47292] ***LOG S90=> SAP_CMREGTP3, GwIConnect ( 236) [r3cpic_mt.c  9624]
    [Thr 47292]
    [Thr 47292] *  ERROR       partner 'sapsrqdb:sapgw00' not reached
    [Thr 47292] *
    TIME        Tue Apr 15 15:51:52 2008
    [Thr 47292] *  RELEASE     700
    [Thr 47292] *  COMPONENT   NI (network interface)
    [Thr 47292] *  VERSION     38
    [Thr 47292] *  RC          -10
    [Thr 47292] *  MODULE      nixxi.cpp
    [Thr 47292] *  LINE        2460
    [Thr 47292] *  DETAIL      NiPConnect
    [Thr 47292] *  SYSTEM CALL connect
    [Thr 47292] *  ERRNO       79
    [Thr 47292] *  ERRNO TEXT  A remote host refused an attempted connect operation.
    [Thr 47292] *  COUNTER     67
    [Thr 47292] *
    [Thr 47292] ********************************************************************
    [Thr 47292] ***LOG Q0I=> NiPConnect: connect (79: A remote host refused an attem
    pted connect operation.) [nixxi.cpp 2460]
    [Thr 47292] *** ERROR => NiPConnect: SiConnect failed for hdl 71 / sock 96
        (SI_ECONN_REFUSE/79; I4; ST; 172.16.204.56:3300) [nixxi.cpp    2460]
    [Thr 47292] *** ERROR => GwIConnect: GwConnect to sapsrqdb / sapgw00 failed (rc=
    NIECONN_REFUSED) [gwxx_mt.c    296]
    [Thr 47292] ***LOG S0T=> GwIConnect, GwConnect (-0010) [gwxx_mt.c    297]
    [Thr 47292] ***LOG S0R=> GwIConnect, GwConnect () [gwxx_mt.c    299]
    [Thr 47292] ***LOG S0S=> GwIConnect, GwConnect (sapgw00) [gwxx_mt.c    301]
    [Thr 47292] ***LOG S90=> SAP_CMREGTP3, GwIConnect ( 236) [r3cpic_mt.c  9624]
    [Thr 47292]
    [Thr 47292] *  ERROR       partner 'sapsrqdb:sapgw00' not reached
    [Thr 47292] *
    TIME        Tue Apr 15 15:51:52 2008
    [Thr 47292] *  RELEASE     700
    [Thr 47292] *  COMPONENT   NI (network interface)
    [Thr 47292] *  VERSION     38
    [Thr 47292] *  RC          -10
    [Thr 47292] *  MODULE      nixxi.cpp
    [Thr 47292] *  LINE        2460
    [Thr 47292] *  DETAIL      NiPConnect
    [Thr 47292] *  SYSTEM CALL connect
    [Thr 47292] *  ERRNO       79
    [Thr 47292] *  ERRNO TEXT  A remote host refused an attempted connect operation.
    [Thr 47292] *  COUNTER     69
    [Thr 47292] *
    [Thr 47292] ********************************************************************
    [Thr 47292] ***LOG Q0I=> NiPConnect: connect (79: A remote host refused an attem
    pted connect operation.) [nixxi.cpp 2460]
    [Thr 47292] *** ERROR => NiPConnect: SiConnect failed for hdl 71 / sock 96
        (SI_ECONN_REFUSE/79; I4; ST; 172.16.204.56:3300) [nixxi.cpp    2460]
    [Thr 47292] *** ERROR => GwIConnect: GwConnect to sapsrqdb / sapgw00 failed (rc=
    NIECONN_REFUSED) [gwxx_mt.c    296]
    [Thr 47292] ***LOG S0T=> GwIConnect, GwConnect (-0010) [gwxx_mt.c    297]
    [Thr 47292] ***LOG S0R=> GwIConnect, GwConnect () [gwxx_mt.c    299]
    [Thr 47292] ***LOG S0S=> GwIConnect, GwConnect (sapgw00) [gwxx_mt.c    301]
    [Thr 47292] ***LOG S90=> SAP_CMREGTP3, GwIConnect ( 236) [r3cpic_mt.c  9624]
    [Thr 47292]
    [Thr 47292] *  ERROR       partner 'sapsrqdb:sapgw00' not reached
    [Thr 47292] *
    TIME        Tue Apr 15 15:51:52 2008
    [Thr 47292] *  RELEASE     700
    [Thr 47292] *  COMPONENT   NI (network interface)
    [Thr 47292] *  VERSION     38
    [Thr 47292] *  RC          -10
    [Thr 47292] *  MODULE      nixxi.cpp
    [Thr 47292] *  LINE        2460
    [Thr 47292] *  DETAIL      NiPConnect
    [Thr 47292] *  SYSTEM CALL connect
    [Thr 47292] *  ERRNO       79
    [Thr 47292] *  ERRNO TEXT  A remote host refused an attempted connect operation.
    [Thr 47292] *  COUNTER     71
    [Thr 47292] *
    [Thr 47292] ********************************************************************
    [Thr 20306] Tue Apr 15 15:51:57 2008
    [Thr 20306] JHVM_RegisterNatives: registering methods in com.sap.bc.proj.jstartu
    p.sadm.ShmCache
    [Thr 67891] Tue Apr 15 15:52:01 2008
    [Thr 67891] JLaunchISetState: change state from [Stopping (5)] to [Stopped (6)]
    [Thr 67891] Tue Apr 15 15:52:03 2008
    [Thr 67891] JLaunchIExitJava: exit hook is called (rc = 0)
    [Thr 67891] SigISetIgnoreAction : SIG_IGN for signal 20
    [Thr 67891] JLaunchCloseProgram: good bye (exitcode = 0)
    sapsrqdb:piqadm>
    this is the content of dev_dispatcher.
    trc file: "/usr/sap/PIQ/DVEBMGS00/work/dev_dispatcher", trc level: 1, release: "
    700"
    node name   : ID2396800
    pid         : 934092
    system name : PIQ
    system nr.  : 00
    started at  : Tue Apr 15 09:32:34 2008
    arguments         :
              arg[00] : /usr/sap/PIQ/DVEBMGS00/exe/jlaunch
              arg[01] : pf=/usr/sap/PIQ/SYS/profile/PIQ_DVEBMGS00_sapsrqdb
              arg[02] : -DSAPINFO=PIQ_00_dispatcher
              arg[03] : pf=/usr/sap/PIQ/SYS/profile/PIQ_DVEBMGS00_sapsrqdb
              arg[04] : -DSAPSTART=1
              arg[05] : -DCONNECT_PORT=51973
              arg[06] : -DSAPSYSTEM=00
              arg[07] : -DSAPSYSTEMNAME=PIQ
              arg[08] : -DSAPMYNAME=sapsrqdb_PIQ_00
              arg[09] : -DSAPPROFILE=/usr/sap/PIQ/SYS/profile/PIQ_DVEBMGS00_sapsrqda
    rg[10] : -DFRFC_FALLBACK=ON
              arg[11] : -DFRFC_FALLBACK_HOST=localhost
    [Thr  1] Tue Apr 15 09:32:34 2008
    [Thr  1] *** WARNING => INFO: Unknown property [instance.box.number=PIQDVEBMGS00
    sapsrqdb] [jstartxx_mt. 841]
    [Thr  1] *** WARNING => INFO: Unknown property [instance.en.host=sapsrqdb] [jsta
    rtxx_mt. 841]
    [Thr  1] *** WARNING => INFO: Unknown property [instance.en.port=3201] [jstartxx
    _mt. 841]
    [Thr  1] *** WARNING => INFO: Unknown property [instance.system.id=0] [jstartxx_
    mt. 841]
    JStartupReadInstanceProperties: read instance properties [/usr/sap/PIQ/DVEBMGS00
    /j2ee/cluster/instance.properties]
    -> ms host    : sapsrqdb
    -> ms port    : 3901
    -> OS libs    : /usr/sap/PIQ/DVEBMGS00/j2ee/os_libs
    -> Admin URL  :
    -> run mode   : normal
    -> run action : NONE
    -> enabled    : yes
    Used property files
    -> files [00] : /usr/sap/PIQ/DVEBMGS00/j2ee/cluster/instance.properties
    Instance properties
    -> ms host    : sapsrqdb
    -> ms port    : 3901
    -> os libs    : /usr/sap/PIQ/DVEBMGS00/j2ee/os_libs
    -> admin URL  :
    -> run mode   : normal
    -> run action : NONE
    -> enabled    : yes
    Bootstrap nodes
    -> [00] bootstrap            : /usr/sap/PIQ/DVEBMGS00/j2ee/cluster/instance.prop
    erties
    -> [01] bootstrap_ID2396800  : /usr/sap/PIQ/DVEBMGS00/j2ee/cluster/instance.prop
    erties
    -> [02] bootstrap_ID2396850  : /usr/sap/PIQ/DVEBMGS00/j2ee/cluster/instance.prop
    erties
    Worker nodes
    -> [00] ID2396800            : /usr/sap/PIQ/DVEBMGS00/j2ee/cluster/instance.prop
    erties
    -> [01] ID2396850            : /usr/sap/PIQ/DVEBMGS00/j2ee/cluster/instance.prop
    erties
    [Thr  1] JLaunchRequestQueueInit: create named pipe for ipc
    [Thr  1] JLaunchRequestQueueInit: create pipe listener thread
    [Thr 258] JLaunchRequestFunc: Thread 258 started as listener thread for np messa
    ges.
    [Thr 515] WaitSyncSemThread: Thread 515 started as semaphore monitor thread.
    [Thr  1] SigISetDefaultAction : default handling for signal 20
    [Thr  1] NiInit3: NI already initialized; param 'maxHandles' ignored (1;202)
    [Thr  1] CPIC (version=700.2006.09.13)
    [Thr  1] [Node: dispatcher] java home is set by profile parameter
            Java Home: /usr/java14_64
    [Thr  1] JStartupICheckFrameworkPackage: can't find framework package /usr/sap/P
    IQ/DVEBMGS00/exe/jvmx.jar
    JStartupIReadSection: read node properties [ID2396800]
    -> node name          : dispatcher
    -> node type          : dispatcher
    -> node execute       : yes
    -> jlaunch parameters :
    -> java path          : /usr/java14_64
    -> java parameters    : -Xj9 -Xgcpolicy:gencon -verbose:gc -Xmn70M -Djava.securi
    ty.policy=.\java.policy -Djava.security.egd=file:/dev/urandom -Djco.jarm=1
    -> java vm version    : J2RE 1.4.2 IBM J9 2.3 AIX ppc64-64 j9ap64142ifx-20070920
    (JIT enabled)
    -> java vm vendor     : IBM J9 VM (IBM Corporation)
    -> java vm type       : server
    -> java vm cpu        : ppc64
    -> heap size          : 200M
    -> init heap size     : 200M
    -> root path          : /usr/sap/PIQ/DVEBMGS00/j2ee/cluster/dispatcher
    -> class path         : ./bin/boot/boot.jar:./bin/system/bytecode.jar:.
    -> OS libs path       : /usr/sap/PIQ/DVEBMGS00/j2ee/os_libs
    -> main class         : com.sap.engine.boot.Start
    -> framework class    : com.sap.bc.proj.jstartup.JStartupFramework
    -> registr. class     : com.sap.bc.proj.jstartup.JStartupNatives
    -> framework path     : /usr/sap/PIQ/DVEBMGS00/exe/jstartup.jar:/usr/sap/PIQ/DVE
    BMGS00/exe/jvmx.jar
    -> shutdown class     : com.sap.engine.boot.Start
    -> parameters         :
    -> debuggable         : no
    -> debug mode         : no
    -> debug port         : 50000
    -> shutdown timeout   : 120000
    [Thr  1] JLaunchISetDebugMode: set debug mode [no]
    [Thr 772] JLaunchIStartFunc: Thread 772 started as Java VM thread.
    JHVM_LoadJavaVM: VM Arguments of node [dispatcher]
    -> stack   : 1048576 Bytes
    -> arg[  0]: exit
    -> arg[  1]: abort
    -> arg[  2]: vfprintf
    -> arg[  3]: -Xj9
    -> arg[  4]: -Xgcpolicy:gencon
    -> arg[  5]: -verbose:gc
    -> arg[  6]: -Xmn70M
    -> arg[  7]: -Djava.security.policy=.\java.policy
    -> arg[  8]: -Djava.security.egd=file:/dev/urandom
    -> arg[  9]: -Djco.jarm=1
    -> arg[ 10]: -Dsys.global.dir=/usr/sap/PIQ/SYS/global
    -> arg[ 11]: -Dapplication.home=/usr/sap/PIQ/DVEBMGS00/exe
    -> arg[ 12]: -Djava.class.path=/usr/sap/PIQ/DVEBMGS00/exe/jstartup.jar:/usr/sap/
    PIQ/DVEBMGS00/exe/jvmx.jar:./bin/boot/boot.jar:./bin/system/bytecode.jar:.
    -> arg[ 13]: -Djava.library.path=/usr/java14_64/jre/bin:/usr/java14_64/jre/bin:/
    usr/java14_64/jre/bin/classic:/usr/java14_64/jre/bin:/usr/sap/PIQ/DVEBMGS00/exe:
    /usr/sap/PIQ/DVEBMGS00/exe:/usr/sap/PIQ/DVEBMGS00/exe:/software/install/PI/sapin
    st_exe.315468.1206236735:/usr/sap/PIQ/SYS/exe/run:/oracle/client/10x_64/instantc
    lient:/usr/java14_64/jre/bin/j9vm:/usr/sap/PIQ/DVEBMGS00/exe::/usr/lib:/usr/sap/
    PIQ/DVEBMGS00/j2ee/os_libs:/usr/sap/PIQ/DVEBMGS00/exe:/usr/sap/PIQ/DVEBMGS00/exe
    :/usr/sap/PIQ/DVEBMGS00/exe:/usr/lib:/lib:/usr/sap/PIQ/SYS/exe/run:/oracle/clien
    -> arg[ 14]: -Dmemory.manager=200M
    -> arg[ 15]: -Xmx200M
    -> arg[ 16]: -Xms200M
    -> arg[ 17]: -DLoadBalanceRestricted=no
    -> arg[ 18]: -Djstartup.mode=JCONTROL
    -> arg[ 19]: -Djstartup.ownProcessId=934092
    -> arg[ 20]: -Djstartup.ownHardwareId=F1751266886
    -> arg[ 21]: -Djstartup.whoami=dispatcher
    -> arg[ 22]: -Djstartup.debuggable=no
    -> arg[ 23]: -DSAPINFO=PIQ_00_dispatcher
    -> arg[ 24]: -DSAPSTART=1
    -> arg[ 25]: -DCONNECT_PORT=51973
    -> arg[ 26]: -DSAPSYSTEM=00
    -> arg[ 27]: -DSAPSYSTEMNAME=PIQ
    -> arg[ 28]: -DSAPMYNAME=sapsrqdb_PIQ_00
    -> arg[ 29]: -DSAPPROFILE=/usr/sap/PIQ/SYS/profile/PIQ_DVEBMGS00_sapsrqdb
    -> arg[ 30]: -DFRFC_FALLBACK=ON
    -> arg[ 31]: -DFRFC_FALLBACK_HOST=localhost
    -> arg[ 32]: -DSAPSTARTUP=1
    -> arg[ 33]: -DSAPSYSTEM=00
    -> arg[ 34]: -DSAPSYSTEMNAME=PIQ
    -> arg[ 35]: -DSAPMYNAME=sapsrqdb_PIQ_00
    -> arg[ 36]: -DSAPDBHOST=sapsrqdb
    -> arg[ 37]: -Dj2ee.dbhost=sapsrqdb
    [Thr 772] Tue Apr 15 09:32:35 2008
    [Thr 772] JHVM_LoadJavaVM: Java VM created OK.
    JHVM_BuildArgumentList: main method arguments of node [dispatcher]
    [Thr 4114] Tue Apr 15 09:32:42 2008
    [Thr 4114] JHVM_RegisterNatives: registering methods in com.sap.bc.krn.perf.Perf
    Times
    [Thr 4114] JHVM_RegisterNatives: registering methods in com.sap.bc.proj.jstartup
    .JStartupFramework
    [Thr 4114] JLaunchISetClusterId: set cluster id 2396800
    [Thr 4114] JLaunchISetState: change state from [Initial (0)] to [Waiting for sta
    rt (1)]
    [Thr 4114] JLaunchISetState: change state from [Waiting for start (1)] to [Start
    ing (2)]
    [Thr 11054] Tue Apr 15 09:32:48 2008
    [Thr 11054] JLaunchISetTelnetPort: set telnet port 50008
    [Thr 11054] JLaunchISetTelnetPort: set telnet port 50008
    [Thr 8998] Tue Apr 15 09:32:49 2008
    [Thr 8998] JLaunchISetP4Port: set p4 port 50004
    [Thr 13881] Tue Apr 15 09:32:52 2008
    [Thr 13881] JLaunchISetHttpPort: set http port 50000
    [Thr 13881] JLaunchISetHttpsPort: set https port 50001
    [Thr 4114] Tue Apr 15 09:32:56 2008
    [Thr 4114] JLaunchISetState: change state from [Starting (2)] to [Running (3)]
    [Thr 11568] Tue Apr 15 09:33:26 2008
    [Thr 11568] JLaunchISetP4Port: set p4 port 50004
    [Thr 13367] Tue Apr 15 09:35:18 2008
    [Thr 13367] JLaunchISetHttpPort: set http port 50000
    [Thr 13367] JLaunchISetHttpsPort: set https port 50001
    [Thr 258] Tue Apr 15 13:48:51 2008
    [Thr 258] JLaunchRequestFunc: receive command:17, argument:0 from pid:1482990
    [Thr 258] JLaunchIShutdownInvoke: set shutdown interval (stop:1208285331/end:120
    8285451/TO:120)
    [Thr 258] JLaunchProcessCommand: Invoke VM Shutdown
    [Thr 258] JHVM_FrameworkShutdownDirect: invoke direct shutdown
    [Thr 8563] JLaunchISetState: change state from [Running (3)] to [Waiting for sto
    p (4)]
    [Thr 8563] JLaunchISetState: change state from [Waiting for stop (4)] to [Stoppi
    ng (5)]
    [Thr 8998] JLaunchISetHttpPort: set http port 50000
    [Thr 8998] JLaunchISetHttpsPort: set https port 50001
    [Thr 10797] JLaunchISetHttpPort: set http port 50000
    [Thr 10797] JLaunchISetHttpsPort: set https port 50001
    [Thr 11825] JLaunchISetP4Port: set p4 port 50004
    [Thr 12853] Tue Apr 15 13:48:52 2008
    [Thr 12853] JLaunchISetP4Port: set p4 port 50004
    [Thr 10026] JLaunchISetP4Port: set p4 port 50004
    [Thr 9769] Tue Apr 15 13:48:53 2008
    [Thr 9769] JLaunchISetHttpsPort: set https port 50001
    [Thr 9769] JLaunchISetHttpPort: set http port 50000
    [Thr 6942] Tue Apr 15 13:48:58 2008
    [Thr 6942] JLaunchISetTelnetPort: set telnet port 50008
    [Thr 8998] Tue Apr 15 13:48:59 2008
    [Thr 8998] JLaunchISetHttpPort: set http port 50000
    [Thr 8563] Tue Apr 15 13:49:02 2008
    [Thr 8563] JLaunchISetState: change state from [Stopping (5)] to [Stopped (6)]
    [Thr 8563] JLaunchIExitJava: exit hook is called (rc = 0)
    [Thr 8563] SigISetIgnoreAction : SIG_IGN for signal 20
    [Thr 8563] JLaunchCloseProgram: good bye (exitcode = 0)
    this the information that i have.

  • Help with printing projects from photoshop elements

    I have been trying for a few days now to print a project from my elements 6 program and the colors are way off. I just recently got a new printer, Epson artisan 837. I didn't have this problem with my last printer. The printer prints normal from other programs, and I've tried a ton of different printing settings and I still can't get it. Help please.

    In Editor, go to Edit menu>color settings
    Check "Always Optimize Colors for Computer Screens".
    In the printer settings, check Printer Manages Colors.
    The point is that you don't want both PSE and the printer to manage colors.

  • Help with creating a management plugin in OEM.

    Hi Everyone ,
    I was trying to create a management plugin - which would monitor a WLS instance.
    So we created a plugin using the emjmxcli tool , and it worked fine.
    Background info :
    WLS side - managed server running - has 2 channels HTTP/ HTTPS - and 2 virtual hosts created : one for each channel. Applications are deployed into this virtual hosts.
    EM side - after creating a target of the particular type (from management plugin) , drilling down into the metrics gives different attributes
    eg : "com.bea:Name=Default[http],ServerRuntime=ManagedServer_1,Type=ServerChannelRuntime" ------ where ServerChannelRuntime = mbean i am monitoring.
    Among these , there are 2 attributes , one for each Channel which i specified earlier.
    Now the issue is - I need to modify the plugin target/collection xmls so to SUM up these 2 attributes (HTTP and HTTPS) , and filter out all other attributes which are shown. It takes up unnecessary space in db as well.
    So i tried - adding an <executiondescriptor> -
    <ExecutionDescriptor>
    <GetTable NAME="Metric" USE_CACHE="TRUE_IF_COLLECT"/>
        <GetView NAME="ChannelHTTP" FROM_TABLE="Metric">
            <Filter COLUMN_NAME="ObjectName" OPERATOR="EQ">com.bea:Name=Channel_HTTP_1,ServerRuntime=ManagedServer_1,Type=ServerChannelRuntime</Filter>
        </GetView>
       <GetView NAME="ChannelHTTPS" FROM_TABLE="Metric">
            <Filter COLUMN_NAME="ObjectName" OPERATOR="EQ">com.bea:Name=Channel_HTTPS_1,ServerRuntime=ManagedServer_1,Type=ServerChannelRuntime</Filter>
        </GetView>
       <JoinTables NAME="BothChannels" >
            <Table NAME="ChannelHTTP"/>
            <Table NAME="ChannelHTTPS"/>
        </JoinTables>
        <GroupBy NAME="result" FROM_TABLE="BothChannels">
            <AggregateColumn  NAME="NumberOfReq" COLUMN_NAME = "NumberOfReq" OPERATOR="SUM" />
         </GroupBy>
    </ExecutionDescriptor>But this didnt help. So if any one could help out with this , it would be great.
    I need to -
    1. Sum up 2 attributes.
    2. Filter out other attributes which appear automatically from the mbean.
    Thanks

    I found a great tutorial here:
    http://journalism.berkeley.edu/multimedia/tutorials/flash/slideshow.html

  • Need help with Hibernate project

    Can anyone help me with the errors I'm getting with my code? Here is what I have.
    package com.training.hibernate.client; import com.training.hibernate.dao.BookDAO; import com.training.hibernate.dao.PublisherDAO; import com.training.hibernate.domain.Book; import com.training.hibernate.domain.Publisher; public class BookPublisherClient { public static void main(String[] args) { // Create publishers Publisher publisher1 = new Publisher(); publisher1.setId(1); publisher1.setPublisher("Best Publishers"); PublisherDAO.createPublisher(publisher1); Publisher publisher2 = new Publisher(); publisher2.setId(2); publisher2.setPublisher("Smith and Sons Publishing"); PublisherDAO.createPublisher(publisher2); Publisher publisher3 = new Publisher(); publisher3.setId(3); publisher3.setPublisher("Really Good Publishers"); PublisherDAO.createPublisher(publisher3); // Create books Book book1 = new Book(); book1.setId(1); book1.setPublisher("Best Publishers"); book1.setTitle("Learning J2EE"); book1.setAuthor("John Smith"); BookDAO.createBook(book1); Book book2 = new Book(); book2.setId(2); book2.setPublisher("Best Publishers"); book2.setTitle("J2EE Made Easy"); book2.setAuthor("Tom Johnson"); BookDAO.createBook(book2); Book book3 = new Book(); book3.setId(3); book3.setPublisher("Smith and Sons Publishing"); book3.setTitle("J2EE Tutorial"); book3.setAuthor("Jim Van Buren"); BookDAO.createBook(book3); Book book4 = new Book(); book4.setId(4); book4.setPublisher("Smith and Sons Publishing"); book4.setTitle("Java for C++ Programmers"); book4.setAuthor("James McKinley"); BookDAO.createBook(book4); Book book5 = new Book(); book5.setId(5); book5.setPublisher("Smith and Sons Publishing"); book5.setTitle("J2EE"); book5.setAuthor("Tom Adams"); BookDAO.createBook(book5); Book book6 = new Book(); book6.setId(6); book6.setPublisher("Really Good Publishers"); book6.setTitle("So You Wanna Be A Java Programmer!"); book6.setAuthor("William Wilson"); BookDAO.createBook(book6); Book book7 = new Book(); book7.setId(7); book7.setPublisher("Really Good Publishers"); book7.setTitle("Learning J2EE"); book7.setAuthor("John Smith"); BookDAO.createBook(book7); // Test PublisherDAO's ability to list a publisher's books PublisherDAO.listBooksByPublisher("Smith and Sons Publishing"); // Test Book DAO's ability to list a book's publisher BookDAO.getPublisherById(6); } }
    <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" > <hibernate-mapping package=""> <class name="com.training.hibernate.domain.Publisher" table="publisher"> <id name="id"> <generator class="assigned" /> </id> <property name="message" type="string" column="publisher"></property> <property name="bookSet" column="bookSet"></property> <many-to-one name="book" column="bookId" update="false" /> <set name="books" table="book" inverse="true" lazy="true" order-by="bookId"> <key column="publisher" /> <one-to-many class="Book" /> </set> </class> </hibernate-mapping>
    <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" > <hibernate-mapping package=""> <class name="com.training.hibernate.domain.Book" table="book"> <id name="bookId"> <generator class="assigned" /> </id> <property name="message" type="string" column="publisher"></property> <property name="message" type="string" column="title"></property> <property name="message" type="string" column="author"></property> </class> </hibernate-mapping>
    Exception in thread "main" org.hibernate.InvalidMappingException: Could not parse mapping document from resource publisher.hbm.xml at org.hibernate.cfg.Configuration.addResource(Configuration.java:616) at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1635) at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1603) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1582) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1556) at org.hibernate.cfg.Configuration.configure(Configuration.java:1476) at org.hibernate.cfg.Configuration.configure(Configuration.java:1462) at com.training.hibernate.dao.PublisherDAO.createPublisher(PublisherDAO.java:20) at com.training.hibernate.client.BookPublisherClient.main(BookPublisherClient.java:15) Caused by: org.hibernate.PropertyNotFoundException: field [bookSet] not found on com.training.hibernate.domain.Publisher at org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAccessor.java:145) at org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAccessor.java:137) at org.hibernate.property.DirectPropertyAccessor.getGetter(DirectPropertyAccessor.java:160) at org.hibernate.util.ReflectHelper.getter(ReflectHelper.java:241) at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:229) at org.hibernate.mapping.SimpleValue.setTypeUsingReflection(SimpleValue.java:302) at org.hibernate.cfg.HbmBinder.createProperty(HbmBinder.java:2193) at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2170) at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2060) at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:381) at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:295) at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:166) at org.hibernate.cfg.Configuration.add(Configuration.java:716) at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:551) at org.hibernate.cfg.Configuration.addResource(Configuration.java:613) ... 8 more

    I've made some changes to my Publisher.java, which I'd forgotten to post here anyway, but which I do now. Below is the new exception list I'm getting. Can anyone help me?
    package com.training.hibernate.domain;
    import java.util.Set;
    public class Publisher {
         private int id;
         private String publisher;
         private Set<Book> bookSet;
         public int getId() {
              return id;
         public void setId(int id) {
              this.id = id;
         public String getPublisher() {
              return publisher;
         public void setPublisher(String publisher) {
              this.publisher = publisher;
         public Set<Book> getBooks() {
              return bookSet;
         public void setBooks(Set<Book> bookSet) {
              this.bookSet = bookSet;
    Exception in thread "main" org.hibernate.InvalidMappingException: Could not parse mapping document from resource publisher.hbm.xml
         at org.hibernate.cfg.Configuration.addResource(Configuration.java:616)
         at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1635)
         at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1603)
         at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1582)
         at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1556)
         at org.hibernate.cfg.Configuration.configure(Configuration.java:1476)
         at org.hibernate.cfg.Configuration.configure(Configuration.java:1462)
         at com.training.hibernate.dao.PublisherDAO.createPublisher(PublisherDAO.java:20)
         at com.training.hibernate.client.BookPublisherClient.main(BookPublisherClient.java:15)
    Caused by: org.hibernate.PropertyNotFoundException: field [book] not found on com.training.hibernate.domain.Publisher
         at org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAccessor.java:145)
         at org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAccessor.java:137)
         at org.hibernate.property.DirectPropertyAccessor.getGetter(DirectPropertyAccessor.java:160)
         at org.hibernate.util.ReflectHelper.getter(ReflectHelper.java:241)
         at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:229)
         at org.hibernate.mapping.ToOne.setTypeUsingReflection(ToOne.java:81)
         at org.hibernate.cfg.HbmBinder.createProperty(HbmBinder.java:2193)
         at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2170)
         at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2060)
         at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:381)
         at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:295)
         at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:166)
         at org.hibernate.cfg.Configuration.add(Configuration.java:716)
         at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:551)
         at org.hibernate.cfg.Configuration.addResource(Configuration.java:613)
         ... 8 more

  • Any help with crashing project?

    Hello,  I am a little new to Premiere pro but I don't feel this is a PEBCAC problem.  I have been working for 2 weeks on a project and everything has been fine.  I exported my sequence the other day and nothing to report, all good.  Today I open the project and as soon as all the media is loaded, everything seems normal.  It will sit there for ever idle no problems.  As soon as I move the timeline, the program crashes.
    I have not changed any media, changed any software, changed any hardware since my last session.  I have opened a new project and tried to import the previous project which worked until I moved the timeline.
    Seeing as everything was fine last time, I don't see how it could be a corrupt media file?  The next step was to try to move the initial files so they won't import and see if the process of elimination might work.
    Reading the event log (and I'm just making assumptions as I am not familiar with the information contained) it looks like [perhaps there is something wrong with the render engine?  When I scrub the timeline the renderer is faulty and crashed the program??  (Imagerenderer.dll)
    I have 18gb of RAM, I7 PC on windows 7 CS5 NVIDIA Quadro FX1700 video card.  There doesn't seem to be a logical explainantion seeing as nothing has changed.  The error log is below.
    Any help would really be appreciated.
    Thanks!
    Log Name:      Application
    Source:        Application Error
    Date:          30/07/2011 9:25:49 AM
    Event ID:      1000
    Task Category: (100)
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      Jason-PC
    Description:
    Faulting application name: Adobe Premiere Pro.exe, version: 5.5.0.0, time stamp: 0x4d8a89e8
    Faulting module name: ImageRenderer.dll, version: 5.5.0.0, time stamp: 0x4d8a7063
    Exception code: 0xc0000005
    Fault offset: 0x00000000001756df
    Faulting process id: 0x1ad8
    Faulting application start time: 0x01cc4ed3ae29b0ba
    Faulting application path: C:\Program Files\Adobe\Adobe Premiere Pro CS5.5\Adobe Premiere Pro.exe
    Faulting module path: C:\Program Files\Adobe\Adobe Premiere Pro CS5.5\ImageRenderer.dll
    Report Id: 9531f651-bac8-11e0-b67f-002421572b82
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Application Error" />
        <EventID Qualifiers="0">1000</EventID>
        <Level>2</Level>
        <Task>100</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2011-07-30T16:25:49.000000000Z" />
        <EventRecordID>41824</EventRecordID>
        <Channel>Application</Channel>
        <Computer>Jason-PC</Computer>
        <Security />
      </System>
      <EventData>
        <Data>Adobe Premiere Pro.exe</Data>
        <Data>5.5.0.0</Data>
        <Data>4d8a89e8</Data>
        <Data>ImageRenderer.dll</Data>
        <Data>5.5.0.0</Data>
        <Data>4d8a7063</Data>
        <Data>c0000005</Data>
        <Data>00000000001756df</Data>
        <Data>1ad8</Data>
        <Data>01cc4ed3ae29b0ba</Data>
        <Data>C:\Program Files\Adobe\Adobe Premiere Pro CS5.5\Adobe Premiere Pro.exe</Data>
        <Data>C:\Program Files\Adobe\Adobe Premiere Pro CS5.5\ImageRenderer.dll</Data>
        <Data>9531f651-bac8-11e0-b67f-002421572b82</Data>
      </EventData>
    </Event>

    Question and a general comment
    Q - since this error indicates images, what kind of images (JPG, PSD, etc) and what pixel dimensions?
    C - As well as the below, right click the program icon and select Run as Administrator... which is NOT the same thing as running the computer with the Administrator account... and which fixes several "odd" problems
    Run as Administrator http://forums.adobe.com/thread/771202?tstart=0
    Long File Names or odd characters cause problems
    Read http://forums.adobe.com/thread/588273
    And #4 http://forums.adobe.com/thread/666558?tstart=0
    And This Message Thread http://forums.adobe.com/thread/665641?tstart=0

  • Please Please Help with Projectile Project Here are the Codes

    I've got three(3) classes a Model, a view, and a controller.
    This is a project about projectiles.it is an animation of a cannonball being fired from a cannon and travelling under the effect of gravity.A cannon fired at angle 'a' to the horizontal and with an initial speed 's', will have an initial velocity given by:
    vx := s * cos(a);//velocity x equals the speed multiply by the cosine of angle a.
    vy := s * sin(a);//velocity y equals the speed multiply by the sine of angle a.
    Here are the code.
    Model:
    /** Cannon specifies the expected behaviour of a cannon*/
    public class Cannon{
    public static final int TICK = 60;
    private int velocity = 0;
    private static final double gravity = .098f;
    private double angle = 0;
    // distances & positions are meausred in pixels
    private int x_pos; // ball's center x-position
    private int y_pos; // ball's center y-position
    // speed is measured in pixels per `tick'
    private int x_velocity; // horizonal speed; positive is to the right
    private int y_velocity; // vertical speed; positive is downwards
    public Cannon() {
    velocity = 3;
    angle = 60;
    angle = radians(angle);
    x_pos = 0;
    y_pos = 385;
    /** shoot fires a shot from the cannon*/
    public void shoot(){
    move();
    /**reload reloads the cannon with more shorts*/
    public void reload() {
    /** changeAngle changes the angle of the canon
    * @params value - the amount to add or subtract from the current angle value*/
    public void changeAngle(double value) {
    angle = (double)value;
    angle = radians(angle);
    /** getAngle returns the current angle value of the cannon*/
    public double getAngle() {
    return angle;
    /** changeVelocity changes the speed at which a cannon ball that is to be fire will travel at
    * @params value - the new speed at which the user wants a cannon ball to travel at.*/
    public void changeVelocityX(int value){
    x_velocity = x_velocity * (int)Math.cos(value);
    public void changeVelocityY(int value){
    y_velocity = y_velocity * (int)Math.sin(value);
    /** getVelocity returns the current velocity value of the cannon*/
    public int getVelocityX() {
    return x_velocity;
    public int getVelocityY() {
    return y_velocity;
    /** getGravity returns the current gravity value of the cannon*/
    public double getGravity() {
    return gravity;
    public int xPosition(){
    return x_pos;
    public int yPosition(){
    return y_pos;
    public void move(){
    double dx = getVelocityX() * Math.cos(getAngle());
    double dy = getVelocityY() * Math.sin(getAngle());
    x_pos+=dx;
    y_pos-=dy;
    double radians (double angle){
    return ((Math.PI * angle) / 180.0);
    View:
    import java.awt.*;
    import javax.swing.*;
    /** CannonView displays a cannon being fired.*/
    public class CannonView extends JPanel{
    /** DISPLAY_SIZE specifies the overall display area of the cannon and the bucket.*/
    public static final int DISPLAY_AREA_SIZE = 600;
    public RotatablePolygon rectangle;
    public RotatablePolygon triangle;
    public Cannon cannon;
    public CannonView(Cannon c) {
    this.setPreferredSize(new Dimension(600,450));
    this.setBackground(Color.black);
    cannon = c;
    int xRectangle[] = {0,0,40,40,0};
    int yRectangle[] = {400,300,300,400,400};
    int xTriangle[] = {0,20,40,0};
    int yTriangle[] = {300,280,300,300};
    rectangle = new RotatablePolygon (xRectangle, yRectangle, 5,20,350);
    // rectangle.setPosition (100, 100);
    // triangle = new RotatablePolygon (xTriangle, yTriangle, 4,0,290);
    triangle = new RotatablePolygon (xTriangle, yTriangle, 4,20,350);
    //triangle.setPosition (100, 100);
    JFrame frame = new JFrame();
    frame.getContentPane().add(this);
    frame.pack();
    frame.setVisible(true);
    frame.setTitle("Width = " + frame.getWidth() + " , Height = " + frame.getHeight());
    /** drawBucket draws a bucket/target for which a moving cannon ball should hit.
    * @param g - the graphics pen for which the drawing should occur.*/
    public void drawBucket(Graphics g) {
    g.setColor(Color.red);
    int xvalues[] = {495, 519, 575, 595, 495};
    int yvalues[] = {340, 400, 400, 340, 340};
    Polygon poly1 = new Polygon (xvalues, yvalues, 5);
    g.fillPolygon(poly1);
    g.setColor(Color.white);
    g.fillOval(495, 328, 100, 24);
    Graphics2D g2d = (Graphics2D)g;
    g2d.setStroke(new BasicStroke(2));
    g.setColor(Color.red);
    g.drawOval(495, 328, 100, 24);
    g.drawOval(495,311,100,54);
    /** drawCannon draws a cannon
    * @param g - the graphics pen that will be used to draw the cannon.*/
    public void drawCannon(Graphics g) {
    Graphics2D g2 = (Graphics2D)g;
    g.setColor(Color.red);
    g2.fill(rectangle);
    g.setColor(Color.orange);
    g2.fill(triangle);
    g.setColor(Color.blue);
    g.fillOval(95, 340, 60, 60);
    g.setColor(Color.magenta);
    for (int i = 0; i < 6; i++){
    g.fillArc(95, 340, 60, 60, i* 60, 30);
    g.setColor(Color.black);
    g.fillOval(117, 362, 16, 16);
    /** drawCannonShots will draw the actual number of shots already used by the cannon
    * @param g - the graphics pen that will be used to draw the shots of the cannon.*/
    public void drawCannonShots(Graphics g) {
    g.setColor(Color.orange);
    g.fillOval(cannon.xPosition(),cannon.yPosition(),16,16);
    /** drawTrail will draw a trail of smoke to indicate where a cannon ball has passed
    * @param g - the graphics pen used to draw the trail.*/
    public void drawTrail(Graphics g){}
    /**drawGround draws the ground for which the cannon sits*/
    public void drawGround(Graphics g) {
    g.setColor(Color.green.brighter());
    g.fillRect(0,400,600,50);
    /** drawMovingCannonBall draw a cannon ball moving at a certain speed (velocity),
    * with a certain amount of gravitational acting upon it, at a certain angle.
    * @params g - the graphics pen used to draw the moving cannon ball.
    * @params gravity - the value of gravity.
    * @params velocity - the speed at which the ball is travelling.
    * @params angle - the angle at which the ball was shot from.*/
    public void drawMovingCannonBall(Graphics g, double gravity, double velocity, double angle){}
    /** paintComponent paints the cannon,bucket
    * @param g - graphics pen.*/
    public void paintComponent(Graphics g) {
    super.paintComponent(g);
    drawGround(g);
    drawBucket(g);
    drawCannon(g);
    drawCannonShots(g);
    Controller
    /** CannonController controls the interaction between the user and a cannon*/
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class CannonController extends JFrame{
    public JMenuBar jMenuBar2;
    public JMenu jMenu2;
    public JMenuItem jMenuItem1;
    public JMenu jMenu3;
    public JMenuItem jMenuItem2;
    public JLabel angleLabel, velocityLabel;
    public JTextField angleTextField, velocityTextField;
    public JButton fireButton, reloadButton;
    public JSlider angleSlider, velocitySlider;
    private CannonView view;
    private Cannon cannon;
    int oldValue, newValue;
    public CannonController(Cannon acannon) {
    cannon = acannon;
    view = new CannonView(cannon);
    loadControls();
    angleTextField.setText(String.valueOf(angleSlider.getValue()));
    oldValue = angleSlider.getValue();
    newValue = oldValue + 1;
    velocityTextField.setText(String.valueOf(velocitySlider.getValue()));
    this.setSize(328,308);
    this.setLocation(view.getWidth()-this.getWidth(),0);
    /** loadControl loads all of the GUI controls that a
    * user of the cannon animation will use to interact with the program*/
    public void loadControls() {
    jMenuBar2 = new JMenuBar();
    jMenu2 = new JMenu();
    jMenuItem1 = new JMenuItem();
    jMenu3 = new JMenu();
    jMenuItem2 = new JMenuItem();
    angleLabel = new JLabel();
    velocityLabel = new JLabel();
    angleTextField = new JTextField();
    velocityTextField = new JTextField();
    fireButton = new JButton();
    reloadButton = new JButton();
    angleSlider = new JSlider();
    velocitySlider = new JSlider();
    jMenuBar2.setBorderPainted(false);
    jMenu2.setModel(jMenu2.getModel());
    jMenu2.setText("File");
    jMenuItem1.setText("Exit");
    jMenuItem1.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent evt) {
    jMenuItem1ActionPerformed(evt);
    jMenu2.add(jMenuItem1);
    jMenuBar2.add(jMenu2);
    jMenu3.setText("Help");
    jMenuItem2.setText("About this Program");
    jMenuItem2.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent evt) {
    jMenuItem2ActionPerformed(evt);
    jMenu3.add(jMenuItem2);
    jMenuBar2.add(jMenu3);
    getContentPane().setLayout(null);
    setTitle("Cannon Controller Form");
    setResizable(false);
    setMenuBar(getMenuBar());
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent evt) {
    exitForm(evt);
    angleLabel.setText("Angle:");
    getContentPane().add(angleLabel);
    angleLabel.setLocation(10, 20);
    angleLabel.setSize(angleLabel.getPreferredSize());
    velocityLabel.setText("Velocity:");
    getContentPane().add(velocityLabel);
    velocityLabel.setLocation(10, 80);
    velocityLabel.setSize(velocityLabel.getPreferredSize());
    angleTextField.setToolTipText("Only numeric values are allow");
    getContentPane().add(angleTextField);
    angleTextField.setBounds(280, 20, 30, 20);
    velocityTextField.setToolTipText("Only numeric values are allow");
    getContentPane().add(velocityTextField);
    velocityTextField.setBounds(280, 80, 30, 20);
    fireButton.setToolTipText("Click to fire a shot");
    fireButton.setText("Fire");
    fireButton.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent evt) {
    fireButtonMouseClicked(evt);
    getContentPane().add(fireButton);
    fireButton.setBounds(60, 160, 80, 30);
    reloadButton.setToolTipText("Click to reload cannon");
    reloadButton.setText("Reload");
    reloadButton.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent evt) {
    reloadButtonMouseClicked(evt);
    getContentPane().add(reloadButton);
    reloadButton.setBounds(150, 160, 80, 30);
    angleSlider.setMinorTickSpacing(30);
    angleSlider.setPaintLabels(true);
    angleSlider.setPaintTicks(true);
    angleSlider.setMinimum(0);
    angleSlider.setMajorTickSpacing(60);
    angleSlider.setToolTipText("Change the cannon angle");
    angleSlider.setMaximum(360);
    angleSlider.setValue(0);
    angleSlider.addChangeListener(new ChangeListener() {
    public void stateChanged(ChangeEvent evt) {
    angleSliderStateChanged(evt);
    getContentPane().add(angleSlider);
    angleSlider.setBounds(60, 20, 210, 40);
    velocitySlider.setMinorTickSpacing(5);
    velocitySlider.setPaintLabels(true);
    velocitySlider.setPaintTicks(true);
    velocitySlider.setMinimum(1);
    velocitySlider.setMajorTickSpacing(10);
    velocitySlider.setToolTipText("Change the speed of the cannon ball");
    velocitySlider.setMaximum(28);
    velocitySlider.setValue(3);
    velocitySlider.addChangeListener(new ChangeListener() {
    public void stateChanged(ChangeEvent evt) {
    velocitySliderStateChanged(evt);
    getContentPane().add(velocitySlider);
    velocitySlider.setBounds(60, 80, 210, 50);
    setJMenuBar(jMenuBar2);
    pack();
    private void reloadButtonMouseClicked(MouseEvent evt) {
    reloadButtonClick();
    private void fireButtonMouseClicked(MouseEvent evt) {
    fireButtonClick();
    /** firstButtonClick is the event handler that sends a message
    * to the cannon class to invokes the cannon's fire method*/
    public void fireButtonClick() {
    // JOptionPane.showMessageDialog(null,"You click Fire");
    cannon.shoot();
    view.repaint();
    /** reloadButtonClick is the event handler that sends a message
    * to the cannon class to invokes the cannon's reload method*/
    public void reloadButtonClick() {
    JOptionPane.showMessageDialog(null,"reload");
    private void angleSliderStateChanged(ChangeEvent evt) {
    angleTextField.setText(String.valueOf(angleSlider.getValue()));
    view.rectangle.setAngle(angleSlider.getValue() * (Math.PI / 180));
    view.triangle.setAngle(angleSlider.getValue() * (Math.PI / 180));
    cannon.changeAngle(angleSlider.getValue());
    view.repaint();
    private void velocitySliderStateChanged(ChangeEvent evt) {
    velocityTextField.setText(String.valueOf(velocitySlider.getValue()));
    cannon.changeVelocityX(velocitySlider.getValue());
    private void gravitySliderStateChanged(ChangeEvent evt) {
    private void jMenuItem1ActionPerformed(ActionEvent evt) {
    System.exit (0);
    private void jMenuItem2ActionPerformed(ActionEvent evt) {
    String message = "Cannon Animation\n"+
    "Based on the Logic of Projectiles";
    JOptionPane.showMessageDialog(null,message,"About this program",JOptionPane.PLAIN_MESSAGE);
    /** Exit the Application */
    private void exitForm(WindowEvent evt) {
    System.exit (0);
    /** Pause execution for t milliseconds. */
    private void delay (int t) {
    try {
    Thread.sleep (t);
    } catch (InterruptedException e) {}
    public static void main(String [] args){
    Cannon cn = new Cannon();
    CannonController control = new CannonController(cn);
    control.setTitle("Test");
    control.setVisible(true);
    if the cannon ball land in the bucket it should stop and the animation should indicate a 'hit' in some way. maybe by displaying a message.
    if the cannonball hits the outside of the bucket it should bounce off.
    Extra Notes.
    1) The acceleration due to gravity is 9.8m/s to the (power of (2) eg s2.
    2) The distance travelled in time t by a body with initial velocity v under constant acceleration a is:
    v * t + a * t.pow(2) div 2;
    The velocity at the end of time t will be v + a * t.
    Distance is measure in pixels rather than meter so for simplicity we use 1 pixel per meter
    When i pressed the fire button nothings happens. I'm going crazy. Please please help!

    Here is the interface specification for the RotatablePolygon class. I do not have the actual .java source.
    Thanks
    Class RotatablePolygon
    java.lang.Object
    |
    --java.awt.geom.Area
    |
    --RotatablePolygon
    All Implemented Interfaces:
    java.lang.Cloneable, java.awt.Shape
    public class RotatablePolygon
    extends java.awt.geom.Area
    Polygons which can be rotated around an `anchor' point and also translated (moved in the x and y directions).
    Constructor Summary
    RotatablePolygon(int[] xs, int[] ys, int n, double x, double y)
    Create a new RotatablePolyogon with given vertices and anchor point (x,y).
    Method Summary
    double getAngle()
    The current angle of rotation.
    double getXanchor()
    x-coordinate of the anchor point.
    double getYanchor()
    y-coordinate of the anchor point.
    void rotate(double da)
    Rotate the polygon from its current position by angle da (in radians) around the anchor.
    void rotateDegrees(double da)
    Rotate the polygon from its current position by angle da (in degrees) around the anchor.
    void setAngle(double a)
    Set the angle of rotation of the polygon to be angle a (in radians) around the anchor.
    void setAngleDegrees(double a)
    Set the angle of rotation of the polygon to be angle a (in degrees) around the anchor.
    void setPosition(double x, double y)
    Shift the polygon's position to put its anchor point at (x,y).
    void translate(double dx, double dy)
    Shift the polygon's position and anchor point by given amounts.
    Methods inherited from class java.awt.geom.Area
    add, clone, contains, contains, contains, contains, createTransformedArea, equals, exclusiveOr, getBounds, getBounds2D, getPathIterator, getPathIterator, intersect, intersects, intersects, isEmpty, isPolygonal, isRectangular, isSingular, reset, subtract, transform
    Methods inherited from class java.lang.Object
    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    Constructor Detail
    RotatablePolygon
    public RotatablePolygon(int[] xs,
    int[] ys,
    int n,
    double x,
    double y)
    Create a new RotatablePolyogon with given vertices and anchor point (x,y).
    REQUIRE: xs.length >= n && ys.length >= n
    Parameters:
    xs - x-coordinates of vertices
    ys - y-coordinates of vertices
    n - number of vertices
    x - x-coordinate of the rotation anchor
    y - y-coordinate of the rotation anchor
    Method Detail
    setPosition
    public void setPosition(double x,
    double y)
    Shift the polygon's position to put its anchor point at (x,y).
    Parameters:
    x - new x-coordinate for anchor point
    y - new y-coordinate for anchor point
    translate
    public void translate(double dx,
    double dy)
    Shift the polygon's position and anchor point by given amounts.
    Parameters:
    dx - amount to shift by in x-direction
    dy - amount to shift by in y-direction
    setAngle
    public void setAngle(double a)
    Set the angle of rotation of the polygon to be angle a (in radians) around the anchor.
    Parameters:
    a - angle to rotate to, in radians
    setAngleDegrees
    public void setAngleDegrees(double a)
    Set the angle of rotation of the polygon to be angle a (in degrees) around the anchor.
    Parameters:
    a - angle to rotate to, in degrees
    rotate
    public void rotate(double da)
    Rotate the polygon from its current position by angle da (in radians) around the anchor.
    Parameters:
    da - angle to rotate by, in radians
    rotateDegrees
    public void rotateDegrees(double da)
    Rotate the polygon from its current position by angle da (in degrees) around the anchor.
    Parameters:
    da - angle to rotate by, in degrees
    getAngle
    public double getAngle()
    The current angle of rotation.
    getXanchor
    public double getXanchor()
    x-coordinate of the anchor point.
    getYanchor
    public double getYanchor()
    y-coordinate of the anchor point.

  • Please Help with Physics Project Here are the codings

    I've got three(3) classes a Model, a view, and a controller.
    This is a project about projectiles.it is an animation of a cannonball being fired from a cannon and travelling under the effect of gravity.A cannon fired at angle 'a' to the horizontal and with an initial speed 's', will have an initial velocity given by:
    vx := s * cos(a);//velocity x equals the speed multiply by the cosine of angle a.
    vy := s * sin(a);//velocity y equals the speed multiply by the sine of angle a.
    Here are the code.
    Model:
    /** Cannon specifies the expected behaviour of a cannon*/
    public class Cannon{
    public static final int TICK = 60;
    private int velocity = 0;
    private static final double gravity = .098f;
    private double angle = 0;
    // distances & positions are meausred in pixels
    private int x_pos; // ball's center x-position
    private int y_pos; // ball's center y-position
    // speed is measured in pixels per `tick'
    private int x_velocity; // horizonal speed; positive is to the right
    private int y_velocity; // vertical speed; positive is downwards
    public Cannon() {
    velocity = 3;
    angle = 60;
    angle = radians(angle);
    x_pos = 0;
    y_pos = 385;
    /** shoot fires a shot from the cannon*/
    public void shoot(){
    move();
    /**reload reloads the cannon with more shorts*/
    public void reload() {
    /** changeAngle changes the angle of the canon
    * @params value - the amount to add or subtract from the current angle value*/
    public void changeAngle(double value) {
    angle = (double)value;
    angle = radians(angle);
    /** getAngle returns the current angle value of the cannon*/
    public double getAngle() {
    return angle;
    /** changeVelocity changes the speed at which a cannon ball that is to be fire will travel at
    * @params value - the new speed at which the user wants a cannon ball to travel at.*/
    public void changeVelocityX(int value){
    x_velocity = x_velocity * (int)Math.cos(value);
    public void changeVelocityY(int value){
    y_velocity = y_velocity * (int)Math.sin(value);
    /** getVelocity returns the current velocity value of the cannon*/
    public int getVelocityX() {
    return x_velocity;
    public int getVelocityY() {
    return y_velocity;
    /** getGravity returns the current gravity value of the cannon*/
    public double getGravity() {
    return gravity;
    public int xPosition(){
    return x_pos;
    public int yPosition(){
    return y_pos;
    public void move(){
    double dx = getVelocityX() * Math.cos(getAngle());
    double dy = getVelocityY() * Math.sin(getAngle());
    x_pos+=dx;
    y_pos-=dy;
    double radians (double angle){
    return ((Math.PI * angle) / 180.0);
    View:
    import java.awt.*;
    import javax.swing.*;
    /** CannonView displays a cannon being fired.*/
    public class CannonView extends JPanel{
    /** DISPLAY_SIZE specifies the overall display area of the cannon and the bucket.*/
    public static final int DISPLAY_AREA_SIZE = 600;
    public RotatablePolygon rectangle;
    public RotatablePolygon triangle;
    public Cannon cannon;
    public CannonView(Cannon c) {
    this.setPreferredSize(new Dimension(600,450));
    this.setBackground(Color.black);
    cannon = c;
    int xRectangle[] = {0,0,40,40,0};
    int yRectangle[] = {400,300,300,400,400};
    int xTriangle[] = {0,20,40,0};
    int yTriangle[] = {300,280,300,300};
    rectangle = new RotatablePolygon (xRectangle, yRectangle, 5,20,350);
    // rectangle.setPosition (100, 100);
    // triangle = new RotatablePolygon (xTriangle, yTriangle, 4,0,290);
    triangle = new RotatablePolygon (xTriangle, yTriangle, 4,20,350);
    //triangle.setPosition (100, 100);
    JFrame frame = new JFrame();
    frame.getContentPane().add(this);
    frame.pack();
    frame.setVisible(true);
    frame.setTitle("Width = " + frame.getWidth() + " , Height = " + frame.getHeight());
    /** drawBucket draws a bucket/target for which a moving cannon ball should hit.
    * @param g - the graphics pen for which the drawing should occur.*/
    public void drawBucket(Graphics g) {
    g.setColor(Color.red);
    int xvalues[] = {495, 519, 575, 595, 495};
    int yvalues[] = {340, 400, 400, 340, 340};
    Polygon poly1 = new Polygon (xvalues, yvalues, 5);
    g.fillPolygon(poly1);
    g.setColor(Color.white);
    g.fillOval(495, 328, 100, 24);
    Graphics2D g2d = (Graphics2D)g;
    g2d.setStroke(new BasicStroke(2));
    g.setColor(Color.red);
    g.drawOval(495, 328, 100, 24);
    g.drawOval(495,311,100,54);
    /** drawCannon draws a cannon
    * @param g - the graphics pen that will be used to draw the cannon.*/
    public void drawCannon(Graphics g) {
    Graphics2D g2 = (Graphics2D)g;
    g.setColor(Color.red);
    g2.fill(rectangle);
    g.setColor(Color.orange);
    g2.fill(triangle);
    g.setColor(Color.blue);
    g.fillOval(95, 340, 60, 60);
    g.setColor(Color.magenta);
    for (int i = 0; i < 6; i++){
    g.fillArc(95, 340, 60, 60, i* 60, 30);
    g.setColor(Color.black);
    g.fillOval(117, 362, 16, 16);
    /** drawCannonShots will draw the actual number of shots already used by the cannon
    * @param g - the graphics pen that will be used to draw the shots of the cannon.*/
    public void drawCannonShots(Graphics g) {
    g.setColor(Color.orange);
    g.fillOval(cannon.xPosition(),cannon.yPosition(),16,16);
    /** drawTrail will draw a trail of smoke to indicate where a cannon ball has passed
    * @param g - the graphics pen used to draw the trail.*/
    public void drawTrail(Graphics g){}
    /**drawGround draws the ground for which the cannon sits*/
    public void drawGround(Graphics g) {
    g.setColor(Color.green.brighter());
    g.fillRect(0,400,600,50);
    /** drawMovingCannonBall draw a cannon ball moving at a certain speed (velocity),
    * with a certain amount of gravitational acting upon it, at a certain angle.
    * @params g - the graphics pen used to draw the moving cannon ball.
    * @params gravity - the value of gravity.
    * @params velocity - the speed at which the ball is travelling.
    * @params angle - the angle at which the ball was shot from.*/
    public void drawMovingCannonBall(Graphics g, double gravity, double velocity, double angle){}
    /** paintComponent paints the cannon,bucket
    * @param g - graphics pen.*/
    public void paintComponent(Graphics g) {
    super.paintComponent(g);
    drawGround(g);
    drawBucket(g);
    drawCannon(g);
    drawCannonShots(g);
    Controller
    /** CannonController controls the interaction between the user and a cannon*/
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class CannonController extends JFrame{
    public JMenuBar jMenuBar2;
    public JMenu jMenu2;
    public JMenuItem jMenuItem1;
    public JMenu jMenu3;
    public JMenuItem jMenuItem2;
    public JLabel angleLabel, velocityLabel;
    public JTextField angleTextField, velocityTextField;
    public JButton fireButton, reloadButton;
    public JSlider angleSlider, velocitySlider;
    private CannonView view;
    private Cannon cannon;
    int oldValue, newValue;
    public CannonController(Cannon acannon) {
    cannon = acannon;
    view = new CannonView(cannon);
    loadControls();
    angleTextField.setText(String.valueOf(angleSlider.getValue()));
    oldValue = angleSlider.getValue();
    newValue = oldValue + 1;
    velocityTextField.setText(String.valueOf(velocitySlider.getValue()));
    this.setSize(328,308);
    this.setLocation(view.getWidth()-this.getWidth(),0);
    /** loadControl loads all of the GUI controls that a
    * user of the cannon animation will use to interact with the program*/
    public void loadControls() {
    jMenuBar2 = new JMenuBar();
    jMenu2 = new JMenu();
    jMenuItem1 = new JMenuItem();
    jMenu3 = new JMenu();
    jMenuItem2 = new JMenuItem();
    angleLabel = new JLabel();
    velocityLabel = new JLabel();
    angleTextField = new JTextField();
    velocityTextField = new JTextField();
    fireButton = new JButton();
    reloadButton = new JButton();
    angleSlider = new JSlider();
    velocitySlider = new JSlider();
    jMenuBar2.setBorderPainted(false);
    jMenu2.setModel(jMenu2.getModel());
    jMenu2.setText("File");
    jMenuItem1.setText("Exit");
    jMenuItem1.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent evt) {
    jMenuItem1ActionPerformed(evt);
    jMenu2.add(jMenuItem1);
    jMenuBar2.add(jMenu2);
    jMenu3.setText("Help");
    jMenuItem2.setText("About this Program");
    jMenuItem2.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent evt) {
    jMenuItem2ActionPerformed(evt);
    jMenu3.add(jMenuItem2);
    jMenuBar2.add(jMenu3);
    getContentPane().setLayout(null);
    setTitle("Cannon Controller Form");
    setResizable(false);
    setMenuBar(getMenuBar());
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent evt) {
    exitForm(evt);
    angleLabel.setText("Angle:");
    getContentPane().add(angleLabel);
    angleLabel.setLocation(10, 20);
    angleLabel.setSize(angleLabel.getPreferredSize());
    velocityLabel.setText("Velocity:");
    getContentPane().add(velocityLabel);
    velocityLabel.setLocation(10, 80);
    velocityLabel.setSize(velocityLabel.getPreferredSize());
    angleTextField.setToolTipText("Only numeric values are allow");
    getContentPane().add(angleTextField);
    angleTextField.setBounds(280, 20, 30, 20);
    velocityTextField.setToolTipText("Only numeric values are allow");
    getContentPane().add(velocityTextField);
    velocityTextField.setBounds(280, 80, 30, 20);
    fireButton.setToolTipText("Click to fire a shot");
    fireButton.setText("Fire");
    fireButton.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent evt) {
    fireButtonMouseClicked(evt);
    getContentPane().add(fireButton);
    fireButton.setBounds(60, 160, 80, 30);
    reloadButton.setToolTipText("Click to reload cannon");
    reloadButton.setText("Reload");
    reloadButton.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent evt) {
    reloadButtonMouseClicked(evt);
    getContentPane().add(reloadButton);
    reloadButton.setBounds(150, 160, 80, 30);
    angleSlider.setMinorTickSpacing(30);
    angleSlider.setPaintLabels(true);
    angleSlider.setPaintTicks(true);
    angleSlider.setMinimum(0);
    angleSlider.setMajorTickSpacing(60);
    angleSlider.setToolTipText("Change the cannon angle");
    angleSlider.setMaximum(360);
    angleSlider.setValue(0);
    angleSlider.addChangeListener(new ChangeListener() {
    public void stateChanged(ChangeEvent evt) {
    angleSliderStateChanged(evt);
    getContentPane().add(angleSlider);
    angleSlider.setBounds(60, 20, 210, 40);
    velocitySlider.setMinorTickSpacing(5);
    velocitySlider.setPaintLabels(true);
    velocitySlider.setPaintTicks(true);
    velocitySlider.setMinimum(1);
    velocitySlider.setMajorTickSpacing(10);
    velocitySlider.setToolTipText("Change the speed of the cannon ball");
    velocitySlider.setMaximum(28);
    velocitySlider.setValue(3);
    velocitySlider.addChangeListener(new ChangeListener() {
    public void stateChanged(ChangeEvent evt) {
    velocitySliderStateChanged(evt);
    getContentPane().add(velocitySlider);
    velocitySlider.setBounds(60, 80, 210, 50);
    setJMenuBar(jMenuBar2);
    pack();
    private void reloadButtonMouseClicked(MouseEvent evt) {
    reloadButtonClick();
    private void fireButtonMouseClicked(MouseEvent evt) {
    fireButtonClick();
    /** firstButtonClick is the event handler that sends a message
    * to the cannon class to invokes the cannon's fire method*/
    public void fireButtonClick() {
    // JOptionPane.showMessageDialog(null,"You click Fire");
    cannon.shoot();
    view.repaint();
    /** reloadButtonClick is the event handler that sends a message
    * to the cannon class to invokes the cannon's reload method*/
    public void reloadButtonClick() {
    JOptionPane.showMessageDialog(null,"reload");
    private void angleSliderStateChanged(ChangeEvent evt) {
    angleTextField.setText(String.valueOf(angleSlider.getValue()));
    view.rectangle.setAngle(angleSlider.getValue() * (Math.PI / 180));
    view.triangle.setAngle(angleSlider.getValue() * (Math.PI / 180));
    cannon.changeAngle(angleSlider.getValue());
    view.repaint();
    private void velocitySliderStateChanged(ChangeEvent evt) {
    velocityTextField.setText(String.valueOf(velocitySlider.getValue()));
    cannon.changeVelocityX(velocitySlider.getValue());
    private void gravitySliderStateChanged(ChangeEvent evt) {
    private void jMenuItem1ActionPerformed(ActionEvent evt) {
    System.exit (0);
    private void jMenuItem2ActionPerformed(ActionEvent evt) {
    String message = "Cannon Animation\n"+
    "Based on the Logic of Projectiles";
    JOptionPane.showMessageDialog(null,message,"About this program",JOptionPane.PLAIN_MESSAGE);
    /** Exit the Application */
    private void exitForm(WindowEvent evt) {
    System.exit (0);
    /** Pause execution for t milliseconds. */
    private void delay (int t) {
    try {
    Thread.sleep (t);
    } catch (InterruptedException e) {}
    public static void main(String [] args){
    Cannon cn = new Cannon();
    CannonController control = new CannonController(cn);
    control.setTitle("Test");
    control.setVisible(true);
    if the cannon ball land in the bucket it should stop and the animation should indicate a 'hit' in some way. maybe by displaying a message.
    if the cannonball hits the outside of the bucket it should bounce off.
    Extra Notes.
    1) The acceleration due to gravity is 9.8m/s to the (power of (2) eg s2.
    2) The distance travelled in time t by a body with initial velocity v under constant acceleration a is:
    v * t + a * t.pow(2) div 2;
    The velocity at the end of time t will be v + a * t.
    Distance is measure in pixels rather than meter so for simplicity we use 1 pixel per meter
    When i pressed the fire button nothings happens. I'm going crazy. Please please help!

    Hi,
    U put something on forum and keeping silence.If it is not necessary dont put in forum.I moved your cannon ball.If u want continous movement I need some more information.
    Johnson

  • HELP with Lenovo Power Manager

    Hi, I recently my new Thinkpad T530 and I accidentally uninstalled Power Manager. I re-installed it. Now when ever I  log on It says, "RUNDLL: There was a problem starting C:/Program. The specified module could not be found." And whenever I turn on the icon in the taskbar it is gray and has three dashes. PLEASE HELP.  
    Solved!
    Go to Solution.

    That is alright oss288, try uninstalling the program completely again. Download the power manager utility and driver to the desktop, install in that order, and reboot. Good Luck, and keep me posted on your results. Thanks oss288!
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution".! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.

Maybe you are looking for