UPDATE - Java Fx 2 Database Mysql Xampp

Frist i want thank you very much for help me. for : https://forums.oracle.com/forums/profile.jspa?userID=899491
And several my project almost perfect.
Help my problem please.
1.Login.java - Done
2.Menu_Utama.java - Done
3.Select.java - Done
4.Insert.java - Done
5.Update.java - Done
6.Delete.java - Why after DELETE my rows can't disappear, i want not any texfield, i want if some one click table row and click button row is delete and data disappear too.
Edited by: Tom on Feb 10, 2012 6:08 AM

import javafx.application.*;
import javafx.beans.property.*;
import javafx.collections.*;
import javafx.event.*;
import javafx.scene.*;
import javafx.scene.control.*;
import javafx.scene.control.cell.*;
import javafx.scene.input.*;
import javafx.scene.layout.*;
import javafx.stage.*;
import java.sql.*;
import javafx.beans.binding.Bindings;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javax.swing.*;
public class Update extends Application
        final TableView tv = new TableView();
        final TableColumn tc1 = new TableColumn();
        final TableColumn tc2 = new TableColumn();
        final ObservableList <Person> data = FXCollections.observableArrayList();
        final TextField tf1 = new TextField("Nama");
        final TextField tf2 = new TextField("Npm");
        final Button b1 = new Button("Update");
        final Button b2 = new Button("Back");
        private void init ( final Stage s ) throws Exception
                 final Menu_Utama menu_utama = new Menu_Utama();
                 Group g = new Group();   
                 Scene scene = new Scene(g);
                 s.setScene(scene);
                 VBox vb = new VBox(10);
                 b1.setMaxWidth(Double.MAX_VALUE);
                 b2.setMaxWidth(Double.MAX_VALUE);
                 TableColumn<Person, String> tc1 = new TableColumn<Person, String>("Nama");
                 TableColumn<Person, String> tc2 = new TableColumn<Person, String>("Npm");
                 tc1.setCellValueFactory(new PropertyValueFactory<Person, String>("firstName"));
                 tc2.setCellValueFactory(new PropertyValueFactory<Person, String>("lastName"));
                 tv.getColumns().add(tc1);
                 tv.getColumns().add(tc2);
                 tv.setItems(data);
                 tv.getFocusModel().focusedItemProperty().addListener(new ChangeListener<Person>()
                        @Override public void changed(ObservableValue<? extends Person> observable, Person oldValue, Person newValue)
                                if(oldValue != null)
                                        tf1.textProperty().unbindBidirectional(oldValue.firstNameProperty());
                                        tf2.textProperty().unbindBidirectional(oldValue.lastNameProperty());
                                if(newValue != null)
                                        tf1.textProperty().bindBidirectional(newValue.firstNameProperty());
                                        tf2.textProperty().bindBidirectional(newValue.lastNameProperty());
                 b1.setOnAction(new EventHandler<ActionEvent>()
                        @Override public void handle(ActionEvent e)
                                if(e.getSource()== b1)
                                        try
                                                String nama = tf1.getText();
                                                String npm = tf2.getText();
                                                Class.forName ("com.mysql.jdbc.Driver");
                                                Connection c = DriverManager.getConnection("jdbc:mysql://localhost/mahasiswa","root","");  
                                                String sql="update data set nama ='"+nama+"', npm ='"+npm+"' where nama ='"+nama+"'or npm ='"+npm+"'";                                                                                                          
                                                Statement s = c.createStatement();                                                     
                                                s.executeUpdate(sql);                                                      
                                                s.close();
                                                c.close();
                                                JOptionPane.showMessageDialog(null,  "Data berhasil diupdate");
                                        catch (Exception ex)
                                                //Logger.getLogger(Menu_Utama.class.getName()).log(Level.SEVERE, null, ex);
                 b2.setOnAction(new EventHandler<ActionEvent>()
                        @Override public void handle(ActionEvent e)
                                if(e.getSource()== b2)
                                        try
                                                menu_utama.start(s);
                                        catch (Exception ex)
                                                //Logger.getLogger(Menu_Utama.class.getName()).log(Level.SEVERE, null, ex);
                 vb.getChildren().addAll(tv,tf1,tf2,b1,b2);
                 g.getChildren().add(vb);
                 tampil();
        @Override public void start ( Stage  s ) throws Exception
                init(s);
                s.show();
         public class Person
                private StringProperty firstName;
                private StringProperty lastName;
                public Person(String firstName, String lastName)
                        setFirstName(firstName);
                        setLastName(lastName);
                public final void setFirstName(String value)
                        firstNameProperty().set(value);
                public String getFirstName()
                        return firstNameProperty().get();
                public StringProperty firstNameProperty()
                         if(firstName == null)
                                firstName = new SimpleStringProperty(this, "firstName");
                         return firstName;
                //=======================================================
                public final void setLastName(String value)
                         lastNameProperty().set(value);
                public String getLastName()
                        return lastNameProperty().get();
                public StringProperty lastNameProperty()
                        if(lastName == null)
                                lastName = new SimpleStringProperty(this, "lastName");
                        return lastName;
        public void tampil()
                try
                        Class.forName ("com.mysql.jdbc.Driver");
                        Connection c = DriverManager.getConnection("jdbc:mysql://localhost/mahasiswa","root","");  
                        Statement s = c.createStatement();                       
                        String sql ="select * from data";
                        ResultSet rs = s.executeQuery(sql);
                        while (rs.next())
                                data.add(new Person(rs.getString(1), rs.getString(2)));
                        rs.close();
                        c.close();
                        //JOptionPane.showMessageDialog(null,  "Data berhasil dilihat");
                catch (Exception e)
        public static void main ( String [] arguments )
                launch ( arguments );
    }   

Similar Messages

  • Help Me - Database Mysql Xampp Java FX 2.0

    Hello every one. Please Help me, i was search site by site was'nt found my solucition.
    I was created project database Java Fx 2 with Mysql Xampp
    I have 5 class :
    Login.java
    Insert.java
    Select.java
    Insert.java
    Update.java
    Delete.java
    Thank you for help me.
    Edited by: 912711 on Feb 6, 2012 5:50 PM

    Update.java
    import javafx.application.*;
    import javafx.beans.property.*;
    import javafx.collections.*;
    import javafx.event.*;
    import javafx.scene.*;
    import javafx.scene.control.*;
    import javafx.scene.control.cell.*;
    import javafx.scene.input.*;
    import javafx.scene.layout.*;
    import javafx.stage.*;
    import java.sql.*;
    import javax.swing.*;
    public class Update extends Application
            final TableView tv = new TableView();
            final TableColumn tc1 = new TableColumn();
            final TableColumn tc2 = new TableColumn();
            final ObservableList <Tampil> data = FXCollections.observableArrayList();
            final TextField tf1 = new TextField("Nama");
            final TextField tf2 = new TextField("Npm");
            final Button b1 = new Button("Update");
            final Button b2 = new Button("Back");
            private void init ( final Stage s )
                     Group g = new Group();   
                     Scene scene = new Scene(g);
                     s.setScene(scene);
                     VBox vb = new VBox(10);
                     b1.setMaxWidth(Double.MAX_VALUE);
                     b2.setMaxWidth(Double.MAX_VALUE);
                     tc1.setText("Nama");
                     tc2.setText("Npm");
                     tc1.setCellValueFactory(new PropertyValueFactory("xnama"));
                     tc2.setCellValueFactory(new PropertyValueFactory("xnpm"));
                     tv.setItems(data);
                     tv.setEditable(true);
                     tv.setOnMouseClicked(new EventHandler<MouseEvent>()
                            @Override public void handle(MouseEvent me)
                                    if(me.getClickCount() > 0)
            int col =   0;
                                        //String nama = tv.getSelectionModel().getSelectedCells().get(0).toString();//tc1.getText().toString();
                                        //String npm = tc2.g;
                                        //System.out.println("Clicked column: " + (tv.getSelectionModel().getSelectedCells().get(0)).toString());
                                        //System.out.println("Clicked column: " + (tv.getId().toString()));
                                        //System.out.println("Clicked column: " + (tv.getSelectionModel().getSelectedCells().get(0).toString()));
                                        //System.out.println("Clicked column: " + (tv.getColumns().toString()));             
                                        System.out.println("Clicked column: " + (tv.getItems().get(0).toString()));
                                        String nama = tv.getItems().get(0).toString();
                                        //String nama = tv.getFocusModel().getFocusedCell().getColumn();
                                        String npm = tv.getItems().get(1).toString();
                                        tf1.setText(nama);
                                        tf2.setText(npm); 
                     b1.setOnAction(new EventHandler<ActionEvent>()
                            @Override public void handle(ActionEvent e)
                                    if(e.getSource()== b1)
                                            try
                                                    String nama = tf1.getText();
                                                    String npm = tf2.getText();
                                                    Class.forName ("com.mysql.jdbc.Driver");
                                                    Connection c = DriverManager.getConnection("jdbc:mysql://localhost/mahasiswa","root","");  
                                                    String sql="update data set nama ='"+nama+"', npm ='"+npm+"' where nama ='"+nama+"'or npm ='"+npm+"'";                                                                                                          
                                                    Statement s = c.createStatement();                                                     
                                                    s.executeUpdate(sql);                                                      
                                                    s.close();
                                                    c.close();
                                                    JOptionPane.showMessageDialog(null,  "Data berhasil diupdate");
                                            catch (Exception ex)
                                                    //Logger.getLogger(Menu_Utama.class.getName()).log(Level.SEVERE, null, ex);
                     tv.getColumns().addAll(tc1, tc2);    
                     vb.getChildren().addAll(tv,tf1,tf2,b1,b2);
                     g.getChildren().add(vb);
                     tampil();
            @Override public void start ( Stage  s ) throws Exception
                    init(s);
                    s.show();
            public static class Tampil
                    private StringProperty nama;
                    private StringProperty npm;
                    private Tampil(String xnama, String xnpm)
                            this.nama = new SimpleStringProperty(xnama);
                            this.npm = new SimpleStringProperty(xnpm);
                    public StringProperty xnamaProperty()
                            return nama;
                    public StringProperty xnpmProperty()
                            return npm;
            public void tampil()
                    try
                            Class.forName ("com.mysql.jdbc.Driver");
                            Connection c = DriverManager.getConnection("jdbc:mysql://localhost/mahasiswa","root","");  
                            Statement s = c.createStatement();                       
                            String sql ="select * from data";
                            ResultSet rs = s.executeQuery(sql);
                            while (rs.next())
                                    data.add(new Tampil(rs.getString(1), rs.getString(2)));
                            rs.close();
                            c.close();
                            //JOptionPane.showMessageDialog(null,  "Data berhasil dilihat");
                    catch (Exception e)
            public static void main ( String [] arguments )
                    launch ( arguments );
        }Edited by: 912711 on Feb 6, 2012 5:51 PM

  • How to update transaction data automatically into MySQL database using PI

    Dear All,
    With reference to subject matter I want a sincere advice regarding how to update transaction data automatically into MySQL database using PI. Is there any link available where I can get step-by-step process.
    Ex: I have a MYSQL database in my organization. Whenever a delivery created in SAP some fields like DO Number, DO quantity, SO/STO number should get updated in MYSQL database automatically.
    This scenario is related to updation of transactional data into MYSQL DB and I want your suggestions pertaining to same issue.
    Thanks and Regards,
    Chandra Sekhar

    Hi .
    Develop a sceanrio between SAP to Database system,When the data updates in SAP Tables read the data and update it in DATA Base using JDBC adapter,but there will be some delay in updating data in MySQL.
    serach in sdn for IDOC-TOJDBC sceannario,many documents available for the same.
    Regards,
    Raja Sekhar

  • Updating a visitor count in mysql

    I've got a bit hung up on this, tho it's pobably a simple problem.I have a footer page fragment. I didn't have much trouble setting up a text component that used a cachedRowSet data provider to query a mysql data base for a visitor count.
    But I can't seem to update this page count correctly. If I execute an update SQL statement on my cachedRowSet, it updates the visitor count twice.
    I've also tried endless variations of this in the init section of the footer, but this doesn't access the database at all.
    try {
    Connection con = DriverManager.getConnection("java:comp/env/jdbc/mysql");
    InitialContext ctx = new InitialContext();
    DataSource ds = (DataSource)ctx.lookup("mysql");
    con = ds.getConnection();
    Statement stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery("Update PageCount set Count = Count+1 Where Page='index.jsp'");
    } catch (Exception e) { 
    label1.setText(e);
    System.out.println(e.getMessage());
    error("Can't connect to datasource"+e);
    What would be the best way to go about this? I've looked thru the tutorials, but, as is typical, they don't go over the easy stuff. :)

    I don't know about your first question but, on the second, I use the counter on my home page and I have edited the page without it resetting the counter.
    I didn't have to do anything special to get the counter to work. I suppose you could try deleting it then put it back then republish. If that fails and no one else has chimed in with an answer, it might help to provide the URL of your site so someone can take a look.

  • Updating tableview back into database table

    I am trying to display a recordset from mysql database table into a tableview in javafx. Maybe let's say get all records where invoice number is 101 i n the master table from the child records in the child table.(This is a typical master detail scenario.) After this I update the tableview add, delete, edit some records AND then I want to save this Tableview or rather update it back, synchronise into the database table.
    I request you to kindly help with sample code or any guidelines that will help me in this objective.

    Here is the tutorial of tableView : http://docs.oracle.com/javafx/2/ui_controls/table-view.htm
    You can use the Java Class that mapped the database for ObservableList. Get all the record in the database and cover it to the java object. Then add them to the ObservableList to show on TableView. After add, update, edit,... Get the item in the ObservableList and update back to your database.
    I can't tell in detail. You should try this tutorial and if there are any more Specific Issue you can post another question here.

  • Java Web Start and MySQL driver

    I am trying to do a simple query on a MySQL database using the JDBC driver from http://www.mysql.com/downloads/api-jdbc-stable.html When I run my app, it works exactly as it should (connects to db, queries, displays in text boxes). When I package it and run it with Java Web Start, it gives the output below on the console. I have set security to all permissions in the jnlp file.
    Thanks,
    Andy
    Java Web Start Console, started Tue Sep 03 14:10:00 CDT 2002
    Java 2 Runtime Environment: Version 1.4.0_01 by Sun Microsystems Inc.
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
         at com.sun.jnlp.JNLPClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:130)
         at SQL.<init>(SQL.java:102)
         at SQL.main(SQL.java:139)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sun.javaws.Launcher.executeApplication(Unknown Source)
         at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
         at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:536)

    Answered my own question....
    Before: Class.forName("com.mysql.jdbc.Driver").newInstance();
    After: this.getClass().forName("com.mysql.jdbc.Driver").newInstance();
    Strange the first worked fine but not for JAWS...

  • The Java load in database SID / hostname has not been configured yet. You cannot run an installation from the System Copy folder with this load

    Dear Gurus,
    We are facing the below issue when performing a homogeneous system copy of NW 7.0 system using backup/restore method for DB6 system.
    The Java load in database <SID>/<hostname> has not been configured yet. You cannot run an installation from the System Copy folder with this load.
    We went through the SAP Note http://service.sap.com/sap/support/notes/2049842, and followed the same but no luck.
    We updated the Kernel to the latest, but still no luck.
    Request for your quick help as we have to complete it by EOD today.
    Thanks a lot in advance.
    Best Regards,
    Anuj

    Hello Ashutosh ,
    Thanks for your reply.
    We have gone followed the below sequence:
    SCS Installation
    Database Instance Installation using backup/restore method
    CI installation. -> getting error, when we provide the Java Components DVD.
    Best Regards,
    Anuj

  • JTable and Database (mysql)

    Does anyone know or have codes on how to get value from JTable cells and it will store into database (mysql).

    You will have to extract the values for each column within the row and then construct an INSERT statement with the column names/values (or simply values if all columns)
    If the row already exists and you want to update it, you will have to write an UPDATE stmt.
    I don't have the code at hand, but will post it if I find it

  • Forms not opening - Want to update Java version

    Hi All,
    We have EBS version 12.1.3 and database version 11.2.0.2.It is working fine and end users are able to open forms with java version 6 update x. We have upgraded the EBS in Jan 2012.
    When we install java version 7, it is not opening forms and it is showing error " jinitiator version is too low....etc " . This issue is blocking to update java on our end users PC and maitain security.
    Now Oracle EBS is certified with java 7 and I have gone through some docs to fix this issue but I couldn't get a proper idea.
    My versions:
    a)Apache Version:
    $IAS_ORACLE_HOME/Apache/Apache/bin/httpd -v
    Server version: Oracle-Application-Server-10g/10.1.3.4.0 Oracle-HTTP-Server
    Server built: Jul 7 2008 14:58:00
    b)Java Version
    java version "1.6.0_21"
    Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
    Java HotSpot(TM) Server VM (build 17.0-b16, mixed mode)
    c)Jre version
    cat $FORMS_WEB_CONFIG_FILE|grep sun_plugin_version| cut -c 1-35
    sun_plugin_version=1.5.0_13
    d)Forms Version
    $ORACLE_HOME/bin/frmcmp_batch|grep Forms| grep Version
    Forms 10.1 (Form Compiler) Version 10.1.2.3.0 (Production)
    e)Jinitiator Version
    grep jinit_ver_name $OA_HTML/bin/appsweb.cfg
    jinit_ver_name=Version=1,1,8,7
    1 - Please suggest what step I need to do on server to use the java version 7. and on client
    Thanks,
    Asm

    HI Asm,
    Thanks for the version info
    950984 wrote:
    Thanks for the reply
    I have applied patch p6880880_101000_Linux-x86-64.zip as per the note ID - 1504594.1
    Steps Followed:
    a)backup the current OPatch directory
    b)download and unzip the file ( p6880880_101000_Linux-x86-64.zip ) in $ORACLE_HOME/ ( appsTier)
    c)download p14614795_101231_LINUX.zip
    d)extract file
    e)opatch apply
    Still getting error.
    Invoking fuser to check for active processes.
    OPATCH_JAVA_ERROR=CheckConflict: OPatch cannot process overlay patches because of no OUI support. Please take latest OUI 10.1 patchset from "My Oracle Support" and try again.
    Cannot check bug/file conflict and component prerequisite checks.
    ERROR: OPatch failed during prerequisite check.
    EBS Version - 12.1.3
    DB Version - 11.2.0.3
    OS - RHEL 5 64 bit
    Please suggest me on thisPlease see
    Cannot Apply Patch: OPATCH_JAVA_ERROR=CheckConflict [ID 1544470.1]
    if you read the patch read me file Interim Patch for Base Bugs: 14614795 you will see
    NOTE:
    # 1. Please ensure the patch for bug 9593176 is already applied before you proceed.
    # 2. Upgrade to the latest OUI 10.1 by downloading and installing the same from bug 6640838
    Patch 9593176: MLR TRACKING BUG FOR FORMS 10.1.2.3.0 BUNDLE PATCH
    please confirm
    ;) AppsMasti ;)
    sharing is Caring

  • How to update java.sql.Clob using javax.persistence.EntityManager?

    Hello.
    Can anyone tell me (or show me some example) how to update java.sql.Clob using javax.persistence.EntityManager.
    When I’m trying to update column (with type Clob) value is not inserting, after update column is empty. I haven’t any error during update, I’m using database Oracle 10g.
    Edited by: ernest211 on Jul 16, 2009 1:24 AM

    Post some code so we can see how you are doing it. If you are using JPA entities take a look at the @Lob annotation.
    m

  • Error in updating/inserting task in database

    When I pass in a runtimeFault Code, Detail and Summary into Flexstring1,2,3 I am getting this runtime error :
    Error in updating/inserting task in database. SQL Exception while updating/inserting task into the database. Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
    Where can I find the error stack?
    Pete

    turn the following loggers from info to debug level (bpel console/manage domain/ tab logging)
    default.collaxa.cube.ws and
    default.oracle.services
    given you are using a developer isntall, you should see the stack a dos box
    if you are using an application server mid tier cou can find them in $AS_HOME/opmn/logs/OraOc4J_BPELxxxx.log
    hth clemens

  • How to update a table in database

    Hi.
    i am working on HR system. I have developed a form of report engine. Report Engine form contains no any database table but text items, buttons and options.
    I have placed a button and in its when button press triger i wrote a procedure to update a table record as:
    Update Empbiodata
    Set Status = 'Retired'
    Where Status = 'On Duty'
    but that button is not updating the database record. when i add a line of Commit_form, after that i faced the error message there is no change to save.
    I have run this code on SQL prompt and saw working well.
    please solve the problem that why this code is not working in button press trigger in the form.
    thnx

    Hi Zaheerms,
    You can do this kind of updates in the Forms.
    I will help u in this scenario.
    1st tell me the update column is a database item or not ?
    Sample code :
    begin
    Update Empbiodata
    Set Status = :block.column_name --'Retired'
    Where Status =:block.column_name -- 'On Duty'
    commit;
    -- For checking message
    fnd_messahe.set_string('Testing'||:block.column_name);
    fnd_message.show;
    end;
    and give some condition as per ur requirement.
    I think so this will help you.
    If not post again and i will try to clarify you.
    thanks,
    SIvaprasad

  • Difference in select for update of - in Oracle Database 10g and 11g

    Hi, I found out that Oracle Database 10g and 11g treat the following PL/SQL block differently (I am using scott schema for convenience):
    DECLARE
      v_ename bonus.ename%TYPE;
    BEGIN
      SELECT b.ename
        INTO v_ename
        FROM bonus b
        JOIN emp e ON b.ename = e.ename
        JOIN dept d ON d.deptno = e.deptno
       WHERE b.ename = 'Scott'
         FOR UPDATE OF b.ename;
    END;
    /While in 10g (10.2) this code ends successfully (well NO_DATA_FOUND exception is raised but that is expected), in 11g (11.2) it raises exception "column ambiguously defined". And that is definitely not expected. It seems like it does not take into account table alias because I found out that when I change the column in FOR UPDATE OF e.empno (also does not work) to e.mgr (which is unique) it starts working. So is this some error in 11g? Any thoughts?
    Edited by: Libor Nenadál on 29.4.2010 21:46
    It seems that my question was answered here - http://stackoverflow.com/questions/2736426/difference-in-select-for-update-of-in-oracle-database-10g-and-11g

    The behaviour seems like it really is a bug and can be avoided using non-ANSI syntax. (It makes me wonder why Oracle maintains two query languages while dumb me thinks that this is just a preprocessor matter and query engine could be the same).

  • Updating more than one database...

    I am looking at a scenario were we, each time a change is made to several different caches, needs to update both a legacy database (main frame, non-relational = actually hierarchical) that are used by several large batch applications (that will be converted one by one over time to use the application built on top of the cache) as well as a new database (modern hardware & OS, relational, organized in a quite different way than the legacy database!).
         The sync requirements are:
         * It is REALLY bad if only one database get updated but not the other!
         * The legacy database can be about 5 minutes behind the cache
         * The new database is only used for making the cache persistent (it is fully loaded to cache at system startup) and has really no requirement at all on how much behind the cache it can be as long as data is never lost (we will use backup count = 1).
         Updating the legacy database is NOT straight-forward and will require some data transformations to be performed. They can either be done in the legacy system (if we send the change info using some safe messaging for instance) or in the new environment if we want to update the old database directly.
         A factor complicating things further is that the legacy system have some consistency requirements on the data (in particular when creating new objects that has relationships to each other, you may think about order / order row even if this is not the kind of application we have in mind).
         For performance reasons (and since it seem from another thread that partial writes is a bigger problem with write through) we would probably like to use write behind to update the new database.
         Anybody who have some experience of similar situations and can give some suggestions on how to best go about it?
         Best Regards
         Magnus

    I may also add that our current thinking is to use a "write beside" pattern for the legacy system and a write-behind pattern for the cache to update the new database. An XA transaction will then be used to make sure that both or neither the old system and the cache gets updated. Does this sound like a reasonable solution?
         Best Regards
         Magnus

  • Error while updating JAVA stack patchs

    hi i was updating JAVA stack patches from JSPM. and i got this error
    10/12/09 15:53:33 -  Start updating EAR file...
    10/12/09 15:53:33 -  start-up mode is lazy
    10/12/09 15:53:33 -  EAR file updated successfully for 118ms.
    10/12/09 15:53:33 -  Start deploying ...
    10/12/09 15:53:41 -  EAR file uploaded to server for 7537ms.
    10/12/09 15:53:43 -  ERROR: Not deployed. Deploy Service returned ERROR:
                         java.rmi.RemoteException: Cannot deploy application sap.com/tcwdsamplestestsuiteuuie..
                         Reason: Clusterwide exception: Failed to deploy application sap.com/tcwdsamplestestsuiteuuie. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?; nested exception is:
                            com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to deploy application sap.com/tcwdsamplestestsuiteuuie. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?
                            at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:569)
                            at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1555)
                            at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:330)
                            at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:201)
                            at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:137)
                            at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
                            at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
                            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                            at java.security.AccessController.doPrivileged(AccessController.java:207)
                            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
                            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
                         Caused by: com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to deploy application sap.com/tcwdsamplestestsuiteuuie. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?
                            at com.sap.engine.services.webdynpro.WebDynproContainer.deploy(WebDynproContainer.java:1052)
                            at com.sap.engine.services.deploy.server.application.DeploymentTransaction.makeComponents(DeploymentTransaction.java:606)
                            at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:321)
                            at com.sap.engine.services.deploy.server.application.DeploymentTransaction.begin(DeploymentTransaction.java:307)
                            at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:292)
                            at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:326)
                            at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3187)
                            at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:554)
                            at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1555)
                            at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:330)
                            at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:201)
                            at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:137)
                            at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
                            at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
                            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                            at java.security.AccessController.doPrivileged(AccessController.java:207)
                            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
                            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    predecessor system -
                         com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to deploy application sap.com/tcwdsamplestestsuiteuuie. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?
                            at com.sap.engine.services.webdynpro.WebDynproContainer.deploy(WebDynproContainer.java:1052)
                            at com.sap.engine.services.deploy.server.application.DeploymentTransaction.makeComponents(DeploymentTransaction.java:606)
                            at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:321)
                            at com.sap.engine.services.deploy.server.application.DeploymentTransaction.begin(DeploymentTransaction.java:307)
                            at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:292)
                            at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:326)
                            at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3187)
                            at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:554)
                            at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1555)
                            at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:330)
                            at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:201)
                            at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:137)
                            at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
                            at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
                            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                            at java.security.AccessController.doPrivileged(AccessController.java:207)
                            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
                            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
                         For detailed information see the log file of the Deploy Service.
    10/12/09 15:53:43 -  ***********************************************************
    Dec 9, 2010 3:53:43 PM   Info: End of log messages of the target system.
    Dec 9, 2010 3:53:43 PM   Info: ***** End of SAP J2EE Engine Deployment (J2EE Application) *****
    Dec 9, 2010 3:53:43 PM   Error: Aborted: development component 'tc/wd/samples/testsuite/uuie'/'sap.com'/'SAP AG'/'7.0013.20070703112808.0000'/'8', grouped by software component 'SAP_JTECHS'/'sap.com'/'SAP AG'/'1000.7.00.21.0.20091214121635''/'7':
    Caught exception during application deployment from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Cannot deploy application sap.com/tcwdsamplestestsuiteuuie..
    Reason: Clusterwide exception: Failed to deploy application sap.com/tcwdsamplestestsuiteuuie. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?; nested exception is:
            com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to deploy application sap.com/tcwdsamplestestsuiteuuie. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Dec 9, 2010 3:53:43 PM   Info: Starting to save the repository
    Dec 9, 2010 3:53:43 PM   Info: Finished saving the repository for 205 ms.
    Dec 9, 2010 3:53:43 PM   Info: Starting: Initial deployment: Selected software component 'SAP_JTECHS'/'sap.com'/'SAP AG'/'1000.7.00.21.0.20091214121635''/'7' will be deployed.
    Dec 9, 2010 3:53:43 PM   Error: Aborted: software component 'SAP_JTECHS'/'sap.com'/'SAP AG'/'1000.7.00.21.0.20091214121635''/'7':
    Failed deployment of SDAs:
    development component 'tc/wd/samples/testsuite/uuie'/'sap.com'/'SAP AG'/'7.0013.20070703112808.0000'/'8' : aborted
    Please, look at error logs above for more information!
    Dec 9, 2010 3:53:43 PM   Info: Starting to save the repository
    Dec 9, 2010 3:53:43 PM   Info: Finished saving the repository for 209 ms.
    Dec 9, 2010 3:53:43 PM   Info: Starting: Update: Selected software component 'BI_UDI'/'sap.com'/'SAP AG'/'1000.7.00.21.0.20091214120518''/'7' updates currently deployed software component 'BI_UDI'/'sap.com'/'SAP AG'/'1000.7.00.14.0.20071210170522''/'0'.
    Dec 9, 2010 3:53:43 PM   Error: Aborted: software component 'BI_UDI'/'sap.com'/'SAP AG'/'1000.7.00.21.0.20091214120518''/'7':
    No further description found.
    Dec 9, 2010 3:53:43 PM   Info: Starting to save the repository
    Dec 9, 2010 3:53:44 PM   Info: Finished saving the repository for 313 ms.
    Dec 9, 2010 3:53:44 PM   Info: Starting: Update: Selected software component 'CAF'/'sap.com'/'MAIN_APL70P21_C'/'1000.7.00.21.0.20100118105934''/'7' updates currently deployed software component 'CAF'/'sap.com'/'MAIN_APL70VAL_C'/'1000.7.00.14.0.20071210162941''/'0'.
    Dec 9, 2010 3:53:44 PM   Error: Aborted: software component 'CAF'/'sap.com'/'MAIN_APL70P21_C'/'1000.7.00.21.0.20100118105934''/'7':
    No further description found.
    Dec 9, 2010 3:53:44 PM   Info: Starting to save the repository
    Dec 9, 2010 3:53:44 PM   Info: Finished saving the repository for 229 ms.
    Dec 9, 2010 3:53:44 PM   Info: Starting: Update: Selected software component 'EP-PSERV'/'sap.com'/'SAP AG'/'1000.7.00.21.0.20100122081155''/'5' updates currently deployed software component 'EP-PSERV'/'sap.com'/'SAP AG'/'1000.7.00.14.0.20071210193159''/'0'.
    Dec 9, 2010 3:53:44 PM   Error: Aborted: software component 'EP-PSERV'/'sap.com'/'SAP AG'/'1000.7.00.21.0.20100122081155''/'5':
    No further description found.
    Dec 9, 2010 3:53:44 PM   Info: Starting to save the repository
    Dec 9, 2010 3:53:44 PM   Info: Finished saving the repository for 210 ms.
    Dec 9, 2010 3:53:44 PM   Info: Starting: Update: Selected software component 'LM-TOOLS'/'sap.com'/'MAIN_APL70P21_C'/'1000.7.00.21.0.20100118110644''/'7' updates currently deployed software component 'LM-TOOLS'/'sap.com'/'MAIN_APL70P14_C'/'1000.7.00.14.1.20080124101556''/'0'.
    Dec 9, 2010 3:53:44 PM   Error: Aborted: software component 'LM-TOOLS'/'sap.com'/'MAIN_APL70P21_C'/'1000.7.00.21.0.20100118110644''/'7':
    No further description found.
    Dec 9, 2010 3:53:44 PM   Info: Starting to save the repository
    Dec 9, 2010 3:53:45 PM   Info: Finished saving the repository for 353 ms.
    Dec 9, 2010 3:53:45 PM   Info: Starting: Update: Selected software component 'UWLJWF'/'sap.com'/'SAP AG'/'1000.7.00.21.0.20091214204516''/'5' updates currently deployed software component 'UWLJWF'/'sap.com'/'SAP AG'/'1000.7.00.14.0.20071210194048''/'0'.
    Dec 9, 2010 3:53:45 PM   Error: Aborted: software component 'UWLJWF'/'sap.com'/'SAP AG'/'1000.7.00.21.0.20091214204516''/'5':
    No further description found.
    Dec 9, 2010 3:53:45 PM   Info: Starting to save the repository
    Dec 9, 2010 3:53:45 PM   Info: Finished saving the repository for 213 ms.
    Dec 9, 2010 3:53:45 PM   Info: Starting: Update: Selected software component 'SAP-EU'/'sap.com'/'MAIN_APL70P21_C'/'1000.7.00.21.0.20100118101502''/'5' updates currently deployed software component 'SAP-EU'/'sap.com'/'MAIN_APL70VAL_C'/'1000.7.00.14.0.20071210153525''/'0'.
    Dec 9, 2010 3:53:45 PM   Error: Aborted: software component 'SAP-EU'/'sap.com'/'MAIN_APL70P21_C'/'1000.7.00.21.0.20100118101502''/'5':
    No further description found.
    Dec 9, 2010 3:53:45 PM   Info: Starting to save the repository
    Dec 9, 2010 3:53:45 PM   Info: Finished saving the repository for 213 ms.
    Dec 9, 2010 3:53:45 PM   Info: Starting: Update: Selected software component 'VCFLEX'/'sap.com'/'SAP AG'/'1000.7.00.21.0.20091214204617''/'5' updates currently deployed software component 'VCFLEX'/'sap.com'/'SAP AG'/'1000.7.00.14.0.20071210153724''/'0'.
    Dec 9, 2010 3:53:45 PM   Error: Aborted: software component 'VCFLEX'/'sap.com'/'SAP AG'/'1000.7.00.21.0.20091214204617''/'5':
    No further description found.
    Dec 9, 2010 3:53:45 PM   Info: Starting to save the repository
    Dec 9, 2010 3:53:45 PM   Info: Finished saving the repository for 331 ms.
    Dec 9, 2010 3:53:45 PM   Info: Starting: Update: Selected software component 'VCFRAMEWORK'/'sap.com'/'SAP AG'/'1000.7.00.21.0.20091214204625''/'5' updates currently deployed software component 'VCFRAMEWORK'/'sap.com'/'SAP AG'/'1000.7.00.14.0.20071210153730''/'0'.
    Dec 9, 2010 3:53:45 PM   Error: Aborted: software component 'VCFRAMEWORK'/'sap.com'/'SAP AG'/'1000.7.00.21.0.20091214204625''/'5':
    No further description found.
    Dec 9, 2010 3:53:45 PM   Info: Starting to save the repository
    Dec 9, 2010 3:53:46 PM   Info: Finished saving the repository for 230 ms.
    Dec 9, 2010 3:53:46 PM   Info: J2EE Engine is in same state (online/offline) as it has been before this deployment process.
    Dec 9, 2010 3:53:46 PM   Error: -
    At least one of the Deployments failed -
    lgsep:/usr/sap/LEP/JC00/SDM/program/log #

    Hi ,
    Please check :
    https://wiki.sdn.sap.com/wiki/display/WDJava/Clusterwideexception-FailedtodeployWebDynprocontentforapplication
    Regards,
    Nibu Antony
    Edited by: Nibu Antony on Dec 13, 2010 2:52 PM

Maybe you are looking for

  • Creation of Vendor Aging Report in SAP BI.

    Hello, There is requirement to create the Vendor Aging report in SAP BI Cube. In order to show the Aging of the Vendor in different buckets. Can anyone help me out with the Links/Blogs/Wiki  ... URL's . I tried finding in net couldnt get anything rel

  • Code Templates in SQL Developer 2.1

    Hi all! Looks like this feature does not work at all. Even followed the instructions from Sue's book page 99: In SQL Developer 2.1, simply start typing the code from the template, and the full code is displayed in the code insight drop list. Select t

  • Is there a way to get the old functionality back to contextual menus?

    hi there, since my first post seems to be deleted, i try again. in systems prior to 10.5, i could access a custom contextual item (including automator workflows) in the finder with a simple ctrl-click on a file and then select the item in in the pop-

  • REG: Infoobject Configuration

    Hi Guru's, I've got a requirement where i need to configure info objects. Like I got a lift of info objects which i need to configure. Please tell me what is info object configuration and how can i achieve through process chains? Please guide me. Tha

  • WCS-518 -- Web Clipping is not set up for accessing secure web sites

    My webcliping studio didn't have this message until recent changes which I don't know what is. I was able to go to some truested sites with https. And I also ran into other error messages such as WCS-517 before if the site was not a trusted site. But