Jtable Update problem .. Please help !!!!!!!!

Hi ,
I am trying to get my updated Jtable, stored in a table of database over a previous table ......after updating it via drag n drop ....
But even after I change the cell position to make the changes ... it still takes up the old value of that cell and not the new one while writing the data in the database table...
Here is the code .... Please see it and tell me if it is possible :
package newpackage;
import java.sql.*;
import java.util.Vector;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.Dimension;
import java.text.*;
import newpackage.ExcelExporter;
import java.awt.Dimension;
import javax.swing.border.*;
import javax.swing.table.*;
import java.awt.datatransfer.*;
import java.awt.dnd.*;
import java.awt.image.*;
import java.io.*;
import java.util.*;
import java.awt.print.*;
import java.awt.*;
import java.io.*;
import java.util.Random.*;
import javax.swing.*;
import java.text.*;
import javax.swing.DefaultCellEditor;
import javax.swing.JComboBox;
import javax.swing.JTable;
import javax.swing.table.DefaultTableCellRenderer;
import javax.swing.table.TableColumn;
public class tab7le extends javax.swing.JFrame {
    Vector columnNames = new Vector();
    Vector data = new Vector();
    Connection con;
Statement stat;
ResultSet rs;
int li_cols = 0;
Vector allRows;
Vector row;
Vector newRow;
Vector colNames;
String dbColNames[];
String pkValues[];
String tableName;
ResultSetMetaData myM;
String pKeyCol;
Vector deletedKeys;
Vector newRows;
boolean ibRowNew = false;
boolean ibRowInserted = false;
    private Map<String, Color> colormap = new HashMap<String, Color>();
    /** Creates new form tab7le */
    public tab7le() {
        populate();
        initComponents();
       public void updateDB(){
                 try{
        Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
      catch (ClassNotFoundException e){
            System.out.println("Cannot Load Driver!");
      try{
         String url = "jdbc:odbc:FAMS";
         con = DriverManager.getConnection(url);
         stat = con.createStatement();
         rs = stat.executeQuery("Select * from SubAllot");
         deletedKeys = new Vector();
         newRows = new Vector();
         myM = rs.getMetaData();
         tableName = myM.getTableName(1);
         li_cols = myM.getColumnCount();
         dbColNames = new String[li_cols];
         for(int col = 0; col < li_cols; col ++){
            dbColNames[col] = myM.getColumnName(col + 1);
         allRows = new Vector();
         while(rs.next()){
            newRow = new Vector();
            for(int i = 1; i <= li_cols; i++){
               newRow.addElement(rs.getObject(i));
            } // for
            allRows.addElement(newRow);
         } // while
      catch(SQLException e){
         System.out.println(e.getMessage());
String updateLine[] = new String[dbColNames.length];
      try{
         DatabaseMetaData dbData = con.getMetaData();
         String catalog;
         // Get the name of all of the columns for this table
         String curCol;
         colNames = new Vector();
         ResultSet rset1 = dbData.getColumns(null,null,tableName,null);
         while (rset1.next()) {
            curCol = rset1.getString(4);
            colNames.addElement(curCol);
         rset1.close();
         pKeyCol = colNames.firstElement().toString();
         // Go through the rows and perform INSERTS/UPDATES/DELETES
         int totalrows;
         totalrows = allRows.size();
         String dbValues[];
         Vector currentRow = new Vector();
         pkValues = new String[allRows.size()];
         // Get column names and values
         for(int i=0;i < totalrows;i++){
            currentRow = (Vector) allRows.elementAt(i);
            int numElements = currentRow.size();
            dbValues = new String[numElements];
            for(int x = 0; x < numElements; x++){
               String classType = currentRow.elementAt(x).getClass().toString();
               int pos = classType.indexOf("String");
               if(pos > 0){ // we have a String
                  dbValues[x] = "'" + currentRow.elementAt(x) + "'";
                  updateLine[x] = dbColNames[x] + " = " + "'" + currentRow.elementAt(x) + "',";
                  if (dbColNames[x].toUpperCase().equals(pKeyCol.toUpperCase())){
                    pkValues[i] = currentRow.elementAt(x).toString() ;
               pos = classType.indexOf("Integer");
               if(pos > 0){ // we have an Integer
                  dbValues[x] = currentRow.elementAt(x).toString();
                  if (dbColNames[x].toUpperCase().equals(pKeyCol.toUpperCase())){
                     pkValues[i] = currentRow.elementAt(x).toString();
                  else{
                     updateLine[x] = dbColNames[x] + " = " + currentRow.elementAt(x).toString() + ",";
               pos = classType.indexOf("Boolean");
               if(pos > 0){ // we have a Boolean
                  dbValues[x] = currentRow.elementAt(x).toString();
                  updateLine[x] = dbColNames[x] + " = " + currentRow.elementAt(x).toString() + ",";
                  if (dbColNames[x].toUpperCase().equals(pKeyCol.toUpperCase())){
                     pkValues[i] = currentRow.elementAt(x).toString() ;
            } // For Loop
            // If we are here, we have read one entire row of data. Do an UPDATE or an INSERT
            int numNewRows = newRows.size();
            int insertRow = 0;
            boolean newRowFound;
            for (int z = 0;z < numNewRows;z++){
               insertRow = ((Integer) newRows.get(z)).intValue();
               if(insertRow == i+1){
                  StringBuffer InsertSQL = new StringBuffer();
                  InsertSQL.append("INSERT INTO " + tableName + " (");
                  for(int zz=0;zz<=dbColNames.length-1;zz++){
                     if (dbColNames[zz] != null){
                        InsertSQL.append(dbColNames[zz] + ",");
                  // Strip out last comma
                  InsertSQL.replace(InsertSQL.length()-1,InsertSQL.length(),")");
                  InsertSQL.append(" VALUES(" + pkValues[i] + ",");
                  for(int c=1;c < dbValues.length;c++){
                     InsertSQL.append(dbValues[c] + ",");
                  InsertSQL.replace(InsertSQL.length()-1,InsertSQL.length(),")");
                  System.out.println(InsertSQL.toString());
                  stat.executeUpdate(InsertSQL.toString());
                  ibRowInserted=true;
            } // End of INSERT Logic
            // If row has not been INSERTED perform an UPDATE
            if(ibRowInserted == false){
               StringBuffer updateSQL = new StringBuffer();
               updateSQL.append("UPDATE " + tableName + " SET ");
               for(int z=0;z<=updateLine.length-1;z++){
                  if (updateLine[z] != null){
                     updateSQL.append(updateLine[z]);
               // Replace the last ',' in the SQL statement with a blank. Then add WHERE clause
               updateSQL.replace(updateSQL.length()-1,updateSQL.length()," ");
               updateSQL.append(" WHERE " + pKeyCol + " = " + pkValues[i] );
               System.out.println(updateSQL.toString());
               stat.executeUpdate(updateSQL.toString());
               } //for
         catch(Exception ex){
            System.out.println("SQL Error! Cannot perform SQL UPDATE " + ex.getMessage());
         // Delete records from the DB
         try{
            int numDeletes = deletedKeys.size();
            String deleteSQL;
            for(int i = 0; i < numDeletes;i++){
               deleteSQL = "DELETE FROM " + tableName + " WHERE " + pKeyCol + " = " +
                                            ((Integer) deletedKeys.get(i)).toString();
            System.out.println(deleteSQL);
               stat.executeUpdate(deleteSQL);
            // Assume deletes where successful. Recreate Vector holding PK Keys
            deletedKeys = new Vector();
         catch(Exception ex){
            System.out.println(ex.getMessage());
    public void populate()
        try
            //  Connect to the Database
            Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
            Connection con = DriverManager.getConnection("Jdbc:Odbc:FAMS"," "," ");
            System.out.println("ok1");
            //  Read data from a table
            String sql;
             sql = "Select * from SubAllot";
             System.out.println("ok1");
            Statement stmt = con.createStatement();
            System.out.println("ok1");
            ResultSet rs = stmt.executeQuery( sql );
            System.out.println("ok1");
            ResultSetMetaData md = rs.getMetaData();
            System.out.println("ok1");
            int columns = md.getColumnCount();
            for(int i = 0;i<columns;i++){
                columnNames.addElement(md.getColumnName(i+1));
                System.out.println("ok2");
            while (rs.next())
                Vector row = new Vector(columns);
                for (int i = 1; i <columns+1; i++)
                    row.addElement( rs.getObject(i) );
                data.addElement( row );
        catch(Exception e){
            e.printStackTrace();
             public void dropmenu(JTable table,TableColumn subpref1) {
        //Set up the editor for the sport cells.
        JComboBox comboBox = new JComboBox();
      for (int i = 0;i<=20;i++)
       comboBox.addItem(i);
        subpref1.setCellEditor(new DefaultCellEditor(comboBox));
        //Set up tool tips for the sport cells.
        DefaultTableCellRenderer renderer =
                new DefaultTableCellRenderer();
        renderer.setToolTipText("Click for combo box");
        subpref1.setCellRenderer(renderer);
                   abstract class StringTransferHandler extends TransferHandler {
        public int dropAction;
        protected abstract String exportString(final JComponent c);
        protected abstract void importString(final JComponent c, final String str);
        @Override
        protected Transferable createTransferable(final JComponent c) {
            return new StringSelection(exportString(c));
        @Override
        public int getSourceActions(final JComponent c) {
            return MOVE;
        @Override
        public boolean importData(final JComponent c, final Transferable t) {
            if (canImport(c, t.getTransferDataFlavors())) {
                try {
                    String str = (String) t.getTransferData(DataFlavor.stringFlavor);
                    importString(c, str);
                    return true;
                } catch (UnsupportedFlavorException ufe) {
                } catch (IOException ioe) {
            return false;
        @Override
        public boolean canImport(final JComponent c, final DataFlavor[] flavors) {
            for (int ndx = 0; ndx < flavors.length; ndx++) {
                if (DataFlavor.stringFlavor.equals(flavors[ndx])) {
                    return true;
            return false;
    class TableTransferHandler extends StringTransferHandler {
        private int dragRow;
        private int[] dragColumns;
        private BufferedImage[] image;
        private int row;
        private int[] columns;
        public JTable target;
        private Map<String, Color> colormap;
        private TableTransferHandler(final Map<String, Color> colormap) {
            this.colormap = colormap;
        @Override
        protected Transferable createTransferable(final JComponent c) {
            JTable table = (JTable) c;
            dragRow = table.getSelectedRow();
            dragColumns = table.getSelectedColumns();
            createDragImage(table);
            return new StringSelection(exportString(c));
        protected String exportString(final JComponent c) {
            JTable table = (JTable) c;
            row = table.getSelectedRow();
            columns = table.getSelectedColumns();
            StringBuffer buff = new StringBuffer();
            colormap.clear();
            for (int j = 0; j < columns.length; j++) {
                Object val = table.getValueAt(row, columns[j]);
                buff.append(val == null ? "" : val.toString());
                if (j != columns.length - 1) {
                    buff.append(",");
                colormap.put(row+","+columns[j], Color.LIGHT_GRAY);
            table.repaint();
            return buff.toString();
        protected void importString(final JComponent c, final String str) {
            target = (JTable) c;
            DefaultTableModel model = (DefaultTableModel) target.getModel();
            String[] values = str.split("\n");
            int colCount = target.getSelectedColumn();
            int max = target.getColumnCount();
            for (int ndx = 0; ndx < values.length; ndx++) {
                String[] data = values[ndx].split(",");
                for (int i = 0; i < data.length; i++) {
                    String string = data;
if(colCount < max){
Object val = model.getValueAt(target.getSelectedRow(), colCount);
model.setValueAt(string, target.getSelectedRow(), colCount);
model.setValueAt(val, dragRow, dragColumns[i]);
colCount++;
public BufferedImage[] getDragImage() {
return image;
private void createDragImage(final JTable table) {
if (dragColumns != null) {
try {
image = new BufferedImage[dragColumns.length];
for (int i = 0; i < dragColumns.length; i++) {
Rectangle cellBounds = table.getCellRect(dragRow, i, true);
TableCellRenderer r = table.getCellRenderer(dragRow, i);
DefaultTableModel m = (DefaultTableModel) table.getModel();
JComponent lbl = (JComponent) r.getTableCellRendererComponent(table,
table.getValueAt(dragRow, dragColumns[i]), false, false, dragRow, i);
lbl.setBounds(cellBounds);
BufferedImage img = new BufferedImage(lbl.getWidth(), lbl.getHeight(),
BufferedImage.TYPE_INT_ARGB_PRE);
Graphics2D graphics = img.createGraphics();
graphics.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.6f));
lbl.setBorder(BorderFactory.createLineBorder(Color.LIGHT_GRAY));
lbl.paint(graphics);
graphics.dispose();
image[i] = img;
} catch (RuntimeException re) {
class TableDropTarget extends DropTarget {
private Insets autoscrollInsets = new Insets(20, 20, 20, 20);
private Rectangle rect2D = new Rectangle();
private TableTransferHandler handler;
public TableDropTarget(final TableTransferHandler h) {
super();
this.handler = h;
@Override
public void dragOver(final DropTargetDragEvent dtde) {
handler.dropAction = dtde.getDropAction();
JTable table = (JTable) dtde.getDropTargetContext().getComponent();
Point location = dtde.getLocation();
int row = table.rowAtPoint(location);
int column = table.columnAtPoint(location);
table.changeSelection(row, column, false, false);
paintImage(table, location);
autoscroll(table, location);
super.dragOver(dtde);
public void dragExit(final DropTargetDragEvent dtde) {
clearImage((JTable) dtde.getDropTargetContext().getComponent());
super.dragExit(dtde);
@Override
public void drop(final DropTargetDropEvent dtde) {
Transferable data = dtde.getTransferable();
JTable table = (JTable) dtde.getDropTargetContext().getComponent();
clearImage(table);
handler.importData(table, data);
super.drop(dtde);
private final void paintImage(final JTable table, final Point location) {
Point pt = new Point(location);
BufferedImage[] image = handler.getDragImage();
if (image != null) {
table.paintImmediately(rect2D.getBounds());
rect2D.setLocation(pt.x - 15, pt.y - 15);
int wRect2D = 0;
int hRect2D = 0;
for (int i = 0; i < image.length; i++) {
table.getGraphics().drawImage(image[i], pt.x - 15, pt.y - 15, table);
pt.x += image[i].getWidth();
if (hRect2D < image[i].getHeight()) {
hRect2D = image[i].getHeight();
wRect2D += image[i].getWidth();
rect2D.setSize(wRect2D, hRect2D);
private final void clearImage(final JTable table) {
table.paintImmediately(rect2D.getBounds());
private Insets getAutoscrollInsets() {
return autoscrollInsets;
private void autoscroll(final JTable table, final Point cursorLocation) {
Insets insets = getAutoscrollInsets();
Rectangle outer = table.getVisibleRect();
Rectangle inner = new Rectangle(outer.x + insets.left,
outer.y + insets.top,
outer.width - (insets.left + insets.right),
outer.height - (insets.top + insets.bottom));
if (!inner.contains(cursorLocation)) {
Rectangle scrollRect = new Rectangle(cursorLocation.x - insets.left,
cursorLocation.y - insets.top,
insets.left + insets.right,
insets.top + insets.bottom);
table.scrollRectToVisible(scrollRect);
/** 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() {
jScrollPane1 = new javax.swing.JScrollPane();
table = new javax.swing.JTable();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
table.setModel(new javax.swing.table.DefaultTableModel(
data, columnNames
jScrollPane1.setViewportView(table);
//populate();
table.getTableHeader().setReorderingAllowed(false);
table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
table.setCellSelectionEnabled(true);
table.setDragEnabled(true);
TableTransferHandler th = new TableTransferHandler(colormap);
table.setTransferHandler(th);
table.setDropTarget(new TableDropTarget(th));
dropmenu(table, table.getColumnModel().getColumn(11));
jButton1.setText("Update");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
jButton2.setText("Ex");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(92, 92, 92)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 605, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addGap(347, 347, 347)
.addComponent(jButton1)
.addGap(115, 115, 115)
.addComponent(jButton2)))
.addContainerGap(73, Short.MAX_VALUE))
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(47, 47, 47)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 354, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(58, 58, 58)
.addComponent(jButton1)
.addContainerGap(83, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton2)
.addGap(65, 65, 65))))
pack();
}// </editor-fold>
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                        
updateDB(); // TODO add your handling code here:
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {                                        
try {
String pathToDesktop = System.getProperty("user.home")+File.separator+"Desktop";
pathToDesktop = pathToDesktop + "//Final Allotment.xls";
ExcelExporter exp = new ExcelExporter();
exp.exportTable(table, new File(pathToDesktop));
JOptionPane.showMessageDialog(this,"File exported and saved on desktop!");
catch (IOException ex) {
System.out.println(ex.getMessage());
ex.printStackTrace();
} // TODO add your handling code here:
* @param args the command line arguments
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new tab7le().setVisible(true);
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JTable table;
// End of variables declaration
Please help !!!!!!!!
Thanks in advance.....                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

Here is the code Do you expect people to read through 400 lines of code to understand what you are doing?
Why post code with access to a database? We can't access the database.
Search the forum for my "Database Information" (without the space) example class which shows you how to refresh a table with new data.
If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.

Similar Messages

  • 10.4.10 Update Problem-- PLEASE HELP!!!

    I have a 17" Powerbook 1.33GHz. I just installed the 10.4.10 update. Now the computer wont boot on a power adapter. I had problems after the first update with changing state while the computer was asleep (ac adapter to battery) which would result in black screen and forced a hard reboot. Now when I try to power-up the computer from the restart (or regular reboot) it just doesnt boot. Please help if anyone has any ideas. I dont mind even if there is a way to undo this update.
    Jacek

    Alright - I think my computer is good again. Here is what I did. I dont know how much of this will actually do anyone any good, but I figured if I listed it all step-by-step, maybe it would do some good to someone.
    1) Restarted with AC in. Didnt boot - black screen
    2) Restarted with no AC in. Booted up ok. Restarted again (I guess it was a double restart) Booted again alright.
    3) Plugged in the AC, computer froze :-\
    4) Did a powerbutton hard reboot (5 second hold down)
    5) Computer died - I left if at office overnight. (By died i mean wont boot with AC adapter)
    6) Computer turned on fine in the AM. Some of my Brother drivers got a little fudged, so I had to reinstall them. Needed a restart (on AC)
    7) Didnt restart (black screen)
    8) PMU Reset
    9) So far so good...

  • Iphoto update problem-please help

    Hi everyone,
    everything started trying to look some photos out of a CD (200 JPG files) I was trying to import them to my library but the program crashed or stopped everytime at photo number 31. I was using Iphoto 5.0.4 so i decided to update it to 6.0.3 version but when I select the destination (Macintosh HD; 55.8 GB-35.3GB Free-)
    I got a message saying:
    You cannot installed it in that volume because the eligible iphoto application was not found in the location / Applications/iPhoto.app
    I looked, and the iphoto is under applications, now I'm not sure if I have memory space problems or what, could anyone please help me?
    I am not familiar with this, so I'll appreciate any advice.
    thanks

    Hi panis,
    iPhoto 5.0.4 is the last update to iPhoto 5. To
    update to 6.0.3 you have to purchase iPhoto 6 (part
    of iLife 6) first, then update to 6.0.3.
    thanks for the answer,
    but i am still having problems using the iphoto 5 then.
    I try to import the photos I have in a CD but the program blocks and I'm lead to force to quit when working on it.
    I don't even can see the photos all the photos from the CD in thumbnail version, and I've tryed in a PC computer and I am able to see all of them. memory problems?
    the computer is asking lately to quit an application or to restart it.
    any idea?
    ibook G4; 1.42 GHz; 512 MB   Mac OS X (10.4.5)  

  • Still got update problems -please help

    Ok every time I try to update it gives error code 3259. I have reinstalled itunes 8.2, I have tried turning off firewall and antivirus - no change. It says the internet connection timed out - what else can I do???? Getting very frustrated please help.
    Cheers

    managed to turn spyware off and that allowed update to donload.

  • B1WS Update Problem -- please help.

    Hi,
    I am trying to get B1WS to work and am experiencing some issues I am hoping you can please help with.
    We are wanting to be able to add, edit and remove batch information for order line items.
    The code I have written will work, though it will only work once, when it is updating the document.
    If the code is run, with the Update command commented out, it will work every time.
    But if it does update the record, it will begin to crash with it is run again.
    The code I am using is:
        protected void Page_Load(object sender, EventArgs e)
            loginWebRef.LoginService ls = new loginWebRef.LoginService();
            string sessionID = ls.Login("SQL-PATCH", "SBOJFDC_US", loginWebRef.LoginDatabaseType.dst_MSSQL2005, true, "sa", "PASSWORD", "manager", "PASSWORD", loginWebRef.LoginLanguage.ln_English, true, "LICENSE:30000");
            Response.Write(sessionID + "<BR><BR>");
            orderWebRef.MsgHeader msgHeader = new orderWebRef.MsgHeader();
            msgHeader.SessionID = sessionID;
            msgHeader.ServiceName = MsgHeaderServiceName.OrdersService;
            msgHeader.ServiceNameSpecified = true;
            orderWebRef.OrdersService order = new OrdersService();
            order.MsgHeaderValue = msgHeader;
            DocumentParams param = new DocumentParams();
            param.DocEntry = 89364;
            param.DocEntrySpecified = true;
            orderWebRef.Document document = new orderWebRef.Document();
            document = order.GetByParams(param);
            StringBuilder orderSb = new StringBuilder();
            orderSb.Append("Order " +  document.DocNum.ToString() + "<BR><BR>");
            foreach (DocumentDocumentLine docLine in document.DocumentLines)
                orderSb.Append("Line Num:    " + docLine.LineNum + "<BR>");
                orderSb.Append("Item Code:   " + docLine.ItemCode + "<BR>");
                orderSb.Append("Description: " + docLine.ItemDescription + "<BR>");
                foreach (DocumentDocumentLineBatchNumber batch in docLine.BatchNumbers)
                    orderSb.Append("+++++ Batch Num:    " + batch.BatchNumber + "<BR>");
                    orderSb.Append("+++++ Quantity:     " + batch.Quantity + "<BR>");
                    if (batch.Quantity > 0)
                        batch.Quantity = 1;
                orderSb.Append("--------------------------------<BR><BR>");
            order.Update(document);
            Response.Write(orderSb.ToString());
    Do you have any idea why the update will only work once, and then need to have the machine rebooted so it can work again, only once?
    Is there a way to test this with DIServer directly, to be sure whether it is a DIServer issue, or a B1WS issue?
    Thank you,
    Mike

    Hi,
    I have understood why there is no aspnet process...  It is because I am using a Windows 2003 Server, which uses a process called "w3wp.exe".
    I was able to attach to the process, and to get the breakpoint working in Visual Studio, though I do not know what I am looking for.
    Everytime I do one update, I have restart the machine, or subsequent calls either timeout, or crash saying the response is malformed.
    If I could navigate the XML and update the data DIServer uses, I would use that instead.
    Thank you,
    Mike

  • IPhone Application Update Problem -- Please Help

    So I downloaded the application Aurora Feint. Synced it to my iPhone and all was well. Then apparently there was an update. Instead of logging onto iTunes and updating it that way, I decided to try out the Application Store update feature on the iPhone itself. The problem is that the feature won't work for programs later than 10MB. (Aurora Feint is 20+MB.) So now I'm left with an unusable Aurora Feint update icon on my screen that is just taking up space.
    I tried holding down the icons so I could just click the X to get rid of it. Problem is the update icon has no X. Then I tried syncing my phone via iTunes and telling it to remove the AF application. Supposedly it did. But when I disconnected the phone, the AF update icon is still there.
    Can someone please tell me how to get rid of the blood thing?

    If all else fails, first remove the app from iTunes (delete it), then do a restore of the iPhone. It should be gone after the restore.
    Glor

  • Major Update Problem - Please Help

    Forgive me if this topic has been covered before, but its late here and I don't have time to trawl through the forums.
    So, here's the deal. I purchased the iPod Touch software update (the one that lets you use apps) for $12.99 and I was told, after purchase mind you, that all of my songs and playlists would be deleted if I installed the software. The problem is that the playlists only exist on my iPod Touch and I have songs from so many versions of iTunes that I have lost count (my friends and I share songs all the time), therefore if it is all deleted it will be nearly impossible to piece my iPod back together. Is there a way to backup all of my iPod's data with iTunes so I can restore it after the update?

    Forgive me if this topic has been covered before, but its late here and I don't have time to trawl through the forums.
    So, here's the deal. I purchased the iPod Touch software update (the one that lets you use apps) for $12.99 and I was told, after purchase mind you, that all of my songs and playlists would be deleted if I installed the software. The problem is that the playlists only exist on my iPod Touch and I have songs from so many versions of iTunes that I have lost count (my friends and I share songs all the time), therefore if it is all deleted it will be nearly impossible to piece my iPod back together. Is there a way to backup all of my iPod's data with iTunes so I can restore it after the update?

  • Apple software update problem *please help

    i cant use the software update
    this has been going on for over two months
    i cant connect to the server
    please help

    The IP of your Software Update Server looks strange, not sure if it's correct or not. But it looks like a hamachi IP (VPN).
    Not sure though.

  • TECRA 8100 BIOS update problem - PLEASE HELP!

    Hi.
    I have Windows XP and I try to update bios with win-BIOS-250.exe. But when I run this file it appears a window with communicate: TOSHIBA Common Modules is not installed. I don't have floppy drive - maybe it is the reason. Is there any possibility to update bios without floppy drive?

    Hi
    If You cannot or do not want to install the Common Modules, there is another trick to try.
    Sure it's a lot more complicated, but it will enhance the cool image you already have :) Your friends will be highly impressed!
    It will also demand some tech knowledge on how to handle diskette images and create bootable CD's.
    You can download the BIOS-diskette intended for traditional BIOS updates to another PC - one that has a diskette drive.
    Create the diskette there.
    Start a CD burning software and choose to create a bootable CD. Normally the burning software will ask you to provide the bootable diskette - point to the one You just created. Burn the CD.
    Done!
    Now you can boot the 8100 on the CD and it will upgrade the BIOS.
    Maybe a waste of CD-media...but if you really need it...
    BR
    Tom

  • IPhone 3G, updating problem - please help!

    i have installed the latest iphone software onto my 3G but when i download apps it says I haven't got the latest iphone software.. what shall i do?!
    Also can I get ios 5?

    The last version of iOS to be supported is 4.2.1. If apps require something higher, you will not be able to use them. The only way around this is to buy a new phone. You can NOT install iOS 5 on an iPhone 3G.

  • [TV@Master] Problem please help

    I have Msi.mother board PT8-Neo -LSR ,  Model No.Ms-6799 , main board bios -Phonenix ,maind board version i updat it to 2.2 , cpu size 2.4 G celleron D/256/533 , memory size 256DDram (400),display card Nvidia Riva TNT2 model 64
    the problem that i face it when i put my TV@nywhere -master card ,the pc stop at the main page that show the biso version and name of bios company and the letters do not bost well it look like a virus work , and when i take tha card off the pc go normally , i tried put it to other PCI the same problem
    please help

    i meany by fix the problem of getting the pc go on to windows with card on PCI salot but i still have the broblem of the driver
    please read my reply again
    my operating system is win me and i have also another pc have XP
    when i log in to windows the system show that found my TV@nywhere card but it didnt took the installatin driver for it i tried to install the driver directly
    but it give me this 2 mesages  when i try to install the driver
    MSI TV card is not found ,stop the installation
    the other message is
    MSI pvs driver installatin failed
    i download the driver from msi page also give me the same messages
    for known on Device Manager it show me that the driver there but do not have the driver and the ? mark beside them
    what to do now 

  • I'm in trouble, my iPod Touch is giving 4th shock when recharge and the battery does not last any more. who knows or has a similar problem, please help me. Note: all this after I downloaded the new version OS5.

    I'm in trouble, my iPod Touch is giving 4th shock when recharge and the battery does not last any more. who knows or has a similar problem, please help me. Note: all this after I downloaded the new version OS5.

    I would make an appointment at the Genius Bar of an Apple store because of the shock issue. I doubt it was caused by the update.

  • I am using firefox 3.6.17 i upgraded it to 4.1.but it does not work properly sometimes it opens every website and most of the time it does not work . so what is the problem please help . thank you

    i am using firefox 3.6.17 i upgraded it to 4.1.but it does not work properly sometimes it opens every website and most of the time it does not work . so what is the problem please help . thank you

    Did you check your security software (firewall)?
    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process.
    See:
    * [[Server not found]]
    * [[Firewalls]]

  • My iphone is on recovery mode and i can´t turn on it, when i try to recover it from itunes i get: "unknown error (36), i´ve tried to do lot of things but i can´t  solve my problem. please help!!

    my iphone is on recovery mode and i can´t turn on it, when i try to recover it from itunes i get: unknown error (36), i´ve tried to do lot of things but i can´t solve my problem. please help!!

    Hi, i had the same problem. Try to find the file "apple" or "itunes" don't know it anymore exactly. Ahm well you need to delet any information or just plug in your iphone into an other computer. important is that your iphone never has been pluged in this computer before. This was what i did, and it worked!

  • Problem Please help me.....Let me know the area to look for it I am a DBA..

    Problem Please help me.....Let me know the area to look for it I am a DBA..Thanks in advance to let me know the cause and the area to look and fix it...
    Server Error in '/' Application.
    Problem with SAP/BAPI. SAP.Connector.RfcCommunicationException: Connect to message server failed Connect_PM MSHOST=prddb01.lamrc.com, R3NAME=PRD, GROUP=Prod HR PRD LOCATION CPIC (TCP/IP) on local host ERROR service 'sapmsPRD' unknown TIME Wed May 04 08:59:06 2005 RELEASE 620 COMPONENT NI (network interface) VERSION 36 RC -3 MODULE ninti.c LINE 428 DETAIL NiPServToNo SYSTEM CALL getservbyname COUNTER 1 at SAP.Connector.SAPConnection.ThrowRfcException(RFC_ERROR_INFO_EX rfcerrInfo, Encoding encoding, String languangeCode) at SAP.Connector.SAPConnection.Open() at SAP.Connector.SAPClient.RfcInvoke(String method, Object[] methodParamsIn) at SAP.Connector.SAPClient.SAPInvoke(String method, Object[] methodParamsIn) at SoftwareKeySAPG.SAPProxy1.Z_Bapi_Load_Kpi_Region(ZSOFT_KPI_REGIONS_MTable&amp; Kpi_Regions, ZSOFT_PROD_TYPETable&amp; Prod_Type) at SoftwareKeySAPG.SAPGSK.LoadKPIRegion(DataSet dsProduct)
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Web.Services.Protocols.SoapException: Problem with SAP/BAPI. SAP.Connector.RfcCommunicationException: Connect to message server failed Connect_PM MSHOST=prddb01.lamrc.com, R3NAME=PRD, GROUP=Prod HR PRD LOCATION CPIC (TCP/IP) on local host ERROR service 'sapmsPRD' unknown TIME Wed May 04 08:59:06 2005 RELEASE 620 COMPONENT NI (network interface) VERSION 36 RC -3 MODULE ninti.c LINE 428 DETAIL NiPServToNo SYSTEM CALL getservbyname COUNTER 1 at SAP.Connector.SAPConnection.ThrowRfcException(RFC_ERROR_INFO_EX rfcerrInfo, Encoding encoding, String languangeCode) at SAP.Connector.SAPConnection.Open() at SAP.Connector.SAPClient.RfcInvoke(String method, Object[] methodParamsIn) at SAP.Connector.SAPClient.SAPInvoke(String method, Object[] methodParamsIn) at SoftwareKeySAPG.SAPProxy1.Z_Bapi_Load_Kpi_Region(ZSOFT_KPI_REGIONS_MTable&amp; Kpi_Regions, ZSOFT_PROD_TYPETable&amp; Prod_Type) at SoftwareKeySAPG.SAPGSK.LoadKPIRegion(DataSet dsProduct)
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 
    Stack Trace:
    [SoapException: Problem with SAP/BAPI.
    SAP.Connector.RfcCommunicationException: Connect to message server failed
    Connect_PM  MSHOST=prddb01.lamrc.com, R3NAME=PRD, GROUP=Prod HR PRD
    LOCATION    CPIC (TCP/IP) on local host
    ERROR       service 'sapmsPRD' unknown
    TIME        Wed May 04 08:59:06 2005
    RELEASE     620
    COMPONENT   NI (network interface)
    VERSION     36
    RC          -3
    MODULE      ninti.c
    LINE        428
    DETAIL      NiPServToNo
    SYSTEM CALL getservbyname
    COUNTER     1
       at SAP.Connector.SAPConnection.ThrowRfcException(RFC_ERROR_INFO_EX rfcerrInfo, Encoding encoding, String languangeCode)
       at SAP.Connector.SAPConnection.Open()
       at SAP.Connector.SAPClient.RfcInvoke(String method, Object[] methodParamsIn)
       at SAP.Connector.SAPClient.SAPInvoke(String method, Object[] methodParamsIn)
       at SoftwareKeySAPG.SAPProxy1.Z_Bapi_Load_Kpi_Region(ZSOFT_KPI_REGIONS_MTable&amp; Kpi_Regions, ZSOFT_PROD_TYPETable&amp; Prod_Type)
       at SoftwareKeySAPG.SAPGSK.LoadKPIRegion(DataSet dsProduct)]
       System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +1503
       System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +218
       SoftwareKeyUI.InstalledBaseDataWS.InstalledBaseData.LoadKPIRegionMulti(DataSet products)
       SoftwareKeyUI.InstalledBaseDataAccess.LoadKPIRegionMulti(DataSet products)
       SoftwareKeyUI.InstalledBase.GetRegionDetails(Int32 userId, String product, String regionType)
       SoftwareKeyUI.FilteredAccess.GetRegionDetails(Int32 userId, String product, String regionType)
       SoftwareKeyUI.search.LoadRegionDetails()
       SoftwareKeyUI.search.regionType_SelectedIndexChanged(Object sender, EventArgs e)
       System.Web.UI.WebControls.ListControl.OnSelectedIndexChanged(EventArgs e) +108
       System.Web.UI.WebControls.DropDownList.System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent() +26
       System.Web.UI.Page.RaiseChangedEvents() +115
       System.Web.UI.Page.ProcessRequestMain() +1099

    The error is a very basic one - the sapmsPRD service is not known. You will have to go to <NT_ROOT>\system32\drivers\etc and add the entry sapmsPRD 3600 to this file.
    This is basically telling the requester at what port to look for the message server.
    C

  • Problem Please help me.....Let me know the area to look for it

    Problem Please help me.....Let me know the area to look for it I am a DBA..Thanks in advance to let me know the cause and the area to look and fix it...
    Server Error in '/' Application.
    Problem with SAP/BAPI. SAP.Connector.RfcCommunicationException: Connect to message server failed Connect_PM MSHOST=prddb01.lamrc.com, R3NAME=PRD, GROUP=Prod HR PRD LOCATION CPIC (TCP/IP) on local host ERROR service 'sapmsPRD' unknown TIME Wed May 04 08:59:06 2005 RELEASE 620 COMPONENT NI (network interface) VERSION 36 RC -3 MODULE ninti.c LINE 428 DETAIL NiPServToNo SYSTEM CALL getservbyname COUNTER 1 at SAP.Connector.SAPConnection.ThrowRfcException(RFC_ERROR_INFO_EX rfcerrInfo, Encoding encoding, String languangeCode) at SAP.Connector.SAPConnection.Open() at SAP.Connector.SAPClient.RfcInvoke(String method, Object[] methodParamsIn) at SAP.Connector.SAPClient.SAPInvoke(String method, Object[] methodParamsIn) at SoftwareKeySAPG.SAPProxy1.Z_Bapi_Load_Kpi_Region(ZSOFT_KPI_REGIONS_MTable&amp; Kpi_Regions, ZSOFT_PROD_TYPETable&amp; Prod_Type) at SoftwareKeySAPG.SAPGSK.LoadKPIRegion(DataSet dsProduct)
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Web.Services.Protocols.SoapException: Problem with SAP/BAPI. SAP.Connector.RfcCommunicationException: Connect to message server failed Connect_PM MSHOST=prddb01.lamrc.com, R3NAME=PRD, GROUP=Prod HR PRD LOCATION CPIC (TCP/IP) on local host ERROR service 'sapmsPRD' unknown TIME Wed May 04 08:59:06 2005 RELEASE 620 COMPONENT NI (network interface) VERSION 36 RC -3 MODULE ninti.c LINE 428 DETAIL NiPServToNo SYSTEM CALL getservbyname COUNTER 1 at SAP.Connector.SAPConnection.ThrowRfcException(RFC_ERROR_INFO_EX rfcerrInfo, Encoding encoding, String languangeCode) at SAP.Connector.SAPConnection.Open() at SAP.Connector.SAPClient.RfcInvoke(String method, Object[] methodParamsIn) at SAP.Connector.SAPClient.SAPInvoke(String method, Object[] methodParamsIn) at SoftwareKeySAPG.SAPProxy1.Z_Bapi_Load_Kpi_Region(ZSOFT_KPI_REGIONS_MTable&amp; Kpi_Regions, ZSOFT_PROD_TYPETable&amp; Prod_Type) at SoftwareKeySAPG.SAPGSK.LoadKPIRegion(DataSet dsProduct)
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    [SoapException: Problem with SAP/BAPI.
    SAP.Connector.RfcCommunicationException: Connect to message server failed
    Connect_PM MSHOST=prddb01.lamrc.com, R3NAME=PRD, GROUP=Prod HR PRD
    LOCATION CPIC (TCP/IP) on local host
    ERROR service 'sapmsPRD' unknown
    TIME Wed May 04 08:59:06 2005
    RELEASE 620
    COMPONENT NI (network interface)
    VERSION 36
    RC -3
    MODULE ninti.c
    LINE 428
    DETAIL NiPServToNo
    SYSTEM CALL getservbyname
    COUNTER 1
    at SAP.Connector.SAPConnection.ThrowRfcException(RFC_ERROR_INFO_EX rfcerrInfo, Encoding encoding, String languangeCode)
    at SAP.Connector.SAPConnection.Open()
    at SAP.Connector.SAPClient.RfcInvoke(String method, Object[] methodParamsIn)
    at SAP.Connector.SAPClient.SAPInvoke(String method, Object[] methodParamsIn)
    at SoftwareKeySAPG.SAPProxy1.Z_Bapi_Load_Kpi_Region(ZSOFT_KPI_REGIONS_MTable&amp; Kpi_Regions, ZSOFT_PROD_TYPETable&amp; Prod_Type)
    at SoftwareKeySAPG.SAPGSK.LoadKPIRegion(DataSet dsProduct)]
    System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +1503
    System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +218
    SoftwareKeyUI.InstalledBaseDataWS.InstalledBaseData.LoadKPIRegionMulti(DataSet products)
    SoftwareKeyUI.InstalledBaseDataAccess.LoadKPIRegionMulti(DataSet products)
    SoftwareKeyUI.InstalledBase.GetRegionDetails(Int32 userId, String product, String regionType)
    SoftwareKeyUI.FilteredAccess.GetRegionDetails(Int32 userId, String product, String regionType)
    SoftwareKeyUI.search.LoadRegionDetails()
    SoftwareKeyUI.search.regionType_SelectedIndexChanged(Object sender, EventArgs e)
    System.Web.UI.WebControls.ListControl.OnSelectedIndexChanged(EventArgs e) +108
    System.Web.UI.WebControls.DropDownList.System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent() +26
    System.Web.UI.Page.RaiseChangedEvents() +115
    System.Web.UI.Page.ProcessRequestMain() +1099

    Hi
    You should make a mapping for the service sapmsPRD in your /etc/services file (On Windows: C:WINDOWSSYSTEM32DRIVERSETCservices). If your instance number is 00 you will have to add the following entry:
    sapmsPRD      3600/tcp
    Good luck!
    René van Es

Maybe you are looking for

  • PS and AI trouble verifying account-paid in full and seems active under managment

    how come no matter how many times I quit my browser and clear my data will adobe not let me chat for support? I have paid in full for a PS and AI membership and keep getting warnings that there trouble verifying my account and it will stop working in

  • Can't edit in Design View

    When I click Live View, I can see my page, and it shows up in a browser just fine, but I can't edit in that mode.  However, when I click Live View again, I just get a gray, blank page with the tag, meta, sytle, script, and link icons at the top left.

  • Restrict no of rows to be displayed

    Hi experts, i had 32000 rows in a table when i give select * from tab_name; it rans out i can view only the last few rows is there any possibility to view it page by page? waiting for u r ideas...

  • System Landscape Management Overview - no CCMSPING data available!

    Hi All We are currently trying to fully configure monitoring for our SAP landscape Java and ABAP so it can be viewed in the Work Center Web page. However, on the 'System Landscape Management Overview' we have the message 'no CCMSPING data available'

  • Using the  XMLAGG function.Please help.

    I am using the flwg SQL and on execution,I get displayed the error: [1]: (Error): ORA-06553: PLS-306: wrong number or types of arguments in call to 'SYS_IXMLAGG'My SQL Code is as follows: SELECT XMLELEMENT("tables:terms",XMLATTRIBUTES('http://www.tfs