Implementing tree datastructure in Java

Hi,
I have to implement tree structure in java. Each node in the tree can have child nodes.
Also, I need to search for a node in this tree by passing some key.
Can anyone guide how to implement such data structure in Java? I would like to use map collection. Anyother implementations are also welcome...

Have a look at javax.swing.tree.TreeNode for an example ...

Similar Messages

  • How to implement paging in webdynpro jave based on search criteria.

    Hi All,
    In a requirement I need to implement paging in webdynpro java development.
    I successfully did it when there is no search criteria is available i.e webdynpro fetched all data from the BO object and I did it using a "indexNO" (unique serial no from 1,2,3,4.....) field available in BO object.
    But when there is search criteria available , i.e the data to be fetched from the BO based on some specific field , at that time the "indexNo"  field of all data fetched based on search criteria are discrete i.e not continious. In that case how to implement the paging concept.
    I am using CE version 7.1 EHP 1.
    Thanks in advance
    Srikanta Satapathy

    Hi,
    If you go to your VO and generate the ViewObjectImpl, in there you can create a method which will contain two parameters, 1 the attribute name and 2 the value.
    Then you can follow something like explained in this post:
    ADF Tutorial: How to apply bulk actions to a view object rows
    The only difference is that you will need to create a method like this:
    public void updateAttribute(String attribute, Integer value){
            RowSetIterator iter = createRowSetIterator(null);
            while (iter.hasNext()){
                Row row = iter.next();
                row.setAttribute(attribute, value);
    Then you expose that as a client interface and then after you filter your table by your criteria you just need to execute this method passing the right parameters.
    Regards

  • Implementing Joda Time in Java Netbeans

    How do i implement joda time in java netbeans. i am reporting using ireports and on run time my report is showing java util and and time for a variable say DateOfBirth for which i don want the time to be include.how do i resolve it.
    Thank yu so much

    I am not sure I understand your question as it's posted. But let me offer a reference- there's a book being written by this guy:
    http://www.netbeans.org/community/articles/interviews/yarda-tulach.html
    on designing modular APIs. He's been involved in Netbeans from the start. Writing a plugin API is non-trivial where non-trivial means, essentially, non-commoditized knowledge needed to solve what's known as a "wicked problem".
    If you're asking what I think you're asking, no one is going to be able t type an answer to you in Sun's forums, but it's a good question and the right question to ask, that's for sure.
    best of luck!

  • How to trigger tree table from java code

    Trying to trigger tree table from java code, using :
    AdfFacesContext.getCurrentInstance().addPartialTarget(treeTableComponent);
    But its not working. Am i using the correct approach?

    Sorry for the incomplete information,
    I have a tree table in a region and that region i am including inside a jspx file. In the region i have one popup and based on the input taken from the popup i want to trigger the table to show the data.
    For that i am trying :
    FacesContext context = FacesContext.getCurrentInstance();
    UIComponent component = findComponent( context.getViewRoot(),"treeTableID");
    if(component != null){
    AdfFacesContext.getCurrentInstance().addPartialTarget(component);
    public static UIComponent findComponent(UIComponent base, String id)
    if (id.equals(base.getId()))
    return base;
    UIComponent children = null;
    UIComponent result = null;
    Iterator childrens = base.getFacetsAndChildren();
    while (childrens.hasNext() && (result == null))
    children = (UIComponent) childrens.next();
    if (id.equals(children.getId()))
    result = children;
    break;
    result = findComponent(children, id);
    if (result != null)
    break;
    return result;
    Model is getting data before i use : AdfFacesContext.getCurrentInstance().addPartialTarget(component);
    But table is not calling getData() in model to show the populated data on UI.

  • How do I implement Tree structure in table in JSP?

    Hi
    how do I implement Tree structure in table in JSP? any body suggest?
    Thanks
    siva

    If you're using JSP+JSTL, use the JSTL's c:forEach tag. If you're using JSP+JSF, use the Tomahawk's t:tree tag.

  • How to implement route cipher using java?

    Hi guys,,,
    I really got a headache solving how to implement route cipher using java lang,,i already got the concept but i really dont get how to implement it using java actually i want to make a presentation of how route cipher works using "adobe flash" but first i will implement it using java coz flash actionscripts are closer to java lang.
    Hope you could post some examples or ideas...i would really appreciate it!
    thank you so much...

    just add an action listener (either keypressed or keytyped) to the frame that you want to record. I did this in NetBeans in about 2 seconds. I can simplify it if you need. As for loging it just write the characters to a file output stream.
    public class test extends javax.swing.JFrame {
        /** Creates new form test */
        public test() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">
        private void initComponents() {
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            addKeyListener(new java.awt.event.KeyAdapter() {
                public void keyTyped(java.awt.event.KeyEvent evt) {
                    formKeyTyped(evt);
            pack();
        // </editor-fold>
        private void formKeyTyped(java.awt.event.KeyEvent evt) {
            System.out.println(evt.getKeyChar());
         * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new test().setVisible(true);
        // Variables declaration - do not modify
        // End of variables declaration
    }

  • How to edit the node value of a tree in webdynpro java

    Hi ALL
    I have Tree UI element where i got displayed all the nodes by calling the BAPI
    Now my requirement is when i put the cursor at any node in the Tree struture then on click of insert button i need to insert the new node with the text  , the user has to be option to give new text for the new node dynamically  , so while adding the new node in a tree the tree has to choose the text for new node , like how to edit the node of a tree to add new text.
    If any one can send the sample code on the same then it would be great help to me.
    Similar requirement like in table UI Like however we are adding the new row in a table when we click on the insert button then cursor will go to that new row in a table where user can enter his details in the table.. now i am looking for the same requirement in a Tree UI element.
    is it possible the same requirement in tree UI element in webdynpro for Java??
    Thanks
    kallki reddy

    Hi kallki reddy
    In general I think this is not possible in the form you'd like. It seems the Tree control is read-only thing always. It cannot provide editing capabilities.
    Table is different thing. You can select within many different cell editors including Input Fields.
    I guess that you scenario could be implemented not with Tree control, but with Table with Master Column. The master column allows to bring up a hierarchy into a plain table. So it's just a tree inside a table.
    Here you can find further details: [TreeByNestingTableColumn API|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/92/12a74046033913e10000000a155106/content.htm]
    BR, Siarhei

  • Question on implementing a Berkeley DB Java Edition solution

    Hi,
    I am trying to assess if Berkeley DB JE is the solution to my problem. I have couple RDBMS tables that stores user security Groups and Resource relationship recursively in a tree data structure.
    I have an online security api for online applications that supports read only functionality and a admin security api for business system applications for write/update functionality. Currently the online api has to recursively query the database to build the complete group and resource tree structure for a user trying to login, and the performance is horrible for a user with Group sets since it query the database repetitively; or when a several concurrent users try to log in.
    I was thinking of loading the two tables in memory using Berkley DB JE during application start up to remove the overhead of connection to an RDMS. But I want to know what can I do to keep the Berkley DB in sync with the RDMS for if any updates are being made to the RDBS by the admin API.?
    I'm using Oracle 10g and querying using 'connect by' didn’t help wither
    Any advice, suggestion or alternate solution would be helpful
    Mo

    Mo,
    In my case a single application is launched on
    different app servers and I’m planning on using JE asa RDBMS cache, but since JE log files will be created
    on on each app server, over time they will be out of
    sync as the app on each server will be updating their
    individual JE log file. Yes, in this scenario, there are multiple JE read/write environments
    (which would be called databases, in Oracle terms), and they are
    independent. There is no way to built in way to keep multiple
    read/write environments in sync. I do wonder why that's an issue,
    because it sounds like these JE environments are all fed from the
    common RDBMS server, and therefore would hold the same data, but
    that's in your application realm.
    JE allows only a single process to write to the environment. In a
    JavaEE environment we recommend implementing a singleton service that
    is used to access the JE environment, for example, a stateless session
    bean that provides your application specific "data service". Other
    processes (or other J2EE components) should access JE via this data
    service. The data service should provide high level application
    operations, not individual get/put operations, to reduce communication
    overhead. In your case, this doesn't sound sufficient because
    you're using multiple app servers.
    It is possible for other processes to open the JE environment
    read-only, but these are very limited in capability. Changes made by
    the writer process are not visible in the reader process, unless the
    reader process closes and re-opens the Environment, which is
    expensive. In addition, if the processes are on different machines
    you'll need to use a network file system of some kind to access the JE
    environment directory. You can use a network file system for the JE
    environment, but you'll get much better performance by putting it on a
    local disk where the singleton service is running. See the caveats in
    our FAQ if you use a network file system.
    A High Availability (HA) version of JE, i.e., replication, is planned
    for a future release. This will allow multiple reader processes to
    use JE that do not have the limitations I described above, but still
    only a single writer process. Fail over and load balancing (for
    scalability) can be implemented using the HA version.
    ... then may be I could have a new table in the RDMS that keep
    tracks of the set record keys that have been added/updated by the
    admin API, and have the JE application query that table from time to
    time to see if something changed and update its JE store using the DB
    Load functionality ... so this is more of a hybrid solution.Yes, this is a possibility. DbLoad is a bulk load though, and in your
    case you may need to think about how to only add the recent changes,
    and whether you're inserting new data, or also updating existing records.
    Regards,
    Linda

  • How can I create a Tree  Structure in java ??

    Hi,
    I want to create a tree structure(objects hierarchy) using java language. Is there any API method for this ?
    Can any one please give me a hint or suggestion how I can do this ??
    Thanks for the help in advance.

    Do you mean graphically?
    You can use a TreeSet or TreeMap if you just want to use tree structures.
    Kaj

  • Trying to implement EAP/TLS using java (as part of RADIUS server)

    Hi
    This is a cross port since I didn't know which forum to post in!
    I'm trying to implement a RADIUS server (EAP/TLS) as part of my master thesis. I'm not used to Java SSL libraries and can't get it to work. The server will respond to an accesspoint that uses 802.1x. I have created certificates using openssl and imported the "cert-clt.pl2"and "root.pem" to a laptop trying to connect to the accesspoint. On the server side i imported the "cacert.pem" and "cert-srv.der" using keytool to a keystore. In my code I read the keystore and create the SSLEngine with following code:
              KeyStore ksKeys = KeyStore.getInstance("JKS");
                ksKeys.load(new FileInputStream("certs/FeebeeCommunity.keystore"), passphrase);
                KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509");
                kmf.init(ksKeys, passphrase);
                KeyStore ksTrust = KeyStore.getInstance("JKS");
                ksTrust.load(new FileInputStream("FeebeeCommunity.keystore"), passphrase);
                TrustManagerFactory tmf = TrustManagerFactory.getInstance("SunX509");
                tmf.init(ksKeys);
                sslContext = SSLContext.getInstance("TLS");
                sslContext.init(kmf.getKeyManagers(), tmf.getTrustManagers(), null);
                sslEngine = sslContext.createSSLEngine();
                sslEngine.setUseClientMode(false);
                sslEngine.setNeedClientAuth(true);
                sslEngine.setWantClientAuth(true);
                sslEngine.setEnableSessionCreation(true);
                appBuffer = ByteBuffer.allocate(sslEngine.getSession().getApplicationBufferSize());
                appBuffer.clear();
                netBuffer = ByteBuffer.allocate(sslEngine.getSession().getPacketBufferSize());
                netBuffer.clear();All I want to do with TLS is a handshake.
    I'm not talking ssl using sockets instead I receive and send all TLS data encapsulated in EAP packet that are incapsulated in RADIUS packets. I start off with sending TLS-Start upon I recive TLS data. I handle it with the following code:
           SSLEngineResult result = null;
            SSLEngineResult.HandshakeStatus hsStatus = null;
            if( internalState != EAPTLSState.Handshaking ) {
                if( internalState == EAPTLSState.None ) {
                    TLSPacket tlsPacket = new TLSPacket( packet.getData() );
                    peerIdentity = tlsPacket.getData();
                    internalState = EAPTLSState.Starting;
                    try {
                        sslEngine.beginHandshake();
                    } catch (SSLException e) {
                        e.printStackTrace();
                    return;
                else if(internalState == EAPTLSState.Starting ) {
                    internalState = EAPTLSState.Handshaking;
                    try {
                        sslEngine.beginHandshake();
                    } catch (SSLException e) {
                        e.printStackTrace();
            TLSPacket tlsPacket = new TLSPacket( packet.getData() );
            netBuffer.put( tlsPacket.getData() );
            netBuffer.flip();
            while(true) {
                hsStatus = sslEngine.getHandshakeStatus();
                if(hsStatus == SSLEngineResult.HandshakeStatus.NEED_TASK) {
                    Runnable task;
                    while((task=sslEngine.getDelegatedTask()) != null) {
                        new Thread(task).start();
                else if(hsStatus == SSLEngineResult.HandshakeStatus.NEED_UNWRAP) {
                    try {
                        result = sslEngine.unwrap( netBuffer, appBuffer );
                    } catch (SSLException e) {
                        e.printStackTrace();
                else {
                    return;
            }When I try to send data I use the following code:
               SSLEngineResult.HandshakeStatus hsStatus = null;
                SSLEngineResult result = null;
    //            netBuffer = ByteBuffer.allocate(EAPTLSMethod.BUFFER_SIZE);
                netBuffer.clear();
                while(true) {
                    hsStatus = sslEngine.getHandshakeStatus();
                    if(hsStatus == SSLEngineResult.HandshakeStatus.NEED_TASK) {
                        Runnable task;
                        while((task=sslEngine.getDelegatedTask()) != null) {
                            new Thread(task).start();
                    else if(hsStatus == SSLEngineResult.HandshakeStatus.NEED_WRAP) {
                        try {
                            result = sslEngine.wrap( dummyBuffer, netBuffer );
                        } catch (SSLException e) {
                            e.printStackTrace();
                    else {
                        if( result != null && result.getStatus() == SSLEngineResult.Status.OK ) {
                            int size = Math.min(result.bytesProduced(),this.MTU);
                            byte [] tlsData = new byte[size];
                            netBuffer.flip();
                            netBuffer.get(tlsData,0,size);
                            TLSPacket tlsPacket = new TLSPacket((byte)0,tlsData);
                            if( size < result.bytesProduced() ) {
                                tlsPacket.setFlag(TLSFlag.MoreFragments);
                            return new EAPTLSRequestPacket( ID,
                                    (short)(tlsPacket.getData().length + 6),
                                    stateMachine.getCurrentMethod(), tlsPacket );
                        else {
                            return null;
                    }After I sent TLS-Start I receive data and manage to process it but when then trying to produce TLS data I get the following error:
    javax.net.ssl.SSLHandshakeException: no cipher suites in common
    at com.sun.net.ssl.internal.ssl.Handshaker.checkThrown(Handshaker.java:992)
    at com.sun.net.ssl.internal.ssl.SSLEngineImpl.checkTaskThrown(SSLEngineImpl.java:459)
    at com.sun.net.ssl.internal.ssl.SSLEngineImpl.writeAppRecord(SSLEngineImpl.java:1054)
    at com.sun.net.ssl.internal.ssl.SSLEngineImpl.wrap(SSLEngineImpl.java:1026)
    at javax.net.ssl.SSLEngine.wrap(SSLEngine.java:411)
    at RadiusServerSimulator.EAPModule.EAPTLSMethod.buildReq(EAPTLSMethod.java:125)
    at RadiusServerSimulator.EAPModule.EAPStateMachine.methodRequest(EAPStateMachine.java:358)
    at RadiusServerSimulator.EAPModule.EAPStateMachine.run(EAPStateMachine.java:262)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.net.ssl.SSLHandshakeException: no cipher suites in common
    at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:150)
    at com.sun.net.ssl.internal.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1352)
    at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:176)
    at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:164)
    at com.sun.net.ssl.internal.ssl.ServerHandshaker.chooseCipherSuite(ServerHandshaker.java:638)
    at com.sun.net.ssl.internal.ssl.ServerHandshaker.clientHello(ServerHandshaker.java:450)
    at com.sun.net.ssl.internal.ssl.ServerHandshaker.processMessage(ServerHandshaker.java:178)
    at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:495)
    at com.sun.net.ssl.internal.ssl.Handshaker$1.run(Handshaker.java:437)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.net.ssl.internal.ssl.Handshaker$DelegatedTask.run(Handshaker.java:930)
    Any help wold be most greatfull, if any questions or anything unclear plz let me know.
    add some additional information here is a debug output
    Before this I have sent a TLS-star package and this is when I receive new information and then try to create the answer
    [Raw read]: length = 5
    0000: 16 03 01 00 41 ....A
    [Raw read]: length = 65
    0000: 01 00 00 3D 03 01 41 A4 FC 16 A8 14 89 F0 59 81 ...=..A.......Y.
    0010: C8 C9 29 C2 09 D1 0A 70 18 58 DC 2E B0 C8 14 90 ..)....p.X......
    0020: D4 FD A4 C6 32 C9 00 00 16 00 04 00 05 00 0A 00 ....2...........
    0030: 09 00 64 00 62 00 03 00 06 00 13 00 12 00 63 01 ..d.b.........c.
    0040: 00 .
    Thread-2, READ: TLSv1 Handshake, length = 65
    *** ClientHello, TLSv1
    RandomCookie: GMT: 1084488726 bytes = { 168, 20, 137, 240, 89, 129, 200, 201, 4
    1, 194, 9, 209, 10, 112, 24, 88, 220, 46, 176, 200, 20, 144, 212, 253, 164, 198,
    50, 201 }
    Session ID: {}
    Cipher Suites: [SSL_RSA_WITH_RC4_128_MD5, SSL_RSA_WITH_RC4_128_SHA, SSL_RSA_WITH
    _3DES_EDE_CBC_SHA, SSL_RSA_WITH_DES_CBC_SHA, SSL_RSA_EXPORT1024_WITH_RC4_56_SHA,
    SSL_RSA_EXPORT1024_WITH_DES_CBC_SHA, SSL_RSA_EXPORT_WITH_RC4_40_MD5, SSL_RSA_EX
    PORT_WITH_RC2_CBC_40_MD5, SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA, SSL_DHE_DSS_WITH_DE
    S_CBC_SHA, SSL_DHE_DSS_EXPORT1024_WITH_DES_CBC_SHA]
    Compression Methods: { 0 }
    [read] MD5 and SHA1 hashes: len = 65
    0000: 01 00 00 3D 03 01 41 A4 FC 16 A8 14 89 F0 59 81 ...=..A.......Y.
    0010: C8 C9 29 C2 09 D1 0A 70 18 58 DC 2E B0 C8 14 90 ..)....p.X......
    0020: D4 FD A4 C6 32 C9 00 00 16 00 04 00 05 00 0A 00 ....2...........
    0030: 09 00 64 00 62 00 03 00 06 00 13 00 12 00 63 01 ..d.b.........c.
    0040: 00 .
    Thread-5, fatal error: 40: no cipher suites in common
    javax.net.ssl.SSLHandshakeException: no cipher suites in common
    Thread-5, SEND TLSv1 ALERT: fatal, description = handshake_failure
    Thread-5, WRITE: TLSv1 Alert, length = 2
    Thread-2, fatal: engine already closed. Rethrowing javax.net.ssl.SSLHandshakeEx
    ception: no cipher suites in common
    javax.net.ssl.SSLHandshakeException: no cipher suites in common
    at com.sun.net.ssl.internal.ssl.Handshaker.checkThrown(Handshaker.java:9
    92)
    at com.sun.net.ssl.internal.ssl.SSLEngineImpl.checkTaskThrown(SSLEngineI
    mpl.java:459)
    at com.sun.net.ssl.internal.ssl.SSLEngineImpl.writeAppRecord(SSLEngineIm
    pl.java:1054)
    at com.sun.net.ssl.internal.ssl.SSLEngineImpl.wrap(SSLEngineImpl.java:10
    26)
    at javax.net.ssl.SSLEngine.wrap(SSLEngine.java:411)
    at RadiusServerSimulator.EAPModule.EAPTLSMethod.buildReq(EAPTLSMethod.ja
    va:153)
    at RadiusServerSimulator.EAPModule.EAPStateMachine.methodRequest(EAPStat
    eMachine.java:358)
    at RadiusServerSimulator.EAPModule.EAPStateMachine.run(EAPStateMachine.j
    ava:262)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.net.ssl.SSLHandshakeException: no cipher suites in common
    at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:150)
    at com.sun.net.ssl.internal.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1
    352)
    at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:176)
    at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:164)
    at com.sun.net.ssl.internal.ssl.ServerHandshaker.chooseCipherSuite(Serve
    rHandshaker.java:638)
    at com.sun.net.ssl.internal.ssl.ServerHandshaker.clientHello(ServerHands
    haker.java:450)
    at com.sun.net.ssl.internal.ssl.ServerHandshaker.processMessage(ServerHa
    ndshaker.java:178)
    at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:4
    95)
    at com.sun.net.ssl.internal.ssl.Handshaker$1.run(Handshaker.java:437)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.net.ssl.internal.ssl.Handshaker$DelegatedTask.run(Handshaker.
    java:930)
    ... 1 more

    I am developing a simple client/server SSL app using sdk 1.4 (no SSLEngine) and am faced with the same problem. Could anybody track down the problem further?

  • Please help me...how to implement a class DateAndTime.java

    I have a class named DateAndTime.java How should I implement a method which allows me to check if the date entered by user is valid or not?. Also when the hour continues to a next day, how should I implement a method for a nextDay()? Thank you
    class DateAndTime
         private int hour, minute, second, month, day, year;
         Constructor to initialize DateAndTime.
         Default DateAndTime 0:0:0 1/1/1
         public DateAndTime()
         {     month = 1;
              day =1;
              year =1;
         Constructor to set DateAndTime to specific values.
         Calls member function setDate and setTime to set variables.
         @param h hour of the DateAndTime
         @param m minute of the DateAndTime
         @param s second of the DateAndTime
         @param mo month of the DateAndTime
         @param d day of the DateAndTime
         @param y year of the DateAndTime
         public DateAndTime(int h, int m, int s, int mo, int d, int y)// CONSTRUCTOR
         {     if (isValidDate(mo, d, y))    //if date entered is valid, the date and time will be set
                   setDate(mo, d, y);
                   setTime(h, m, s);
              else
                   System.out.println("Invalid Date :" + mo + "/" + d + "/" + y);
                   setDate(1,1,1);
         Set the values of hour, minute, and second.
         @param h hour of the DateAndTime
         @param m minute of the DateAndTime
         @param s second of the DateAndTime
         public void setTime( int h, int m, int s ) //DEFINING SETTERS, SETTING time,hour,minute,and second,
         setHour( h );
         setMinute( m );
         setSecond( s );
         Set the hour if valid or to default 0.********************SET HOUR
         public void setHour( int h )
         {     hour = ( h >= 0 && h < 24 ) ? h : 0;     }
         Set the minute if valid or to default 0.******************SET MINUTE
         public void setMinute( int m )
         {     minute = ( m >= 0 && m < 60 ) ? m : 0;     }
         Set the hour if valid or to default 0. ******************SET SECOND
         public void setSecond( int s )
         {     second = ( s >= 0 && s < 60 ) ? s : 0;     }
         Set the values of month, day, and year.
         @param mo month of the DateAndTime
         @param d day of the DateAndTime
         @param y year of the DateAndTime
         public void setDate(int mo, int d, int y)//DEFINING SETTERS, SETTING DATE FOR month,day,and Year
              setMonth(mo);
              setDay(d,mo,y);
              setYear(y);
         Set the month if valid or to default 1. ****************SET MONTH
         public void setMonth(int mo)
         {     month = (mo >= 1 && mo <= 12)? mo : 1;  }
         Set the day if valid or to default 1. ****************SET DAY
         public void setDay(int d, int mo, int y) // ?????
         {     day = (isValidDate(mo,d,y))? d : 1;  }
         Set the year if valid or to default 1. ****************SET YEAR
         public void setYear(int y)
         {     year = (y >=1)? y : 1;     }
         Get the hour value.
         @return int
         public int getHour() {   return hour;  } //DEFINING GETTERS get hour, minute, second
         Get the minute value.
         @return int
         public int getMinute() {   return minute;  }
         Get the second value.
         @return int
         public int getSecond() {   return second;  }
         Get the month value.
         @return int
         public int getMonth() {   return month;  } //DEFINING GETTERS get month, day, and year
         Get the day value.
         @return int
         public int getDay() {   return day;  }
         Get the year value.
         @return int
         public int getYear() {   return year;  }
         Finds whether a given date is a valid date in A.D..
         @param mo month of the DateAndTime.
         @param d day of the DateAndTime.
         @param y year of the DateAndTime.
         @return boolean valid or not
         public static boolean isValidDate(int mo, int d, int y)
         //your code goes here
              return true;
         Print time DateAndTime in military format.
         public void printMilitary()
         System.out.println( month + "/" + day + "/" + year + "\t"
                   + ( hour < 10 ? "0" : "" ) + hour + ":"
         + ( minute < 10 ? "0" : "" ) + minute);
         Formats DateAndTime for printing.
         @return String
         public String toString()
         return ( month + "/" + day + "/" + year + "\t"
                   + (( hour == 0 || hour == 12 ) ? 12 : hour % 12)
         + ":" + ( minute < 10 ? "0" : "" ) + minute
         + ":" + ( second < 10 ? "0" : "" ) + second
         + ( hour < 12 ? " AM" : " PM" ));
         Increments DateAndTime by one second.
         Hint: calls nextDay() if tick() results in going in to next day.
         public void tick()
              //Your code goes here
    second++;
    if (second >59)
         second = 0;
         minute++;
    if (minute > 59)
         minute = 0;
              hour++;
              if(hour >23)
         //      hour = 0;
         nextDay();
         Increments DateAndTime by one day.
         public void nextDay()
              day++;
              //your code goes here
    }//end class

    See java.util.Calendar
    and java.util.GregorianCalendar
    You can do all types of date validation with those classes.

  • Implementing Tree in ABAP WebDynpro

    Hello All,
    I have requirement to implement a tree using WDA. The scenario is:
    I have a table (VIQMEL) that holds notifications. each notification has a flag saying if it is a father or not. Also,
    if it is not a father (which means it is a sun) there is a feild that hold the notification number of his father.
    I am trying to display an hierarchy of fathers/suns.
    how can I do it ?
    I saw couple of tutorials about it but they were not enough and did not suit my request.
    Thanks for the help.
    Regards,
    Shimon

    Hello Shimon,
    Did you check the TreeByKeyTableColumn UI Element? based on my understanding of your requirement, I feel this is the right chioce.
    BR, Saravanan

  • Implementing File Upload component + Java Mail

    Guys,
    Brief Intro : I have a form with some input fields. Upon submission of the form all the necessary information is submitted ro R/3 system and a mail is send to lets say administrators. I have Java Mail program for sending emails.
    My requirement : I want the users to give the FileUpload option in the form so that they can select the file and that file should be attached to email whcih I am sending upon form submission.
    Questions:
    1) How to check the path of the file where it gets uploaded.
    2) Does it get uploaded on the Server where I deploy my application.
    3) Any Solution/suggestion on how to implement the requirement stated above.
    Regards,
    <b>Chintan Virani.</b>

    Hi Chintan...
    File Uplaod UI Element is just to get the file path of the file from the client or presentation server i.e. our pc. Rest code to store the data is done in action of the upload button (not the browse button). So no file is formed automatically.
    Unless you write the code to read the file from the path selected, you cannot get the data bytes and unless you mention the path no file is made in the server.
    Better would be that you keep a file template in the mimes folder and at runtime you write to this file.
    The path of the file in the mimes folder is
    temp
    webdynpro
    web
    local
    <ProjectName>
    Components
    <Component Package>
    <File Name>
    This file can be attached to your mail as an attachement.
    Further reference...
    Re: how to create a file i mimes/ components folder
    Regards,
    Mahesh K.

  • Render Tree Table, got java.beans.IntrospectionException in Log file.

    Hi,
    I have a tree table defined in a jspx page. I got the following exception in the Log file when the UI try to render the tree table in the first time. This won't affect anything in the UI itself. It will render the tree table in the UI without problem. And this exception is only shown up in the Log for one time. However, I'd like to know why is that? How can I prevent such exception in the Log?
    I tried to add the try catch in the constructor of the backing bean for this page. But the exception is not from there.
    Please help!
    07/06/27 11:49:39 java.beans.IntrospectionException: Method not found: isAutoSyncEnabled
    07/06/27 11:49:39      at java.beans.PropertyDescriptor.<init>(PropertyDescriptor.java:89)
    07/06/27 11:49:39      at oracle.jbo.uicli.binding.JUCtrlHierNodeBindingBeanInfo.getPropertyDescriptors(JUCtrlHierNodeBindingBeanInfo.java:170)
    07/06/27 11:49:39      at oracle.jbo.uicli.binding.JUCtrlHierNodeBindingBeanInfo.<init>(JUCtrlHierNodeBindingBeanInfo.java:42)
    07/06/27 11:49:39      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    07/06/27 11:49:39      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    07/06/27 11:49:39      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    07/06/27 11:49:39      at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    07/06/27 11:49:39      at java.lang.Class.newInstance0(Class.java:350)
    07/06/27 11:49:39      at java.lang.Class.newInstance(Class.java:303)
    07/06/27 11:49:39      at java.beans.Introspector.instantiate(Introspector.java:1454)
    07/06/27 11:49:39      at java.beans.Introspector.findExplicitBeanInfo(Introspector.java:410)
    07/06/27 11:49:39      at java.beans.Introspector.<init>(Introspector.java:359)
    07/06/27 11:49:39      at java.beans.Introspector.getBeanInfo(Introspector.java:159)
    07/06/27 11:49:39      at oracle.jbo.common.JboBeanUtils.getPropertyDescriptor(JboBeanUtils.java:20)
    07/06/27 11:49:39      at oracle.jbo.common.JboBeanUtils.getProperty(JboBeanUtils.java:61)
    07/06/27 11:49:39      at oracle.jbo.common.JboAbstractMap.internalGet(JboAbstractMap.java:65)
    07/06/27 11:49:39      at oracle.adf.model.binding.DCControlBinding.internalGet(DCControlBinding.java:733)
    07/06/27 11:49:39      at oracle.jbo.uicli.binding.JUCtrlValueBinding.internalGet(JUCtrlValueBinding.java:1789)
    07/06/27 11:49:39      at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.internalGet(JUCtrlHierNodeBinding.java:896)
    07/06/27 11:49:39      at oracle.adf.model.binding.DCControlBinding.get(DCControlBinding.java:649)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.model.HierNodeBindingPropertyResolver.getValue(HierNodeBindingPropertyResolver.java:49)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.model.FacesPropertyResolver.getValue(FacesPropertyResolver.java:90)
    07/06/27 11:49:39      at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:187)
    07/06/27 11:49:39      at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:171)
    07/06/27 11:49:39      at com.sun.faces.el.impl.BinaryOperatorExpression.evaluate(BinaryOperatorExpression.java:185)
    07/06/27 11:49:39      at com.sun.faces.el.impl.ConditionalExpression.evaluate(ConditionalExpression.java:176)
    07/06/27 11:49:39      at com.sun.faces.el.impl.ExpressionString.evaluate(ExpressionString.java:134)
    07/06/27 11:49:39      at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:268)
    07/06/27 11:49:39      at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
    07/06/27 11:49:39      at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
    07/06/27 11:49:39      at oracle.adf.view.faces.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:55)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.ValueRenderer.getValue(ValueRenderer.java:63)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.ValueRenderer.getConvertedString(ValueRenderer.java:32)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.OutputTextRenderer.encodeEnd(OutputTextRenderer.java:56)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:173)
    07/06/27 11:49:39      at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.RenderUtils.encodeRecursive(RenderUtils.java:54)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeChild(CoreRenderer.java:242)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.ColumnRenderer.renderKids(ColumnRenderer.java:143)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.table.TreeNodeColumnRenderer._renderNodeStampBasedOnAccessibilty(TreeNodeColumnRenderer.java:186)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.table.TreeNodeColumnRenderer.renderKids(TreeNodeColumnRenderer.java:110)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.ColumnRenderer._renderKids(ColumnRenderer.java:160)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.ColumnRenderer._renderTD(ColumnRenderer.java:319)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.ColumnRenderer._renderDataMode(ColumnRenderer.java:233)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.ColumnRenderer.encodeAll(ColumnRenderer.java:87)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.delegateRenderer(CoreRenderer.java:281)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.TreeTableRenderer.renderSpecialColumns(TreeTableRenderer.java:295)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.DesktopTableRenderer.renderSingleRow(DesktopTableRenderer.java:107)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.TreeTableRenderer$1.processRowImpl(TreeTableRenderer.java:431)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.table.TableUtils$RowLoop.processRow(TableUtils.java:100)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.TreeTableRenderer$1.loop(TreeTableRenderer.java:424)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.table.TableUtils$RowLoop.run(TableUtils.java:58)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.TreeTableRenderer._renderTableRows(TreeTableRenderer.java:463)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.TreeTableRenderer.renderTableRows(TreeTableRenderer.java:319)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.DesktopTableRenderer.renderTableContent(DesktopTableRenderer.java:366)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.TableRenderer.encodeAll(TableRenderer.java:237)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.DesktopTableRenderer.encodeAll(DesktopTableRenderer.java:80)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.TreeTableRenderer.encodeAll(TreeTableRenderer.java:139)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:169)
    07/06/27 11:49:39      at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
    07/06/27 11:49:39      at oracle.adf.view.faces.component.UIXCollection.encodeEnd(UIXCollection.java:456)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.uinode.UIComponentUINode._renderComponent(UIComponentUINode.java:317)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:262)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:239)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(ContextPoppingUINode.java:224)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.laf.oracle.desktop.HeaderRenderer.renderContent(HeaderRenderer.java:489)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.laf.base.xhtml.BorderLayoutRenderer.renderIndexedChildren(BorderLayoutRenderer.java:42)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.laf.base.xhtml.BorderLayoutRenderer.renderContent(BorderLayoutRenderer.java:71)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.composite.UINodeRenderer.renderWithNode(UINodeRenderer.java:90)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.composite.UINodeRenderer.render(UINodeRenderer.java:36)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.laf.oracle.desktop.PageLayoutRenderer.render(PageLayoutRenderer.java:76)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.uinode.UIXComponentUINode.renderInternal(UIXComponentUINode.java:177)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:53)
    07/06/27 11:49:39      at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.RenderUtils.encodeRecursive(RenderUtils.java:54)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeChild(CoreRenderer.java:242)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeAllChildren(CoreRenderer.java:265)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:65)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:117)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:147)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:60)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:169)
    07/06/27 11:49:39      at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
    07/06/27 11:49:39      at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:645)
    07/06/27 11:49:39      at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:568)
    07/06/27 11:49:39      at oracle.adf.view.faces.webapp.UIXComponentTag.doEndTag(UIXComponentTag.java:100)
    07/06/27 11:49:39      at FlowStepsByActivityjspx._jspService(_FlowStepsByActivity_jspx.java:2154)
    07/06/27 11:49:39      at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    07/06/27 11:49:39      at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
    07/06/27 11:49:39      at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:598)
    07/06/27 11:49:39      at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:522)
    07/06/27 11:49:39      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    07/06/27 11:49:39      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:712)
    07/06/27 11:49:39      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
    07/06/27 11:49:39      at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:286)
    07/06/27 11:49:39      at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:50)
    07/06/27 11:49:39      at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:192)
    07/06/27 11:49:39      at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
    07/06/27 11:49:39      at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:197)
    07/06/27 11:49:39      at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
    07/06/27 11:49:39      at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
    07/06/27 11:49:39      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
    07/06/27 11:49:39      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
    07/06/27 11:49:39      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
    07/06/27 11:49:39      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
    07/06/27 11:49:39      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
    07/06/27 11:49:39      at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
    07/06/27 11:49:39      at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    07/06/27 11:49:39      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
    07/06/27 11:49:39      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:620)
    07/06/27 11:49:39      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
    07/06/27 11:49:39      at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)
    07/06/27 11:49:39      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
    07/06/27 11:49:39      at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)
    07/06/27 11:49:39      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    07/06/27 11:49:39      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    07/06/27 11:49:39      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    07/06/27 11:49:39      at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
    07/06/27 11:49:39      at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
    07/06/27 11:49:39      at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
    07/06/27 11:49:39      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)

    Hi, Frank:
    Thanks for your reply. This problem is what happened in JDeveloper 10.1.3.2.
    I am using the JDeveloper Studio Edition Version 10.1.3.2.0.4066.
    Build JDEVADF_10.1.3.2.0_NT_070118.1250.4066
    ADF Business Components: 10.1.3.40.66
    Oracle ADF Faces: 10.1.3.40.66
    Java Platform: 1.5.0_06

  • Implementing a Web Dynpro Java Callable Object in GP using a R/3 Model

    Hi to all,
    my scenario is that I have to Implement a WD Java Callable Object (as descripted in this example https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e3f07a7a-0601-0010-ebbd-b9cfb445b814) but I want to get datas from an R/3 system with a RFC Model.
    I tried but I have some problems how to use the model itself. Can someone help me, please?
    I'm using NWDS 7.0.
    Thank you very much,
    Antonio

    Hi Antonio,
    Go through this link https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=externalservicesusing+RFC&adv=false&sortby=cm_rnd_rankvalue  and find "Consuming RFC Function Module Using Guided Procedures" Application
    Thanks,
    Nataraju

Maybe you are looking for

  • Not getting Facebook Notifications and other issues

    Okay. I have been dealing with this since last night and I don't know what else to do. I have not been receiving any push notification from Facebook. I thought it was an issue with the device so I power cycled the device and when I tried to access th

  • Confilicts with XP "Remote Desktop" and ZFD4 "Remote Control"

    He have a similar problem like this. Some machines, after installing Zen4 agent, after first login, the WS reboot automatically every time. He have discovered a conflit with display adapter ( Intel eXtreme graphics 2 ). Resolution: With workstation a

  • Logical Formula at query level?

    I have requirment like if D =  0 then ' ' (SAPCE) else E / F. I dont know how to get space ? please help me to create this formula at query level?

  • Problem with arabic in j2me!!!!

    hi all, i was developing a midlet that displays some arabic text , but it didn't neither on the real device nor the emulator, i got ???? instead, i finally found out that the problem isn't with the device nor the emulator but with the j2me itself coz

  • Portal user creation- Disable password Option

    Hi all, Can i disable password for all my users. we have an option to disable password while creating users. i tried creating but it doesnot allow me to login with password field left balnk--it says "Authentication failed. Logon with password not all