A communication problem (sort of) between classes

Hi,
Why, oh why, doesn't this work:
When I select a row in my tableClass (consist of a JTable) I want to display these values (strings) in my TextFieldGUI class (consist of just JTextFields). My code looks like this:
TableClass:
public void mouseClicked(java.awt.event.MouseEvent mouseEvent) {
    textFieldGUI = new TextFieldGUI() ;//reference to my textfield class
    gui = new mainGUI() ; //reference to my GUI class
    int tabbedIndex = gui.getSelectedIndex() ;
    int col = tableModel.getColumnCount() ;
    Vector string = new Vector() ;
    String empty = "" ;       
    for(int index = 0; index < col ; index++){
        if(table.getValueAt(row, index) == null)
            string.addElement(empty) ;
        else
            string.addElement(table.getValueAt(row, index).toString()) ;
    if(tabbedIndex == 0){
        System.out.println(string) ; //works fine
        textFieldGUI.setTextFieldValues(string) ;
}TextField class:
public void setTextFieldValues(Vector s){
    Vector string = new Vector() ;
    string = s ;
    System.out.println("TextFieldVector: " + string) ; //works fine as well
    String name = "" ;
    String dob = "" ;
    String web = "" ;
    name = string.elementAt(0).toString() ;
    dob = string.elementAt(1).toString() ;
    web = string.elementAt(2).toString() ;      
    System.out.println("NAME: " + name +
                       ", BIRTH: " + dob +
                       ", WEB: " + web) ; //values are correctly printed
    txtName.setText(name) ; //writes nothing (empty)
    txtDob.setText(dob) ; //writes nothing (empty)
    txtWeb.setText(web) ; //writes nothing (empty)
}Anyone got a hint on how I should svolve this one?
thanks
gmtongar

Hi,
It's a bit difficult for me to provide you a fully working program, this program consist for the moment of six classes. But I'll post the table class and the TextFieldGUI class, I'm also using a tableModel, which I guess you know.
tableClass:
public class TableClass extends JPanel implements MouseListener{
    private TextFieldGUI textFieldGUI ;
    private mainGUI gui ;
    private SQLCon sqlCon ;
    private JTable table ;
    private ResultSetTableModel tableModel ;       
    private int row ;
    private JTextField n, d, w ;
    private Vector string ;
    private String empty ;
    public TableClass(){
        createSQLConnection() ;
        createTableGUI() ;
    public void createSQLConnection(){
        sqlCon = new SQLCon() ;      
        sqlCon.sqlSelectMaxBandID() ;
        sqlCon.runCheckBand() ;       
    public void createTableGUI(){
        JPanel panCenter = new JPanel() ;
        String meta = sqlCon.sqlDefaultBandValue() ;       
        try{
            tableModel = new ResultSetTableModel(meta) ;
            table = new JTable(tableModel) ;          
            table.setPreferredScrollableViewportSize(new Dimension(875,250)) ;
            table.addMouseListener(this) ;
            table.getSelectionModel().addListSelectionListener(
                new ListSelectionListener(){
                    public void valueChanged(ListSelectionEvent event){
                        if (event.getValueIsAdjusting())
                            return ;
                        row = table.getSelectedRow() ;                       
         catch(SQLException sqle){
            JOptionPane.showMessageDialog(null, sqle.getMessage(),
            "Feilmelding", JOptionPane.ERROR_MESSAGE) ;
        catch(ClassNotFoundException cnfe){
            JOptionPane.showMessageDialog(null, cnfe.getMessage(),
            "Feilmelding", JOptionPane.ERROR_MESSAGE) ;
        int v = ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED ;
        int h = ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED ;
        JScrollPane scrollPane = new JScrollPane(table, v, h) ;       
        panCenter.add(scrollPane) ;
        panCenter.setBorder(new MatteBorder(6,6,6,6, Color.gray)) ;
        panCenter.setBackground(Color.lightGray) ;
        add(panCenter) ;
    public void mouseClicked(java.awt.event.MouseEvent mouseEvent) {
        textFieldGUI = new TextFieldGUI() ;             
        gui = new mainGUI() ;
        int tabbedIndex = gui.getSelectedIndex() ;
        int col = tableModel.getColumnCount() ;
        string = new Vector() ;
        empty = new String() ;
        for(int index = 0; index < col ; index++){
            if(table.getValueAt(row, index) == null)
                string.addElement(empty) ;
            else
                string.addElement(table.getValueAt(row, index).toString()) ;
        if(tabbedIndex == 0){       
          textFieldGUI.setTextFieldValues(string) ;
} TextFieldGUI-class
public class TextFieldGUI extends JPanel implements ActionListener{
    private SQLCon sqlCon  ;
    private JPanel panSouth01 ;
    private JPanel panSouth02 ;
    private JPanel panSouth03 ;
    private JPanel panSouth04 ;
    private JPanel panSouth05 ;
    public JTextField txtName ;
    public JTextField txtDob ;
    public JTextField txtWeb ;
    private JButton order ;
    private DefaultComboBoxModel countryModel ;
    private JComboBox countryComboBox ;
    private String strCountry ;   
    private String name  ;
    private String dob  ;
    private String web ;
    public TextFieldGUI(){
        createSQLConnection() ;
        createTextFieldGUI() ;
        fillComboCountry() ;
    public void createSQLConnection(){
        sqlCon = new SQLCon() ;        
    public void createTextFieldGUI(){
        JPanel panText = new JPanel() ;
        panText.setBorder(new MatteBorder(6,6,6,6, Color.gray)) ;      
        panText.setBackground(Color.lightGray) ;        
        panSouth01 = new JPanel() ;
        panSouth01.setLayout(new GridLayout(2,1,5,5)) ;
        panSouth01.setBackground(Color.lightGray) ;
        JLabel lblName = new JLabel("Name") ;
        txtName = new JTextField(30) ;
        txtName.setFont(
            new Font("Serif", Font.BOLD, 14)) ;
        txtName.addActionListener(this) ;
        panSouth01.add(lblName) ;
        panSouth01.add(txtName) ;
        panText.add(panSouth01) ;
        panSouth02 = new JPanel() ;
        panSouth02.setBackground(Color.lightGray) ;
        panSouth02.setLayout(new GridLayout(2,1,5,5)) ;         
        JLabel lblDOB = new JLabel("DOB(DD-MM-YYYY)") ;
        txtDob = new JTextField(10) ;
        txtDob.setFont(
            new Font("Serif", Font.BOLD, 14)) ;
        txtDob.addActionListener(this) ;
        panSouth02.add(lblDOB) ;
        panSouth02.add(txtDob) ;
        panText.add(panSouth02) ;
        panSouth03 = new JPanel() ;
        panSouth03.setBackground(Color.lightGray) ;
        panSouth03.setLayout(new GridLayout(2,1,5,5)) ;
        JLabel lblWeb = new JLabel(" WEB-site") ;
        txtWeb = new JTextField(22) ;
        txtWeb.setFont(
            new Font("Serif", Font.BOLD, 14)) ;
        txtWeb.addActionListener(this) ;
        panSouth03.add(lblWeb) ;
        panSouth03.add(txtWeb) ;
        panText.add(panSouth03) ;
        panSouth04 = new JPanel() ;
        panSouth04.setBackground(Color.lightGray) ;
        panSouth04.setLayout(new GridLayout(2,1,5,5)) ;
        JLabel lblCountry = new JLabel("Country") ;
        countryModel = new DefaultComboBoxModel() ;
        countryComboBox = new JComboBox(countryModel) ;
        countryComboBox.setMaximumRowCount(5) ;
        countryComboBox.addActionListener(this) ;
        panSouth04.add(lblCountry) ;
        panSouth04.add(countryComboBox) ;
        panText.add(panSouth04) ;
        add(panText) ;
    public void fillComboCountry(){
        Vector countryVektor = new Vector() ;
        countryVektor.removeAllElements() ;
        countryVektor = sqlCon.sqlCountry() ;
        countryModel.removeAllElements() ;
        try{           
            for (int index = 0; index < countryVektor.size (); index++)
                countryModel.addElement(countryVektor.get (index));       
        catch(NullPointerException npe){
    public String getName(){
        if(txtName.getText() == "")
            return null ;
        else
            return txtName.getText().toUpperCase() ;
    public String getDob(){
        if(txtDob.getText() == "")
            return null ;
        else
            return txtDob.getText() ;
    public String getWeb(){
        if(txtWeb.getText() == "")
            return null ;
        else
            return txtWeb.getText() ;
    public String getCountry(){
        if(strCountry == "")
            return null ;
        else
            return strCountry ;
    public void actionPerformed(java.awt.event.ActionEvent actionEvent) {
    //This is where the action is... or the lack of it...
    public void setTextFieldValues(Vector s){
        Vector string = new Vector() ;
        string = s ;
        System.out.println("TextFieldVector: " + string) ;
        name = string.elementAt(0).toString() ;       
        dob = string.elementAt(1).toString() ;       
        web = string.elementAt(2).toString() ;
        System.out.println("NAME: " + name +
                           ", BIRTH: " + dob +
                           ", WEB: " + web) ;
        txtName.setText(name) ;
        txtDob.setText(dob) ;       
        txtWeb.setText(web) ;
        txtName.repaint() ;
        txtDob.repaint() ;
        txtWeb.repaint() ;
}I hope this helps in helping me... And thanks so far
As you can see I'm using the ListSelectionListener as well. Perhaps in a slightly different way, if you have a better suggestion, please let me know.
gmtongar

Similar Messages

  • Communication problem between NetBeans and Tomcat

    hi!
    i got a quite mysterious problem. here is what happens:
    - i start NetBeans 5.5.1 (the first time)
    - i want to debug my JSF-Project, the Debugger starts
    - After a few seconds the debugger waits for tomcat (it sais: "Waiting for Tomcat...") and tomcat starts
    - Again after a few seconds the tomcat-debugger-output sais "Tomcat startet in 3333 ms".
    okay.
    when i enter http://localhost:8084/ in my browser i get the tomcat homepage, so the server has definitely started! But nothing happens in NetBeans and nothing happens with my project....
    In the lower-right corner i see this blue working-bar that sais "deploying project" but nothing happens. The Project-Debugger-Output still sais "Waiting for Tomcat..." but nothing happens...
    And after something around 3 minutes (i guess it's a timeout) i get the error "Starting of Tomcat failed." But is HAS started, i can login to the Administration-Area in my browser!
    so i guess there is a communication problem between netbeans an tomcat. Netbeans waits for a message from tomcat but tomcat doesn't send it..or netbeans doesn't understand it.
    But the story goes on:
    When i press the debug-button a second time it takes only a few seconds till i get the message: "Tomcat server port 8084 already in use". OF COURSE! Because Tomcat has already startet and can't be stoped by NetBeans.
    i'm trying to solve this problem for 4 days now, so i would be very happy if anyone has an idea where to start/continue the search...
    thanks,
    flo.
    some system-info:
    - windows vista business 32-bit
    - no firewall is running
    - AntiVir Personal Edition IS running
    - Yahoo Widgets Engine IS running
    - no other software is running
    and finally the tomcat-log:
    Using CATALINA_BASE: C:\Users\Administrator\.netbeans\5.5.1\apache-tomcat-5.5.17_base
    Using CATALINA_HOME: C:\Program Files\NetBeans\enterprise3\apache-tomcat-5.5.17
    Using CATALINA_TMPDIR: C:\Users\Administrator\.netbeans\5.5.1\apache-tomcat-5.5.17_base\temp
    Using JRE_HOME: C:\Program Files\Java\jdk1.5.0_12
    Listening for transport dt_shmem at address: tomcat_shared_memory_id
    21.09.2007 18:27:50 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
    INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.5.0_12\bin;.;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\ThinkPad\ConnectUtilities;C:\Program Files\Common Files\Teleca Shared;C:\Program Files\Common Files\Adobe\AGL;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\cvsnt;
    21.09.2007 18:27:50 org.apache.coyote.http11.Http11BaseProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8084
    21.09.2007 18:27:50 org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1862 ms
    21.09.2007 18:27:50 org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    21.09.2007 18:27:50 org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
    21.09.2007 18:27:50 org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    21.09.2007 18:27:53 org.apache.coyote.http11.Http11BaseProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-8084
    21.09.2007 18:27:54 org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    21.09.2007 18:27:54 org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/31 config=null
    21.09.2007 18:27:54 org.apache.catalina.storeconfig.StoreLoader load
    INFO: Find registry server-registry.xml at classpath resource
    21.09.2007 18:27:54 org.apache.catalina.startup.Catalina start
    INFO: Server startup in 3626 ms

    As i wrote before, the same problem occured for me. I have found a solution which is : Go to tools menu and then select options . In the proxy info, select No Proxy.
    I hope this help you

  • Communication problem

    Hi, I think I have a communication problem between the servers in a cluster,
              I attached a picture of the administration console where it seems that one
              server in the cluster cant communicate with the other.
              (one server is running on Windows and the other on Linux)
              Any ideas to solve this problems?
              Thanks
              [console.jpg]
              

    Using multicastTest I found that the messages that the windows machine
              produces are lost. Nobody receives that messages.
              I don't know what might be happening
              cheers
              "Campot" <[email protected]> escribió en el mensaje
              news:[email protected]..
              > Hi, I think I have a communication problem between the servers in a
              cluster,
              > I attached a picture of the administration console where it seems that one
              > server in the cluster cant communicate with the other.
              > (one server is running on Windows and the other on Linux)
              >
              > Any ideas to solve this problems?
              > Thanks
              >
              >
              >
              

  • Communication problem from the vpn-anyconnect to easy-vpn-remote

    Hi Team,
    I have a communication problem from the vpn-anyconnect to easy-vpn-remote, I´ll explain better bellow and see the attached
    topology:
    1) VPN Tunnel between HQ to Branch Office - That´s OK
    2) VPN Tunnel between Client AnyConnect to HQ - That´s OK
    The idea is that the Client Anyconnect is to reach the LAN at Branch Office, but did not reach.
    The communication is stablished just when I start a session (icmp and/or rdp) from Branch Office to the Client AnyConnect,
    in this way, the communication is OK, but just during a few minutes.
    Could you help me?
    Bellow the IOS version and configurations
    ASA5505 Version 8.4(7)23 (headquarters)
    ASA5505 Version 8.4(7)23 (Branch)
    **************** Configuration Easy VPN Server (HQ) **************** 
    crypto dynamic-map DYNAMIC-MAP 5 set ikev1 transform-set ESP-AES-256-SHA
    crypto map outside-link-2_map 1 ipsec-isakmp dynamic DYNAMIC-MAP
    crypto map outside-link-2_map 65535 ipsec-isakmp dynamic SYSTEM_DEFAULT_CRYPTO_MAP
    crypto map outside-link-2_map interface outside-link-2
    access-list ACL_EZVPN standard permit 10.0.0.0 255.255.255.0 
    access-list ACL_EZVPN standard permit 192.168.1.0 255.255.255.0 
    access-list ACL_EZVPN standard permit 192.168.50.0 255.255.255.0 
    access-list ACL_EZVPN standard permit 10.10.0.0 255.255.255.0 
    group-policy EZVPN_GP internal
    group-policy EZVPN_GP attributes
     split-tunnel-policy tunnelspecified
     split-tunnel-network-list value ACL_EZVPN
     nem enable 
    tunnel-group EZVPN_TG type remote-access
    tunnel-group EZVPN_TG general-attributes
     default-group-policy EZVPN_GP
    tunnel-group EZVPN_TG ipsec-attributes
     ikev1 pre-shared-key *****
    object-group network Obj_VPN_anyconnect-local
     network-object 192.168.1.0 255.255.255.0
     network-object 192.168.15.0 255.255.255.0
    object-group network Obj-VPN-anyconnect-remote
     network-object 192.168.50.0 255.255.255.0
    object-group network NAT_EZVPN_Source
     network-object 192.168.1.0 255.255.255.0
     network-object 10.10.0.0 255.255.255.0
    object-group network NAT_EZVPN_Destination
     network-object 10.0.0.0 255.255.255.0
    nat (inside,outside-link-2) source static Obj_VPN_anyconnect-local Obj_VPN_anyconnect-local destination static Obj-VPN-
    anyconnect-remote Obj-VPN-anyconnect-remote no-proxy-arp route-lookup
    nat (inside,outside-link-2) source static NAT_EZVPN_Source NAT_EZVPN_Source destination static NAT_EZVPN_Destination 
    NAT_EZVPN_Destination no-proxy-arp route-lookup
    nat (outside-link-2,outside-link-2) source static Obj-VPN-anyconnect-remote Obj-VPN-anyconnect-remote destination static 
    NAT_EZVPN_Destination NAT_EZVPN_Destination no-proxy-arp route-lookup
    **************** Configuration VPN AnyConnect (HQ) **************** 
    webvpn
     enable outside-link-2
     default-idle-timeout 60
     anyconnect-essentials
     anyconnect image disk0:/anyconnect-win-2.5.2014-k9.pkg 1
     anyconnect profiles Remote_Connection_for_TS_Users disk0:/remote_connection_for_ts_users.xml
     anyconnect enable
     tunnel-group-list enable
    access-list split-tunnel standard permit 192.168.1.0 255.255.255.0 
    access-list split-tunnel standard permit 192.168.15.0 255.255.255.0 
    access-list split-tunnel standard permit 10.0.0.0 255.255.255.0 
    group-policy clientgroup internal
    group-policy clientgroup attributes
     wins-server none
     dns-server value 192.168.1.41
     vpn-tunnel-protocol ssl-client 
     split-tunnel-policy tunnelspecified
     split-tunnel-network-list value split-tunnel
     default-domain value ipconnection.com.br
     webvpn       
      anyconnect keep-installer installed
      anyconnect ssl rekey time 30
      anyconnect ssl rekey method ssl
      anyconnect profiles value Remote_Connection_for_TS_Users type user
      anyconnect ask none default anyconnect
    tunnel-group sslgroup type remote-access
    tunnel-group sslgroup general-attributes
     address-pool vpnpool
     authentication-server-group DC03
     default-group-policy clientgroup
    tunnel-group sslgroup webvpn-attributes
     group-alias IPConnection-vpn-anyconnect enable
    object-group network Obj_VPN_anyconnect-local
     network-object 192.168.1.0 255.255.255.0
     network-object 192.168.15.0 255.255.255.0
    object-group network Obj-VPN-anyconnect-remote
     network-object 192.168.50.0 255.255.255.0
    object-group network NAT_EZVPN_Source
     network-object 192.168.1.0 255.255.255.0
     network-object 10.10.0.0 255.255.255.0
    object-group network NAT_EZVPN_Destination
     network-object 10.0.0.0 255.255.255.0
    nat (inside,outside-link-2) source static Obj_VPN_anyconnect-local Obj_VPN_anyconnect-local destination static Obj-VPN-
    anyconnect-remote Obj-VPN-anyconnect-remote no-proxy-arp route-lookup
    nat (inside,outside-link-2) source static NAT_EZVPN_Source NAT_EZVPN_Source destination static NAT_EZVPN_Destination 
    NAT_EZVPN_Destination no-proxy-arp route-lookup
    nat (outside-link-2,outside-link-2) source static Obj-VPN-anyconnect-remote Obj-VPN-anyconnect-remote destination static 
    NAT_EZVPN_Destination NAT_EZVPN_Destination no-proxy-arp route-lookup

    Hi,
    the communication works when you send traffic from easyvpn branch side because it froms the IPSEC SA for local subnet and anyconnect HQ pool. The SA will only form when branch initiates the connection as this is dynamic peer connection to HQ ASA.
    when there no SA between branch and HQ for this traffic, HQ ASA has no clue about where to send the traffic from anyconnect to branch network.
    I hope it explains the cause.
    Regards,
    Abaji.

  • Custom Events and Listeners between classes

    I've got a project I've been working on for weeks that I'm
    having yet another problem with. I'm trying to learn AS3 which is
    why it's taking so long but that's not important for this post.
    I wanted to create a custom event class so that I could make
    sure the event does not interfere with other "COMPLETE" events that
    are being passed between classes. In other words, I have a few
    things that need to complete prior to a function being called...
    one is some XML being loaded and another is a font loaded. So, I
    thought I would create a custom FontLoaded class that extends Event
    and make the type something like "FontLoadedEvent.LOADED". That way
    I could listen for the XML "Event.COMPLETE" and this font event
    also.
    Please tell me if I'm going down the wrong path here but I
    don't seem to be getting the dispatched event for my new custom
    event. Also, how does one detect if it's being dispatched other
    than if the eventListener is fired? Any other ways to test
    this?

    You can trace the event to see if it dispatched.
    Also, this is not a good case to create a new event. Custom
    events are used to store additional information. MouseEvent exists
    because Event doesn't have localX, localY, etc. properties. Since
    you don't seem to be throwing additional properties, you can use a
    regular event.
    trace(dispatchEvent(new Event("panelFontsLoaded"));
    addEventListener("panelFontsLoaded", onFontsLoaded);
    Static consts are used to help debug typos. The event type is
    just a string, often stored in a const.

  • Problem Moving Images Between Folders In Bridge (Windows 7 Professional)

    I have just bought a new computer with Windows 7 installed. I now also have Adobe CS5 Design Premium installed.
    When I try to MOVE or DRAG and DROP an image from one folder to another using Adobe Bridge I get the following error message:
    "The operation cannot be completed because you don't have sufficient permissions"
    When I try the same thing in Windows Explorer it tells me that I need Administrator Permission. I click OK and it works in that programme.I am actually the Administrator
    Can anybody tell me how I can configure Bridge to undertake this task please.
    Many thanks in anticipation
    Adrian 

    Dear friends
    To my great relief I have now sorted this issue and offer the following as the Correct Answer. My sincere and grateful thanks go to Curt and Yammer, above, who have helped me so much in sorting this Windows 7 issue which is clearly very relevant to Bridge users also. Any slowness to grasp what they have been saying is down to me!
    The key to solving this issue lies is understanding that in terms of Windows 7 Security, every internal or external hard drive, plus folders, sub-folders and files thereon has an OWNER. Also each OWNER has a certain level of PERMISSION to do things such as moving files to a different folder, deleting or re-naming them etc. If you try to do things that you don't currently have Permission to do, that is when you get an ‘Access Denied’ error message. Also your system has an Admistrator or Administrators and at the outset you need to ensure through the Control Panel that you are listed as one of them. .
    If, like me, you didn't realise these things, (and why would you if Microsoft or your computer or hard drive suppliers couldn't be bothered to really make sure you knew about them), then trying to fathom the ‘Access Denied’ problem becomes a stressful and frustrating nightmare as I can testify having spent a week at it!
    The steps that I took to resolve the issue and which I believe now constitute the 'Correct Answer' are as follows:
    First make sure that you have Administrator rights on your system via the Control Panel
    Next ‘right click’ on the Drive whose files you want to gain full access to, for example the drive that your pictures are stored on, and click on 'Properties'.
    Under the Security tab you will see a list of Groups and Users on this drive and the Permissions that they have to do things.
    Before doing anything to edit these Permissions, first click on the Advanced button. This opens another window with a tab showing the Owner of this drive.
    Click on the Owner tab and if you are not already listed as the owner, make yourself the owner by selecting your name from the list. I believe it should appear there if you are an admistrator or user. (In my case at this stage the owner was initially shown as an obscure string of numbers and letters which I believe identified the drive when it was connected to the lap top I was using before I upgraded my machine)
    Now be sure to check the box that says "Replace Owner on Subcontainers and Objects" and the click Apply. On completion of this step, the drive in question and all the folders, subfolders and files thereon should now be 'owned' by you. You could check this out by right clicking on a particular folder then clicking Properties > Security > Advanced > Owner. Your name should appear. So far so simples!
    Now go back to the Security Tab for your drive (Step 2 / 3 above) and look at the Permissions you currently have. Your aim now is to allow yourself 'Full Control.' If you don’t currently have this level of permission click Edit, select your name on the list, check ‘Full Control’ and 'Apply' the change.
    I think I'm right in saying that at this point whilst still working in the Drive directory you are now given the option of ticking boxes which allow you to, in effect, cascade the permission you have just granted yourself to all the files and folders on that drive. Tick the box to allow this and Windows should then take care of the rest.If I'm not quite correct here then in my particular case, for example, all my images were stored on my external drive. The top level, or 'parent' folder in which all my pictures could be found was the 'My Pictures' folder and I had created a number of folders and subfolders ('child ' folders) within that folder. The permissions I gave to the Parent folder – My Pictures – were cascaded down through the Child folders.
    On completion of the above step I tested the result in Windows Explorer by dragging a few files back and forth between folders and it now worked perfectly - I was now able to move / delete / rename etc all files without now getting the dreaded access denied message. What a sense of relief! This meant that I could now open Bridge normally rather than having to right click it and 'Run As Admistrator' - albeit that is a very useful thing to do until you get the problem sorted as described.
    Somebody said to me the other night that when you buy a car you buy it to enjoy the drive, not to have to tinker with the engine. Microsoft and companies that supply and install Windows 7 on new computers please take note!

  • Selecting and moving many messages not working - try sorting by message classes

    I posted this a while back, and have an update now.
    I file my sent items.  Call me crazy, but I like to at the end of every quarter, move sent items from that quarter into sub folders.  It's usually 2-4000 items, and ever since I installed OL2010, I have had weird issues when trying to clean my Sent items.
    Example:  Select 2000 items, sorted by date from Sent Items.  Drag and drop to my 2009Q4 folder.  It then prompts me "Creating a new item from the selected items could take some time. Are you sure you want to create a new item from these 2000 items?"
    So I figured possible Ctrl is stuck down or something, so I right click, Move, select the folder.  Same issue.
    I start selecting smaller data sets.  I got to about 50-60 items at a time that I was able to move and not get that message.  I got frustrated and stopped working on it.
    This morning, I decided to re-test this.  Same issue presents itself.  So instead, I sorted by message class.  I was able to select 3800 message items.  The remaining items were messages with attachments, text/mobile messages, and calendar invite responses.
    It appears that some combination of selecting multiple message classes was triggering my issue.  I suspect the newest of them, the mobile messages to be the issue, so I deleted them, and retried, nope, same error, even selecting only the show message class types.   Would like to see this fixed, of course, and will be sending a frown with the link to this thread as well.
    Chris

    I had this problem too.  For me, simply sorting by message class, then finding all the calendar items and moving them first, then going back and doing the rest, allowed me to move them as I liked.   However, its not clear to me that I have
    all message classes (not sure what they all are), so it could be there are other message classes that cause problems when you move "mixed classes".   I do think this is an MS Outlook bug, but not clear anyone has reported it to MS.  ;-<
    You can prove this by simply selecting a calendar item and a msg, and try moving the two.  You will have this issue.
    However, you'd think that MS itself would be a vast user of MS Outlook and if we're discovering this, you'd think MS internal folks are too, so I'm deferring to them to self-resolve.   Until then, I'll just use this workaround.
    Definition of "Message classes" for others reading this...  You may have already inferred, but two examples of "classes" are a normal email (.msg) and a calendar item.  You can sort these by clicking on the "icon" field at the top of your email
    folder, just to the right of the "bell" (Reminders).   Not sure how to put a .JPG in this posting, since a picture would explain this much better than I can using words.

  • Problem sorting data in a file?

    I have a problem sorting this file alphabetically by second name. Basically, my method sorts each column alphabetically but i would like to sort the file according to the second name. I really really need help. Thanks
    File:
    Moe     Carl
    Saul     Sergio
    Rocky     Louis
    Ike     Ziken     
    This is how my method sorts the file:
    Ike          Carl
    Moe          Louis
    Rocky          Sergio
    Saul          ziken
    Instead
    Moe     Carl
    Rocky      Louis
    Saul     Sergio
    Ike     Ziken
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.util.*;
    class thedata implements Comparable
              private String firstname;
              private String secondname;
        public void setFirstname(String firstname)
                 this.firstname = firstname;
        public String getFirstname()
                  return firstname;
        public void setSecondname(String secondname)
                this.secondname = secondname;
        public String getSecondname()
                return secondname;
        public int compareTo(Object Student) throws ClassCastException
                if (!(Student instanceof ShowData))
                throw new ClassCastException("Error");
                String sn = ((ShowData) Student).getSecondname();
                return this.secondname.compareTo(sn);
    public class sort {
            public static void main(String[] args) {
            sortmethod();
            public static void sortmethod(){
              int j = 0;
              thedata data[] = new thedata[4];
             try
                      FileInputStream fstream = new FileInputStream("datafile.txt");
                      DataInputStream in = new DataInputStream(fstream);
                      BufferedReader br = new BufferedReader(new InputStreamReader(in));
                      String line;
                      String[] firstname = new String[4];
                      String[] secondname = new String[4];
                      ArrayList<String> list = new ArrayList<String>();
                      while ((line = br.readLine()) != null)
                              list.add(line);
                      Iterator<String> itr = list.iterator();
                      int k = 0;
                      for (itr = list.iterator(); itr.hasNext();)
                              String str = itr.next().toString();
                              String[] splitSt = str.split("\t");
                     for (int i = 0; i < splitSt.length; i++)
                                 firstname[k] = splitSt[0];
                                 secondname[k] = splitSt[1];
                      k++;
                      arraysort(firstname);
                      arraysort(secondname);
                         for(j = 0;j < 4;j++)
                                 data[j] = new thedata();
                                 data[j].setFirstname(firstname[j]);
                                 data[j].setSecondname(secondname[j]);
                      for (int i = 0; i < 4; i++)
                                 thedata show = data;
                             String firstname1 = show.getFirstname();
                             String secondname1 = show.getSecondname();
                                  System.out.println(firstname1 + "\t\t" + secondname1);
                        catch (Exception e)
         private static void arraysort(String[] array)
              for(int i=0; i<array.length; i++)
                   for(int j=0; j<array.length-1-i; j++)
                        if(array[j].compareTo(array[j+1])>0)
                                  String temp1 ="";
    temp1= array[j];
    array[j] = array[j+1];
    array[j+1] = temp1;
    Edited by: 999363 on Apr 11, 2013 3:41 AM

    You're not sorting your objects, you're only sorting the firstname and secondname arrays separately, so they get scrambled. Sort the array of `thedata` objects.
    BTW this:
        public int compareTo(Object Student) throws ClassCastException
                if (!(Student instanceof ShowData))
                throw new ClassCastException("Error");
                String sn = ((ShowData) Student).getSecondname();
        }contains a complete waste of time. You should just remove 'throws ClassCastException' and the first two lines of the method. The test and throw happens anyway at the cast. If Student isn't an instance of ShowData the cast will fail with the same exception (and a much better error message).

  • Fifo communication problem shifted data

    Hello,
    Currently,
    there is a communication between a laptop, equiped with a NI cardbus 8310,
    and a FPGA module controlling an industrial device.
    However, we have to transfer this program to a more efficient computer.
    The data transfered to the FPGA is sent thanks to a FIFO protocol.
    Unfortunately, we met several communication problems while using the main program and the FPGA program :
    - We have several error messages such as :
    -52007
    (The most recurrent) : "Called another software component" which
    happens when we would like to run the FPGA program and when we stop the
    main program.
    61046 : a clock error which occurs at close FPGA VI reference.
    We tried to solve these problems by creating a small program (without
    the FIFO protocol) aiming to test the communication between the
    powerfull computer and the FPGA. It worked.
    - Then, we created
    a program (on the computer) including the FIFO communication to test with the FPGA program. It
    roughly worked but the data were shifted. (This program runs on the
    laptop but not on the computer)
    - Then, we created a
    new project just to test the communication. It's a simple program in the
    FPGA :  when we click on OK button, it increments variables and
    transmits them to the host. In the host.vi, when we valid a button, we
    say to the FPGA "OK button = true" thus enabling reading of the data
    from the FPGA. This program has the same FIFO method as the main program
    but it doesn't work. Actually, in debug mode, we can see variables
    incrementation but in real time mode, the program blocks in FIFO
    reading.
    - We would like to mention that we have two versions of Labview : labview v8.6 on the laptop and  labview 2009 on the computer.
    Hoping that you will be able to help us,
    PS : in all test programs, we used the same way to implement the FIFO such as the first program which works on the laptop with labview v8.6.

    hello,
    Thank you for your answer,
    I understand your answer but the problem we have refers to the fifo. In fact, the program runs well on a laptop
    but when we run it on another computer, the data from fifo are shifted. We don't understand why?
    Morevover, we did another program with fifo communication and the program blocked during the fifo reading
    and we just stop it with the abort program button. Do you know why?
    We tested the FPGA program with the simulation and it worked normally.
    Best regrads
    Mathieu

  • Controlling events between classes

    hello
    i know i'm asking a lot, but i couldn't find anything. the problem is i've got a jframe and some panels with buttons.
    eg:
    class A extends JFrame
    getContentPane().add( B ) ;
    getContentPane().add( C ) ;
    class B extends JPanel
    add( button1 ) ;
    add( button2 ) ;
    class C extends JPanel
    add( button3 ) ;
    add( button4 ) ;
    where do i add ActionListeners? how do i pass information between classes? if button1 is clicked -> class A should know it.
    i tried to do this in class A: objectOfB.button1 (access button1 directly) - didn't work - why?
    if a button1 is clicked i want to remove the jpanel and replace it with another one. how should i do this?
    Thank You All

    Check out the java tutorials. There are great examples that show you how to do what you want to do

  • Communication problems BW-BPC

    Hi.
    We'va a communication problems in our BW-BPC system, it seems more a basis issue than a BPC configuration problem, but itu2019s the only component affected.
    Version details:
    SAP BPC 7.5 NW installed in:
       - SAP Netweaver 7.01
       - Windows Server 2003
    Since last week we've been getting an error when trying to open xml dynamic templates from the BPC clients. Seems that the communication between BPC .net server and bpc abap server is failing, but we don't realize what could be causing this.
    Everything worked before last Friday. We're running some archiving test in the system, and SNC configuration for a different project (BO) so we assume one of this two processes could have affected the communications, but still didn't found who and how.
    Here are the logs related:
    DEV_RFC:
    Trace file opened at 20120306 104437 MET SAP-REL 701,0,117 RFC-VER nU 3 1200935
    ======> CPIC-CALL: 'ThSAPCMRCV'
    no data received
    ABAP Programm: SAPMSSY1 (Transaction: )
    Called function module: RSDRP_EXECUTE_AT_QUERY_RFC
    User: BPC_SYSADMIN (Client: 222)
    Destination: NONE (handle: 1, 48680463, {4F549CF9-9F93-57D7-E100-0000AC1A5163})
    SERVER> RFC Server Session (handle: 1, 48680463, {4F549CF9-9F93-57D7-E100-0000AC1A5163})
    SERVER> Caller host:
    SERVER> Caller transaction code:  (Caller Program: SAPLRSDRP)
    SERVER> Called function module: RSDRP_EXECUTE_AT_QUERY_RFC
    Error RFCIO_ERROR_NO_DATA in abrfcpic.c : 3481
    CPIC-CALL: 'ThSAPCMRCV'
    no data received
    Error RFCIO_ERROR_MESSAGE in abrfcio.c : 1829
    DEV_WP:
    A Tue Mar  6 10:44:37 2012
    A  RFC 3476  CONVID 48680463
    A   * CMRC=0 DATA=1 STATUS=2 SAPRC=0 ThSAPCMRCV no data received
    A  RFC> ABAP Programm: SAPMSSY1 (Transaction: )
    A  RFC> User: BPC_SYSADMIN (Client: 222)
    A  RFC> Destination: NONE (handle: 1, 48680463, {4F549CF9-9F93-57D7-E100-0000AC1A5163})
    A  RFC> Called function module: RSDRP_EXECUTE_AT_QUERY_RFC
    A  RFC SERVER> RFC Server Session (handle: 1, 48680463, {4F549CF9-9F93-57D7-E100-0000AC1A5163})
    A  RFC SERVER> Caller host:
    A  RFC SERVER> Caller transaction code:  (Caller Program: SAPLRSDRP)
    A  RFC SERVER> Called function module: RSDRP_EXECUTE_AT_QUERY_RFC
    A  *** ERROR => RFC ======> CPIC-CALL: 'ThSAPCMRCV'
    no data received
    [abrfcio.c    8175]
    A  *** ERROR => RFC Error RFCIO_ERROR_NO_DATA in abrfcpic.c : 3481
    CPIC-CALL: 'ThSAPCMRCV'
    no data received
    [abrfcio.c    8175]
    A  RFC 3180  CONVID 48680463
    A   * CMRC=0 DATA=1 STATUS=2 SAPRC=0 comread no data received
    A  *** ERROR => RFC Error RFCIO_ERROR_MESSAGE in abrfcio.c : 1829
    [abrfcio.c    8175]
    Any help would be really appreciated.
    Thanks and regards!!

    Hi Armando
    Try to post your question in SAP Basis section. You might get more help from here.
    Regards
    Sunny

  • I'm having problems Sorting Objects

    Hello everyone!
    I'm having problems sorting objects. Here is what I got at moment... I'm trying using "Collections.sort" with objects, and I think my problem is there but I don't know how to do in other way the sorting.
    Some help will be appreciated! Thank you!
    Movie.java
    import java.util.ArrayList;
    public class Movie
             public int itemNum;
             private String title;
             public String director;
             public Movie()
                 itemNum = -1;
                 title = "";
                 director = "";
             public Movie(int itemNum, String title, String director)
                this.itemNum = itemNum;
                this.title = title;
                this.director = director;
             public int getItemNum()
                 return itemNum;
             public String getTitle()
                 return title;
             public String getDirector()
                 return director;
               public void setItemNum(int a)
                  itemNum = a;
             public void setTitle(String b)
                 title = b;
             public void setDirector(String c)
                 director = c;
             public String toString()
                   String MovieInfo = title + "\t" + itemNum + "\t" + director ;
                   return MovieInfo;
    }MovieCollection.java
    import java.util.*;
    public class MovieCollection
        private ArrayList Movies;
         public MovieCollection()
                Movies = new ArrayList();
         public ArrayList getMovies()
                return Movies;
         public void add(Movie aMovie)
                Movies.add(aMovie);
    }MovieCollectionMenu.java
    import java.io.*;
    import java.util.*;
    public class MovieCollectionMenu
              private MovieCollection model;
              public MovieCollectionMenu ()
                   model = new MovieCollection();
            public MovieCollection getModel()
                return model;
             private static Scanner Insert = new Scanner(System.in);
              public static void main (String[] args)
                  MovieCollectionMenu menu = new MovieCollectionMenu();
                   while(true)
                 System.out.println("Movies Menu");
                 System.out.println("");     
                 System.out.println("1 - Add Movie");
                 System.out.println("2 - List Movies");
                 System.out.println("3 - Sort Movies");
                 System.out.println("0 - Exit");
                    System.out.print("\nSelect your option: ");
                 int option = Insert.nextInt();
                      switch(option)
                           case 0:   System.exit(0);break;
                         case 1:   menu.addMovie(); break;
                         case 2:   menu.listMovies(); break;
                         case 3:   menu.sortMovie(); break;
                         default:  System.out.println("Invalid Selection!");
                      System.out.println("\n");
              private void addMovie()
                   Movie aMovie = new Movie();
                System.out.print("\nEnter movie name: ");
                   aMovie.setTitle(Insert.next());
                 System.out.print("Enter number of copies: ");
                aMovie.setItemNum(Insert.nextInt());
                System.out.print("Enter director name: ");
                aMovie.setDirector(Insert.next());
                model.add(aMovie);
            private void listMovies()
                   ArrayList Movies = model.getMovies();
                   for (int i=0; i<Movies.size(); i++)
                        System.out.println(Movies.get(i).toString());
              private void sortMovie()
                 ArrayList Movies = model.getMovies();
                 Collections.sort(Movies);
    }

    JBStonehenge, Melanie_Green, paulcw thank u so much for ur support!!!!
    I did many changes in my code, and I think in a simple way... I can sort the strings, but I'm having problems to sort the integers from the array I created..
    I read a lot of sorting and this was the best I could do, please can you change my code to sort the integers?
    Thank u people!
    Here it is my code:
    import java.io.*;
    import java.util.*;
    public class MyMovies {
         public static void main(String[] args) {
              MyMovies Movies = new MyMovies();
              Movies.runEverything();
         private static final int MAX_SIZE = 100;
         private static int numberOfMovies = 0;
         private static Movie[] array = new Movie[MAX_SIZE];
         public void runEverything(){
              Scanner input = new Scanner(System.in);
              while (true) {
                   Menu();
                   int option;
                   try {
                        option = Integer.parseInt(input.nextLine());
                   } catch (NumberFormatException e) {
                        System.out.println("You must enter a number!");
                        continue;
    switch (option) {
                   case 1:
                        addMovie(input);
                        System.out.println("\nThis movie was added:");
                        printMovie(numberOfMovies - 1);
                        break;               
                   case 2:
                        sortMoviesByTitle();
                        break;
                   case 3:
                        sortMoviesByYear();
                        break;
                   case 4:
                        sortMoviesByDirector();
                        break;
                   case 5:
                        printAllMovies();
                        break;
                   case 6:
                        System.out.println("You logout with success!");
                        input.close();
                        System.exit(0);
                        break;
              default:
                        System.out.println("You entered a wrong option! Please try again.");
                        break;
         private static void Menu() {
              System.out.println("\n1 - Add a movie");
              System.out.println("2 - Sort movies by name");
              System.out.println("3 - Sort movies by year");
              System.out.println("4 - Sort movies by director");
              System.out.println("5 - Display movies");
              System.out.println("6 - Quit");
              System.out.print("\nPlease enter an option:");
              private static void printMovie(int i) {
              if (i < numberOfMovies) {
                   System.out.println("\"" + array.getTitle() + "\", " + array[i].getYear() + ", \"" + array[i].getDirector() + "\"");
         private void printAllMovies() {
              for (int i = 0; i < numberOfMovies; i++) {
                   System.out.print(String.valueOf(i+1) + "-");
                   printMovie(i);
         private static void addMovie(Scanner input) {
              System.out.print("Enter movie:");
              String title = input.nextLine();
              int year = 0;
              while (true) {
                   try {
                        System.out.print("Enter the year of movie:");
                        year = Integer.parseInt(input.nextLine());
                        break;
                   } catch (NumberFormatException e) {
                        System.out.println("You must enter an integer!");
                        continue;
              System.out.print("Please enter the director:");
              String director = input.nextLine();
              array[numberOfMovies] = new Movie(title, year, director);
              numberOfMovies++;
         private void sortMoviesByTitle(){
         boolean swapped = true;
              int i = 0;
              String tempTitle, tempDirector;
              int tempYear;
              while (swapped) {
                   swapped = false;
                   i++;
                   for (int j = 0; j < numberOfMovies - i; j++) {
                        if ( array[j].getTitle().compareToIgnoreCase(array[j + 1].getTitle()) > 0) {   
                             tempTitle = array[j].getTitle();
                             tempYear = array[j].getYear();
                             tempDirector = array[j].getDirector();
                             array[j].setTitle(array[j + 1].getTitle());
                             array[j].setYear(array[j + 1].getYear());
                             array[j].setDirector(array[j + 1].getDirector());
                             array[j + 1].setTitle(tempTitle);
                             array[j + 1].setYear(tempYear);
                             array[j + 1].setDirector(tempDirector);
                             swapped = true;
              System.out.println("The movies are sorted by title.");
         private void sortMoviesByYear(){
         boolean swapped = true;
              int i = 0;
              String tempTitle, tempDirector;
              int tempYear;
              while (swapped) {
                   swapped = false;
                   i++;
                   for (int j = 0; j < numberOfMovies - i; j++) {
                        if ( array[j].getYear().compareToIgnoreCase(array[j + 1].getYear()) > 0) {   
                             tempTitle = array[j].getTitle();
                             tempYear = array[j].getYear();
                             tempDirector = array[j].getDirector();
                             array[j].setTitle(array[j + 1].getTitle());
                             array[j].setYear(array[j + 1].getYear());
                             array[j].setDirector(array[j + 1].getDirector());
                             array[j + 1].setTitle(tempTitle);
                             array[j + 1].setYear(tempYear);
                             array[j + 1].setDirector(tempDirector);
                             swapped = true;
              System.out.println("The movies are sorted by year.");
         private void sortMoviesByDirector(){
         boolean swapped = true;
              int i = 0;
              String tempTitle, tempDirector;
              int tempYear;
              while (swapped) {
                   swapped = false;
                   i++;
                   for (int j = 0; j < numberOfMovies - i; j++) {
                        if ( array[j].getDirector().compareToIgnoreCase(array[j + 1].getDirector()) > 0) {   
                             tempTitle = array[j].getTitle();
                             tempYear = array[j].getYear();
                             tempDirector = array[j].getDirector();
                             array[j].setTitle(array[j + 1].getTitle());
                             array[j].setYear(array[j + 1].getYear());
                             array[j].setDirector(array[j + 1].getDirector());
                             array[j + 1].setTitle(tempTitle);
                             array[j + 1].setYear(tempYear);
                             array[j + 1].setDirector(tempDirector);
                             swapped = true;
              System.out.println("The movies are sorted by director.");
    /* ----- My Movie Class ----- */
    class Movie {
         private String title;
         private int year;
         private String director;
         public Movie(String title, int year, String director) {
              setTitle(title);
              setYear(year);
              setDirector(director);
         public String getTitle() {
              return title;
         public void setTitle(String title) {
              this.title = title;
         public int getYear() {
              return year;
         public void setYear(int year) {
              this.year = year;
         public String getDirector() {
              return director;
         public void setDirector(String director) {
              this.director = director;
    }Edited by: AntiSignIn on Mar 24, 2010 7:30 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Weblogic cluster - communication problems

              We have 2 app servers clustered and they seem to be running fine other than the
              following issue. Usually, once, maybe twice a day, the servers are unable to communicate...
              It happens early in the morning when load is low... So it does not seem to be
              a load issue. Could something be timing out? We are using 6.1 and we have JMS
              on one of the servers. The only RMI we are doing between the 2 app servers are
              the JMS calls, which is where we are seeing the problem. Any help would be great
              

              Thank you. We will try this.
              "Zach" <[email protected]> wrote:
              >Check. SP3. This is likely a DGC timeout mismatch problem that was
              >fixed
              >in SP3.
              >_sjz.
              >
              >"Rajesh Mirchandani" <[email protected]> wrote in message
              >news:[email protected]...
              >> If you are on WLS 6.1SP2, upgrade to SP3.
              >>
              >> Ryan Stuetzer wrote:
              >>
              >> > Zach,
              >> >
              >> > Another symptom we are noticing (during the time we are having the
              >communication
              >> > problem) is that the weblogic console displays the state of the
              >cluster(s) as
              >> > not running. It appears as if they are not participating in the cluster,
              >however
              >> > they are running and processing our client requests normally according
              >to our
              >> > logs.
              >> >
              >> > Thanks,
              >> > Ryan
              >> >
              >> > "Zach" <[email protected]> wrote:
              >> > >What type of exceptiosn are you receiving?
              >> > >_sjz.
              >> > >
              >> > >"Ryan Stuetzer" <[email protected]> wrote in message
              >> > >news:[email protected]...
              >> > >>
              >> > >> We have 2 app servers clustered and they seem to be running fine
              >other
              >> > >than the
              >> > >> following issue. Usually, once, maybe twice a day, the servers
              >are
              >> > >unable
              >> > >to communicate...
              >> > >> It happens early in the morning when load is low... So it does
              >not
              >> > >seem to
              >> > >be
              >> > >> a load issue. Could something be timing out? We are using 6.1
              >and we
              >> > >have
              >> > >JMS
              >> > >> on one of the servers. The only RMI we are doing between the 2
              >app
              >> > >servers
              >> > >are
              >> > >> the JMS calls, which is where we are seeing the problem. Any help
              >would
              >> > >be
              >> > >great
              >> > >> !!!!
              >> > >
              >> > >
              >>
              >> --
              >> Rajesh Mirchandani
              >> Developer Relations Engineer
              >> BEA Support
              >>
              >>
              >
              >
              

  • What is the fundamental difference between classful and classless routing?

    Hello to all,
    After reading several RFCs, guides and HOWTOs I am confused by an apparently trivial question - what is the basic, fundamental difference between classful and classless routing?
    I am well aware that - said in a very primitive way - the classful routing does not make use of netmasks and instead uses the address classes while the classless routing utilizes the netmasks and does not evaluate the address classes.
    However, already in 1985 the RFC 950 (Internet Standard Subnetting Procedure) stated that the networks can be further subnetted using the network mask. Since then the routers are expected to use network masks in the routing decision process in the precise way they use it nowadays. However, if the routers use network masks they are doing the classless routing, aren't they? Where is then the difference if we used to describe the 80's way of routing as a classful routing? Or was it already the classless routing? The RFCs about CIDR came gradually only in 1992 and 1993.
    If somebody could give me an insight into the key difference between classful and classless routing (and perhaps into the Internet history, how was the real routing done then) I would be most grateful.
    Thank you a lot!
    Regards,
    Peter

    Hello Mohammed,
    I am afraid we still have not understood each other ;) I am not looking for the algorithms used to select the best path. I am well aware of them, both Ford-Bellman and Dijkstra, and about their internals. By the way, these algorithms do not have any influence whether the routing is classful or classless because they deal with metrics, not with masks. For example, a classless EIGRP internally uses a distance-vector algorithm, not a SPF algorithm.
    I will try to explain once more what is my problem... There are two terms commonly used but badly defined: the classless routing and classful routing. Originally, I have thought that the classful routing works as follows:
    - The routing table consists only of classful destination networks (major nets), metrics and respective gateways. No network masks are stored in the table because we are classful, that is, we use exclusively the route classes and all entries in the routing table are already classful.
    - When routing a packet, the router looks at its destination IP address and determines the major net of this IP address (that is, the classful network that this IP address belongs to). Then it looks up the corresponding entry in the routing table and sends the packet to the respective gateway.
    I thought that the classful routing works in this way. I won't describe the classless routing - both of us know how do the today's routers select the next hop.
    However, in the RFCs 917 and 950 which were published in 1985, long ago before the term 'classless routing' was coined, the network mask was already defined and it was stated how the routers should work with it.
    Now I am confused. The terms classless addresses and classless routing were defined sometime in 1990's, therefore I assume that the routing before the invention of classless IP assignment can be in fact described as classful. In other words, I thought that the routing that was commonly used in 1980's did not use netmasks and can be described as classful because the notion of classlessness came first in 1990's. But now I see that netmasks were defined in 1985.
    Now where am I wrong? Do I understand the classful routing properly as I described it? Is it correct to talk about routing in that era as classful although the netmasks were already in use? Or was it already the classless routing?
    Basically I am trying to understand what was called the classful routing if the classless routing is said to be something different.
    Mohammed, I am most grateful to you for your patience and suggestions! Thank you indeed.
    Regards,
    Peter

  • Problems using RMI between linux and windows.

    I have problems using RMI between linux and windows.
    This is my scenario:
    - Server running on linux pc
    - Clients running on linux and windows PCs
    When a linux client disconnect, first time that server try to call a method of this client, a rmi.ConnectException is generated so server can catch it, mark the client as disconnected and won't communicate with it anymore.
    When a windows client (tested on XP and Vista) disconnect, no exceptions are generated (I tryed to catch all the rmi exception), so server cannot know that client is disconnected and hangs trying to communicate with the windows client.
    Any ideas?
    Thanks in advance.
    cambieri

    Thanks for your reply.
    Yes, we are implementing a sort of callback using Publisher (remote Observable) and Subscribers (remote Observer). The pattern and relative code is very well described at this link: http://www2.sys-con.com/ITSG/virtualcd/java/archives/0210/schwell/index.html (look at the notifySubscribers(Object pub, Object code) function).
    Everything works great, the only problem is this: when a Publisher that reside on a Linux server try to notify something to a "dead" Subscriber that reside on a Windows PC it does't receive the usual ConnectException and so tends to hang.
    As a workaround we have solved now starting a new Thread for each update (notification), so only that Thread is blocked (until the timeout i guess) and not the entire "notifySubscribers" function (that contact all the Subscribers).
    Beside this, using the Thread seem to give us better performance.
    Is that missed ConnectException a bug? Or we are just making some mistake?
    We are using java 6 and when both client and server are Linux or Windows the ConnectException always happen and we don't have any problem.
    I hope that now this information are enough.
    Thanks again and greetings.
    O.C.

Maybe you are looking for

  • Negative Balance in Opening Stock & Closing Stock

    Dear Experts,                     Below the query which i used to get the Opening Stock,Purchase,Issue,Return and closing stock. Here i face some problem that i get negative inventory for some items and the same has been checked in inventory audit re

  • Input parameters in view statement.

    Hi SAP gurus, i created a view for inventory ZINV_VIEW in sql server 2008,  in that view i  used 3 UNION ALL statement.. then executing query ON  ZINV_VIEW   in SAP Query Generator... now i have a requirement to prompt the user to enter 'From Date' a

  • Unable to read blob attributes in the Asset Filter

    Hi, I am unable to read a blob attribute in the Asset Filter using the following code. The String attributes work fine. Can I get some examples for reading blob attributes in the filter? I am using Webcenter Sites 11gr1 public void filterAsset(IFilte

  • Automatic reservation for Internal in VMS

    Hi, I have a requirement to enhance in VMS for " automatically assign an internal reservation to a vehicle object once a sales order has been cancelled". Please suggest me the possibilities for enhance the request. Thanks

  • Export formats from GarageBand

    Hello - are there any export options in GarageBand? I would like to export a GarageBand 9 second looped sound as a ringtone in my mobile phone.