Atlas routier en java

J aimerai que vs puissiez m aider pour terminer mon projet sur la r�alisation d'un atlas routier. J ai rencontre quelques problemes sur mon code java.
J aimerai que vous puissiez m aider. Je pourrai poster tout le code et des explications si quelqu un souhaite bien m aider
voici l �nnonc� de mon projet:
Projet de Java: Conception d'un atlas routier
Vous allez dans ce projet �crire une application permettant de calculer et de visualiser sur une carte un itin�raire entre deux villes de France, calculer des itin�raire optimum en temps ou en consommation d'essence, etc...
Les fichiers n�c�ssaire � ce projet sont les suivants: FileTableau.class, ville.txt, route.txt
Etape 1: Chargement des donn�es
Les donn�es n�c�ssaires � votre application sont stock�es dans des fichiers. Dans un premier temps, nous allons nous int�r�sser au fichier "ville.dat", qui contient les informations concernant les villes elle-m�mes. Le fichier contient une ligne pour chaque ville enregistr�e.
Chaque ligne est construite ainsi: il y a quatre champs, le premier est le nom de la ville, le second son code, le troisi�me et le quatri�me ses coordonn�es. Les coordonn�es sont fournies en km, et se situent donc entre 0 et 1000. Les champs sont s�par�s par des ";". Voici un extrait de ce fichier:
Lille;7;617;50
Nice;50;958;797
Vous pouvez �diter directement ce fichier dans DrJava ou WordPad pour voir son contenu.
Pour mod�liser l'ensemble de nos villes, vous allez �crire deux classes:
La classe Ville, qui contient les donn�es relatives � une ville (nom, code, coordonn�es)
La classe Monde, qui contient l'ensemble de toutes les villes. La classe Monde doit poss�der un tableau de villes et une m�thode:
public void charger(String fichier)
dont le r�le est de remplir le tableau avec les donn�es contenues dans le fichier pass� en param�tre (qui sera "ville.dat" dans notre cas).
Pour �crire la m�thode "charger", vous avez besoin des outils suivants:
La classe TextFile, qui vous permet de charger un fichier dans un tableau de Strings. Le fichier se charge en cr�ant un objet TextFile ainsi:
TextFile tf = new TextFile("ville.dat");
tf contient alors l'ensemble des lignes du fichier "ville.dat". Cet ensemble peut �tre interrog� par deux m�thodes de la classe TextFile: void getSize() qui renvoie le nombre de ligne, et String getLine(int i) qui renvoie la String correspondant � la i�me ligne (� partir de 0).
La classe StringTokenizer, qui va vous permettre d'extraire chacun des champs de la ligne. Vous consulterez la documentation en ligne de Java pour apprendre � vous en servir.
La fonction Integer.parseInt(String s) qui vous permettra de convertir les Strings obtenues en entiers, si besoin est.
Une fois la classe Monde termin�e, vous la testerez en cr�ant un programme de test qui cr�� un objet Monde, charge le fichier "ville.dat", et affiche pour chacune des villes son nom, son code, ses cooronn�es.
Etape 2: Affichage de la carte
Premi�res exp�rimentations
Dans un premier temps, vous allez cr�er une classe TestDessin h�ritant de pour exp�rimenter le dessin dans les fen�tre en Java.
Jusque l�, vous avez appris � ajouter des composants graphiques dans une fen�tre. Ici, il faut directement dessiner dedans. Les dessins se font au sein d'une m�thode sp�ciale appel� automatiquement par Java au moment de l'affichage. Vous devez �crire cette m�thode ainsi:
public void paint(Graphics g) {
super.paint(g);
Vous devez remplacer les trois points par vos instructions d'affichage, qui seront des m�thodes de l'objet graphique g. Par exemple, pour dessiner un rectangle de 10 sur 10 aux coordonn�es (100,50), on utilisera la m�thode:
g.fillRect(100,50,10,10)
Vous devez �galement ajouter � votre programme la m�thode suivante, pour lui premettre de mettre � jour correctement votre dessin en cas de d�placement ou de redimensionnement de la fen�tre:
public void update(Graphics g) {
super.update(g);
paint(g);
Exp�rimentez diff�rentes m�thodes d'affichage (rectangle, ligne...) ainsi que l'affichage de chaines de caract�res. Consultez la documentation de la class Graphics pour avoir plus d'informations sur les instructions d'affichage.
La classe Carte
Vous allez �crire une classe Carte h�ritant de JFrame qui sera charg�e de l'affichage de la carte. Comme dans la classe de test pr�c�dente, l'affichage se fera au sein de la m�thode paint.
Bien s�r, vous allez avoir besoin des donn�es sur les villes pour afficher la carte. Celles-ci vous seront fournies sous forme d'un objet de type Monde qui sera pass� au constructeur de Carte et stock�s sous forme d'attribut de la classe Carte.
Dans un premier temps, l'affichage de la carte ne consiste qu'en l'affichage de chacune des villes. Un point (ou un rectangle ou un cercle) aux coordonn�es de chaque ville, et son nom affich� � cot�. Pour rendre la carte plus lisible, vous pouvez utiliser une police de caract�re plus r�duite, ainsi que des couleurs.
Ecrivez la classe Carte et testez-la. Si votre programme est correct, l'ensemble des villes doit se disposer pour former la silhouette de la France.
Etape n�3: Un premier Atlas
Vous allez maintenant transformer votre carte en une application capable d'indiquer une ville selectionn�e par l'utilisateur.
L'application que vous allez cr�er sera une fen�tre divis�e en deux parties. Dans la partie gauche, il y aura la carte, et dans la partie droite, il y aura l'interface utilisateur, comportant un titre, une zone de saisie et un bouton. Quand l'utilisateur rentrera le nom d'une ville et cliquera sur le bouton, alors celle-ci devra s'afficher en rouge.
L'interface graphique
Modifiez la classe Carte pour que celle-ci puisse s'ins�rer dans votre application. Pour cela, elle ne doit plus h�riter de JFrame, mais de JPanel.
Votre carte n'est maintenant plus directement affichable, car ce n'est plus une fen�tre, mais un composant graphique. Vous devez donc supprimer l'instruction show(). Pour sp�cifier la taille du composant, remplacez setBounds(X,Y) par setPreferredSize(new Dimension(X,Y)). Votre composant graphique Carte est maintenant pr�t.
Cr�ez maintenant une classe Atlas h�ritant de JFrame, qui sera votre application principale. Dans le constructeur de votre application, cr�ez un Container et ins�rez-y un label pour le titre, une zone de saisie et un bouton. Ce Container sera votre interface. Utilisez le layout suivant pour votre container:
BoxLayout interfaceLayout = new BoxLayout(c,BoxLayout.Y_AXIS)
Pour que la zone de saisie ne soit pas trop grande, vous pouvez lui donner une taille maximum avec la m�thode setMaximumSize(Dimension d). Ajoutez dans le Content Pane de votre application la carte et l'interface.
Testez votre application. Vous devez voir apparaitre la carte sur la gauche et l'interface sur la droite.
Un premier traitement
Ecrivez dans la classe Monde une m�thode:
Ville getVilleParNom(String nomVille)
qui renvoie la ville dont le nom est pass� en param�tre.
Ajoutez dans la classe Carte un attribut villeSelectionnee qui contient le code de la ville selectionn�e, et une m�thode
setVilleSelectionnee(Ville v)
qui permet de changer cet attribut.
Modifiez la m�thode paint de la classe Carte pour que la ville selectionn�e s'affiche en couleur.
Enfin, modifiez la classe Atlas pour que lorsque l'utilisateur clique sur le bouton "Rechercher", la ville qu'il a entr� dans la zone de saisie s'affiche en couleur. R�f�rez-vous � la correction du TP n�7 si besoin est.
Etape n�4: Les routes
Chargement
Le fichier "route.dat" contient les informations concernant les routes entre les villes. Chaque ligne contient trois nombres. Le premier est le code de la ville de d�part, le second le code de la ville d'arriv�e et le troisi�me la distance.
Pour chaque ville, vous allez ajouter les informations concernant ses voisines. Pour cela, vous allez ajouter dans la classe Ville trois attributs:
un attribut int nbVoisines, contenant le nombre de voisines
un tableau Ville [] voisines, contenant les villes voisines. Il n'y a jamais plus de 10 voisines, donc vous pouvez d�clarer � l'avance un tableau de cette taille.
un tableau int [] distanceVoisines, contenant les distances correspondantes.
Vous allez �galement ajouter une m�thode
public void ajouterVoisine(Ville v,int distance)
permettant d'ajouter une nouvelle voisine.
Dans la classe Monde, vous allez �crire une m�thode
public Ville getVilleParCode(int code)
qui renvoie la ville dont le code est pass� en param�tre.
Enfin, vous allez ajouter le chargement des routes � la suite du chargement des villes dans la classe Monde. Attention, pour chaque route entre deux villes X et Y, Y doit �tre ajout� aux voisines de X, et X aux voisines de Y.
Affichage
Modifiez la m�thode paint de la classe Carte pour que les routes soit affich�es.
Etape n�5: Les itin�raires
Le principe de l'algorithme
Le calcul du plus cours chemin entre deux villes n'est pas un probl�me tr�s simple � resoudre. Vous allez ici utiliser un algorithme simplifi�, qui ne donne pas toujours le meilleur r�sultat, mais g�n�ralement une bonne approximation.
Pour aller d'une ville A vers une ville B, vous allez adopter la demarche suivante:
On se place en A.
On se deplace vers la ville voisine la plus proche de B.
On recommence l'�tape pr�c�dente jusqu'� se situer en B.
Cet algorithme fonctionne dans la grande majorit� des cas, mais pas toujours, comme vous le verrez par la suite.
Mise en oeuvre
Distances
La premi�re chose � faire est d'�crire une m�thode de calcul de distance entre deux villes. Attention! Le fichier "route.dat" vous fournit les longueurs des routes entre villes voisines. Dans l'algorithme pr�c�dent, vous avez besoin de conna�tre la distance r��lle entre deux villes quelconques. Vous allez pour cela faire un simple calcul de distance gr�ce aux coordonn�es g�om�triques des villes.
Ajoutez � la classe Ville une m�thode public int distance(Ville v) qui renvoie la distance � la ville pass�e en param�tre.
Aide: pour calculer la racine carr�e d'un entier x, vous devez utiliser la m�thode suivante: (int)(Math.sqrt(x))
Itineraire
Vous allez maintenant �crire une classe Itineraire, qui caract�rise un itin�raire entre deux villes.
La classe contient un tableau de villes, qui sont les villes pr�sentes sur l'itin�raire, ainsi que le nombre de ville. Le tableau sera remplit pendant le calcul de l'itin�raire.
La classe, en plus des accesseurs getVille et getNbVille, poss�de une m�thode:
public boolean contains(Ville v)
qui renvoie true si v est sur l'itin�raire, et false sinon.
Enfin, et surtout, elle poss�de un constructeur
public Itineraire(Ville depart,Ville arrivee)
qui construit l'itin�raire entre les villes depart et arrivee gr�ce � l'algorithme d�crit pr�c�demment.
Affichage
De m�me que pour villeSelectionnee, vous allez ajouter un attribut itineraireSelectionne et une m�thode
public void setItineraireSelectionne(Itineraire i)
� votre classe Carte.
Vous allez modifier la m�thode paint de mani�re � ce que les villes et les routes sur l'itin�raire apparaissent en couleur.
Enfin, vous allez ajouter � votre atlas deux champ de saisie, l'un pour le d�part, l'autre pour l'arriv�e, et un bouton pour le calcul de l'itin�raire .
Ecrivez une classe Itin�raire qui d�crit un itin�raire entre deux villes, sous forme d'une succession de villes.
Le constructeur Itin�raire
Ajoutez un attribut itineraireSelectionne dans la classe Carte et modifiez la m�thode paint de mani�re � ce que l'itin�raire selectionn� s'affiche en rouge.
Rectification
Testez votre programme, par exemple de Bordeaux � Lille. Tout doit fonctionner correctement. Testez-le ensuite du Havre � Caen. Que se passe-t-il? Pourquoi? Comment rectifier cela?
Mon probleme se situe au niveau de l'�tape 5 c a d � partir de l itineraire. Je n 'arrivepas � creer la classe Itineraire ni meme la methode pour la construction du plus court chemin.
Actuellement sur mon code, j aiprobleme d'affichage aussi. Quand je selectionne une ville sur le JCombobox, un messaged'erreur s'affiche. J aimerai que quand je selectionne ne ville, celle ci s'affiche en rougeet les autres non.Je poste mon code si besoin
Merci � ts
bye

please post in English

Similar Messages

  • Starting "Mobile Atlas Creator" or any java program with start.sh

    I know this is a Java Application, but don't have a clue as to how to open it.
    I read that I need to start this in script and to do that, I need to make it executable?
    I am sure that once I figure it out it will be like common sence, but until I have this spelled out, I am lost. Do I use Automator, Textedit, Console, Terminal or Folder Action Setup?
    Thank You,
    Fred

    There's information in the readme.htm that comes with the download.
    You'lll need to do two things:
    (1) First time: open terminal and navigate to the directory containing the app, then execute this command:
    chmod u+x start.sh
    (2) execute this command to start the application:
    ./start.sh
    NOTE: I know nothing of the app or what it does, so I can't help further.  There are notes about recommended memory allocation, but I am sure you can get those from the app's own forums.
    If these instructions don't work for you, you may need to install JRE (per the requirements):
    Java Runtime Environment Version 6 Update 14 (v1.6.0_14) or higher

  • Error while running a Java Program

    Can anyone help me,
    I am getting the following error while running a Java program, Below is the exception thrown, please help.
    java.nio.BufferOverflowException
    at java.nio.Buffer.nextPutIndex(Buffer.java:425)
    at java.nio.DirectByteBuffer.putChar(DirectByteBuffer.java:463)
    at org.jetel.data.StringDataField.serialize(StringDataField.java:295)
    at org.jetel.data.DataRecord.serialize(DataRecord.java:283)
    at org.jetel.graph.DirectEdge.writeRecord(DirectEdge.java:216)
    at org.jetel.graph.Edge.writeRecord(Edge.java:288)
    at com.tcs.re.component.RESummer1.run(RESummer1.java:505)
    java.nio.BufferOverflowException
    at java.nio.Buffer.nextPutIndex(Buffer.java:425)
    at java.nio.DirectByteBuffer.putChar(DirectByteBuffer.java:463)
    at org.jetel.data.StringDataField.serialize(StringDataField.java:295)
    at org.jetel.data.DataRecord.serialize(DataRecord.java:283)
    at org.jetel.graph.DirectEdge.writeRecord(DirectEdge.java:216)
    at org.jetel.graph.Edge.writeRecord(Edge.java:288)
    at com.tcs.re.component.RECollectCont.run(RECollectCont.java:304)

    Ok, let's see. Write the following class:
    public class Grunt {
      public static void main(String[] args) {
        System.out.println("Hello Mars");
    }Save it as "C:\Grunt.java", compile by typing:
    javac c:\Grunt.javaRun by typing:
    java -classpath "C:\" GruntDoes it say "Hello Mars"? If yes, go back to your program and compare for differences (maybe you used the "package" statement?).
    Regards

  • Erro de SYSFAIL e Queda do Ambiente JAVA (PI)

    Bom Dia
    Estou num projeto de NFe e atualmente esta acontecendo o seguinte cenário de Erros:
        Na SMQ2 , quando apresenta um aumento nas filas de Mensagens , aparece SYSFAIL em determinadas Filas , todas as outras travam , aumenta o numero de Filas.
       Com essa mensagem de SYSFAIL nas filas , o serve0 (Parte JAVA do PI) cai e após isso estou tendo que efetuar manualmente um STOP/START em todos os canais de comunnicação para que os R/3 voltem a emitir NFe.
        Isso esta ocorrendo com mais frequência após inserir uma nova empresa para emissão de NFe.
        Alguem poderia me ajudar a entender por que ocorre o SYSFAIL as mensagens travam e derruba o ambiente JAVA ?
    Sérgio.

    1º) Erro: Commit Fault: com.sap.aii.af.rfc.afcommunication.RfcAFWException:SenderA
    2º) Foi alterado o numero de Filas O numero de Filas foi alterado , mas não consigo ver esse parametros na RZ10 , tem  3 entradas : X32_DVEBMGS32_NFISAP ; DEFAULT ; START_DVEBMGS32_NFISAP nessa transação ...onde eu vejo isso
    3º) Esse parametro não tem nessa transação (/usr/sap//DVEBMGS00/j2ee/cluster/server0/log/). em qual desses diretórios abaixo eu encontro esse parametro ?
    Existe esses:
    DIR_ATRA      /usr/sap/X32/DVEBMGS32/data
    DIR_BINARY      /usr/sap/X32/DVEBMGS32/exe
    DIR_CCMS      /usr/sap/ccms
    DIR_CT_LOGGIN    /usr/sap/X32/SYS/global
    DIR_CT_RUN              /usr/sap/X32/SYS/exe/run
    DIR_DATA              /usr/sap/X32/DVEBMGS32/data
    DIR_DBMS              /usr/sap/X32/SYS/SAPDB
    DIR_EXECUTABLE /usr/sap/X32/DVEBMGS32/exe
    DIR_EXE_ROOT     /usr/sap/X32/SYS/exe
    DIR_GEN              /usr/sap/X32/SYS/gen/dbg
    DIR_GEN_ROOT    /usr/sap/X32/SYS/gen
    DIR_GLOBAL        /usr/sap/X32/SYS/global
    DIR_GRAPH_EXE  /usr/sap/X32/DVEBMGS32/exe
    DIR_GRAPH_LIB   /usr/sap/X32/DVEBMGS32/exe
    DIR_HOME             /usr/sap/X32/DVEBMGS32/work
    DIR_INSTALL        /usr/sap/X32/SYS
    DIR_INSTANCE     /usr/sap/X32/DVEBMGS32
    DIR_LIBRARY      /usr/sap/X32/DVEBMGS32/exe
    DIR_LOGGING     /usr/sap/X32/DVEBMGS32/log
    DIR_MEMORY_INSPECTOR   /usr/sap/X32/DVEBMGS32/data
    DIR_ORAHOME       /oracle/X32/102_64
    DIR_PAGING                            /usr/sap/X32/DVEBMGS32/data
    DIR_PUT                            /usr/sap/X32/put
    DIR_PERF                            /usr/sap/tmp
    DIR_PROFILE      /usr/sap/X32/SYS/profile
    DIR_PROTOKOLLS     /usr/sap/X32/DVEBMGS32/log
    DIR_REORG                          /usr/sap/X32/DVEBMGS32/data
    DIR_ROLL                          /usr/sap/X32/DVEBMGS32/data
    DIR_RSYN                            /usr/sap/X32/DVEBMGS32/exe
    DIR_SAPHOSTAGENT     /usr/sap/hostctrl
    DIR_SAPUSERS     ./
    DIR_SETUPS                           /usr/sap/X32/SYS/profile
    DIR_SORTTMP     /usr/sap/X32/DVEBMGS32/data
    DIR_SOURCE     /usr/sap/X32/SYS/src
    DIR_TEMP                           /tmp
    DIR_TRANS                           /usr/sap/trans
    DIR_TRFILES                          /usr/sap/trans
    DIR_TRSUB                          /usr/sap/trans

  • Starting deployment prerequisites: error in BI-Java installation sapinst

    Hi all,
    We are in process updating Bw 3.5 to BI 7.0 we hace sucessfully completed the Upgrade but while installing Bi java thru Sapinst in third step like java instance installtion  i was stck with the below error.
               We have downloaded the Cryptographic file and placed in jdk folder still the same problem is  coming.
    Please suggest...
    Thanks,
    Subhash.G
    Starting deployment prerequisites:
    Oct 13, 2007 2:42:18 AM  Error: Creation of DataSource for database "BWQ" failed.
    Original error message is:
    com.sap.sql.log.OpenSQLException: Error while accessing secure store: Encryption or decryption is not possible because the full version of the SAP Java Crypto Toolkit was not found (iaik_jce.jar is required, iaik_jce_export.jar is not sufficient) or the JCE Jurisdiction Policy Files don't allow the use of the "PbeWithSHAAnd3_KeyTripleDES_CBC" algorithm..
    Stack trace of original Exception or Error is:
    com.sap.sql.log.OpenSQLException: Error while accessing secure store: Encryption or decryption is not possible because the full version of the SAP Java Crypto Toolkit was not found (iaik_jce.jar is required, iaik_jce_export.jar is not sufficient) or the JCE Jurisdiction Policy Files don't allow the use of the "PbeWithSHAAnd3_KeyTripleDES_CBC" algorithm..

    Problem solved  followed the notes 1063396.

  • If Statement in java.awt paint

    import java.applet.Applet;  //bring in the applet class
    import java.awt.*;             //bring in the graphics class
    import java.awt.event.*;      //bring in the event class
    import java.text.DecimalFormat;    //bring in the decimal format class
    import java.lang.Float;       //bring in the float class
    public class Bmi extends Applet implements ActionListener {   //begin program and start ActionListener
      Label weight, height;    //define Label variable
      TextField weighttext, heighttext;    //define TextField variables
      Button calculate;     //define button variables
      float index, wt, ht, max, min;    //define float variables
      DecimalFormat fmt2 = new DecimalFormat("#.00"); //set decimal format for reals
    public void init() {    //begin init()
      weight = new Label("Please enter your weight in Kg. (2 decimal places): ");   //define content of Label weight
      weighttext = new TextField(6);            //define size of TextField
      height = new Label("Please enter your height in Metres (2 decimal places): ");   //define content of Label height
      heighttext = new TextField(5);    //define size of TextField
      calculate = new Button("Calculate!!");       //define content of Button
      add(weight);      //add Label weight to the GUI
      add(weighttext);   //add TextField weighttext to the GUI
      add(height);      //add Label height to the GUI
      add(heighttext);     //add TextField heighttext to the GUI
      add(calculate);        //add button calculate to the GUI
      calculate.addActionListener(this);    //wait for button to be returned
      wt = 0;     //reset wt to 0
      index = 0;  //reset index to 0
      ht = 0;      //reset ht to 0
      max = 0;      //reset max to 0
      min = 0;    //reset min to 0
      public void actionPerformed( ActionEvent e ) {   //run upon return of button
      wt = Float.parseFloat(weighttext.getText());  //convert weighttext from String to Float
      ht = Float.parseFloat(heighttext.getText());    //covert heighttext from String to Float
      repaint();     //refresh paint area
      public float indexer()  //begin indexer method
        float ind;    //delare local variable ind
        ind = wt/(ht*ht);      //perform calculation
        return ind;    //make indexer() the value of variable ind
      }  // end of indexer method
      public float maxWeight()  //begin maxWeight method
        float maxwt;    //declare local variable maxwt
        final float UPPER = 25.0f;   //declare variable UPPER as a float with a decimal value of 25.0
        maxwt = UPPER*ht*ht;      //perform calculation
        return maxwt;          //make maxWeight() the value of variable maxwt
      }  // end of maxWeight method
      public float minWeight()   //begin minWeight method
        float minwt;    //declare local variable minwt
        final float LOWER= 20.0f;   //declare variable LOWER as a float with a decimal value of 20.0
        minwt = LOWER*ht*ht;    //perform calculation
        return minwt;      //make minWeight() the value of variable minwt
      }  // end of minWeight method
    public void paint(Graphics g)    //begin paint method, define g as Graphics
        index=indexer();   //covert method indexer() to variable index
        max=maxWeight();      //convert method maxWeight() to variable max
        min=minWeight();     //convert method minWeight() to variable min
        g.setFont(new Font("Verdana", Font.ITALIC, 15));    //define font, weight and size
        g.setColor(new Color(90,90,90));     //set new colour
        g.drawRect(5,100,300,75);      //define size of rectangle
        g.setColor(new Color(255,107,9));   //set new colour
        g.drawString("BMI is " + fmt2.format(index) + " for " + fmt2.format(wt) + "kg",20,120);   //create string in paint, define its on screen position
        g.drawString("Maximum bodyweight is " + fmt2.format(max) + "kg", 20,140);   //create string in paint, define its on screen position
        g.drawString("Minimum bodyweight is " + fmt2.format(min) + "kg", 20,160);     //create string in paint, define its on screen position
      }  // end of paint method
    }    // end of Bmi classI have written the above code to calculate someones BMI (Body Mass Index). Basically as you can see it recieves a weight and height from the user and calculates the rest. But whilst that good I would like to know how I can make it tell the user something to the effect of "Your overweight" or "Your underweight". The if statement runs like this:
    if (wt > max)This forum doesn't quite handle <> properly. The greater and less than symbols. So above you will see > this is the html character code for a greater than symbol so please read it as such.
    And then if wt is greater than max then it will say "Your overweight".
    But I can't figure out how to include it in the above program. Becuase it won't run in paint, atleast it won't the way I have done it previously. So can you think of any other ways?
    Help much appreciated,
    Simon

    Thanks very much that works well.
    Simon
    My code now looks like this: import java.applet.Applet;  //bring in the applet class
    import java.awt.*;             //bring in the graphics class
    import java.awt.event.*;      //bring in the event class
    import java.text.DecimalFormat;    //bring in the decimal format class
    import java.lang.Float;       //bring in the float class
    public class Bmi extends Applet implements ActionListener {   //begin program and start ActionListener
      Label weight, height;    //define Label variable
      TextField weighttext, heighttext;    //define TextField variables
      Button calculate;     //define button variables
      float index, wt, ht, max, min;    //define float variables
      DecimalFormat fmt2 = new DecimalFormat("#.00"); //set decimal format for reals
    public void init() {    //begin init()
      weight = new Label("Please enter your weight in Kg. (2 decimal places): ");   //define content of Label weight
      weighttext = new TextField(6);            //define size of TextField
      height = new Label("Please enter your height in Metres (2 decimal places): ");   //define content of Label height
      heighttext = new TextField(5);    //define size of TextField
      calculate = new Button("Calculate!!");       //define content of Button
      add(weight);      //add Label weight to the GUI
      add(weighttext);   //add TextField weighttext to the GUI
      add(height);      //add Label height to the GUI
      add(heighttext);     //add TextField heighttext to the GUI
      add(calculate);        //add button calculate to the GUI
      calculate.addActionListener(this);    //wait for button to be returned
      wt = 0;     //reset wt to 0
      index = 0;  //reset index to 0
      ht = 0;      //reset ht to 0
      max = 0;      //reset max to 0
      min = 0;    //reset min to 0
      public void actionPerformed( ActionEvent e ) {   //run upon return of button
      wt = Float.parseFloat(weighttext.getText());  //convert weighttext from String to Float
      ht = Float.parseFloat(heighttext.getText());    //covert heighttext from String to Float
      repaint();     //refresh paint area
      public float indexer()  //begin indexer method
        float ind;    //delare local variable ind
        ind = wt/(ht*ht);      //perform calculation
        return ind;    //make indexer() the value of variable ind
      }  // end of indexer method
      public float maxWeight()  //begin maxWeight method
        float maxwt;    //declare local variable maxwt
        final float UPPER = 25.0f;   //declare variable UPPER as a float with a decimal value of 25.0
        maxwt = UPPER*ht*ht;      //perform calculation
        return maxwt;          //make maxWeight() the value of variable maxwt
      }  // end of maxWeight method
      public float minWeight()   //begin minWeight method
        float minwt;    //declare local variable minwt
        final float LOWER= 20.0f;   //declare variable LOWER as a float with a decimal value of 20.0
        minwt = LOWER*ht*ht;    //perform calculation
        return minwt;      //make minWeight() the value of variable minwt
      }  // end of minWeight method
    public void you(Graphics g)
      String statement;
      if(wt > max) statement="You are very fat";
      else if(wt < min) statement="You are very thin";
      else statement="You are in the recommended weight range for your height";
      g.drawString(statement, 20,210);
    public void paint(Graphics g)    //begin paint method, define g as Graphics
        you(g);
        index=indexer();   //covert method indexer() to variable index
        max=maxWeight();      //convert method maxWeight() to variable max
        min=minWeight();     //convert method minWeight() to variable min
        g.setFont(new Font("Verdana", Font.ITALIC, 15));    //define font, weight and size
        g.setColor(new Color(90,90,90));     //set new colour
        g.drawRect(5,100,300,75);      //define size of rectangle
        g.setColor(new Color(255,107,9));   //set new colour
        g.drawString("BMI is " + fmt2.format(index) + " for " + fmt2.format(wt) + "kg",20,120);   //create string in paint, define its on screen position
        g.drawString("Maximum bodyweight is " + fmt2.format(max) + "kg", 20,140);   //create string in paint, define its on screen position
        g.drawString("Minimum bodyweight is " + fmt2.format(min) + "kg", 20,160);     //create string in paint, define its on screen position
      }  // end of paint method
    }    // end of BmiThanks again,
    Simon

  • SSO java sample application problem

    Hi all,
    I am trying to run the SSO java sample application, but am experiencing a problem:
    When I request the papp.jsp page I end up in an infinte loop, caught between papp.jsp and ssosignon.jsp.
    An earlier thread in this forum discussed the same problem, guessing that the cookie handling was the problem. This thread recommended a particlar servlet , ShowCookie, for inspecting the cookies for the current session.
    I have installed this cookie on the server, but don't see anything but one cookie, JSESSIONID.
    At present I am running the jsp sample app on a Tomcat server, while Oracle 9iAS with sso and portal is running on another machine on the LAN.
    The configuration of the SSO sample application is as follows:
    Cut from SSOEnablerJspBean.java:
    // Listener token for this partner application name
    private static String m_listenerToken = "wmli007251:8080";
    // Partner application session cookie name
    private static String m_cookieName = "SSO_PAPP_JSP_ID";
    // Partner application session domain
    private static String m_cookieDomain = "wmli007251:8080/";
    // Partner application session path scope
    private static String m_cookiePath = "/";
    // Host name of the database
    private static String m_dbHostName = "wmsi001370";
    // Port for database
    private static String m_dbPort = "1521";
    // Sehema name
    private static String m_dbSchemaName = "testpartnerapp";
    // Schema password
    private static String m_dbSchemaPasswd = "testpartnerapp";
    // Database SID name
    private static String m_dbSID = "IASDB.WMDATA.DK";
    // Requested URL (User requested page)
    private static String m_requestUrl = "http://wmli007251:8080/testsso/papp.jsp";
    // Cancel URL(Home page for this application which don't require authentication)
    private static String m_cancelUrl = "http://wmli007251:8080/testsso/fejl.html";
    Values specified in the Oracle Portal partner app administration page:
         ID: 1326
         Token: O87JOE971326
         Encryption key: 67854625C8B9BE96
         Logon-URL: http://wmsi001370:7777/pls/orasso/orasso.wwsso_app_admin.ls_login
         single signoff-URL: http://wmsi001370:7777/pls/orasso/orasso.wwsso_app_admin.ls_logout
         Name: testsso
         Start-URL: http://wmli007251:8080/testsso/
         Succes-URL: http://wmli007251:8080/testsso/ssosignon.jsp
         Log off-URL: http://wmli007251:8080/testsso/papplogoff.jsp
    Finally I have specified the cookie version to be v1.0 when running the regapp.sql script. Other parameters for this script are copied from the values specified above.
    Unfortunately the discussion in the earlier thread did not go any further but to recognize the cookieproblem, so I am now looking for help to move further on from here.
    Any ideas will be greatly appreciated!
    /Mads

    Pierre - When you work on the sample application, you should test the pages in a separate browser instance. Don't use the Run Page links from the Builder. The sample app has a different authentication scheme from that used in the development environment so it'll work better for you to use a separate development browser from the application testing browser. In the testing browser, to request the page you just modified, login to the application, then change the page ID in the URL. Then put some navigation controls into the application so you can run your page more easily by clicking links from other pages.
    Scott

  • SSO between a Java EE application (Running on CE) and r/3 backend

    Hi All,
    Over the past few days I have been trying to implement a SSO mechanism between NW CE Java Apps and R/3 backend without any success. I have been trying to use SAP logon tickets for implementing SSO.
    Below is what I need:
    I have a Java EE application which draws data from R/3 backend and does some processing before showing data to the users. As of now the only way the Java App on CE authenticates to r/3 backend is by passing the userid and pwds explicitly. See sample authentication code below:
    BindingProvider bp = (BindingProvider) myService;
    Map<String,Object> context = bp.getRequestContext();
    context.put(BindingProvider.USERNAME_PROPERTY, userID);
    context.put(BindingProvider.PASSWORD_PROPERTY, userPwd);
    Now this is not the way we want to implement it. What we need is when the user authenticates to CE ( using CE's UME) CE issues a SAP logon ticket to the user. This ticket should be used to subsequently login to other system without having to pass the credentials. We have configured the CE and Backend to use SAP logon tickets as per SAP help.
    What I am not able to figure out is: How to authenticate to SAP r/3 service from the java APP using SAP logon tickets. I couldnt find any sample Java  code on SAP help to do this. (For example the above sample code authenticates the user by explicitly passing userid and pwd, I need something similar to pass a token to the backend)
    Any help/pointers on this would be great.
    Thanks,
    Dhananjay

    Hi,
    Have you imported the java certificate into R/3 backend system ? if so.
    Then just go to backend system and check on sm50 for each applicaion instance of any error eg.
    SM50-> Display files (ICON) as DB symbol with spect.(cntrlshiftF8)
    You will get logon ticket details.
    with thanks,
        Rajat

  • 'Unable to Launch Application Error' - Java Web Start Running Under MS IIS.

    I am attempting to render the following .jnlp in MS IE:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for LottoMadness Application -->
    <jnlp
       codebase="http://localhost/LottoMadness/"
       href="LottoMadness.jnlp">
       <information>
         <title>LottoMadness Application</title>
         <vendor>Rogers Cadenhead</vendor>
         <homepage href="http://localhost/LottoMadness/"/>
         <icon href="lottobigicon.gif"/>
       </information>
       <resources>
         <j2se version="1.5"/>
         <jar href="LottoMadness.jar"/>
       </resources>
       <application-desc main-class="LottoMadness"/>
    </jnlp>I've deployed the .jnlp, .gif, and .jar to MS IIS, running locally on my PC.
    When I attempt to render the .jnlp in IE I obtain an 'Application Error' window stating 'Unable to Launch Application'. Clicking details gives me:
    com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://localhost/LottoMadness/LottoMadness.jnlp
         at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
         at com.sun.javaws.Launcher.updateFinalLaunchDesc(Unknown Source)
         at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
         at com.sun.javaws.Launcher.launch(Unknown Source)
         at com.sun.javaws.Main.launchApp(Unknown Source)
         at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
         at com.sun.javaws.Main$1.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)I have configured MS IIS for Web Start, by setting the Extension/Content Type fields to .jnlp and application/x-java-jnlp-file.
    (The .jnlp is basically from 'Programming with Java in 24 Hours', as this is the book I am learning Java from.)

    AndrewThompson64 wrote:
    I am not used to seeing references to a local server that do not include a port number.
    E.G. http://localhost:8080/LottoMadness/
    I have deployed the following HTML (HelpMe.html) to the web server:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
         <title>Untitled</title>
    </head>
    <body>
    Help Me!
    </body>
    </html>When I attempt to render the URL in IE, I see the page just fine. The URL is use is:
    http://localhost/LottoMadness/HelpMe.htmlSo, I think my web server setup and usage is ok.
    >
    As an aside, what happens if (your MS IIS is running and) you click a direct link to..
    [http://localhost/LottoMadness/LottoMadness.jnlp|http://localhost/LottoMadness/LottoMadness.jnlp]
    When I click this link I get the error and exception I cited in my previous post.

  • Partner Application written in other language than PL/SQL and Java

    I have an application written in another language than PL/SQL or Java. I want to integrate this application as an Partner apps where I use the same user repository as Portal.
    Can I integrate the application by calling a stored PL/SQL-procedure based on the PLSQL SSO APIs examples that authenticates the user based on the username/password in portal and redirects the user to the application ?
    Are there any examples / references where this has been done ?
    Jens

    Check out the PDK referance for URL-Services, which allow you to integrate with any web based service/content.
    http://portalstudio.oracle.com/servlet/page?_pageid=350&_dad=ops&_schema=OPSTUDIO

  • Possibility of drawing numbers on java bouncing balls?

    Can anyone show me how to put numbers on these moving balls in my code. I need the numbers 1-60 on them. I have two sets the red and white. Here is my code. Any help is appreciated. I am trying to write a program to represent the powerball.
    import java.awt.*;
    import java.applet.*;
    import java.util.*;
    import javax.swing.*;
    import java.awt.Rectangle;
    class CollideBall{
    int width, height;
    public static final int diameter=20;
    //coordinates and value of increment
    double x, y, xinc, yinc, coll_x, coll_y;
    boolean collide;
    Color color;
    Graphics g;
    Rectangle r;
    //the constructor
    public CollideBall(int w, int h, int x, int y, double xinc, double yinc, Color c){
    width=w;
    height=h;
    this.x=x;
    this.y=y;
    this.xinc=xinc;
    this.yinc=yinc;
    color=c;
    r=new Rectangle(150,80,130,90);
    public double getCenterX() {return x+diameter/2;}
    public double getCenterY() {return y+diameter/2;}
    public void alterRect(int x, int y, int w, int h){
    r.setLocation(x,y);
    r.setSize(w,h);
    public void move(){
    if (collide){  
    double xvect=coll_x-getCenterX();
    double yvect=coll_y-getCenterY();
    if((xinc>0 && xvect>0) || (xinc<0 && xvect<0))
    xinc=-xinc;
    if((yinc>0 && yvect>0) || (yinc<0 && yvect<0))
    yinc=-yinc;
    collide=false;
    x+=xinc;
    y+=yinc;
    //when the ball bumps against a boundary, it bounces off
    //ball width is 6 so if the ball becomes less then 6 it is touching the frame
    //if ball is greater than the entire width-the diameter of the rectangle, then the ball is just touching the frame of the rectangle and must switch to negative to go in opposit direction
    if(x<6 || x>width-diameter){
    xinc=-xinc;
    x+=xinc;
    //same thing as about just about the Y-axis instead of the x-axis
    if(y<6 || y>height-diameter){
    yinc=-yinc;
    y+=yinc;
    public void hit(CollideBall b){
    if(!collide){
    coll_x=b.getCenterX();
    coll_y=b.getCenterY();
    collide=true;
    public void paint(Graphics gr){
    g=gr;
    g.setColor(color);
    //the coordinates in fillOval have to be int, so we cast
    //explicitly from double to int
    g.fillOval((int)x,(int)y,diameter,diameter);
    //Draws half white and half dark gray arc around the balls to give light and shadow effect
    g.setColor(Color.white);
    g.drawArc((int)x,(int)y,diameter,diameter,45,180);
    g.setColor(Color.darkGray);
    g.drawArc((int)x,(int)y,diameter,diameter,225,180);
    public class BouncingBalls extends Applet implements Runnable { 
    Thread runner;
    Image Buffer;
    Graphics gBuffer;
    CollideBall ball[];
    //Obstacle o;
    //how many balls?
    static final int MAX=60;
    boolean intro=true,drag,shiftW,shiftN,shiftE,shiftS;
    boolean shiftNW,shiftSW,shiftNE,shiftSE;
    int xtemp,ytemp,startx,starty;
    int west, north, east, south;
    public void init() {  
    Buffer=createImage(getSize().width,getSize().height);
    gBuffer=Buffer.getGraphics();
    ball=new CollideBall[MAX];
    int w=getSize().width-5;
    int h=getSize().height-5;
    //our balls have different start coordinates, increment values
    //(speed, direction) and colors
    for (int i = 0;i<30;i++){
    ball=new CollideBall(w,h,48+i,500+i,1.5,2.0,Color.white);
    ball[i+30]=new CollideBall(w,h,890+i,200+i,1.5,2.0,Color.red);
    public void start(){
    if (runner == null) {
    runner = new Thread (this);
    runner.start();
    /* public void stop(){
    if (runner != null) {
    runner.stop();
    runner = null;
    public void run(){
    while(true) {
    Thread.currentThread().setPriority(Thread.MAX_PRIORITY);
    try {runner.sleep(15);}
    catch (Exception e) { }
    //move our balls around
    for(int i=0;i<MAX;i++){
    ball[i].move();
    handleCollision();
    repaint();
    boolean collide(CollideBall b1, CollideBall b2){
    double wx=b1.getCenterX()-b2.getCenterX();
    double wy=b1.getCenterY()-b2.getCenterY();
    //we calculate the distance between the centers two
    //colliding balls (theorem of Pythagoras)
    double distance=Math.sqrt(wx*wx+wy*wy);
    if(distance<b1.diameter)
    return true;
    return false;
    private void handleCollision(){
    //we iterate through all the balls, checking for collision
    for(int i=0;i<MAX;i++)
    for(int j=0;j<MAX;j++){
    if(i!=j){         
    if(collide(ball[i], ball[j])){  
    ball[i].hit(ball[j]);
    ball[j].hit(ball[i]);
    public void update(Graphics g){
    paint(g);
    public void paint(Graphics g) { 
    gBuffer.setColor(Color.lightGray);
    gBuffer.fillRect(0,0,getSize().width,getSize().height);
    gBuffer.draw3DRect(5,5,getSize().width-10,getSize().height-10,false);
    //paint our balls
    for(int i=0;i<MAX;i++)
    ball[i].paint(gBuffer);
    g.drawImage (Buffer,0,0, this);
    Thanks again

    this.user wrote:
    JakeG27 post your code within the code tab it will be more clear.
    You can do this by clicking on CODE when you do this will appear { code} { code} post your code inbetween those to tags.
    ie
    { code} code... { code}
    and it will look like this
    code
    This must be the first sensible post you've ever made. At least you're able to copy someone else's response and pretend you know something.

  • Java Bouncing Balls Threads problem?

    Hello,
    I am working on a homework assignment to represent a java applet with some bouncing balls inside. So far so good. The balls bounce and behave as they are supposed. The only thing is that I want to make 2 buttons, Start and Stop (this is not part of the assignment, but my free will to provide some extra stuff :) ) . I am implementing Runnable for the animation and ActionListener for the buttons. I did research on threading, but somehow I am still not getting quite the result I want. The applet is not displaying my buttons (I guess I am not implementing them correctly) and I dont know whether I have synchronized the threads correctly as well. So, I am asking for some guidance how can I do this? Thanks in advance!
    As a remark, I am new to Java, as I am just starting to learn it and this is my first assignment.
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.FlowLayout;
    import java.awt.Graphics;
    import java.awt.Image;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JApplet;
    import javax.swing.JButton;
    import javax.swing.JPanel;
    public class Balls extends JApplet implements Runnable, ActionListener
         Thread runner = null;     
         Image img;
        Graphics gr;          
        BallCollision ball[];
        Balls can;
        JButton stopButton;
        JButton startButton;
        JPanel controls;
        boolean stop,start;
        //field for 10 balls
        static final int MAX=10;
         public void init()
              setSize(800,600);
              img = createImage(size().width,size().height);
              gr = img.getGraphics();     
              startButton = new JButton("Start");
              stopButton = new JButton("Stop");
              stopButton.addActionListener(this);
              startButton.addActionListener(this);
              controls = new JPanel();
              controls.setLayout(new FlowLayout());
              controls.add(startButton);
              controls.add(stopButton);
              //new Thread(this).start();
              ball = new BallCollision[MAX];
              int w=size().width;
              int h=size().height;          
              //creation of balls, which have different coordinates,
              //speed, direction and colors
              ball[0] = new BallCollision(w,h,50,20,1.5,7.5,Color.orange);
            ball[1] = new BallCollision(w,h,60,210,2.0,-3.0,Color.red);
            ball[2] = new BallCollision(w,h,15,70,-2.0,-2.5,Color.pink);
            ball[3] = new BallCollision(w,h,150,30,-2.7,-1.0,Color.cyan);
            ball[4] = new BallCollision(w,h,210,30,2.2,-12.5,Color.magenta);
              ball[5] = new BallCollision(w,h,360,170,2.2,-1.5,Color.yellow);
              ball[6] = new BallCollision(w,h,210,180,-1.2,-2.5,Color.blue);
              ball[7] = new BallCollision(w,h,330,30,-2.2,-1.8,Color.green);
              ball[8] = new BallCollision(w,h,180,220,-2.2,-1.8,Color.white);
              ball[9] = new BallCollision(w,h,330,130,-2.2,9.0,Color.gray);     
         public void actionPerformed(ActionEvent e)
              if(e.getSource() == startButton) start = true;
                   can.start();
              if(e.getSource() == stopButton) start = false;
                   can.stop();
         public void start()
              if (runner == null)
                   runner = new Thread (this);
                   runner.start();
         public void stop()
              if (runner != null)
                  runner.stop();
                    runner = null;
         public void run()
              while(true)
                   try {Thread.sleep(15);}
                     catch (Exception e) { }               
                   //move our balls around
                   for(int i=0;i<MAX;i++)
                        ball.move();
                   handleCollision();
                   repaint();     
         boolean collide(BallCollision b1, BallCollision b2)
              double wx=b1.getCenterX()-b2.getCenterX();
              double wy=b1.getCenterY()-b2.getCenterY();
              //the distance between 2 colling balls' centres is
              //calculated by the theorem of Pythagoras
              double distance=Math.sqrt(wx*wx+wy*wy);
              if(distance<b1.diameter)
                   return true;          
                   return false;     
         private void handleCollision()
              //ecah ball is checked for possible collisions
              for(int i=0;i<MAX;i++)
                   for(int j=0;j<MAX;j++)
                             if(i!=j)
                                  if(collide(ball[i], ball[j]))
                                       ball[i].hit(ball[j]);
                                       ball[j].hit(ball[i]);
         public void update(Graphics g)
              paint(g);
         public void paint(Graphics g)
              gr.setColor(Color.black);
              gr.fillRect(0,0,size().width,size().height);          
              //paint the balls
              for(int i=0;i<MAX;i++)
                        ball[i].paint(gr);          
              g.drawImage (img,0,0, this);                    
    class BallCollision
         int width, height;
         int diameter=30;
         //balls' coordinates and values to be incremented for directions
         double x, y, xIncremented, yIncremented, coll_x, coll_y;
         boolean collide;
         Color color;
         Graphics g;
         //constructor
         public BallCollision(int w, int h, int x, int y, double xInc, double yInc, Color c)
              width=w;
              height=h;
              this.x=x;
              this.y=y;
              this.xIncremented=xInc;
              this.yIncremented=yInc;          
              color=c;          
         public double getCenterX() {return x+diameter/2;}
         public double getCenterY() {return y+diameter/2;}
         public void move()
              if (collide)
                   double xvect=coll_x-getCenterX();
                   double yvect=coll_y-getCenterY();
                   if((xIncremented>0 && xvect>0) || (xIncremented<0 && xvect<0))
                        xIncremented=-xIncremented;
                   if((yIncremented>0 && yvect>0) || (yIncremented<0 && yvect<0))
                        yIncremented=-yIncremented;
                   collide=false;
              x+=xIncremented;
         y+=yIncremented;
              //if the ball reaches a wall, it bounces to the opposite direction
         if(x<1 || x>width-diameter)
              xIncremented=-xIncremented;
                   x+=xIncremented;
              if(y<1 || y>height-diameter)
                   yIncremented=-yIncremented;
                   y+=yIncremented;
         public void hit(BallCollision b)
              if(!collide)
                   coll_x=b.getCenterX();
                   coll_y=b.getCenterY();
                   collide=true;
         public void paint(Graphics graphics)
              g=graphics;
              g.setColor(color);
              //the coordinates in fillOval have to be int, so we cast
              //explicitly from double to int
              g.fillOval((int)x,(int)y,diameter,diameter);

    well i didnt arrive at this point without reading tutorials and researching.... sometimes other people can spot your mistakes a lot easier than you can, that's why I asked for help. 10x anyway for the interest!

  • Is there free java chat, which i can embed in my Swing application

    Hello all,
    I have a Swing application and i want to embed java chat into it.
    Can you recommend me free chat for which i can see and modofy client and server sources.
    Regards,
    Chavdar

    No.

  • Problem with Java and Memory

    hi,
    i have 512MB Memory in my pc, but the SUN ONE uses only 64MB.
    i dont know where is the problem. is it in the Run time of java of in the GUI Studio from Sun?
    how can i increase the number 64?
    i do nothing eccept java on this pc.
    thx

    Did you encounter a java.lang.OutOfMemoryError when running java? If not, nothing needs to be fixed.
    Still, you can specify the initial and max heap size for your java application on startup. Use the options -Xms<size> and -Xmx<size>, respectively. To see the non-standard options of your JVM, type "java -X"
    in a command shell.
    Cheers, HJK

  • I am trying to do profiling of an ear appln using Java 1.6, JVMTI and TPTP

    Please view the link before hand: http://www.eclipse.org/forums/index.php/t/398099/
    but while starting the server i am getting the following error:
    A fatal error has been detected by the Java Runtime Environment:
    # EXCEPTION_STACK_OVERFLOW (0xc00000fd) at pc=0x77232258, pid=6568, tid=7560
    # JRE version: 6.0_18-b07
    # Java VM: Java HotSpot(TM) Server VM (16.0-b13 mixed mode windows-x86 )
    # Problematic frame:
    # C [ntdll.dll+0x22258]
    # If you would like to submit a bug report, please visit:
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    Can anyone help me in fixing this
    The log file contains as below:
    # A fatal error has been detected by the Java Runtime Environment:
    # EXCEPTION_STACK_OVERFLOW (0xc00000fd) at pc=0x77232258, pid=6568, tid=7560
    # JRE version: 6.0_18-b07
    # Java VM: Java HotSpot(TM) Server VM (16.0-b13 mixed mode windows-x86 )
    # Problematic frame:
    # C [ntdll.dll+0x22258]
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    --------------- T H R E A D ---------------
    Current thread (0x099d3800): JavaThread "main" [_thread_in_native, id=7560, stack(0x0a320000,0x0a360000)]
    siginfo: ExceptionCode=0xc00000fd, ExceptionInformation=0x00000001 0x0a320ffc
    Registers:
    EAX=0x00000009, EBX=0x00000001, ECX=0x0ef02b40, EDX=0x0ef0739c
    ESP=0x0a321000, EBP=0x0a32100c, ESI=0x02917df4, EDI=0x0291902c
    EIP=0x77232258, EFLAGS=0x00010206
    Top of Stack: (sp=0x0a321000)
    0x0a321000: 0000003f 0291902c 0291902c 0a32101c
    0x0a321010: 0290aba1 029195c0 0ef072e0 0a35d2a4
    0x0a321020: 0290a0f9 00000009 0ef02b40 02907b36
    0x0a321030: 0ef072e0 02904f00 0ef072e0 0ef04fe0
    0x0a321040: 02904f11 00000001 0ef04fc0 02904f11
    0x0a321050: 00000001 0ef03960 02904f11 00000001
    0x0a321060: 0ef06020 02904f11 00000001 0ef025e0
    0x0a321070: 02904f11 00000001 0ef051a0 02904f11
    Instructions: (pc=0x77232258)
    0x77232248: 00 90 90 90 90 90 90 90 8b ff 55 8b ec 83 ec 0c
    0x77232258: 56 57 8b 7d 08 8d 77 04 8b c6 f0 0f ba 30 00 0f
    Stack: [0x0a320000,0x0a360000], sp=0x0a321000, free space=40a320ae4k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C [ntdll.dll+0x22258]
    C [CGProf.dll+0xaba1]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j org.jboss.seam.jsf.SeamApplicationFactory.getApplication()Ljavax/faces/application/Application;+19
    j com.sun.faces.config.processor.AbstractConfigProcessor.getApplication()Ljavax/faces/application/Application;+29
    j com.sun.faces.config.processor.ApplicationConfigProcessor.process([Lorg/w3c/dom/Document;)V+20
    j com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext([Lorg/w3c/dom/Document;)V+31
    j com.sun.faces.config.processor.LifecycleConfigProcessor.process([Lorg/w3c/dom/Document;)V+194
    j com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext([Lorg/w3c/dom/Document;)V+31
    j com.sun.faces.config.processor.FactoryConfigProcessor.process([Lorg/w3c/dom/Document;)V+134
    j com.sun.faces.config.ConfigManager.initialize(Ljavax/servlet/ServletContext;)V+45
    j com.sun.faces.config.ConfigureListener.contextInitialized(Ljavax/servlet/ServletContextEvent;)V+328
    j org.apache.catalina.core.StandardContext.listenerStart()Z+434
    j org.apache.catalina.core.StandardContext.start()V+1275
    j org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(Lorg/jboss/web/WebApplication;Ljava/lang/String;Ljava/lang/String;)V+999
    j org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(Lorg/jboss/web/WebApplication;Ljava/lang/String;)V+117
    j org.jboss.web.deployers.AbstractWarDeployment.start(Lorg/jboss/deployers/structure/spi/DeploymentUnit;Lorg/jboss/metadata/web/jboss/JBossWebMetaData;)Lorg/jboss/web/WebApplication;+257
    j org.jboss.web.deployers.WebModule.startModule()V+44
    j org.jboss.web.deployers.WebModule.start()V+20
    v ~StubRoutines::call_stub
    j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
    j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+106
    J sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
    j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+189
    j org.jboss.mx.interceptor.ReflectedDispatcher.invoke(Lorg/jboss/mx/server/Invocation;)Ljava/lang/Object;+432
    j org.jboss.mx.server.Invocation.dispatch()Ljava/lang/Object;+24
    j org.jboss.mx.server.Invocation.invoke()Ljava/lang/Object;+29
    j org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ljava/lang/String;[Ljava/lang/Object;[Ljava/lang/String;)Ljava/lang/Object;+366
    j org.jboss.mx.server.MBeanServerImpl.invoke(Ljavax/management/ObjectName;Ljava/lang/String;[Ljava/lang/Object;[Ljava/lang/String;)Ljava/lang/Object;+57
    j org.jboss.system.microcontainer.ServiceProxy.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+131
    j $Proxy38.start()V+29
    j org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(Lorg/jboss/system/microcontainer/ServiceControllerContext;)V+25
    j org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(Lorg/jboss/dependency/spi/ControllerContext;)V+24
    j org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(Lorg/jboss/dependency/spi/ControllerContext;)V+21
    j org.jboss.dependency.plugins.action.AccessControllerContextAction.install(Lorg/jboss/dependency/spi/ControllerContext;)V+39
    j org.jboss.dependency.plugins.AbstractControllerContextActions.install(Lorg/jboss/dependency/spi/ControllerContext;Lorg/jboss/dependency/spi/ControllerState;Lorg/jboss/dependency/spi/ControllerS¸ü1
    Íø"+35
    j org.jboss.dependency.plugins.AbstractControllerContext.install(Lorg/jboss/dependency/spi/ControllerState;Lorg/jboss/dependency/spi/ControllerState;)V+35
    j org.jboss.system.microcontainer.ServiceControllerContext.install(Lorg/jboss/dependency/spi/ControllerState;Lorg/jboss/dependency/spi/ControllerState;)V+23
    j org.jboss.dependency.plugins.AbstractController.install(Lorg/jboss/dependency/spi/ControllerContext;Lorg/jboss/dependency/spi/ControllerState;Lorg/jboss/dependency/spi/ControllerState;)V+41
    j org.jboss.dependency.plugins.AbstractController.incrementState(Lorg/jboss/dependency/spi/ControllerContext;Z)Z+456
    J org.jboss.dependency.plugins.AbstractController.resolveContexts(Lorg/jboss/dependency/spi/ControllerState;Lorg/jboss/dependency/spi/ControllerState;Z)Z
    J org.jboss.dependency.plugins.AbstractController.resolveContexts(Z)V
    j org.jboss.dependency.plugins.AbstractController.change(Lorg/jboss/dependency/spi/ControllerContext;Lorg/jboss/dependency/spi/ControllerState;Z)V+220
    j org.jboss.dependency.plugins.AbstractController.change(Lorg/jboss/dependency/spi/ControllerContext;Lorg/jboss/dependency/spi/ControllerState;)V+59
    j org.jboss.system.ServiceController.doChange(Lorg/jboss/kernel/spi/dependency/KernelController;Lorg/jboss/system/microcontainer/ServiceControllerContext;Lorg/jboss/dependency/spi/ControllerState¸ü1
    Íø"wang/StriTü1
    V+35
    j org.jboss.system.ServiceController.start(Ljavax/management/ObjectName;)V+189
    j org.jboss.system.deployers.ServiceDeployer.start(Lorg/jboss/system/ServiceContext;)V+27
    j org.jboss.system.deployers.ServiceDeployer.deploy(Lorg/jboss/deployers/structure/spi/DeploymentUnit;Lorg/jboss/system/metadata/ServiceMetaData;)V+109
    j org.jboss.system.deployers.ServiceDeployer.deploy(Lorg/jboss/deployers/structure/spi/DeploymentUnit;Ljava/lang/Object;)V+25
    j org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(Lorg/jboss/deployers/structure/spi/DeploymentUnit;)V+37
    j org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(Lorg/jboss/deployers/structure/spi/DeploymentUnit;)V+21
    j org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(Lorg/jboss/deployers/structure/spi/DeploymentUnit;)V+87
    J org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(Lorg/jboss/deployers/spi/deployer/Deployer;Lorg/jboss/deployers/structure/spi/DeploymentContext;)V
    J org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(Lorg/jboss/deployers/spi/deployer/Deployer;Lorg/jboss/deployers/structure/spi/DeploymentContext;)V
    j org.jboss.deployers.plugins.deployers.DeployersImpl.install(Lorg/jboss/dependency/spi/ControllerContext;Lorg/jboss/dependency/spi/ControllerState;Lorg/jboss/dependency/spi/ControllerState;)V+147
    j org.jboss.dependency.plugins.AbstractControllerContext.install(Lorg/jboss/dependency/spi/ControllerState;Lorg/jboss/dependency/spi/ControllerState;)V+35
    j org.jboss.dependency.plugins.AbstractController.install(Lorg/jboss/dependency/spi/ControllerContext;Lorg/jboss/dependency/spi/ControllerState;Lorg/jboss/dependency/spi/ControllerState;)V+41
    j org.jboss.dependency.plugins.AbstractController.incrementState(Lorg/jboss/dependency/spi/ControllerContext;Z)Z+456
    J org.jboss.dependency.plugins.AbstractController.resolveContexts(Lorg/jboss/dependency/spi/ControllerState;Lorg/jboss/dependency/spi/ControllerState;Z)Z
    J org.jboss.dependency.plugins.AbstractController.resolveContexts(Z)V
    j org.jboss.dependency.plugins.AbstractController.change(Lorg/jboss/dependency/spi/ControllerContext;Lorg/jboss/dependency/spi/ControllerState;Z)V+220
    j org.jboss.dependency.plugins.AbstractController.change(Lorg/jboss/dependency/spi/ControllerContext;Lorg/jboss/dependency/spi/ControllerState;)V+59
    j org.jboss.deployers.plugins.deployers.DeployersImpl.process(Ljava/util/List;Ljava/util/List;)V+985
    j org.jboss.deployers.plugins.main.MainDeployerImpl.process()V+279
    j org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process()V+23
    j org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(Lorg/jboss/profileservice/spi/Profile;)V+121
    j org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(Lorg/jboss/system/server/profileservice/repository/ProfileContext;)V+36
    j org.jboss.system.server.profileservice.repository.AbstractProfileService.install(Lorg/jboss/dependency/spi/ControllerContext;Lorg/jboss/dependency/spi/ControllerState;Lorg/jboss/dependency/spi/¸ü1
    Íø"werState;Tü+58
    j org.jboss.dependency.plugins.AbstractControllerContext.install(Lorg/jboss/dependency/spi/ControllerState;Lorg/jboss/dependency/spi/ControllerState;)V+35
    j org.jboss.dependency.plugins.AbstractController.install(Lorg/jboss/dependency/spi/ControllerContext;Lorg/jboss/dependency/spi/ControllerState;Lorg/jboss/dependency/spi/ControllerState;)V+41
    j org.jboss.dependency.plugins.AbstractController.incrementState(Lorg/jboss/dependency/spi/ControllerContext;Z)Z+456
    J org.jboss.dependency.plugins.AbstractController.resolveContexts(Lorg/jboss/dependency/spi/ControllerState;Lorg/jboss/dependency/spi/ControllerState;Z)Z
    J org.jboss.dependency.plugins.AbstractController.resolveContexts(Z)V
    j org.jboss.dependency.plugins.AbstractController.install(Lorg/jboss/dependency/spi/ControllerContext;Z)V+387
    j org.jboss.dependency.plugins.AbstractController.install(Lorg/jboss/dependency/spi/ControllerContext;)V+87
    j org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(Lorg/jboss/profileservice/spi/Profile;)V+177
    j org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(Lorg/jboss/bootstrap/spi/Server;)V+206
    j org.jboss.bootstrap.AbstractServerImpl.start()V+298
    j org.jboss.Main.boot([Ljava/lang/String;)V+503
    j org.jboss.Main$1.run()V+33
    j java.lang.Thread.run()V+39
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x0bbb0400 JavaThread "IdleRemover" daemon [_thread_blocked, id=7548, stack(0x68a80000,0x68ac0000)]
    0x0bbaf400 JavaThread "Timer-1" daemon [_thread_blocked, id=8528, stack(0x68900000,0x68940000)]
    0x0bbadc00 JavaThread "Thread-49" daemon [_thread_blocked, id=6508, stack(0x68780000,0x687c0000)]
    0x0bbad400 JavaThread "JCA PoolFiller" [_thread_blocked, id=6980, stack(0x68500000,0x68540000)]
    0x0bbad000 JavaThread "HSQLDB Timer @ae5b0b" daemon [_thread_blocked, id=5348, stack(0x68480000,0x684c0000)]
    0x0bbac800 JavaThread "DefaultQuartzScheduler_QuartzSchedulerThread" [_thread_blocked, id=4176, stack(0x67330000,0x67370000)]
    0x0bbac400 JavaThread "DefaultQuartzScheduler_Worker-9" [_thread_blocked, id=5004, stack(0x672b0000,0x672f0000)]
    0x0bbabc00 JavaThread "DefaultQuartzScheduler_Worker-8" [_thread_blocked, id=7108, stack(0x67230000,0x67270000)]
    0x0bbab400 JavaThread "DefaultQuartzScheduler_Worker-7" [_thread_blocked, id=5604, stack(0x671b0000,0x671f0000)]
    0x0bbab000 JavaThread "DefaultQuartzScheduler_Worker-6" [_thread_blocked, id=5060, stack(0x67130000,0x67170000)]
    0x0bbaa800 JavaThread "DefaultQuartzScheduler_Worker-5" [_thread_blocked, id=7456, stack(0x670b0000,0x670f0000)]
    0x0bbaa400 JavaThread "DefaultQuartzScheduler_Worker-4" [_thread_blocked, id=3136, stack(0x67030000,0x67070000)]
    0x0bba9c00 JavaThread "DefaultQuartzScheduler_Worker-3" [_thread_blocked, id=1452, stack(0x66fb0000,0x66ff0000)]
    0x0bba9800 JavaThread "DefaultQuartzScheduler_Worker-2" [_thread_blocked, id=8036, stack(0x66f30000,0x66f70000)]
    0x0cb3a800 JavaThread "DefaultQuartzScheduler_Worker-1" [_thread_blocked, id=6900, stack(0x66eb0000,0x66ef0000)]
    0x0cb3ac00 JavaThread "DefaultQuartzScheduler_Worker-0" [_thread_blocked, id=4888, stack(0x66b00000,0x66b40000)]
    0x0cb3c000 JavaThread "WorkManager(2)-1" daemon [_thread_blocked, id=5656, stack(0x66a80000,0x66ac0000)]
    0x0cb3b400 JavaThread "AOPListner" daemon [_thread_blocked, id=1968, stack(0x65ee0000,0x65f20000)]
    0x0cb3b800 JavaThread "ContainerBackgroundProcessor[StandardEngine[jboss.web]]" daemon [_thread_blocked, id=7868, stack(0x66770000,0x667b0000)]
    0x0cb3d000 JavaThread "RMI TCP Accept-11006" daemon [_thread_in_native, id=4756, stack(0x665f0000,0x66630000)]
    0x0cb3e400 JavaThread "PooledInvokerAcceptor#0-11007" [_thread_in_native, id=4480, stack(0x66570000,0x665b0000)]
    0x0cb3dc00 JavaThread "Thread-46" [_thread_blocked, id=4320, stack(0x664f0000,0x66530000)]
    0x0cb3cc00 JavaThread "Listener:11009" daemon [_thread_in_native, id=7276, stack(0x66470000,0x664b0000)]
    0x0cb3d800 JavaThread "Thread-45" daemon [_thread_blocked, id=4208, stack(0x663f0000,0x66430000)]
    0x0cb3f400 JavaThread "Thread-44" daemon [_thread_blocked, id=3328, stack(0x66370000,0x663b0000)]
    0x0cb3fc00 JavaThread "Thread-43" daemon [_thread_blocked, id=6360, stack(0x662f0000,0x66330000)]
    0x0cb3f000 JavaThread "Listener:11010" daemon [_thread_in_native, id=6164, stack(0x66270000,0x662b0000)]
    0x0cb40000 JavaThread "AcceptorThread[ServerSocket[addr=/0.0.0.0,port=0,localport=11005]]" [_thread_in_native, id=4220, stack(0x660f0000,0x66130000)]
    0x0cb3e800 JavaThread "ServerSocketRefresh" daemon [_thread_blocked, id=7116, stack(0x66070000,0x660b0000)]
    0x0bba9000 JavaThread "HDScanner" [_thread_blocked, id=4784, stack(0x66e70000,0x66eb0000)]
    0x0cb42000 JavaThread "AcceptorThread[ServerSocket[addr=/0.0.0.0,port=0,localport=11013]]" [_thread_in_native, id=4144, stack(0x66df0000,0x66e30000)]
    0x0cb41800 JavaThread "ServerSocketRefresh" daemon [_thread_blocked, id=5480, stack(0x66d70000,0x66db0000)]
    0x0cb41400 JavaThread "secondaryServerSocketThread[0]" daemon [_thread_in_native, id=6244, stack(0x66cf0000,0x66d30000)]
    0x0cb40c00 JavaThread "AcceptorThread[ServerSocket[addr=/0.0.0.0,port=0,localport=11008]]" [_thread_in_native, id=5156, stack(0x66c70000,0x66cb0000)]
    0x0cb40800 JavaThread "ServerSocketRefresh" daemon [_thread_blocked, id=4288, stack(0x66bf0000,0x66c30000)]
    0x0cfad800 JavaThread "RequestController-7" daemon [_thread_blocked, id=2024, stack(0x65a40000,0x65a80000)]
    0x0cfad400 JavaThread "RequestController-6" daemon [_thread_blocked, id=8448, stack(0x659c0000,0x65a00000)]
    0x0cfacc00 JavaThread "RequestController-5" daemon [_thread_blocked, id=5264, stack(0x65940000,0x65980000)]
    0x0cfac800 JavaThread "RequestController-4" daemon [_thread_blocked, id=4964, stack(0x658c0000,0x65900000)]
    0x0cfac000 JavaThread "ORB thread" [_thread_blocked, id=7380, stack(0x65840000,0x65880000)]
    0x0cfabc00 JavaThread "RequestController-3" daemon [_thread_blocked, id=4620, stack(0x657c0000,0x65800000)]
    0x0cfab400 JavaThread "RequestController-2" daemon [_thread_blocked, id=6856, stack(0x65740000,0x65780000)]
    0x0cfaa800 JavaThread "ServerSocketListener" daemon [_thread_in_native, id=5856, stack(0x656c0000,0x65700000)]
    0x0cfaa400 JavaThread "RequestController-1" daemon [_thread_blocked, id=7136, stack(0x0efe0000,0x0f020000)]
    0x0cfa9c00 JavaThread "ZipFile Lock Reaper" daemon [_thread_blocked, id=3488, stack(0x0d8c0000,0x0d900000)]
    0x0cf82400 JavaThread "JBoss System Threads(1)-2" daemon [_thread_in_native, id=6140, stack(0x0fba0000,0x0fbe0000)]
    0x0d2c4800 JavaThread "GC Daemon" daemon [_thread_blocked, id=7768, stack(0x0fb20000,0x0fb60000)]
    0x0c065c00 JavaThread "RMI Reaper" [_thread_blocked, id=380, stack(0x0faa0000,0x0fae0000)]
    0x0d3d1c00 JavaThread "RMI TCP Accept-11002" daemon [_thread_in_native, id=3956, stack(0x0fa20000,0x0fa60000)]
    0x0ad78000 JavaThread "JBoss System Threads(1)-1" daemon [_thread_in_native, id=8376, stack(0x0f9a0000,0x0f9e0000)]
    0x0bfdec00 JavaThread "Timer-Log4jService" daemon [_thread_blocked, id=5736, stack(0x0f610000,0x0f650000)]
    0x11fb8c00 JavaThread "AuthenticationCacheFlushThread" [_thread_blocked, id=4160, stack(0x0f590000,0x0f5d0000)]
    0x099a2000 JavaThread "Timer-0" daemon [_thread_blocked, id=5324, stack(0x0c700000,0x0c740000)]
    0x0137f000 JavaThread "DestroyJavaVM" [_thread_blocked, id=3508, stack(0x003b0000,0x003f0000)]
    =>0x099d3800 JavaThread "main" [_thread_in_native, id=7560, stack(0x0a320000,0x0a360000)]
    0x099c4400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=7484, stack(0x0a210000,0x0a250000)]
    0x099c1c00 JavaThread "CompilerThread1" daemon [_thread_blocked, id=1736, stack(0x0a180000,0x0a1d0000)]
    0x099c1800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=6816, stack(0x0a0f0000,0x0a140000)]
    0x099b6800 JavaThread "Attach Listener" daemon [_thread_blocked, id=5716, stack(0x09f70000,0x09fb0000)]
    0x099b4000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=6612, stack(0x09ef0000,0x09f30000)]
    0x099ab800 JavaThread "Surrogate Locker Thread (CMS)" daemon [_thread_blocked, id=3556, stack(0x09e70000,0x09eb0000)]
    0x09939000 JavaThread "Finalizer" daemon [_thread_blocked, id=2752, stack(0x09df0000,0x09e30000)]
    0x09934c00 JavaThread "Reference Handler" daemon [_thread_blocked, id=4240, stack(0x09d70000,0x09db0000)]
    Other Threads:
    0x009df400 VMThread [stack: 0x09ce0000,0x09d30000] [id=5136]
    0x099c5000 WatcherThread [stack: 0x0a290000,0x0a2e0000] [id=7852]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    par new generation total 14784K, used 3214K [0x12250000, 0x13250000, 0x15250000)
    eden space 13184K, 12% used [0x12250000, 0x123e3888, 0x12f30000)
    from space 1600K, 100% used [0x12f30000, 0x130c0000, 0x130c0000)
    to space 1600K, 0% used [0x130c0000, 0x130c0000, 0x13250000)
    concurrent mark-sweep generation total 585648K, used 356667K [0x15250000, 0x38e3c000, 0x52250000)
    concurrent-mark-sweep perm gen total 131072K, used 70872K [0x52250000, 0x5a250000, 0x62250000)
    Dynamic libraries:
    0x00400000 - 0x00424000      C:\Program Files (x86)\Java\jdk1.6.0_18\bin\java.exe
    0x77210000 - 0x77390000      C:\Windows\SysWOW64\ntdll.dll
    0x76910000 - 0x76a10000      C:\Windows\syswow64\kernel32.dll
    0x75850000 - 0x75896000      C:\Windows\syswow64\KERNELBASE.dll
    0x757b0000 - 0x75850000      C:\Windows\syswow64\ADVAPI32.dll
    0x753a0000 - 0x7544c000      C:\Windows\syswow64\msvcrt.dll
    0x76610000 - 0x76629000      C:\Windows\SysWOW64\sechost.dll
    0x75080000 - 0x75170000      C:\Windows\syswow64\RPCRT4.dll
    0x74d80000 - 0x74de0000      C:\Windows\syswow64\SspiCli.dll
    0x74d70000 - 0x74d7c000      C:\Windows\syswow64\CRYPTBASE.dll
    0x7c340000 - 0x7c396000      C:\Program Files (x86)\Java\jdk1.6.0_18\jre\bin\msvcr71.dll
    0x6db70000 - 0x6df9b000      C:\Program Files (x86)\Java\jdk1.6.0_18\jre\bin\server\jvm.dll
    0x76b40000 - 0x76c40000      C:\Windows\syswow64\USER32.dll
    0x74f90000 - 0x75020000      C:\Windows\syswow64\GDI32.dll
    0x74ee0000 - 0x74eea000      C:\Windows\syswow64\LPK.dll
    0x76aa0000 - 0x76b3d000      C:\Windows\syswow64\USP10.dll
    0x719e0000 - 0x71a12000      C:\Windows\system32\WINMM.dll
    0x767b0000 - 0x76810000      C:\Windows\system32\IMM32.DLL
    0x74de0000 - 0x74eac000      C:\Windows\syswow64\MSCTF.dll
    0x73da0000 - 0x73deb000      C:\Windows\system32\apphelp.dll
    0x6d860000 - 0x6d86c000      C:\Program Files (x86)\Java\jdk1.6.0_18\jre\bin\verify.dll
    0x6d3e0000 - 0x6d3ff000      C:\Program Files (x86)\Java\jdk1.6.0_18\jre\bin\java.dll
    0x6d340000 - 0x6d348000      C:\Program Files (x86)\Java\jdk1.6.0_18\jre\bin\hpi.dll
    0x75020000 - 0x75025000      C:\Windows\syswow64\PSAPI.DLL
    0x10000000 - 0x10019000      C:\Users\hkhargharia\Downloads\agntctrl.win_ia32-TPTP-4.2.0.2\plugins\org.eclipse.tptp.javaprofiler\JPIBootLoader.dll
    0x002e0000 - 0x002eb000      C:\Users\hkhargharia\Downloads\agntctrl.win_ia32-TPTP-4.2.0.2\plugins\org.eclipse.tptp.javaprofiler\MartiniOSA.dll
    0x005c0000 - 0x005f1000      C:\Users\hkhargharia\Downloads\agntctrl.win_ia32-TPTP-4.2.0.2\plugins\org.eclipse.tptp.javaprofiler\JPI.dll
    0x00890000 - 0x008b1000      C:\Users\hkhargharia\Downloads\agntctrl.win_ia32-TPTP-4.2.0.2\plugins\org.eclipse.tptp.javaprofiler\JPIAgent.dll
    0x009e0000 - 0x00a01000      C:\unzipped\agntctrl.win_ia32-TPTP-4.7.2\bin\AgentBase.dll
    0x00a10000 - 0x00a27000      C:\unzipped\agntctrl.win_ia32-TPTP-4.7.2\bin\transportSupport.dll
    0x76c40000 - 0x76c75000      C:\Windows\syswow64\WS2_32.dll
    0x76660000 - 0x76666000      C:\Windows\syswow64\NSI.dll
    0x00a40000 - 0x00a77000      C:\unzipped\agntctrl.win_ia32-TPTP-4.7.2\bin\tptpUtils.dll
    0x12000000 - 0x12241000      C:\unzipped\agntctrl.win_ia32-TPTP-4.7.2\bin\xerces-c_2_6.dll
    0x00a90000 - 0x00aa6000      C:\unzipped\agntctrl.win_ia32-TPTP-4.7.2\bin\hcclco.dll
    0x012a0000 - 0x012b7000      C:\unzipped\agntctrl.win_ia32-TPTP-4.7.2\bin\hcclsm.dll
    0x012e0000 - 0x01301000      C:\unzipped\agntctrl.win_ia32-TPTP-4.7.2\bin\tptpConfig.dll
    0x01320000 - 0x01335000      C:\unzipped\agntctrl.win_ia32-TPTP-4.7.2\bin\processControlUtil.dll
    0x01350000 - 0x01366000      C:\unzipped\agntctrl.win_ia32-TPTP-4.7.2\bin\tptpLogUtils.dll
    0x02900000 - 0x0291e000      C:\Users\hkhargharia\Downloads\agntctrl.win_ia32-TPTP-4.2.0.2\plugins\org.eclipse.tptp.javaprofiler\CGProf.dll
    0x028a0000 - 0x028ae000      C:\Users\hkhargharia\Downloads\agntctrl.win_ia32-TPTP-4.2.0.2\plugins\org.eclipse.tptp.javaprofiler\CGAdaptor.dll
    0x02e60000 - 0x02ec5000      C:\Users\hkhargharia\Downloads\agntctrl.win_ia32-TPTP-4.2.0.2\plugins\org.eclipse.tptp.javaprofiler\JIE.dll
    0x6d8a0000 - 0x6d8af000      C:\Program Files (x86)\Java\jdk1.6.0_18\jre\bin\zip.dll
    0x6d6c0000 - 0x6d6d3000      C:\Program Files (x86)\Java\jdk1.6.0_18\jre\bin\net.dll
    0x740b0000 - 0x740ec000      C:\Windows\system32\mswsock.dll
    0x72e00000 - 0x72e06000      C:\Windows\System32\wship6.dll
    0x73ea0000 - 0x73eb0000      C:\Windows\system32\NLAapi.dll
    0x73e50000 - 0x73e94000      C:\Windows\system32\DNSAPI.dll
    0x73e40000 - 0x73e48000      C:\Windows\System32\winrnr.dll
    0x73e30000 - 0x73e40000      C:\Windows\system32\napinsp.dll
    0x73e10000 - 0x73e22000      C:\Windows\system32\pnrpnsp.dll
    0x73c30000 - 0x73c4c000      C:\Windows\system32\IPHLPAPI.DLL
    0x73c20000 - 0x73c27000      C:\Windows\system32\WINNSI.DLL
    0x71ae0000 - 0x71b18000      C:\Windows\System32\fwpuclnt.dll
    0x73eb0000 - 0x73eb6000      C:\Windows\system32\rasadhlp.dll
    0x6d610000 - 0x6d619000      C:\Program Files (x86)\Java\jdk1.6.0_18\jre\bin\management.dll
    0x740a0000 - 0x740a5000      C:\Windows\System32\wshtcpip.dll
    0x739e0000 - 0x739f6000      C:\Windows\system32\CRYPTSP.dll
    0x739a0000 - 0x739db000      C:\Windows\system32\rsaenh.dll
    0x73d50000 - 0x73d67000      C:\Windows\system32\USERENV.dll
    0x73d40000 - 0x73d4b000      C:\Windows\system32\profapi.dll
    0x73a50000 - 0x73a5d000      C:\Windows\system32\dhcpcsvc6.DLL
    0x73a30000 - 0x73a42000      C:\Windows\system32\dhcpcsvc.DLL
    0x6d6e0000 - 0x6d6e9000      C:\Program Files (x86)\Java\jdk1.6.0_18\jre\bin\nio.dll
    0x6d0b0000 - 0x6d1fa000      C:\Program Files (x86)\Java\jdk1.6.0_18\jre\bin\awt.dll
    0x712f0000 - 0x71341000      C:\Windows\system32\WINSPOOL.DRV
    0x75450000 - 0x755ac000      C:\Windows\syswow64\ole32.dll
    0x710a0000 - 0x7123e000      C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7600.16661_none_420fe3fa2b8113bd\COMCTL32.dll
    0x75170000 - 0x751c7000      C:\Windows\syswow64\SHLWAPI.dll
    VM Arguments:
    jvm_args: -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+CMSIncrementalPacing -XX:CMSIncrementalDutyCycleMin=10 -XX:CMSIncrementalDutyCycle=50 -XX:ParallelGCThreads=3 -XX:+UseParNewGC -XX:MaxGCPauseMillis=2000 -XX:GCTimeRatio=10 -XX:+DisableExplicitGC -Dsun.rmi.dgc.client.gcInterval=1800000 -Dsun.rmi.dgc.server.gcInterval=1800000 -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dnet.sf.ehcache.skipUpdateCheck=true -Xss256k -Xms512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m -Dremoting.bind_by_host=false -Dclient.encoding.override=UTF-8 -Dfile.encoding=UTF-8 -agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf -Dprogram.name=run.bat -Djava.endorsed.dirs=D:/JBOSS/jboss-eap-5.1/jboss-as\lib\endorsed
    java_command: org.jboss.Main -Dorg.apache.el.parser.COERCE_TO_ZERO=false -Dorg.apache.catalina.connector.Request.SESSION_ID_CHECK=false -Djboss.server.home.dir=D:/Local_Deployment/Èü1
    Íø"wport/WINdü1
    pport-profile/WINN5Support-profile -Djboss.server.name=domserver -Djboss.server.home.url=file:/D:/Local_Deployment/WINN5Support/WINN5Support-profile/WINN5Support-profile --host=localhost -Djboss.bind.address=0.0.0.0 -Dlog4j.configuration=file:D:/Local_Deployment/WINN5Support/WINN5Support-profile/WINN5Support-profile/conf/log4j.properties
    Launcher Type: SUN_STANDARD
    Environment Variables:
    JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_18
    CLASSPATH=C:\Program Files (x86)\Rational\ClearQuest\cqjni.jar
    USERNAME=hkhargharia
    LD_LIBRARY_PATH=;;;;;;;;;;;;;;;;C:\Users\hkhargharia\Downloads\agntctrl.win_em64t-TPTP-4.2.0\lib
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 37 Stepping 2, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows 7 Build 7600
    CPU:total 4 (8 cores per cpu, 2 threads per core) family 6 model 37 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, ht
    Memory: 4k page, physical 4053388k(293900k free), swap 8104872k(2962556k free)
    vm_info: Java HotSpot(TM) Server VM (16.0-b13) for windows-x86 JRE (1.6.0_18-b07), built on Dec 17 2009 13:29:37 by "java_re" with MS VC++ 7.1 (VS2003)
    time: Thu Oct 11 11:42:43 2012
    elapsed time: 1944 seconds
    Edited by: 964644 on Oct 10, 2012 11:58 PM

    10.6.8 won't run on a PowerPC Mac. 
    10.6.8 also won't run the latest Java.  Here's what version of Java you can run:
    https://discussions.apple.com/docs/DOC-5532

Maybe you are looking for

  • Reader v11.1.2 unable to find epson wireless printer on home network?

    I downloaded 11.7.2 version of the Adobe reader android application from google Play store and found the application can't find my wireless Epson printer? Can someone help in resolving this issue. I currently have the S G III phone.

  • Jdbc to multi idocs

    After a message is sent to xi through sender jdbc adapter, I need to map this message to several idocs according to the key value of the rows in message. For example, the following message should be mapped to two idocs as we have two different key va

  • How can a service order be marked as statistical?

    The cost in a statistical order is for information only, and one cannot settle such a order. Any suggestion would be appreciated. VT

  • I can not activate my apple id

    i can not activate my apple id. my id is [email protected] i have already tried sending a verification mail to it but to no result. how do i activate it

  • EAS Service on 64 Bit

    Hi Together, I installed EAS 9.3.1 (32 Bit) on a 64 Bit Windows 2003 System before and I managed to get the service running properly by commenting out some 32 Bit entries in a file. Unfortunately I can't remember, maybe somebody got a hint for me? Th