Accessibility of JComboBox problem

Hi everyone!
I've got two applications. One of them make changes in the components of the other one through the Accessibility API. (Both are running on the same VM)
I make changes without problem in JButton, JTextComponent...
But I've got a JComboBox with 4 options, and the "reader/writer" application has to select the third option, and I can't get a way to do this with Accessibility.
I can see the JComboBox and its internal structure (a Viewport, a BasicPopUp, a JPanel, ScrollButtons, a ComboList, and the four options).
The only available action is in the JComboBox and is the togglePopUp that toggles it without problem.
But I can't get a way to select one of the options of the toggled up pop up.
Does anybody has an example code for doing this?
Thank you a lot!
AC

Works fine for me.
If you need further help then you will need to provide [url http://www.physci.org/codes/sscce.jsp]Simple Demo Code that demonstrates the problem.

Similar Messages

  • PeopleSoft Query Access Services security problems, in other words does QAS

    PeopleSoft Query Access Services security problems, in other words does QAS bypass PeopleSoft?

    Rod,
    Can you please post the entire contents of the dataserver summary screen...thanks.
    Typically the "No suitable driver exists" error is due to trying to connect to an unsupported DB version with the driver.  For example using the MSSQL 2000 driver to connect to MSSQL 2005, be sure that you have downloaded both the MSSQL 2000 (una2000.jar) and 2005 jars and have the proper classpaths specified.
    Sam

  • Strange JComboBox problem

    I have a weird JComboBox problem that has me stumped. I am dynamically changing the contents of a JComboBox after creation. When the change function is called it removes all existing contents from the JComboBox and then repopulates it. It is really straight forward. The strange thing is that it is working perfectly under Windows 2000 with JRE build 1.3.0, but with Windows XP I end up an empty JComboBox. I don't even know where to start debugging this. Any ideas?
    Thanks

    I notice the same problem... with no solution for the moment...

  • My computer continually asks me to enter my password for Keychain access. This problem is continuos and I am having trouble with eliminating it. I have changed my password through Security and my Accounts numerous times to no avail.  Is there anythin

    My computer continually asks me to enter my password for Keychain access. This problem is continuos and I am having trouble with eliminating it.
    I have changed my password through Security and my Accounts numerous times to no avail.
    Is there anything I can do other than Resetting the entire computer and re installing all of the software, apps, etc.etc.

    Back up all data before proceeding.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    Select the login keychain from the list on the left side of the Keychain Access window. If your default keychain has a different name, select that.
    If the lock icon in the top left corner of the window shows that the keychain is locked, click to unlock it. You'll be prompted for the keychain password, which is the same as your login password, unless you've changed it.
    Right-click or control-click the login entry in the list. From the menu that pops up, select
              Change Settings for Keychain "login"
    In the sheet that opens, uncheck both boxes, if not already unchecked.
    From the menu bar, select
              Keychain Access ▹ Preferences... ▹ First Aid
    There are four checkboxes in the window that opens. Check all of them. if they're not already checked. Close the window.
    Select
              Keychain Access ▹ Keychain First Aid
    from the menu bar and repair the keychain. Quit Keychain Access.
    If you use iCloud Keychain, open the iCloud preference pane and uncheck the Keychain box. You'll be prompted to delete the local iCloud keychain. Confirm. Then re-check the box. Follow one of the procedures described in this support article to set up iCloud Keychain on an additional device.

  • Remote access vpn ESP problem

    I have remote access vpn configured on cisco 2901 router. Everything works good exept ipad 2 3g. When i am connecting with ipad from 3g network it connects but  it is unable to access corporate resources. I talked to my telephone provaider and they told me that they have some nat problems with ESP. and adviced me to force vpn clients to use udp ports 500 and 4500. How i have to configure my router to accomplish this ?
    Thanks in advance

    Hello,
    Isakmp uses port UDP 500 for the managment connection establishment ( Phase 1).
    NAT-T ( used when they are nat devices in between two VPN endpoints) uses port UDP 4500.
    So on your Router NAT-T is configured by default, all you got to do is if you have an ACL on the outside interface allow this traffic (Isakamp and NAT T) On some of the newer IOS versions you do not have to apply the ACL as by default the VPN traffic (encrypted traffic bypasses the ACL).
    So your requirement is done by default, great thing right!! You can let your Telephone provider you are ready for the test.
    Julio
    Do rate all helpful posts!!

  • Direct Access 2012 R2 - Problems with Force Tunneling and other questions

    I have just setup a Direct Access 2012 R2 server in my network, 2012 domain and all Windows 8 clients. 
    Internal CA environment (no external CRL) using a public issued cert for IPHTTPS tunnel, 2 interfaces for the DA server, 1 internal and 1 in the DMZ behind a NAT firewall (1 public IPv4 address) and my test clients are connecting fine to internal resources.
    1.  When I enable Force Tunneling the clients no longer are able to access the external internet.  Is there anything I need to add to make this work?
    2.  I am having trouble with our Remote Desktop Session Hosts.  I can only assume it has something to do with the DNS  as we have our AD domain performing internal DNS of the int.contoso.com domain and public DNS performing for the external
    Contoso.com domain (RDWA etc).  DA has only int.contoso.com set as a DNS Name Suffix in the Infrastructure Setup.  Should I add the external contoso.com Name Suffix in there too?
    3.  I have a Kaspersky Security Center server for centralized AV admin, can I still push out AV updates to the clients that connect with DA.  Do I add my KSC server to the Management Servers list in the Infrastructure Server Setup page on the DA
    setup.   Does that list allow those servers to access the DA clients?

    Hi,
    Let's solve problems one by one. Force tunneling. When enabled, all network trafic from DirectAccess clients goes throught IPSEC tunnels. Just configure a proxy on your DirectAccess clients (with a FQDN of course) and your clients should be able to surf
    internet again.
    RDS : Depend. Where are your RDS servers registred internal zone DNS or external DNS zone. If a DirectAccess client cannot resolve a name it does not know if it has to go throught the tunnel. At last can you ping your RDS Server?
    Remote Management : Right. Adding servers in this list allow them to use the IPSEC infrastructure tunnel (computer established tunnel) without users being logged.
    BenoitS - Simple by Design http://danstoncloud.com/blogs/simplebydesign/default.aspx

  • Can no longer access hotline manager, problem made...

    I have a home hub that is about 5 years old (white unit, probably ver. 1).
    It works very well in my home, but I recently found that I could not access my hub manager anymore. The login page says:
    "As part of a security enhancement, we've changed your BT Home Hub's default password to its serial number. In order to access your Hub's settings via the Hub Manager, you now need to replace this default password with your own."
    The problem is: I entered my serial number exactly as advised and as printed at the bottom of the device, but get the following response:
    "The serial number you have entered has not been recognised. Please check you have entered the correct information from the location on the diagram and re-enter the new password."
    Being lost for solutions, I phoned the BT helpline and they told me to reset the hub to factory settings. So I did, but I was still not able to log in. After a while even they just gave up. "Sorry, we are only trained on Windows software." (I am using Linux.)
    To my horror, I now found that the hub no longer knows how to set up my Broadband Talk service (due to the reset). I am using this number for business purposes and it is absolutely essential that I get it back live.
    Is there really no way to bypass this stupid password page? Why are they doing this? Everything worked so well before.
    Any advice much appreciated. Many thanks.

    There haven't been any updates to the HH1 for years now, but it's always possible that it has reset to defaults at some point without you noticing it.
    If you haven't set a password (or the hub's forgotten it), then the password is the serial number, EXACTLY as it appears on the bottom of the hub.  Watch out for letters that look like numbers and vice-versa.  Don't enter anything that's in brackets.
    http://bt.custhelp.com/app/answers/detail/a_id/11383/~/where-do-i-find-the-default-password-for-my-b...

  • Macbook Pro access and privilages problem

    Yesterday, without any previous warning, my Macbook Pro started giving me all sorts of problems. First, as I was trying to save files from Photoshop it gave me this error: Could not save <file name> because you do not have the necessary access privileges. Then, as I started up my Drobo it gave me this massage: MAC OS X can't repair "Drobo" You can still open or copy files on the disk, but you can't save changes to files on the disk. Back up the disk and reformat  it as soon as possible. I've never had any of those messeges appear. The Drobo has become read only and I can't save anything onto it. I've tried to repair permissions with the Disk Utility and it fixed some things, but many permissions still don't match. It didn't solve the PS saving problem nor the Drobo problem. I'm a little desperate here cause I'm not that techy...

    You need to copy all the files off the drive you can and then reformat the drive. Unless you have a product such as DiskWarrior, don't bother attempting to repair the drive at this point.
    (67390)

  • JDBC ODBC bridge for MS Access - language/locale problems

    Hi,
    I have an application that uses a MS Access database.
    I have a user in Turkey that is experiencing the following problem:
    My Java app requests for example the following query:
    select name from activitiesThen I get the following error:
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]
    The Microsoft Jet database engine cannot find
    the input table or query 'ACT�V�T�ES'. 
    Make sure it exists and that its name is spelled correctly.Apparantly the character 'i' is replaced by '�', how can I avoid this?

    Hi,
    I was looking for something in that direction.
    When I start the db connection using charset="Turkish" i get the following error:
    # An unexpected error has been detected by HotSpot Virtual Machine:
    #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d6cb0b2, pid=4480, tid=5000
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_04-b05 mixed mode)
    # Problematic frame:
    # V  [jvm.dll+0x8b0b2]
    # An error report file with more information is saved as hs_err_pid4480.log
    # If you would like to submit a bug report, please visit:
    #   http://java.sun.com/webapps/bugreport/crash.jsp
    #Is this because my MS Access does not recognize the charset?
    What should I use if I don't pas the 'Turkey' argument, just 'utf-8'?
    Message was edited by:
    fredje_2000

  • Access Connection​s Problem: WAN disconnect​s

    Hi!
    I have finally managed to get online via WAN with Access Connections. However, after some time the connection goes dead and Access Connection doesn't respond anymore. I have to reboot the system to reconnect. Does anyone experience the same problem or can anyone help?
    Thanks for your answers.
    Phil

    R u using a PC card or an internal Wan card? Is it Verizon or Cingular?
    Ignorance is no excuse!

  • JComboBox problem.

    Hi All,
    I have a JComboBox to which i added an actionlistener. On selecting 'New Data' it will popup another window to add a new data. This works fine when i use my mouse for selection where as when I use the keyboard for selection after the poped up window is closed it throws exception in the client console.
    Can anybody help me in this... Thanx in advance..
    The exception is:
    Exception occurred during event dispatching:
    java.lang.NullPointerException
    at javax.swing.plaf.basic.BasicComboBoxUI.selectNextPossibleValue(Unknown Source)
    at com.sun.java.swing.plaf.windows.WindowsComboBoxUI.access$600(Unknown Source)
    at com.sun.java.swing.plaf.windows.WindowsComboBoxUI$DownAction.actionPerformed(Unknown Source)
    at javax.swing.SwingUtilities.notifyAction(Unknown Source)
    at javax.swing.JComponent.processKeyBinding(Unknown Source)
    at javax.swing.JComponent.processKeyBindings(Unknown Source)
    at javax.swing.JComponent.processKeyEvent(Unknown Source)
    at javax.swing.JComboBox.processKeyEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.Dialog$1.run(Unknown Source)
    at java.awt.Dialog.show(Unknown Source)

    here is the code to reproduce the above exception. Exception thrown when key board arrow keys are used to navigate.
    * ComboBoxProblem.java
    * Created on June 15, 2006, 12:40 PM
    package ComboBox;
    * @author  prabus
    public class ComboBoxProblem extends javax.swing.JFrame {
        /** Creates new form ComboBoxProblem */
        public ComboBoxProblem() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        private void initComponents() {//GEN-BEGIN:initComponents
            java.awt.GridBagConstraints gridBagConstraints;
            jPanel1 = new javax.swing.JPanel();
            jLabel1 = new javax.swing.JLabel();
            jComboBox1 = new javax.swing.JComboBox();
            jLabel2 = new javax.swing.JLabel();
            jTextField1 = new javax.swing.JTextField();
            jPanel2 = new javax.swing.JPanel();
            jButton1 = new javax.swing.JButton();
            jButton2 = new javax.swing.JButton();
            addWindowListener(new java.awt.event.WindowAdapter() {
                public void windowClosing(java.awt.event.WindowEvent evt) {
                    exitForm(evt);
            jPanel1.setLayout(new java.awt.GridBagLayout());
            jLabel1.setText("Subjects");
            gridBagConstraints = new java.awt.GridBagConstraints();
            gridBagConstraints.gridx = 0;
            gridBagConstraints.gridy = 1;
            gridBagConstraints.insets = new java.awt.Insets(10, 10, 10, 0);
            gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
            jPanel1.add(jLabel1, gridBagConstraints);
            jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "All", "New Subject" }));
            jComboBox1.setPreferredSize(new java.awt.Dimension(150, 24));
            jComboBox1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jComboBox1ActionPerformed(evt);
            gridBagConstraints = new java.awt.GridBagConstraints();
            gridBagConstraints.gridx = 1;
            gridBagConstraints.gridy = 1;
            gridBagConstraints.insets = new java.awt.Insets(10, 10, 10, 10);
            gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
            jPanel1.add(jComboBox1, gridBagConstraints);
            jLabel2.setText("Course");
            gridBagConstraints = new java.awt.GridBagConstraints();
            gridBagConstraints.insets = new java.awt.Insets(10, 10, 0, 0);
            gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
            jPanel1.add(jLabel2, gridBagConstraints);
            jTextField1.setPreferredSize(new java.awt.Dimension(150, 24));
            gridBagConstraints = new java.awt.GridBagConstraints();
            gridBagConstraints.insets = new java.awt.Insets(10, 10, 0, 10);
            gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
            jPanel1.add(jTextField1, gridBagConstraints);
            getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);
            jPanel2.setBorder(new javax.swing.border.EtchedBorder());
            jButton1.setText("OK");
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton1ActionPerformed(evt);
            jPanel2.add(jButton1);
            jButton2.setText("Cancel");
            jButton2.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton2ActionPerformed(evt);
            jPanel2.add(jButton2);
            getContentPane().add(jPanel2, java.awt.BorderLayout.SOUTH);
            pack();
        }//GEN-END:initComponents
        private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
            // Add your handling code here:
            System.exit(0);
        }//GEN-LAST:event_jButton2ActionPerformed
        private void jComboBox1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBox1ActionPerformed
            // Add your handling code here:
            if((jComboBox1.getSelectedItem().toString()).equals("New Subject"))
                jComboBox1.updateUI();
                AddSubject add = new AddSubject();
                add.show();
                updateSubjectCombo();
        }//GEN-LAST:event_jComboBox1ActionPerformed
        private String newSubject = null;
        public void setNewSubject(String newsub)
            newSubject = newsub;
        private void updateSubjectCombo()
            javax.swing. DefaultComboBoxModel model = new javax.swing. DefaultComboBoxModel();
            model.addElement("All");
            model.addElement("New Subject");
            model.addElement(newSubject);
            jComboBox1.setModel(model);
            jComboBox1.setSelectedIndex(jComboBox1.getItemCount() - 1);
        private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
            // Add your handling code here:
            System.out.println(" Course : "+jTextField1.getText());
            for(int i = 0; i < jComboBox1.getItemCount(); i++)
                System.out.println(" Subject "+i+ " : " +jComboBox1.getItemAt(i));
        }//GEN-LAST:event_jButton1ActionPerformed
        /** Exit the Application */
        private void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm
            System.exit(0);
        }//GEN-LAST:event_exitForm
         * @param args the command line arguments
        public static void main(String args[]) {
            new ComboBoxProblem().show();
        // Variables declaration - do not modify//GEN-BEGIN:variables
        private javax.swing.JButton jButton1;
        private javax.swing.JButton jButton2;
        private javax.swing.JComboBox jComboBox1;
        private javax.swing.JLabel jLabel1;
        private javax.swing.JLabel jLabel2;
        private javax.swing.JPanel jPanel1;
        private javax.swing.JPanel jPanel2;
        private javax.swing.JTextField jTextField1;
        // End of variables declaration//GEN-END:variables
    Another Class
    * AddSubject.java
    * Created on June 15, 2006, 12:51 PM
    package ComboBox;
    * @author  prabus
    public class AddSubject extends javax.swing.JFrame {
        /** Creates new form AddSubject */
        public AddSubject() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        private void initComponents() {//GEN-BEGIN:initComponents
            java.awt.GridBagConstraints gridBagConstraints;
            jPanel1 = new javax.swing.JPanel();
            jLabel1 = new javax.swing.JLabel();
            jTextField1 = new javax.swing.JTextField();
            jPanel2 = new javax.swing.JPanel();
            jButton1 = new javax.swing.JButton();
            jButton2 = new javax.swing.JButton();
            addWindowListener(new java.awt.event.WindowAdapter() {
                public void windowClosing(java.awt.event.WindowEvent evt) {
                    exitForm(evt);
            jPanel1.setLayout(new java.awt.GridBagLayout());
            jLabel1.setText("Subject Name");
            gridBagConstraints = new java.awt.GridBagConstraints();
            gridBagConstraints.insets = new java.awt.Insets(10, 10, 10, 10);
            gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
            jPanel1.add(jLabel1, gridBagConstraints);
            jTextField1.setPreferredSize(new java.awt.Dimension(150, 24));
            gridBagConstraints = new java.awt.GridBagConstraints();
            gridBagConstraints.insets = new java.awt.Insets(10, 10, 10, 10);
            gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
            jPanel1.add(jTextField1, gridBagConstraints);
            getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);
            jPanel2.setBorder(new javax.swing.border.EtchedBorder());
            jButton1.setText("OK");
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton1ActionPerformed(evt);
            jPanel2.add(jButton1);
            jButton2.setText("Cancel");
            jButton2.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton2ActionPerformed(evt);
            jPanel2.add(jButton2);
            getContentPane().add(jPanel2, java.awt.BorderLayout.SOUTH);
            pack();
        }//GEN-END:initComponents
        private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
            // Add your handling code here:
            System.exit(0);
        }//GEN-LAST:event_jButton2ActionPerformed
        private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
            // Add your handling code here :
           String newsub = jTextField1.getText().trim();
            ComboBoxProblem prob = new ComboBoxProblem();
            prob.setNewSubject(newsub);
            System.exit(0);
        }//GEN-LAST:event_jButton1ActionPerformed
        /** Exit the Application */
        private void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm
            System.exit(0);
        }//GEN-LAST:event_exitForm
         * @param args the command line arguments
        public static void main(String args[]) {
            new AddSubject().show();
        // Variables declaration - do not modify//GEN-BEGIN:variables
        private javax.swing.JButton jButton1;
        private javax.swing.JButton jButton2;
        private javax.swing.JLabel jLabel1;
        private javax.swing.JPanel jPanel1;
        private javax.swing.JPanel jPanel2;
        private javax.swing.JTextField jTextField1;
        // End of variables declaration//GEN-END:variables
    }

  • JComboBox problem again..

    I have a problem not entirely dissimilar to Jofin's.
    My combo box is populated on 10 seconds pulses by a remote server.
    Once a value has been selected from the combobox, it auto populates two jTextFields below based on the selection made from the box.
    My problem is as soon as the 10 second pulse comes around, the JComboBox contents is refreshed/repopulated, the selected index jumps back to 0 and the text boxes below are updated based on the element at 0.
    I can't seem to get the combination of event handling right, I've tried mousePressed, but that seems to be on the jComboBox its self rather than the selected item, I've tried mouseReleased with some success but the user MUST click and hold then release on the correct item or it doesn't work.
    Any help on the matter would be very much appreciated.
    Thanks.
    Andy

    I need to select live items from an auction which are displayed in a drop down list to bid on in an auction program.
    users select an item: http://www.andywebb.me.uk/jcombobox.jpg
    item populates bid section: http://www.andywebb.me.uk/jcombobox2.jpg
    the items last a specific amount of time (this is an assignment, not a real program) and CAN disappear from the list of available items to bid on. I need a way of holding the values of the item being bidded on and a way of controlling how to display the items that are available to bid on.
    The items index in the list is irrelevant, i'm simply using the combo box item which is being clicked to populate the fields below.

  • Sun Access Manager login problem

    Hi,
    This is a very basic problem. I have installed Sun Access Manager 7 using JES installer. It is configured to authenticate against a LDAP datastore. I am able to login into the amconsole application using the amAdmin DN but I am not able to login with any other user that I create through Sun Access Manager.Any help will be highly appreciated.
    TIA.

    Hello,
    When you create any user through SUN Access Manager, is that user is created in LDAP
    datastore, or is it created in SAM flat file repository ?

  • Accessing WSDL gives problem..........

    Hi all,
    I'm using NWDS SP12. I'm trying to create deployable proxy out of one WSDL file, which is residing in the server that needs authentication to access that. So, when I give URL to that particular WSDL when generating proxy, I'm not able to do so. How do I give authentication parameter there???
    Then I had tried downloading that WSDL file to my local file system and tried with that also...but no luck...
    Do anyone have any idea????
    Regards,
    Mausam

    Hi Bhavik,
    Thanks for replying.
    I think that was the problem with SP11.....but in SP12 its working fine. I'm able to consume any other services, means I'm able to create proxy for other services like Google.....
    But problem here is, my WSDL file is on the server which requires authentication to access WSDL. So, when I try to give the URL of WSDL its giving HTTP 401 error(unauthorised access). So, the question is "how do I give those parameters while generating proxy for WSDL?"
    Regards,
    Mausam

  • Problems accessing parameters, files - problems in general.

    I've been posting my problems to comp.lang.java.programmer but Google Groups is exceedingly slow to update and I've been stuck on this for nearly two whole days:
    I am developing what will be a series of web utilities for our company and our client's company. Unfortunately I am hampered by the fact that my Java is not that good having come from a C++ background.
    My current setup is Windows XP, JDK 1.3.1.07 (which is what our client is running), Tomcat 4.1 for testing on my local box.
    I've been middling around with small examples and decided to do something slightly more complex. What I am trying to do is access a file that is described in web.xml as a parameter. However when ever I run the program it is unable to find the file. All the documentation I have (web-based plus a Professional Java Server Programming J2EE Edition - way over my head) either skims across it/takes it as read it will be set up correctly/doesn't touch it at all.
    I thought I was trying to access the wrong directory so I mapped the file to the root of C and still can't access it - it always comes back as null. Also between attempts I restart the Tomcat server so it always loads in the web.xml file.
    This is my web.xml:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
      <display-name>Welcome to Tomcat</display-name>
      <description>
         Welcome to Tomcat
      </description>
      <servlet>
        <servlet-name>LogIn</servlet-name>
        <servlet-class>website.LogIn</servlet-class>
        <init-param>
          <param-name>passwordFile</param-name>
          <param-value>C:\\passwords.txt</param-value>
        </init-param>
      </servlet>
      <servlet-mapping>
        <servlet-name>LogIn</servlet-name>
        <url-pattern>/logged</url-pattern>
      </servlet-mapping>
    </web-app>And the Java:
    package website;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    *  Handles the login to the administrators section of the website
    public class LogIn extends HttpServlet
        private String passwordFile;
        /** Read the password file from the location specified
         *  by the passwordFile initialization parameter.
        public void init(ServletConfig config) throws ServletException
            super.init(config);
            passwordFile = config.getInitParameter("passwordFile");
            System.out.println(passwordFile);
            if (passwordFile == null)
                System.out.println("The \"passwordFile\" property must be set to a file name");
            try
            catch (Exception e)
                System.out.println("Error: Unable to read passwordFile.");
        public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
        public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    }It was suggested on comp.lang.java.programmer to check the path that the system was thinking I was searching which I did by inserting this code fragment:
         // initialise the servlet and load password(s)
    //     super.init(config);
    //     passwordFile = config.getInitParameter("passwordFile");
         // added code
         passwordFile = "passwords.txt";
         File f = new File( passwordFile );
         System.out.println( f.getAbsolutePath() );
         // added code.
            ...This lead me to learn that the directory being returned was:
    C:Program Files\Apache Group\Tomcat 4.1\passwordFile.txt
    Which is strange since I would of thought that the lowest directory
    that is visible to the class would of been ROOT (hence it's name).
    Does this mean if I copy the passwordFile.txt to the above directory
    it would work? Actually no. I still can't get the filename as a
    parameter from web.xml which is frustrating. If you could give me any
    pointers on what might be wrong then that would be cool.
    I thought I could move forward by accessing the file directly. But no: An addition of f.exists() to check that the file exists returns false. I've now got a copy of passwords.txt in every single directory from the classes directory all the way down to C:\ and it still doesn't work.
    I hope someone can help out here since this is very frustrating to be stuck on something so basic as file handling.
    Graham Reeds,
    http://omnieng.co.uk | [email protected]

    I can see how this is frustrating but it should be fixable. The last example you posted won't work because you have "passwords.txt" instead of "c:/passwords.txt".
    If you're still looking for a solution could you cut and paste the following code into your servlet code and then post the results?
    // Check that init param is read correctly
    String filename = config.getInitParameter("passwordfile");
    System.out.println("config param = " + filename);
    // try filenames
    String[] filenames = new String[] {"c:/passwords.txt", "c:\\passwords.txt", "passwords.txt"};
    for (int i=0; i < filenames.length; ++i) {           
       File file = new File(filenames);
    System.out.println("File " + filenames[i] + " - exists = " + file.exists());
    System.out.println("Abs path = " + file.getAbsolutePath());
    This is based on the file c:\passwords.txt existing - if I have the wrong filename, please adjust. Also, you may need to change <i> to [[i]i] in a couple of places.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

Maybe you are looking for

  • Still Looking for Camera Raw Plug-In for CS4

    I have Adobe CS4, and, after extensive searching, cannot find the correct version of the Camera Raw plug-in for my Mac (OS 10.6.8).  I just did successfully download and install the DNG converter 8.1 for Macs.  Today I downloaded version 5.4 for mac

  • Detecting missing mouse clicks?

    There are some times when a user clicks on a movie clip in my SWF that the mouse click goes undetected by any of my mouse event handlers. I even added a MouseClick listener at the root sprite of my SWF. Is there any way to detect where this mouse cli

  • Extended Receiver & Extended  Interface Determination

    Hi Experts, Can any tell me what is Extended Receiver & Extended  Interface Determination. And the Difference between Standard Receiver & Standard Interface Determination. were to use Extended Receiver & Extended  Interface Determination. Thanks in a

  • Adobe Premiere Elements has stopped working

    I have had APE 9 for about a year and recently bought a new computer.  I re-downloaded it, using the original serial numbers and everything was fine.  I loaded up a video successfully and everything seemed fine.  I have a Sony HDR CX115 camera and us

  • Photoshop crashing repeatedly

    Recently installed Photoshop CS 5.1 on my MAC PRO 10.6.8, 2.4 GHz 4 GB Intel Core Duo. Feeling Helpless please help. The photoshop is crashing after 30-45 sec after opening