Problem in JTable,Kindly help very urgent

I am trying to add /remove rows from JTable whose first column is JButton and others are JComboBox's.If no rows are selected,new row is added at the end.If user selects some row & then presses insert button,new row is added below it.Rows can only be deleted if user has made some selection.I am also using Icon for the button of currently active row.But i am getting exception(ArrayIndexBounds)when i try to add/delete.May be proper refreshing is not taking place.Kindly help me,where i am making mistake.If any function is to be used.My code is as follows....It is running code
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.table.*;
import javax.swing.border.*;
import java.util.*;
public class JButtonTableExample extends JFrame implements ActionListener,TableModelListener
JComboBox mComboLHSType = new JComboBox();
JComboBox mComboRHSType = new JComboBox();
JLabel mLabelLHSType = new JLabel("LHS Type");
JLabel mLabelRHSType = new JLabel("RHS Type");
JButton mButtonDelete = new JButton("Delete");
JButton mButtonInsert = new JButton("Insert");
JButton check = new JButton("check");
JPanel mPanelButton = new JPanel();
JPanel mPanelScroll = new JPanel();
JPanel mPanelCombo = new JPanel();
DefaultTableModel dm ;
TableColumnModel modelCol;
JTable table;
JScrollPane scroll;
int currentRow = -1;
static int mSelectedRow = -1;
EachRowEditor rowEditor;
public JButtonTableExample()
super( "JButtonTable Example" );
makeForm();
setSize( 410, 222 );
setVisible(true);
private void makeForm()
     this.getContentPane().setLayout(null);
     mLabelLHSType.setBounds(new Rectangle(26,5,71,22));
     mComboLHSType.setBounds(new Rectangle(83,5,100,22));
     mLabelRHSType.setBounds(new Rectangle(232,5,71,22));
     mComboRHSType.setBounds(new Rectangle(292,5,100,22));
     mPanelCombo.setLayout(null);
     mPanelCombo.setBorder(new LineBorder(Color.red));
     mPanelCombo.setBounds(new Rectangle(1,1,400,30));
     mComboRHSType.addItem("Constant");
mComboRHSType.addItem("Variable");
mComboRHSType.setSelectedIndex(0);
mComboRHSType.addActionListener(this);
mPanelCombo.add(mLabelLHSType,null);
mPanelCombo.add(mComboLHSType,null);
mPanelCombo.add(mLabelRHSType,null);
mPanelCombo.add(mComboRHSType,null);
     mPanelButton.setLayout(null);
     mPanelButton.setBorder(new LineBorder(Color.green));
     mPanelButton.setBounds(new Rectangle(1,165,400,30));
     mButtonInsert.setBounds(new Rectangle(120,5,71,22));
     mButtonDelete.setBounds(new Rectangle(202,5,71,22));
     mButtonDelete.addActionListener(this);
mButtonInsert.addActionListener(this);
check.setBounds(new Rectangle(3,3,71,22));
check.addActionListener(this);
mPanelButton.add(mButtonDelete,null);
mPanelButton.add(mButtonInsert,null);
mPanelButton.add(check,null);
     dm = new DefaultTableModel()
          public boolean isCellEditable(int row, int col)
          if(row == 0 && col ==1)
               return false;
          return true;
     dm.addTableModelListener(this);
     //dm.setDataVector(null,
                         //new Object[]{"Button","Join","LHS","Operator","RHS"});
     dm.setDataVector(new Object[][]{{"","","","",""}},
                         new Object[]{"","Join","LHS","Operator","RHS"});
     table = new JTable(dm);
     table.getTableHeader().setReorderingAllowed(false);
     table.setRowHeight(25);
     table.setRowSelectionInterval(0,0);
     rowEditor = new EachRowEditor(table);
     int columnWidth[] = {20,45,95,95,95};
     mPanelScroll.setLayout(null);
     mPanelScroll.setBorder(new LineBorder(Color.blue));
     mPanelScroll.setBounds(new Rectangle(1,28,400,135));
     scroll = new JScrollPane(table);
scroll.setBounds(new Rectangle(1,1,400,133));
mPanelScroll.add(scroll,null);
     modelCol = table.getColumnModel();
     for (int i=0;i<5;i++)
     modelCol.getColumn(i).setPreferredWidth(columnWidth);
     setCellTypes();
this.getContentPane().add(mPanelCombo,null);
this.getContentPane().add(mPanelScroll,null);
this.getContentPane().add(mPanelButton,null);
}//end of makeForm()
private void setCellTypes()
     modelCol.getColumn(0).setCellRenderer(new ButtonCR());
     modelCol.getColumn(0).setCellEditor(new ButtonCE(new JCheckBox()));
     modelCol.getColumn(0).setResizable(false);
     setUpJoinColumn(modelCol.getColumn(1));
     setUpLHSColumn(modelCol.getColumn(2));
     setUpOperColumn(modelCol.getColumn(3));
     setUpRHSColumn(modelCol.getColumn(4));//By Default contains JTextField
public void actionPerformed(ActionEvent ae)
     if (ae.getSource() == mButtonInsert)
          int currentRow = table.getSelectedRow();
          if(currentRow == -1)
               int rowCount = dm.getRowCount();
               if(rowCount == 0)
                    table.clearSelection();
                    dm.insertRow(0,new Object[]{"","","","",""});
                    mComboRHSType.setEnabled(true);
                    mButtonDelete.setEnabled(true);
                    dm.fireTableDataChanged();
                    table.setRowSelectionInterval(0,0);
               else
                    table.clearSelection();
                    dm.insertRow(rowCount,new Object[]{"","","","",""});
                    dm.fireTableDataChanged();
                    table.setRowSelectionInterval(rowCount,rowCount);
          else
               table.clearSelection();
               dm.insertRow(currentRow+1,new Object[]{"","","","",""});
               dm.fireTableDataChanged();
               table.setRowSelectionInterval(currentRow+1,currentRow+1);
if(table.getRowCount()>0)
     table.setValueAt(new String(""),0,1);
     if(ae.getSource() == mButtonDelete)
int currentRow = table.getSelectedRow();
if(currentRow != -1)
table.clearSelection();
               dm.removeRow(currentRow);
               if(dm.getRowCount() == 0)
                    mComboRHSType.setEnabled(false);
                    mButtonDelete.setEnabled(false);
               dm.fireTableDataChanged();
          else
          JOptionPane.showMessageDialog(null, "Select row first", "alert", JOptionPane.ERROR_MESSAGE);
//always the first cell is empty and disabled
if(table.getRowCount()>0)
     table.setValueAt(new String(""),0,1);
     if(ae.getSource() == check)
          int r = table.getSelectedRow();
          for(int i=1;i<5;i++)
               Object obj = table.getValueAt(r,i);
               System.out.println("Value is"+obj.toString());
     if(ae.getSource()==mComboRHSType)
          System.out.println(mComboRHSType.getSelectedItem().toString());
          if(table.getSelectedRow() == -1)
                    JOptionPane.showMessageDialog(null, "Select row first", "alert", JOptionPane.ERROR_MESSAGE);
                    mComboRHSType.setSelectedIndex(0);
               else
                    if((mComboRHSType.getSelectedItem().toString()).equalsIgnoreCase("Constant"))
                         rowEditor.stopCellEditing();
                         table.setValueAt("",table.getSelectedRow(),4);
                         rowEditor.setEditorAt(table.getSelectedRow(), new DefaultCellEditor(new JTextField()));
                         table.getColumn("RHS").setCellEditor(rowEditor);
                    else if((mComboRHSType.getSelectedItem().toString()).equalsIgnoreCase("Variable"))
                    JComboBox comboBox = new JComboBox();
                    comboBox.addItem("Variable1");
                    comboBox.addItem("Constant1");
                    comboBox.addItem("Constant2");
                    rowEditor.stopCellEditing();
                    table.setValueAt("",table.getSelectedRow(),4);
                    rowEditor.setEditorAt(table.getSelectedRow(), new DefaultCellEditor(comboBox));
                    table.getColumn("RHS").setCellEditor(rowEditor);
}//end of actionPerformed()
public void tableChanged(TableModelEvent e)
          if(e.getType()==e.DELETE)
               System.out.println("DELETE CALEED called##################)");
          if(e.getType()==e.INSERT)
               System.out.println("INSERT CALEED called##################)");
public void setUpJoinColumn(TableColumn joinColumn)
JComboBox comboBox = new JComboBox();
comboBox.addItem("AND");
comboBox.addItem("OR");
comboBox.addItem("NOT");
joinColumn.setCellEditor(new DefaultCellEditor(comboBox));
//Set up tool tips
DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
renderer.setToolTipText("Click for combo box");
joinColumn.setCellRenderer(renderer);
//Set up tool tip for the header.
TableCellRenderer headerRenderer = joinColumn.getHeaderRenderer();
if (headerRenderer instanceof DefaultTableCellRenderer)
((DefaultTableCellRenderer)headerRenderer).setToolTipText("Click to see list of Join Conditions");
public void setUpLHSColumn(TableColumn LHSColumn)
JComboBox comboBox = new JComboBox();
comboBox.addItem("Participant1");
comboBox.addItem("Participant2");
comboBox.addItem("Variable1");
LHSColumn.setCellEditor(new DefaultCellEditor(comboBox));
//Set up tool tips
DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
renderer.setToolTipText("Click for combo box");
LHSColumn.setCellRenderer(renderer);
//Set up tool tip for the header.
TableCellRenderer headerRenderer = LHSColumn.getHeaderRenderer();
if (headerRenderer instanceof DefaultTableCellRenderer)
((DefaultTableCellRenderer)headerRenderer).setToolTipText("Click the sport to see Participants or Variables");
public void setUpOperColumn(TableColumn operColumn)
JComboBox comboBox = new JComboBox();
comboBox.addItem("=");
comboBox.addItem("!=");
comboBox.addItem("Contains");
operColumn.setCellEditor(new DefaultCellEditor(comboBox));
//Set up tool tips
DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
renderer.setToolTipText("Click for combo box");
operColumn.setCellRenderer(renderer);
//Set up tool tip for header.
TableCellRenderer headerRenderer = operColumn.getHeaderRenderer();
if (headerRenderer instanceof DefaultTableCellRenderer)
((DefaultTableCellRenderer)headerRenderer).setToolTipText(
"Click to see a list of operators");
public void setUpRHSColumn(TableColumn rhsColumn)
          rowEditor.setEditorAt(table.getSelectedRow(), new DefaultCellEditor(new JTextField()));
          rhsColumn.setCellEditor(rowEditor);
//Set up tool tips
DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
renderer.setToolTipText("Click for combo box");
rhsColumn.setCellRenderer(renderer);
public static void main(String[] args)
JButtonTableExample frame = new JButtonTableExample();
frame.addWindowListener(new WindowAdapter()
public void windowClosing(WindowEvent e)
System.exit(0);
}//end of program
//Button as a renderer for the table cells
class ButtonCR implements TableCellRenderer
     JButton btnSelect;
     public ButtonCR()
          btnSelect = new JButton();
          btnSelect.setMargin(new Insets(0,0,0,0));
     public Component getTableCellRendererComponent(JTable table,Object value,boolean isSelected,boolean hasFocus,int row,int column)
          if (column != 0) return null; //meany !!!
          return btnSelect;
}//end fo ButtonCR
//Default Editor for table
class ButtonCE extends DefaultCellEditor implements ActionListener
     JButton btnSelect;
     JTable table;
     static int selectedRow = -1;
     public ButtonCE(JCheckBox whoCares)
          super(whoCares);
          btnSelect = new JButton();
          btnSelect.setMargin(new Insets(0,0,0,0));
          btnSelect.addActionListener(this);
          setClickCountToStart(1);
     public Component getTableCellEditorComponent(JTable     table,Object value,boolean isSelected,int row,int column)
          if (column != 0) return null; //meany !!!
          this.selectedRow = row;
          this.table = table;
          System.out.println("Inside getTableCellEditorComponent");
          return btnSelect;
     //public Object getCellEditorValue()
          //return val;
     public void actionPerformed(ActionEvent e)
          // Your Code Here...
          System.out.println("Inside actionPerformed");
          System.out.println("Action performed Row selected "+selectedRow);
          btnSelect.setIcon(new ImageIcon("capsigma.gif"));
}//end of ButtonCE
class EachRowEditor implements TableCellEditor
     protected Hashtable editors;
protected TableCellEditor editor, defaultEditor;
JTable table;
* Constructs a EachRowEditor.
* create default editor
* @see TableCellEditor
* @see DefaultCellEditor
public EachRowEditor(JTable table)
          this.table = table;
     editors = new Hashtable();
     defaultEditor = new DefaultCellEditor(new JTextField());
     editor = defaultEditor;
     * @param row table row
     * @param editor table cell editor
     public void setEditorAt(int row, TableCellEditor editor)
     editors.put(new Integer(row),editor);
public Component getTableCellEditorComponent(JTable table,Object value, boolean isSelected, int row, int column)
     //editor = (TableCellEditor)editors.get(new Integer(row));
     //if (editor == null)
     //     editor = defaultEditor;
     return editor.getTableCellEditorComponent(table,value, isSelected, row, column);
     public Object getCellEditorValue()
     System.out.println("getCellEditoeValue");
     return editor.getCellEditorValue();
     public boolean stopCellEditing()
     System.out.println("stopCellEditing");
     return editor.stopCellEditing();
     public void cancelCellEditing()
     System.out.println("cancelCellEditing");
     editor.cancelCellEditing();
public boolean isCellEditable(EventObject anEvent)
System.out.println("isCellEditable");
selectEditor((MouseEvent)anEvent);
return editor.isCellEditable(anEvent);
public void addCellEditorListener(CellEditorListener l)
System.out.println("addCellEditorListener");
editor.addCellEditorListener(l);
public void removeCellEditorListener(CellEditorListener l)
     System.out.println("removeCellEditorListener");
editor.removeCellEditorListener(l);
public boolean shouldSelectCell(EventObject anEvent)
System.out.println("shouldSelect");
selectEditor((MouseEvent)anEvent);
return editor.shouldSelectCell(anEvent);
protected void selectEditor(MouseEvent e) {
int row;
if (e == null) {
row = table.getSelectionModel().getAnchorSelectionIndex();
} else {
row = table.rowAtPoint(e.getPoint());
editor = (TableCellEditor)editors.get(new Integer(row));
if (editor == null) {
editor = defaultEditor;
}//end of EachRowEditor

Hello!
Catch the exception in your event handler:
try {
} catch(Exception ex) { ex.printStackTrace(); }
You can now isolate the wrong line ^;
Next time if you post such a large code please use code and /code
enclosed in brackets : []; (See http://forum.java.sun.com/faq.jsp#format)
class A extends B {
      public void niceCode() {

Similar Messages

  • RFQ User Exit -- Kindly help very urgent

    Hi,
    Can you please tell me , what user exit is used to save RFQ ? While using ME41 to create a RFQ, which user exit is used to Save ?
    Appreciate your help & Will reward with points
    Sorry 2 post the question @ couple of places
    Thanks
    Prithiv

    HI,
    here is list of User exits and BADI.. while saving RFQ in from ME41.
    MEVME001                                WE default quantity calc. and over/ underdelivery tolerance
    MM06E001                                User exits for EDI inbound and outbound purchasing documents
    MM06E003                                Number range and document number
    MM06E004                                Control import data screens in purchase order
    MM06E005                                Customer fields in purchasing document
    MM06E007                                Change document for requisitions upon conversion into PO
    MM06E008                                Monitoring of contr. target value in case of release orders
    MM06E009                                Relevant texts for "Texts exist" indicator
    MM06E010                                Field selection for vendor address
    MMAL0001                                ALE source list distribution: Outbound processing
    MMAL0002                                ALE source list distribution: Inbound processing
    MMAL0003                                ALE purcasing info record distribution: Outbound processing
    MMAL0004                                ALE purchasing info record distribution: Inbound processing
    MMDA0001                                Default delivery addresses
    MMFAB001                                User exit for generation of release order
    MRFLB001                                Control Items for Contract Release Order
    AMPL0001                                User subscreen for additional data on AMPL
    MEQUERY1                                Enhancement to Document Overview ME21N/ME51N
    LMEDR001                                Enhancements to print program
    LMELA002                                Adopt batch no. from shipping notification when posting a GR
    LMELA010                                Inbound shipping notification: Transfer item data from IDOC
    LMEQR001                                User exit for source determination
    LMEXF001                                Conditions in Purchasing Documents Without Invoice Receipt
    LWSUS001                                Customer-Specific Source Determination in Retail
    M06B0001                                Role determination for purchase requisition release
    M06B0002                                Changes to comm. structure for purchase requisition release
    M06B0003                                Number range and document number
    MELAB001                                Gen. forecast delivery schedules: Transfer schedule implem.
    MEFLD004                                Determine earliest delivery date f. check w. GR (only PO)
    MEETA001                                Define schedule line type (backlog, immed. req., preview)
    ME590001                                Grouping of requsitions for PO split in ME59
    M06E0005                                Role determination for release of purchasing documents
    M06E0004                                Changes to communication structure for release purch. doc.
    M06B0005                                Changes to comm. structure for overall release of requisn.
    M06E0005                                Role determination for release of purchasing documents
    M06E0004                                Changes to communication structure for release purch. doc.
    M06B0005                                Changes to comm. structure for overall release of requisn.
    M06B0004                                Number range and document number
    Business Add-in
    ME_PROCESS_COMP                         Processing of Component Default Data at Time of GR: Customer
    ME_PO_SC_SRV                            BAdI: Service Tab Page for Subcontracting
    ME_PO_PRICING_CUST                      Enhancements to Price Determination: Customer
    ME_PO_PRICING                           Enhancements to Price Determination: Internal
    ME_INFOREC_SEND                         Capture/Send Purchase Info Record Changes - Internal Use
    ME_HOLD_PO                              Hold Enjoy Purchase Orders: Activation/Deactivation
    ME_GUI_PO_CUST                          Customer's Own Screens in Enjoy Purchase Order
    ME_FIELDSTATUS_STOCK                    FM Account Assignment Behavior for Stock PR/PO
    ME_DP_CLEARING                          Clearing (Offsetting) of Down Payments and Payment Requests
    ME_DEFINE_CALCTYPE                      Control of Pricing Type: Additional Fields
    ME_COMMTMNT_REQ_RE_C                    Check of Commitment Relevance of Purchase Requisitions
    ME_COMMTMNT_REQ_RELE                    Check of Commitment Relevance of Purchase Requisitions
    ME_COMMTMNT_PO_REL_C                    Check for Commitment-Relevance of Purchase Orders
    ME_PROCESS_PO                           Enhancements for Processing Enjoy Purchase Order: Intern.
    MM_EDI_DESADV_IN                        Supplementation of Delivery Interface from Purchase Order
    MM_DELIVERY_ADDR_SAP                    Determination of Delivery Address
    ME_WRF_STD_DNG                          PO Controlling Reminder: Extension to Standard Reminder
    ME_TRIGGER_ATP                          Triggers New ATP for Changes in EKKO, EKPO, EKPV
    ME_TRF_RULE_CUST_OFF                    BADI for Deactivation of Field T161V-REVFE
    ME_TAX_FROM_ADDRESS                     Tax jurisdiction code taken from address
    ME_REQ_POSTED                           Purchase Requisition Posted
    ME_REQ_OI_EXT                           Commitment Update in the Case of External Requisitions
    ME_RELEASE_CREATE                       BAdI: Release Creation for Sched.Agrmts with Release Docu.
    ME_PURCHDOC_POSTED                      Purchasing Document Posted
    ME_PROCESS_REQ_CUST                     Enhancements for Processing Enjoy PReqs: Customer
    ME_PROCESS_REQ                          Enhancements for Processing Enjoy PReqs: Internal
    ME_PROCESS_PO_CUST                      Enhancements for Processing Enjoy Purchase Order: Customer
    ME_COMMTMNT_PO_RELEV                    Check for Commitment-Relevance of Purchase Orders
    ME_CCP_ACTIVE_CHECK                     BAdI to check whether CCP process is active
    ME_BSART_DET                            Change document type for automatically generated POs
    ME_BAPI_PR_CREATE_02

  • Please i need help very urgent !!! after deleting my exchange account because the company changed the password , I lost 150 200 contacts and i need to get them back very soon ! please help

    Please i need help very urgent !!! after deleting my exchange account because the company changed the password , I lost 150 200 contacts and i need to get them back very soon !  i never backed up on itunes ..please help

    No. The contacts are "owned" by the Exchange server.
    The Exchange server is owned by the company.
    Everything on the Exchange server is owned by the company.
    If you quit or were terminated, and your access to the system has been revoked, then there is nothing you and do at this point. Once you deleted the account from your phone, all of the associated data was deleted.
    NEVER store personal information on company systems.

  • HT201210 i have an error of no 11. kindly help, needed urgently

    i have an error of no 11. kindly help, needed urgently
    when i try to upgrage my
    iphone 3gs wit 4.1 to new latest 5.1
    it gives the erorr of 11. what that mean? Reply as soon as you can !
    thnx

    Error -1 may indicate a hardware issue with your device. Follow Troubleshooting security software issues, and restore your device on a different known-good computer. If the errors persist on another computer, the device may need service.

  • Error Pl help-Very urgent!

    Am getting the following error.Please help very urgent
    500 Translator.CompilationFailedExceptionCompiler errors:
    Found 1 semantic error compiling "D:/JRun4/servers/default/default-ear/default-war/WEB-INF/jsp/jrun__quicklinks2ejspf.java":
    502. for (Enumeration e = prioLinkBean.getGlobalTop() ; e.hasMoreElements() ;)
    <---------->
    *** Error: "prioLinkBean" is either a misplaced package name or a non-existent entity.
    Translator.CompilationFailedExceptionCompiler errors:
    Found 1 semantic error compiling "D:/JRun4/servers/default/default-ear/default-war/WEB-INF/jsp/jrun__quicklinks2ejspf.java":
    502. for (Enumeration e = prioLinkBean.getGlobalTop() ; e.hasMoreElements() ;)
    <---------->
    *** Error: "prioLinkBean" is either a misplaced package name or a non-existent entity.

    prioLinkBean.getGlobalTop();
    are u sure this method returns an Enumeration ???
    post ur code!
    [email protected]

  • Problem with select range for a character type field. Kindly Help! Urgent!

    Hi Experts,
        I have to write a report to pull data from a table BUT000 for a selected range of  BPEXT field values in selection screen.
        In the table BUT000, the BPEXT field is type char. Now what is happening is that if the user gives a range in selection screen from 1000 to 1010 the query pulls all the records where teh forst character starts from 1.
    For example if the table has
        BPEXT
        1
        10
        100
        101
        1000
        1001
        1002
        1005
        1010
        20
        200
        2000
    Then my query pulls
       BPEXT
        101
        1000
        1001
        1002
        1005
        1010
       Instead it should pull only
       BPEXT
        1000
        1001
        1002
        1005
        1010
        My guess this is because the BPEXT field is of CHAR type instead of numeric.
        What shall i do to solve this problem? Kindly help please!   
    Thanks
    Gopal
    Message was edited by:
            gopalkrishna baliga

    Hi Chakradhar,
        How to find the conversion exit for BPEXT field?
        How to use the conversion exit in a select query in my ABAP report? Any sample code will be really helpfull.
       Please help!
    Thanks
    Gopal

  • Problem with Accessing Deployed Servlets Please help, very urgent.

    Inspite of going through lots of Docs. I am not able to access the JSP which is deployed using JDeveloper 3.2 in the browser? What should be the URL and where should I place the JSP and the related files in the Apache Server (Specific directory)?
    Please help, this is very Urgent.
    Could I get some sites where I can get detailed description of how to deploy and access Servlets and JSPS using JDeveloper 3.2 for OAS 9i?
    Thanks in advance,
    Regards,
    Kavita.
    null

    Hi Kativa,
    In answer to your first question: In most apache installs, you want to place all your JSPs under the Apache/htdocs directory. This htdocs directory becomes the root directory of your HTTP request, so, for example, to access the file
    Apache/htdocs/mydir/myJSP.jsp
    you'd point your browser to
    server:port/mydir/myJSP.jsp]http://server:port/mydir/myJSP.jsp
    As to your second question: Do you mean Oracle 9iAS? If so, look at this HOWTO: http://technet.oracle.com:89/ubb/Forum2/HTML/006398.html
    JDeveloper 3.2 does not support deployment to OAS (the predecessor to iAS), but there was no OAS 9i.
    null

  • How to filter data in message mapping?Kindly help! URGENT

    Hi Experts,
    I have a source XML as shown below:
    <Inventory>
    <InventoryItem>
    <InventoryQty>
    <MaterialNo>X001</MaterialNo>
    <ItemCode>InTransit</ItemCode>
    <Quantity>1000</Quantity>
    </InventoryQty>
    <InventoryQty>
    <ItemCode>Available</ItemCode>
    <Quantity>1500</Quantity>
    </InventoryQty>
    <InventoryQty>
    <ItemCode>UnRestricted</ItemCode>
    <Quantity>1250</Quantity>
    </InventoryQty>
    </InventoryItem>
    <InventoryItem>
    <InventoryQty>
    <MaterialNo>X002</MaterialNo>
    <ItemCode>InTransit</ItemCode>
    <Quantity>1500</Quantity>
    </InventoryQty>
    <InventoryQty>
    <ItemCode>Available</ItemCode>
    <Quantity>1600</Quantity>
    </InventoryQty>
    <InventoryQty>
    <ItemCode>UnRestricted</ItemCode>
    <Quantity>1200</Quantity>
    </InventoryQty>
    </InventoryItem>
    </Inventory>
    My Target XML is mapped to a RFC Fnction module (YGET_STOCK). The target function module has a internal table (ITAB_STOCK) as input:
    YGET_STOCK
    ITAB_STOCK
    item
               - <Material>X001</Material>
               - <AvailableStock>1500</AvailableStock>
               - <IntransitStock>1000</IntransitStock>
    item
               - <Material>X002</Material>
               - <AvailableStock>1600</AvailableStock>
               - <IntransitStock>1500</IntransitStock>
    </Inventory>
    So how to get the desired target XML using graphical XI mapping?
    I have tried using graphical mapping and I am getting the following:
    YGET_STOCK
    ITAB_STOCK
    item
               - <Material>X001</Material>
               - <IntransitStock>1000</IntransitStock>
               - <AvailableStock></AvailableStock>
    item
               - <Material>X001</Material>
               - <IntransitStock></IntransitStock>
               - <AvailableStock>1500</AvailableStock>
    </Inventory>
    As shown it is reading only the first <InventoryItem> and splitting the Available and InTransit quantity into two separate items of the internal tables instead of putting them into one item.
    Kindly help me! URGENT!
    Thanks
    Gopal
    Message was edited by:
            gopalkrishna baliga
    Message was edited by:
            gopalkrishna baliga
    Message was edited by:
            gopalkrishna baliga
    Message was edited by:
            gopalkrishna baliga
    Message was edited by:
            gopalkrishna baliga

    what is ur mapping def...did u map <InventoryItem> to -
    item in rfc?

  • SQL Query, please help very urgent

    I am a newbie is sql.
    I have two tables called test_master and test_detail.
    Both tables contains pos_id as common field.
    In test_detail got sub_id and to get the people under a given pos_id, I join with pos_id of test_master.
    In the where condition, when I give the pos_id, it's returning only
    the first level. How can I get the second level and get all the levels?
    Any help is highly appreciable.It's very urgent.
    Looking forward to hear from you.
    Thanks
    Newbie

    Ok, I am pasting the description of the master and detail in the order.
    Master
    EMPLOYEE_NO VARCHAR2(30)
    ORGANIZATION_ID NUMBER(15)
    ORGANIZATION_NAME VARCHAR2(240)
    POSITION_ID NUMBER(15)
    POSITION_NAME VARCHAR2(240)
    Detail
    POSITION_ID NUMBER(15)
    SUBORDINATE_ID NUMBER(15)
    ORGANIZATION_ID NUMBER(15)
    POSITION_NAME VARCHAR2(50)
    Here is the sql, I want to get all the subordinates under a given position_id of the master.
    Looking forward to hear from you.
    select a.employee_no,a.POSITION_ID,a.POSITION_NAME,a.EMPLOYEE_NAME,
    b.position_id,b.subordinate_id from portal_employee_master_test a,
    portal_structure_test b
    where a.POSITION_ID = b.POSITION_ID and a.POSITION_ID='xyz'
    and b.position_ID=a.POSITION_ID

  • MSI MS 7100 K8N Neo 4 Diamond need bios configuration help very urgent

    Hello every body i need very urgent help,
    i need help on above mainboard bios conf. i will attach two seperate hdd (120 GB sata II) and i will setup W2003 standart 32bit ed.
    if possible i won't use any raid configurations, but i need speed
    how should i conf. bios and which controller shouşd i use silicon or nvidia or how and wich has to be used.
    corecction about my configuration
    Mainboard   MSI MS 7100 K8N Neo 4 Diamond (NF4 SLI,GLAN,SATA)
    CPU      AMD Athlon 64 X2 3800+ (2.0GHz,1024K Cache,S939) BOX
    Ram      CORSAIR Value Select DDR400 1024MB Kit (2x512MB)
    Hdd      SAMSUNG 120GB 7200RPM 8MB SATAII     (2x120GB)
    Graphic Card         SAPPHIRE 256MB ATI Radeon X1600 PRO (PCI-E) AVIVO
    Case                      ENLIGHT 7247 400W

    Hello !!
    The Bios configuration depends on many factors.....but we do not know anything about your configuration. ( CPU, RAM, Powersupply.....)
    If you need HDD Speed, RAID 0 will be a good Option and you should consider it.
    Both Controllers, Silicon Image & nvidia, have the same speed. But i think you can not attach Optical drives to the Silicon Image Controller. ( if someone has other experiance please post )
    Good Luck
    Greetz MurdoK

  • Small Problem in JTable,Please help me..

    hi ,i am doing college project & hv some problem
    Problem : (code is given below ) as i run program ,i am not able to edit cells of table one by one.when i write value in any cell & then if i edit other cell, then previous cell's value become come to initial value
    This problem is requires small modification ,plz help(unless my project will not exceed further )
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    //import javax.swing.JScrollPane;
    //import javax.swing.JTable;
    import java.util.*;
    import java.util.List;
    public class v_swing1 extends JFrame
         {     JButton b1;
              Container cont;
              JTable table ;
              TableModel myData ;
              TextField t1;
              private LocalTableModel theTableModel;                         //t1.setEditable(false);
              private List<Row> theRows;
         private class Row {
              private int theFirstField;
              private String theSecondField;
              public Row(int aFirstField, String aSecondField) {
                   theFirstField = aFirstField;
                   theSecondField = aSecondField;
              public int getFirstField() {
                   return theFirstField;
              public String getSecondField() {
                   return theSecondField;
         private class LocalTableModel extends AbstractTableModel {
              public String getColumnName(int column) {
                   if (column == 0) {return "name";}
                   else      {  return "age";}     }
              public Class getColumnClass(int columnIndex) {
              if (columnIndex == 0) { return Integer.class;}
                   else      {   return String.class;   }
              public boolean isCellEditable(int rowIndex, int columnIndex) {
                   return true;     }
              public int getRowCount() {
                   return theRows.size();
              public int getColumnCount() {
                   return 2;
              public Object getValueAt(int rowIndex, int columnIndex) {
                   Row row = theRows.get(rowIndex);
                   if (columnIndex == 0) { return row.getFirstField();}
                   else { return row.getSecondField(); }
         public v_swing1(String theLable)
              b1=new JButton();
              t1=new TextField(4);
              theRows = new LinkedList<Row>();
              theTableModel = new LocalTableModel();           
              table = new JTable(theTableModel);
              setLayout(new FlowLayout());
              JPanel thePan=new JPanel();
              thePan.add(t1);
              thePan.add(b1);
              Container cont= getContentPane();
              cont.setLayout(new FlowLayout());
              cont.add(thePan);
              b1.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent e)
                        load();
                        reload();
                             //x=Integer.parseInt(t1.getText());
                        //t1.setText(" ");          
                                            // table = new JTable(2,3);     
                                  //table.setRowSelectionAllowed(true);
                                  // table.setColumnSelectionAllowed(true);
                                  //table.setCellSelectionEnabled(true);
              cont.add(new JScrollPane(table));
              load();               
         private void reload(){
              int l =Integer.parseInt(t1.getText());
              for(int size = theRows.size();size<=l;size++)
              theRows.add(new Row(size, " "+size));
              theTableModel.fireTableRowsInserted(size, size);
         private void load(){
              int size = theRows.size();
              if (size > 0) {
                   theRows.clear();
                   theTableModel.fireTableRowsDeleted(0, size - 1);
              theRows.add(new Row(0, "" + 0));     
              theTableModel.fireTableRowsInserted(0, 1);
         public static void main(String args[])
              v_swing1 obj=new v_swing1("hay");
              obj.addWindowListener(new WindowAdapter(){
              public void windowClosing(WindowEvent e) {
              System.exit(0);
              obj.setSize(400,400);
              obj.setVisible(true);
         }

    Please cut and paste the exact message in a reply.
    Most likely, your CLASSPATH is wrong.
    Larry

  • Pls help (very urgent)... hit exception on runtime...

    hi,
    hope my help can come in time...
    its pretty urgent as my final presentation is on this coming friday(singapore time)...
    i had coded a class where i can connect to the public UDDI. now i want to get the WSDL document location. but i could not get what i want. then, i used the Service class from the javax.xml.rpc where it has the getWSDLDocumentLocation() function.
    but when i implement it in my class, when i compile, it does not have any errors, but when i run it, it hit the following error:
    java.lang.ClassCastException: com.sun.xml.registry.uddi.infomodel.ServiceImpl
    at FYPJ.NaicsQuery.executeQuery(NaicsQuery.java:131)
    at FYPJ.FYPJ.jButton1ActionPerformed(FYPJ.java:409)
    at FYPJ.FYPJ.access$200(FYPJ.java:22)
    at FYPJ.FYPJ$3.actionPerformed(FYPJ.java:220)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1820)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:258)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:227)
    at java.awt.Component.processMouseEvent(Component.java:5021)
    at java.awt.Component.processEvent(Component.java:4818)
    at java.awt.Container.processEvent(Container.java:1380)
    at java.awt.Component.dispatchEventImpl(Component.java:3526)
    at java.awt.Container.dispatchEventImpl(Container.java:1437)
    at java.awt.Component.dispatchEvent(Component.java:3367)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3214)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2929)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2859)
    at java.awt.Container.dispatchEventImpl(Container.java:1423)
    at java.awt.Window.dispatchEventImpl(Window.java:1566)
    at java.awt.Component.dispatchEvent(Component.java:3367)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:190)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
    the following is my class for public UDDI connection:
    package FYPJ;
    import javax.xml.registry.*;
    import javax.xml.registry.infomodel.*;
    import java.net.*;
    import java.util.*;
    import java.lang.*;
    public class NaicsQuery
    private Connection m_conn;
    private int cntServices = 0;
    Vector servicesAva = new Vector();
    // empty constructor
    public NaicsQuery()
    public void makeConnection(String conn)
         Properties props = new Properties();
         props.setProperty("javax.xml.registry.queryManagerURL", conn);
         props.setProperty("javax.xml.registry.factoryClass",
    "com.sun.xml.registry.uddi.ConnectionFactoryImpl");
         try
    ConnectionFactory factory = ConnectionFactory.newInstance();
    factory.setProperties(props);
    this.m_conn = factory.createConnection();
    System.out.println("Connection to UDDI created");
         catch (Exception e)
    e.printStackTrace();
    if (this.m_conn != null)
              try
    this.m_conn.close();
              catch (Exception eb)
    public void executeQuery(String serviceName)
         RegistryService rs;
         BusinessQueryManager bqm;
         BusinessLifeCycleManager blcm;
    try
    // Get registry service & managers
    rs = m_conn.getRegistryService();
    bqm = rs.getBusinessQueryManager();
    blcm = rs.getBusinessLifeCycleManager();
    System.out.println("Got registry service, query manager, and life cycle manager.");
    Collection classifications = new ArrayList();
    classifications.add(serviceName);
    BulkResponse response = bqm.findOrganizations(null, classifications, null, null, null, null);
    Collection orgs = response.getCollection();
    // Display info about the organizations found
    Iterator orgIter = orgs.iterator();
    while(orgIter.hasNext())
    Organization org = (Organization)orgIter.next();
    System.out.println("Organization Name: " + org.getName().getValue());
    System.out.println("Organization Description: " + org.getDescription().getValue());
    System.out.println("Organization Key ID: " + org.getKey().getId());
    Collection links = org.getExternalLinks();
    if (links.size() > 0)
    ExternalLink link = (ExternalLink)links.iterator().next();
    System.out.println("URL to WSDL document: " + link.getExternalURI());
    // Display primary contact information
    User pc = org.getPrimaryContact();
    if(pc != null)
    PersonName pcName = pc.getPersonName();
    System.out.println("Contact name: " + pcName.getFullName());
    Collection phNums = pc.getTelephoneNumbers(null);
    Iterator phIter = phNums.iterator();
    while(phIter.hasNext())
    TelephoneNumber num = (TelephoneNumber)phIter.next();
    System.out.println("Phone number: " + num.getNumber());
    Collection eAddrs = pc.getEmailAddresses();
    Iterator eaIter = eAddrs.iterator();
    while(phIter.hasNext())
    System.out.println("Email Address: " + (EmailAddress)eaIter.next());
    // Display service and binding information
    Collection services = org.getServices();
    Iterator svcIter = services.iterator();
    while(svcIter.hasNext())
    Service svc = (Service)svcIter.next();
    System.out.println("Service name: " + svc.getName().getValue());
    System.out.println(" Service description: " + svc.getDescription().getValue());
    //Collection linkURL = svc.getExternalLinks();
    //System.out.println(" WSDL document: " + linkURL.toString());
    javax.xml.rpc.Service rpcSvc = (javax.xml.rpc.Service)svcIter.next();
    System.out.println(" WSDL location: " + rpcSvc.getWSDLDocumentLocation());
    cntServices ++;
    servicesAva.add((String)svc.getName().getValue() + " (" + org.getName().getValue() + ")");
    Collection serviceBindings = svc.getServiceBindings();
    Iterator sbIter = serviceBindings.iterator();
    while(sbIter.hasNext())
    ServiceBinding sb = (ServiceBinding)sbIter.next();
    System.out.println(" Binding description: " + sb.getDescription().getValue());
    System.out.println(" Access URI: " + sb.getAccessURI());
    Collection specLinks = sb.getSpecificationLinks();
    Iterator slIter = specLinks.iterator();
    while(slIter.hasNext())
    SpecificationLink spLink = (SpecificationLink)slIter.next();
    System.out.println(" Usage description: " + spLink.getUsageDescription());
    Collection useParam = spLink.getUsageParameters();
    Iterator useIter = useParam.iterator();
    while(useIter.hasNext())
    String usage = (String)useIter.next();
    System.out.println(" Usage Parameter: " + usage);
    System.out.println("-----------------------------------");
    System.out.println("*****************************************************************");
    catch(Throwable e)
    e.printStackTrace();
    finally
    // At end, close connection to registry
    if(m_conn != null)
    try
    this.m_conn.close();
    catch(JAXRException jaxre)
    public int getNumServices()
    return cntServices;
    public Vector getServicesAva()
    return servicesAva;
    ur help will be greatly appreciated...
    thanx in advance...
    - eric

    Eric ,
    You are trying to cast a javax.xml.registry.infomodel.Service to javax.xml.rpc.Service. This is not right
    This is causing the problem.
    There is an article on how to use the different Java Web services developer pack technologies using the example of the employee portal at
    http://developer.java.sun.com/developer/technicalArticles/WebServices/WSPack2/index.html
    That may give you an idea on how to go about doing it.
    Thanks,
    Bhakti
    hi,
    hope my help can come in time...
    its pretty urgent as my final presentation is on this
    coming friday(singapore time)...
    i had coded a class where i can connect to the public
    UDDI. now i want to get the WSDL document location.
    but i could not get what i want. then, i used the
    Service class from the javax.xml.rpc where it has the
    getWSDLDocumentLocation() function.
    but when i implement it in my class, when i compile,
    it does not have any errors, but when i run it, it hit
    the following error:
    java.lang.ClassCastException:
    com.sun.xml.registry.uddi.infomodel.ServiceImpl
    at
    at
    at
    t FYPJ.NaicsQuery.executeQuery(NaicsQuery.java:131)
    at
    at
    at FYPJ.FYPJ.jButton1ActionPerformed(FYPJ.java:409)
    at FYPJ.FYPJ.access$200(FYPJ.java:22)
    at FYPJ.FYPJ$3.actionPerformed(FYPJ.java:220)
    at
    at
    at
    t
    javax.swing.AbstractButton.fireActionPerformed(Abstract
    utton.java:1767)
    at
    at
    at
    t
    javax.swing.AbstractButton$ForwardActionEvents.actionPe
    formed(AbstractButton.java:1820)
    at
    at
    at
    t
    javax.swing.DefaultButtonModel.fireActionPerformed(Defa
    ltButtonModel.java:419)
    at
    at
    at
    t
    javax.swing.DefaultButtonModel.setPressed(DefaultButton
    odel.java:257)
    at
    at
    at
    t
    javax.swing.plaf.basic.BasicButtonListener.mouseRelease
    (BasicButtonListener.java:258)
    at
    at
    at
    t
    java.awt.AWTEventMulticaster.mouseReleased(AWTEventMult
    caster.java:227)
    at
    at
    at
    t
    java.awt.Component.processMouseEvent(Component.java:502
    at
    at
    at
    t
    java.awt.Component.processEvent(Component.java:4818)
    at
    at
    at
    t
    java.awt.Container.processEvent(Container.java:1380)
    at
    at
    at
    t
    java.awt.Component.dispatchEventImpl(Component.java:352
    at
    at
    at
    t
    java.awt.Container.dispatchEventImpl(Container.java:143
    at
    at
    at
    t
    java.awt.Component.dispatchEvent(Component.java:3367)
    at
    at
    at
    t
    java.awt.LightweightDispatcher.retargetMouseEvent(Conta
    ner.java:3214)
    at
    at
    at
    t
    java.awt.LightweightDispatcher.processMouseEvent(Contai
    er.java:2929)
    at
    at
    at
    t
    java.awt.LightweightDispatcher.dispatchEvent(Container.
    ava:2859)
    at
    at
    at
    t
    java.awt.Container.dispatchEventImpl(Container.java:142
    at
    at
    at
    t java.awt.Window.dispatchEventImpl(Window.java:1566)
    at
    at
    at
    t
    java.awt.Component.dispatchEvent(Component.java:3367)
    at
    at
    at
    t
    java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
    at
    at
    at
    t
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(E
    entDispatchThread.java:190)
    at
    at
    at
    t
    java.awt.EventDispatchThread.pumpEventsForHierarchy(Eve
    tDispatchThread.java:144)
    at
    at
    at
    t
    java.awt.EventDispatchThread.pumpEvents(EventDispatchTh
    ead.java:138)
    at
    at
    at
    t
    java.awt.EventDispatchThread.pumpEvents(EventDispatchTh
    ead.java:130)
    at
    at
    at
    t
    java.awt.EventDispatchThread.run(EventDispatchThread.ja
    a:98)
    the following is my class for public UDDI connection:
    package FYPJ;
    import javax.xml.registry.*;
    import javax.xml.registry.infomodel.*;
    import java.net.*;
    import java.util.*;
    import java.lang.*;
    public class NaicsQuery
    private Connection m_conn;
    private int cntServices = 0;
    Vector servicesAva = new Vector();
    // empty constructor
    public NaicsQuery()
    public void makeConnection(String conn)
         Properties props = new Properties();
         props.setProperty("javax.xml.registry.queryManagerURL"
    conn);
    props.setProperty("javax.xml.registry.factoryClass",
    "com.sun.xml.registry.uddi.ConnectionFactoryImpl");
         try
    ConnectionFactory factory =
    y factory = ConnectionFactory.newInstance();
    factory.setProperties(props);
    this.m_conn = factory.createConnection();
    System.out.println("Connection to UDDI
    ion to UDDI created");
         catch (Exception e)
    e.printStackTrace();
    if (this.m_conn != null)
              try
    this.m_conn.close();
              catch (Exception eb)
    public void executeQuery(String serviceName)
         RegistryService rs;
         BusinessQueryManager bqm;
         BusinessLifeCycleManager blcm;
    try
    // Get registry service & managers
    rs = m_conn.getRegistryService();
    bqm = rs.getBusinessQueryManager();
    blcm = rs.getBusinessLifeCycleManager();
    System.out.println("Got registry service,
    ry service, query manager, and life cycle manager.");
    Collection classifications = new
    tions = new ArrayList();
    classifications.add(serviceName);
    BulkResponse response =
    response = bqm.findOrganizations(null,
    classifications, null, null, null, null);
    Collection orgs =
    tion orgs = response.getCollection();
    // Display info about the organizations
    ganizations found
    Iterator orgIter = orgs.iterator();
    while(orgIter.hasNext())
    Organization org =
    anization org = (Organization)orgIter.next();
    System.out.println("Organization Name:
    anization Name: " + org.getName().getValue());
    System.out.println("Organization
    n("Organization Description: " +
    org.getDescription().getValue());
    System.out.println("Organization Key
    rganization Key ID: " + org.getKey().getId());
    Collection links =
    lection links = org.getExternalLinks();
    if (links.size() > 0)
    ExternalLink link =
    ExternalLink link =
    (ExternalLink)links.iterator().next();
    System.out.println("URL to WSDL
    rintln("URL to WSDL document: " +
    link.getExternalURI());
    // Display primary contact
    primary contact information
    User pc = org.getPrimaryContact();
    if(pc != null)
    PersonName pcName =
    PersonName pcName = pc.getPersonName();
    System.out.println("Contact name:
    ntln("Contact name: " + pcName.getFullName());
    Collection phNums =
    Collection phNums = pc.getTelephoneNumbers(null);
    Iterator phIter =
    Iterator phIter = phNums.iterator();
    while(phIter.hasNext())
    TelephoneNumber num =
    TelephoneNumber num =
    = (TelephoneNumber)phIter.next();
    System.out.println("Phone
    stem.out.println("Phone number: " + num.getNumber());
    Collection eAddrs =
    Collection eAddrs = pc.getEmailAddresses();
    Iterator eaIter =
    Iterator eaIter = eAddrs.iterator();
    while(phIter.hasNext())
    System.out.println("Email
    stem.out.println("Email Address: " +
    (EmailAddress)eaIter.next());
    // Display service and binding
    ice and binding information
    Collection services =
    tion services = org.getServices();
    Iterator svcIter =
    rator svcIter = services.iterator();
    while(svcIter.hasNext())
    Service svc =
    Service svc = (Service)svcIter.next();
    System.out.println("Service name:
    ntln("Service name: " + svc.getName().getValue());
    System.out.println(" Service
    t.println(" Service description: " +
    svc.getDescription().getValue());
    //Collection linkURL =
    ollection linkURL = svc.getExternalLinks();
    //System.out.println(" WSDL
    .out.println(" WSDL document: " +
    linkURL.toString());
    javax.xml.rpc.Service rpcSvc =
    pc.Service rpcSvc =
    (javax.xml.rpc.Service)svcIter.next();
    System.out.println(" WSDL
    .out.println(" WSDL location: " +
    rpcSvc.getWSDLDocumentLocation());
    cntServices ++;
    servicesAva.add((String)svc.getName().getValue()
    lue() + " (" + org.getName().getValue() + ")");
    Collection serviceBindings =
    n serviceBindings = svc.getServiceBindings();
    Iterator sbIter =
    Iterator sbIter = serviceBindings.iterator();
    while(sbIter.hasNext())
    ServiceBinding sb =
    ServiceBinding sb =
    b = (ServiceBinding)sbIter.next();
    System.out.println(" Binding
    m.out.println(" Binding description: " +
    sb.getDescription().getValue());
    System.out.println(" Access
    em.out.println(" Access URI: " + sb.getAccessURI());
    Collection specLinks =
    Collection specLinks = sb.getSpecificationLinks();
    Iterator slIter =
    Iterator slIter = specLinks.iterator();
    while(slIter.hasNext())
    SpecificationLink spLink =
    SpecificationLink spLink =
    (SpecificationLink)slIter.next();
    System.out.println(" Usage
    System.out.println(" Usage description: " +
    spLink.getUsageDescription());
    Collection useParam =
    Collection useParam =
    ram = spLink.getUsageParameters();
    Iterator useIter =
    Iterator useIter = useParam.iterator();
    while(useIter.hasNext())
    String usage =
    String usage =
    String usage = (String)useIter.next();
    System.out.println("
    System.out.println(" Usage Parameter: " +
    meter: " + usage);
    System.out.println("----------------------------------
    System.out.println("**********************************
    catch(Throwable e)
    e.printStackTrace();
    finally
    // At end, close connection to registry
    if(m_conn != null)
    try
    this.m_conn.close();
    catch(JAXRException jaxre)
    public int getNumServices()
    return cntServices;
    public Vector getServicesAva()
    return servicesAva;
    ur help will be greatly appreciated...
    thanx in advance...
    - eric

  • My recirculating pump in sub vi simulation link doesnt work in the second iteration .It opens for maybe half a second whereas i gave the time delay for 5 secs..plz help very urgent

    Hi,
         I have attached my simulation loop.In the model attached i hav eone main pump with constant rpm which drives the 5 smaller pumps and fills the tank at the same time.As soon as the tanks reach their 90% level,the valves of the five pumps close(SP1,SP2,SP3,Sp4,Sp5).After that the recirculating pumps opens for 5 secs of the first tank.As soon as the recirculation finishes,the drain valve(SV1) for tank 1 open and the volume goes to interim storage.This happens for all the remaining tanks.
    My simulation works the first time,but when the second time the loop starts,it skips the recirculation pump even though i gave a time delay for 5 secs.Plz help ..I have attached the simulation.
    Thanks,
    Rami
    Attachments:
    Spatial Logic_2_Final.vi ‏223 KB

    Rami,
    I suspect that you have a race condition. The widespread use of local variables frequently leads to race conditions. Your subVI (Spatial Logic Sub_2.vi was not included) so I cannot run the VI. You have no way of knowing whether the subVI or the inner case structure will execute first, because there is no data dependency between them.
    I think a shift register or a few and some dataflow thinking would allow you to eliminate the inner case structure, the local variables, and, probably, most of your problems.
    Some of the SPi are indicators and some are controls. How are they used?
    The last case of the inner loop retursn to Case 1. Would case 0 be better?
    As for the second time through issue, it may be related to the Elapsed time function Auto Reset. From the help file: "Resets the start time to the value in Present (s) when the Express VI reaches the Time Target (s)." If more than 5 seconds elapses between the first time you use this and the next, it will exit immediately on the subsequent calls.
    Lynn

  • Jaxrpc compilation exception(plz Help very Urgent Plz)

    Hello there....
    while deploying a simple webservice using deploytool i m getting this error while the application that is being deployed is not even using ejbs....
    i m trying to compile the example given on the forum by Qusay H. Mahmoud, so plz help me to get out from this......
    Thank u ....alll
    distribute: C:\Sun\AppServer\apps\Add.war
    deployment started : 0%
    Deploying application in domain failed; Error while running ejbc -- Fatal Error from EJB Compiler -- jaxrpc compilation exception
    ; requested operation cannot be completed
    !!! Operation Failed !!!
    !!! With The Following Failure Messages !!!
    Deploying application in domain failed; Error while running ejbc -- Fatal Error from EJB Compiler -- jaxrpc compilation exception
    ; requested operation cannot be completed
    Error while running ejbc -- Fatal Error from EJB Compiler -- jaxrpc compilation exception
    [Completed (time=24.0sec, status=13)]
    **********************************************************************

    I had a similar problem with Sun App Server.If you can check the domain/log/Server.log.It explains a valid endpoint address is missing in the deployment.To do this open the deployment tool and click the Implementation class in the tree(Bean Shaped).
    You can see a endpoint tab within which you need to configure the Endpoint address.
    The deployment went fine after this.
    Good Luck !!!

  • Audio Problems in Adobe Presenter: Help Needed Urgently!!

    I am using trial versions of Adobe Presenter 7 and Adobe Connect 8.
    I created a presentation in in Powerpoint 2002 and published through Adobe Presenter to Adobe Connect Pro. This presentation has voice over recorded through the Adobe Presenter "record audio" option.
    In Adobe Connect Pro, I created a meeting and shared the above mentioned presentation through the "Share Document" option in Connect Pro.
    Now, when I play the presentation in this Adobe Connect Meeting, I am not getting any audio that was recorded in Adobe Presenter. Whereas if I play the published presentation directly it plays the recorded audio.
    Can anyone help me on this?
    1. Are there any settings to be done in Powerpoint or Adobe Presenter or Connect pro?
    2. Is it the problem of Trial Account or something like that?
    Please let me know the solution. Need to work on this ASAP!!!
    Thanks in Advance,
    Yogini

    This is a weird one. If you created a prezo with audio and published it to AC (Adobe Connect) and everything worked fine on your desktop then it should work fine in AC i.e. there are no other settings required on AC's side, it should just play.
    As I am typing this I thought of similar audio problems that we have experienced in the past. A big one would be where another user created a PPT on their laptops and handed it to us. When testing the audio did not work. Reason being is that not all the files were coppied over BUT I must accept that this is not your problem as it definately worked on your PC before you published it to AC.
    Wait there is one setting in the publish settings. In the output options tick "Upload source presentation with assests", then tick audio.
    I cannot think of anything else. There is a man called Heyward Drummond on the Adobe Connect General forum, who is a real master at answering queries like this. Why not post your query there and see if he comes up with an answer?

Maybe you are looking for

  • Reg XML to Plain Conversion using B2B add on

    Hi All, This is an outbound scenario where the  message is sent to AS2 receiver channel and the output is Plain file. I have added all the module parameters and the content type as application/plain. While testing I am facing the error, Exception cau

  • My apple tv wont connect to i tunes store, but it will to net flix

    my apple tv wont connect to i tunes, but it will connect to netflix

  • Mobile project on NWDI

    Hi experts, We are using NWDI as version and transport control. Until now we had only created tracks of common application types as described on SAP Note Creating CMS Tracks for Common Application Types But now we have to create a track of Mobile Cli

  • Mass updates to move lots of positions to one org unit

    Hi All, Can anybody tell me in SAP whether there is a transaction or way to perform mass updates to  move lots of positions to one org unit ? Our users have to perform Re-org changes so they would like to know whether there is a way to move positions

  • How can I reload spanish language in the smartphone ?

    Hello, Setting my new blackberry 8900, unfortunately, I have deleted the spanish language in the Smartphone. Now, I'd like reload it from Blackberry desktop manager. Then, after use Application Loader (selecting spanish language) to reload tha spanis