JAVA TO CIMD2

CAN ANYONE OUT THERE HELP ME TO CREATE A PROGRAM THAT WILL ENABLE A TWO WAY SMS USING JAVA TO CIMD2(NOKIA PROPRIETARY PROTOCOL). TNX IN ADVANCE.

I made a gateway platform with Java that supports CIMD2. Although my NDA stills lasts for about a month. After that I'm planning to release that code in opensource, so wait until then.. or you can email me privately if you want hints right away.

Similar Messages

  • 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

  • I am trying to use java  file as Model layer and jsf as presentation layer

    I am trying to use java file as Model layer and jsf as presentation layer and need some help
    I successfully get the value of h:outputText from java file by doing simple binding operation but I am facing problems when I am trying to fill h:dataTable
    I create java file
    package oracle.model;
    import java.sql.;*
    import java.util.;*
    *public class TableBean {*
    Connection con ;
    Statement ps;
    ResultSet rs;
    private List perInfoAll = new ArrayList();
    *public List getperInfoAll() {*
    perInfoAll.add(0,new perInfo("name","username","blablabla"));
    return perInfoAll;
    *public class perInfo {*
    String uname;
    String firstName;
    String lastName;
    *public perInfo(String firstName,String lastName,String uname) {*
    this.uname = uname;
    this.firstName = firstName;
    this.lastName = lastName;
    *public String getUname() {*
    return uname;
    *public String getFirstName() {*
    return firstName;
    *public String getLastName() {*
    return lastName;
    right click on the file and choose 'create data control'
    then i wrote the jsf file:
    *<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>*
    *<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>*
    *<f:view>*
    *<h:dataTable id="dt1" value="#{bindings.perInfoAll}"*
    var="item" bgcolor="#F1F1F1" border="10"
    cellpadding="5" cellspacing="3" rows="4" width="50%"
    dir="LTR" frame="hsides" rules="all"
    *>*
    *<f:facet name="header">*
    *<h:outputText value="This is 'dataTable' demo" id="ot6"/>*
    *</f:facet>*
    *<h:column id="c2">*
    *<f:facet name="header">*
    *<h:outputText value="First Name" id="ot1"/>*
    *</f:facet>*
    *<h:outputText style="" value="#{item.firstName}"*
    id="ot2"/>
    *</h:column>*
    *<h:column id="c4">*
    *<f:facet name="header">*
    *<h:outputText value="Last Name" id="ot9"/>*
    *</f:facet>*
    *<h:outputText value="#{item.lastName}" id="ot8"/>*
    *</h:column>*
    *<h:column id="c3">*
    *<f:facet name="header">*
    *<h:outputText value="Username" id="ot7"/>*
    *</f:facet>*
    *<h:outputText value="#{item.uname}" id="ot4"/>*
    *</h:column>*
    *<f:facet name="footer">*
    *<h:outputText value="The End" id="ot3"/>*
    *</f:facet>*
    *</h:dataTable>*
    *</center>*
    *</af:document>*
    *</f:view>*
    but nothing is appear in my table
    I know that there is something wrong in calling the binding object
    I need help pls and where can i find some help to deal with another tag types
    thanks

    i dragged the "perInfoAll" from my "Data Controls" and choosed adf table (even I know that new table with adf tags well be generated and i want table with jsf tags)
    and this code is generated
    *<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"*
    *"http://www.w3.org/TR/html4/loose.dtd">*
    *<%@ page contentType="text/html;charset=UTF-8"%>*
    *<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>*
    *<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>*
    *<%@ taglib uri="http://xmlns.oracle.com/adf/faces/rich" prefix="af"%>*
    *<f:view>*
    *<af:document id="d1">*
    *<af:messages id="m1"/>*
    *<af:form id="f1">*
    *<af:table value="#{bindings.perInfoAll1.collectionModel}" var="row"*
    *rows="#{bindings.perInfoAll1.rangeSize}"*
    *emptyText="#{bindings.perInfoAll1.viewable ? 'No data to display.' : 'Access Denied.'}"*
    *fetchSize="#{bindings.perInfoAll1.rangeSize}"*
    *rowBandingInterval="0"*
    *selectionListener="#{bindings.perInfoAll1.collectionModel.makeCurrent}"*
    *rowSelection="multiple" id="t1">*
    *<af:column sortProperty="uname" sortable="false"*
    *headerText="#{bindings.perInfoAll1.hints.uname.label}"*
    *id="c1">*
    *<af:inputText value="#{row.bindings.uname.inputValue}"*
    *label="#{bindings.perInfoAll1.hints.uname.label}"*
    *required="#{bindings.perInfoAll1.hints.uname.mandatory}"*
    *columns="#{bindings.perInfoAll1.hints.uname.displayWidth}"*
    *maximumLength="#{bindings.perInfoAll1.hints.uname.precision}"*
    *shortDesc="#{bindings.perInfoAll1.hints.uname.tooltip}"*
    *id="it3">*
    *<f:validator binding="#{row.bindings.uname.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="firstName" sortable="false"*
    *headerText="#{bindings.perInfoAll1.hints.firstName.label}"*
    *id="c2">*
    *<af:inputText value="#{row.bindings.firstName.inputValue}"*
    *label="#{bindings.perInfoAll1.hints.firstName.label}"*
    *required="#{bindings.perInfoAll1.hints.firstName.mandatory}"*
    *columns="#{bindings.perInfoAll1.hints.firstName.displayWidth}"*
    *maximumLength="#{bindings.perInfoAll1.hints.firstName.precision}"*
    *shortDesc="#{bindings.perInfoAll1.hints.firstName.tooltip}"*
    *id="it2">*
    *<f:validator binding="#{row.bindings.firstName.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="lastName" sortable="false"*
    *headerText="#{bindings.perInfoAll1.hints.lastName.label}"*
    *id="c3">*
    *<af:inputText value="#{row.bindings.lastName.inputValue}"*
    *label="#{bindings.perInfoAll1.hints.lastName.label}"*
    *required="#{bindings.perInfoAll1.hints.lastName.mandatory}"*
    *columns="#{bindings.perInfoAll1.hints.lastName.displayWidth}"*
    *maximumLength="#{bindings.perInfoAll1.hints.lastName.precision}"*
    *shortDesc="#{bindings.perInfoAll1.hints.lastName.tooltip}"*
    *id="it1">*
    *<f:validator binding="#{row.bindings.lastName.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *</af:table>*
    *</af:form>*
    *</af:document>*
    *</f:view>*
    but when run it i see the following errors
    *Class oracle.adf.model.adapter.bean.BeanDataControl can not access a member of class nl.amis.hrm.EmpManager with modifiers "private"*
    *Object EmpManager of type DataControl is not found.*
    *java.lang.NullPointerException*
    *Class oracle.adf.model.adapter.bean.BeanDataControl can not access a member of class nl.amis.hrm.EmpManager with modifiers "private"*
    *Object EmpManager of type DataControl is not found.*
    *java.lang.NullPointerException*
    :(

Maybe you are looking for

  • Server errors result in blank pages with security enabled

    I have been working to security-enable my ADF 11 application using JDeveloper 11.1.1.0.0. Users, roles and grants all appear to be working as expected. However, I have discovered that server errors no longer appear once I put security in place. For e

  • Metainit/striping problem on Solaris 9

    We are trying to deploy the Apple XServe RAIDS to customers running Solaris 9. The issue is that Solaris 9 will not recognize a device/LUN that is > 2TB. (No problem with Solaris 10) In trying to solve this problem, we sliced a 7 disk (4.09 TB) RAID

  • Double Float Margin Bug "error"

    I did a browser compatibility check on one of the pages that I am building and got this error............. "Line 112, Double Float Margin Bug 'error' When a margin is applied to a floated box on the same side as the direction of the float, the margin

  • Cmd C, V not functioning correctly

    Just got my hands on a shiny new Retina MacBook Pro, one problem though. When trying to copy (CMD+C) and paste (CMD+V) it does nothing. If I'm in finder and select a file followed by CMD+C it opens up a new finder window under the search part. This h

  • Maipulating rows as columns

    Hi all, I have a table of the type: SQL> create table exp (mj varchar2(4),np char(1),vn char(1),amt number) SQL> / Table created. SQL> insert into exp values('1011','Y','A',1232) SQL> / 1 row created. SQL> insert into exp values('1011','N','A',1212);