Edit Customer Problem and Logical Port

Hi Experts,
ISSUE 1
In Web Service Administration, when I look at /iwcnt/actionitemvi_document service in details, I can see one Endpoint only, that is Binding_T_HTTP_A_HTTP.
In the Troubleshooting Guide, in section 5. No Workflow / Reports reach the SCL from backend system, there are mentioned two endpoints: Binding_T_HTTPS_A_HTTP and Binding_T_HTTP_A_HTTP - all other setting, I have, are the same on my server as mentioned in the troubleshooting guide. So why there is diffrence in binding on that particular service?
The other thing I noticed, is, that when looking closer on the logical port creation on backend system in the Behind the scene video, it mentions, that the Path Suffix include binding_t_http_a_http whereas in the Troubleshooting Guide it is showing binding_t_https_a_http - why this?
What is the right path suffix for the logical ports at the backend system?
ISSUE 2
When we edit a customer from SharePoint, we get the following error:
Error
An unexpedted error has occured
Correlation ID: ea04d908.xxxxxxxxxxxxxx
Looking closer at the correlation at SCL, everything seems to be green and no error is reported, but in the ULS Viewer, following info are displayed:
Microsoft.BusinessData.Runtime.BackendNullReturnException: LobSystem (External System) returned a null structure which is incompatible with the associated metadata.  
at Microsoft.SharePoint.BusinessData.Runtime.EntityRuntime.WrapAsEntities(IMethodInstance methodInstance, IEntity thisEntity, IParameter parameter, ITypeDescriptor entityInstanceRootTypeDescriptor, Object correspondingAdapterObject, IEntity targetEntity, ISystemUtility dataSystemUtility, ILobSystemInstance lobSystemInstance)   
at Microsoft.SharePoint.BusinessData.Runtime.EntityRuntime.ExecuteInternal(IDataClass thisDataClass, ILobSystemInstance lobSystemInstance, ILobSystem lobSystem, IMethodInstance methodInstanceToExecute, IMethod methodToExecute, IParameterCollection nonReturnParameters, Object[]& overrideArgs, IFilterCollection filters)   
at Microsoft.SharePoint.BusinessData.Runtime.EntityRuntime.FindSpecific(IEntity thisEntity, Identity entityInstanceIdentity, String specificFinderName, ILobSystemInstance lobSystemInstance)
regards
Tariq

Hi,
ISSUE 1:
This is very likely because SSL is not configured. First of all can you go to SOAMANAGER -> Business Scenario Configuration and deactivate and activate the DUET_ENTERPRISE_ALL. When activating check if you are getting errors for the Assertion profiles (my guess would be, that you are getting errors).
In this case check the SSL configuration from SMICM -> \[Menu] Goto -> Services
Here you should see an active service HTTPS. If that is not the case, check that the SSL certificate is created (STRUST) and make sure that the required profile parameters are set (see also Deployment Guide -> "To configure the use of SSL in the SCL host" on page 33 at http://www.service.sap.com/instguides -> Duet -> Duet Enterprise 1.0 -> Duet Enterprise SAP Deployment Guide)).
Regarding the backend configuration for the logical ports in LPCONFIG. Here it depends on how you have setup the configuration on the SCL. If you released the services with HTTPS then the URL in the backend has to be HTTPS binding, if you configured it via HTTP, then it has to be HTTP binding Did you perform the connection tests as described in the videos or in the checkpoint of the troubleshooting guide?
ISSUE 2:
Can you take a look also on the SAP side in SRTUTIL? Do you see any additional error information there? You might also want to check the errors from the log viewer /IWFND/VIEW_LOG
Regards,
Holger.

Similar Messages

  • Service group, Destinations and Logical ports

    I suppose that Service Group, Destinations and Logical ports
    can be used to consumer a service in a specific system/landscape.
    Is it correct ?
    But when I use one or another ?
    What are the differences ?

    Hi
    Service Group :identify a service provider.
    Destinations and Logical ports  : are the stuff which is required to setup the connections with the agrred service provider.
    For example : As you how SOA is working , first we have to look for services once we found the required one or informed by the vendor itself , they will provide the credentials (this is something which contain port ,destination and password etc), once setup is complete we get the seamless services from its provider.
    These thing are not seperate so donesnt make sence to use one or another .
    BR
    Satish Kumar

  • Problem using logical port type "ABAP"

    Hi, my problem is that I have to save a txt file  with a certanly format who feeds from an IDOCs that is sended nowhere.
    Instead of using a BADI the client wants that every time a PO is liberated an IDOC has to be triggered and it has to save that txt in a path, but that IDOC is not sended anywhere is just for saving the file. Dont ask why... they want to do this approach.
    So I created a logical port of type ABAP, copy the function "OWN_FUNCTION" as a template and in my custom function I parse the IDOC and save the file... it works. My problem is that the IDOC is created when a PO is created but not triggered !!!
    The IDOC is created with status 30 (ready to send).
    What I need is that when the PO is saved the file has to be generated in the server but the function is not triggered. I try running the Program RSEOUT00 and the IDOC is not found (dont know why) the only way I can trigger the IDOC is via BD87.
    Someone could help me, I dont know why the logical port type ABAP is not triggered. all my setting in WE20 is right.
    Thx

    The problem was in the WE20, the radio button was in mode 4 (collect IDOCs) instead of 2 (send inmediatly)

  • Example wsdl and logical port for consumer proxy anyone ?

    Hi,
    Could please somebody give me an example of external WSDL file and logcial port created for the WSDL file in SOAMANAGER ?
    I need to create manually logical port for my consumer proxy and I am missing something because my logical port is not active.
    Any example is more than welcome. 
    I need to know how to populate fields manually on the following tabs based on the info in a WSDL file:
      Consumer Security  Additional Information  Web Service Addressing  Messaging  Transport settings  Message Attachments  Operation specifi
    Thanks and Regards
    Agnieszka
    The message, I am getting, when creating logical port is:
    Operation 'SrtFmStatefulTf' not found [NS: 'urn:sap-com:document:sap:soap:functions:mc-style']
    I think that maybe something is wrong with my wsdl.
    Edited by: Agnieszka Domanska on Nov 17, 2010 5:41 PM

    Hi Milan,
    this kind of error occurs when there is no service and end point description in the WSDL of provider who's service you are trying to consume using Consumer Proxy.
    Just open the provider's WSDL URL that you have given while creating Logical port for the consumer proxy   and check if service and end point exists there.
    Thanks
    Sunil Singh

  • Problems of logical port configuration

    Currently we made the system X8A_100 as our integration server and we designed a service interface which can dispatch the request to a function module in A1S_100, then we generated its proxy (through the transaction code SPROXY) in the X8A_105 which act as the sender after we had finished some design and configuration work. It run successfully.
    And then we expose the service interface as a web service, generated its proxy in the X8A_105, it also run successfully (didn't create any logical port). But after that, we generated a proxy of the same service interface in BBT_100, it failed and threw a exception 'GENERAL_ERROR Error during proxy processing (PART UNKNOWN (NULL)   )' although we had create a default logical port of the proxy. When I create logic port of the proxy, I set the value of the URL in Call Parameters tabs 'http://pwdf2655:50050/sap/xi/engine?type=entry&version=3.0&Sender.Service=X8A_105&Interface=http%3A%2F%2Fsap.com%2Fxi%2Ftest%2Fabap%5ESayHello_ServiceInterface', I think the problem was caused by the wrong configuration of the logical port, could anyone please tell me how we can do the configuration correctly? Thanks a lot in advance.

    Hi,
    This might help you
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/c487d701c7214db8ca7a741ba3c9d0/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/f3/7d7b60d1e9744d9fe27b4438d9014d/frameset.htm
    http://help.sap.com/saphelp_webas630/helpdata/en/ef/f9896cca8a8248a563050932b05322/content.htm
    Regards
    Agasthuri Doss

  • APEX Bugs: Editing customer contacts and uploading attachments

    I'm using the pre-packaged application, "customer tracker"
    Application Version 2.2.35
    Build Version 4, Application Express 4.2.3
    I am using it on a MAC
    And am having some issues with the pre-packaged application "customer tracker".  I uploaded a bunch of data. However, now when I try to edit a contact record, I get the following error:
    1 error has occurred unable to extend table application_name.EBA_CUST_History by 8 in tablespace APEX_5956688132079418188.
    It doesn't matter if I'm using Firefox or Safari.
    The only way I can modify customer records is to completely delete them and then manually add each one back in -- which is not very scalable. I was able to edit records previously.  This just started yesterday.
    Is this a known issue?  Any way to fix?
    I end up getting the same type of issue when I try to manually add an attachment  It doesn't matter if I'm adding a word doc or a PDF, same error.  This error started after I manually uploaded a handful of attachments last week. The error reads as follows:
    Unable to extend lob segment application_name.sys_LOB0006066941C00008$$ by 128 in tablespace APEX_5956688132079418188.
    Could someone please assist?
    Thanks!

    Not an APEX issue,  your database tablespace needs cleaning up/expanding...
    Thank you,
    Tony Miller
    LuvMuffin Software

  • Java proxy client logical port transport to Q and prod issue in target addr

    Hi All,
    I have a java proxy client having a logical port (configured using NWDS) to consume a web service in the provider system.
    In the logical port, I have given target address, and logical port name. While moving this client proxy NWDI dev track to Q and prod,
    how do I change this target address to point to Q and prod respectively. In other words, even though I am using Visual admin to configure the destination url for the logical port, to point to Q and prod, its still referring to the dev environment provider service after moving the proxy client to Q and prod. What is the suggested approach to take care of this issue
    Thx
    mike

    Hi Michael,
    I can only help from that point of view that I believe this question belongs to the forum
    Service-Oriented Architecture (SOA) and SAP
    Please try to raise this question there.
    Thanks and Regards,
    Ervin

  • Calling external Web Service: PI is looking for a logical port and proxy.

    Hi,
    My scenario is  ECC Proxy -> PI -> External Webservice (WS adapter).
    the Web service adapter fails with the error message:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">WS_ADAPTER_SYS_ERROR</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>System error while calling Web service adapter: Error when initializing SOAP client application: &#39;error_text&#39;</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    When I debug the message processing, it is looking for a port in table SSRVRTCONFIG, finds it(entry created automatically when WS adapter and the corresponding receiver agreement is activated in ID.
    Then the program looks for an entry in "SRT_CFG_CLI_ASGN" for a proxy and logical port combination and errors out.
    to be able to call an external web service, do we need a proxy to be created? I tried to create but the proxy creation fails because the external WSDL has some unsupported tags.
    Also do we need to do any other configuration in SOAMANAGER? I am assuming not because the Web service is external.
    Any help would be appreciated.
    Thanks
    Vijay

    I already checked that note and made sure that the points mentioned are met. I have a trace set up on the target system and would know if the call reaches them and then fails in authorization. Right now the call doesnt even reach the target system and also from debugging I know that the program is looking for a proxy and then fails.

  • Client proxy consuming web service provider using logical port issue

    Hi All,
    I have a proxy client having a logical port (configured using  NWDS)  to consume a web service in the provider system.
    In the logical port, I have given target address, and logical port name. While moving this client proxy NWDI dev track to Q and prod,
    how do I change this target address to point to Q and prod respectively. In other words, even though I am using Visual admin to configure the destination url for the logical port, to point to Q and prod, its still referring to the dev environment provider service after moving the proxy client to Q and prod. What is the suggested approach to take care of this issue
    Thx
    mike

    Hi Michael,
    I can only help from that point of view that I believe this question belongs to the forum
    Service-Oriented Architecture (SOA) and SAP
    Please try to raise this question there.
    Thanks and Regards,
    Ervin

  • LPCONFIG Logical Port security setting WS security where to give login ID?

    Hi,
    This scenario is about consuming web service in ABAP. ABAP proxy and logical port is used for it.
    Could you pl give some inputs as to how to incorporate login details in the LPCONFIG or ABAP Proxy ?
    1. Webservice is created in the NWDS web dynpro java
    2. ABAP Proxy is created and logical port is create in ABAP and url of this webservice is given and it works just fine
    3. Authentication is added in webservice so that when its called in wsnavigator in portal, userID and password shoud be given
    4. Now when we call it from ABAP standalone, popup is seen for userID and password
    5. But we call it in background in our process via workflow
    6. I tried to look for putting userID and password in LPCONFIG but only place i can see is WS Security and Profile In field
    thanks in advance
    B

    hi,
    please give some hints
    profile In field has webservice security profile that is created in WSSPROFILE transaction
    but even after giving it, still asked for userID password popup
    -B

  • Web service invocation problem on host hostname and port 8000 protocol : http logical port name : LP_WS_SMDAGENT_MONITORING

    hello colleagues,
    In the phase Connect Diagnostics dont show the Agent available in SLD, but when go to SLD i have the agents,
    Error,
    Connect Diagnostics Agent
    The table does not contain any data
    Agent availables in all SLD
    SOAP:1.007 SRT: Unupported xstream found: ("HTTP Code 401 : Unauthorized")
    Web service invocation problem on host hostname and port 8000 protocol : http logical port name : LP_WS_SMDAGENT_MONITORING
    Thanks

    OK, then pls follow below steps;
    - Go to step 'Create Users' in solman_setup System Preparation scenario and make sure the user SM_INTERN_WS has a green status. Use the 'Test Login' button to make sure the user is not locked and has correct credentials maintained in solman_setup
    - Immediately after checking the user status, navigate to Configure Connectivity->Enable Web Services and execute again the 'Create Logical Ports' automatic activity, in order to propagate the correct credentials to the Logical Port definitions.
    - If the above operation is not successful, repeat the two steps above, providing a different user Id in 'Create Users' step, eg SM_INTERN_W1. This will prevent situations where the user gets locked by Logical Ports using an obsolete password.
    Let me know the results.
    Regards,
    Vivek

  • Editable alv: add custom validation and display "errors" in protocol list

    Hi,
    What I want to do:
    PAI validation of editable alv with displaying error's in the protocol list by adding custom entries to the existing protocol object.
    What is my problem:
    After registering "data_changed event", the protocol list don't appear.
    My understanding is, that the object "er_data_changed" is passed by the event "data_changed"
    an so I thought I can add some more entries to the protocol list.
    After "de-registering" the "data_changed" event, the protocol appears with the standard errros messages (e.g. "input to numeric" by enter charachters)
    One more hint:
    By creating a new object "er_data_changed" in the handler method the protocol list works, but I would like to append entries to the object that was passed with the event.
    Probably I've misunderstand something, please help !
    My coding:
    PAI:
    trigger event "data_changed" -> calls handler method
      CALL METHOD r_myalv->check_changed_data
        IMPORTING
          e_valid = is_valid.
    stop processing
      IF is_valid NE 'X'.
        MESSAGE 'invalid input' TYPE 'E' .
      ENDIF.
    handler method:
    handle_data_changed FOR EVENT data_changed  OF cl_gui_alv_grid  IMPORTING e_ucomm
                                                                                    er_data_changed.
    METHOD handle_data_changed.
        data: ls_mod_cell type lvc_s_modi.
         CALL METHOD er_data_changed->add_protocol_entry
                    EXPORTING
                           i_msgid     = 'SU'
                           i_msgty     = 'E'
                           i_msgno     = '000'
                           i_msgv1     = 'This is a test !'
                           i_fieldname = ls_mod_cell-fieldname.
         er_data_changed->refresh_protocol( ).
         er_data_changed->DISPLAY_PROTOCOL( ).
    ENDMETHOD.                    "handle_data_changed

    Dear Olaf,
        If understood correctly, you want to Edit an ALV and do some data validations when some data is changed in an ALV.   To do this follow the following steps:
    1.   Before displaying ALV, Register the edit event.
    * Set cell modified to trigger data_changed
    CALL METHOD go_alv_grid->register_edit_event
    EXPORTING
    i_event_id = cl_gui_alv_grid=>mc_evt_modified.
    2.  Register the event DATA_CHANGED of class CL_GUI_ALV_GRID & handle the event.
    SET HANDLER lo_event_receiver->handle_data_changed FOR go_alv_grid.
    The event DATA_CHANGED of class CL_GUI_ALV_GRID has a parameter ER_DATA_CHANGED which is of type CL_ALV_CHANGED_DATA_PROTOCOL.
    This er_data_changed has internal table MT_MOD_CELLS(contains index of records changed ) & MP_MOD_ROWS(contains the changed row), using these update your internal table accordingly.
    DATA : wa_mod_cell TYPE lvc_s_modi.
    FIELD-SYMBOLS: <fs> TYPE table.
    LOOP AT er_data_changed->mt_mod_cells INTO wa_mod_cell.
    ASSIGN er_data_changed->mp_mod_rows->* TO <fs>.
    READ TABLE <fs> INTO wa_output INDEX wa_mod_cell-tabix.
    MODIFY lt_output FROM wa_output INDEX wa_mod_cell-row_id.
    ENDLOOP.
    3.   Here it self you can do the required data validations(No need of any PAI modules) as below.
    IF wa_orders-zfstfirmtyp = c_9.
    MESSAGE s288(zcsp).
    DELETE er_data_changed->mt_mod_cells.
    EXIT.
    ENDIF.
    Regards
    Kesava

  • Custom ComboBoxEditor and event notification at the end of the edition

    Hi,
    I am trying to write a custom ComboBoxEditor that delegates editing to a JFormattedTextField for inputing only integers in a JComboBox. However unlike the JTable and JTree editors, I find that the documentation is not clear on how to notify the parent combo box that the editing has finished and the user value has been validated. Since ComboBoxEditor has the addActionListener() and removeActionListener() methods in its signature, I naturally assumed that I could fire an ActionEvent to notify the combo when for example the JFormattedTextField just fired a PropertyChangeEvent on the "value" property.
    While it looks like this is working OK at first, this causes the following issue: when the component is displayed in a JOptionPane, the dialog box is closed as soon as the ActionEvent is fired which is definitely not the behavior we want the user to experience (note: the event is fired when the delegated editor loses focus for exemple by clicking in the JTextArea in the provided example). I find this quite odd as the default ComboBoxEditor does not behave this way: when the editor looses focus, the combo box simply fires an ItemEvent; however the code from the basic UI or the metal UI never fire an ActionEvent and thus supposedly never notify the parent combo (!). Of course if I disable the ActionEvent firing, the JOptionPane does not close but the JComboBox never fire an ItemEvent...
    Do you have any idea or suggestions to fix this problem?
    Note : for testing purposes, I also made a custom ComboBoxEditor delegating to a JSpinner*. This one experiences exactly the same issue than the one delegating to a JFormattedTextField.
    *Speaking of which: how come JSpinner does not have an API for its own editor??
    package test;
    import java.awt.*;
    import java.awt.event.*;
    import java.beans.*;
    import java.text.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.text.*;
    * @author  fabriceb
    public class TestComboBoxEditor extends JPanel {
      enum Flavor {
        J_FORMATTED_TEXT_FIELD, J_SPINNER, DEFAULT;
      private static final long serialVersionUID = 1l;
       * Default font sizes.
      private static final int[] DEFAULT_SIZE = {8, 9, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 36, 48, 72};
       * Editing flag.
      private boolean isEditing;
      private JComboBox sizeCombo = new JComboBox(new DefaultComboBoxModel());
      private JTextArea textArea = new JTextArea("abcdefghijklmnopqrstuvwxyz\nABCDEFGHIJKLMNOPQRSTUVWXYZ\n1234567890.:,;()[]{}<>/\\+-*=!?_'\"@#$%^%&\nThe quick brown fox jumps over the lazy dog. 1234567890");
      private Flavor flavor = Flavor.J_FORMATTED_TEXT_FIELD;
      private boolean fireActionPerformed = true;
      public TestComboBoxEditor(Flavor flavor) {
        super();
        setPreferredSize(new Dimension(500, 150));
        this.flavor = flavor;
        setLayout(new BorderLayout());
        add(sizeCombo, BorderLayout.NORTH);
        add(new JScrollPane(textArea), BorderLayout.CENTER);
        textArea.setEditable(false);
        textArea.setLineWrap(true);
        textArea.setRows(5);
        sizeCombo.setEditable(true);
        sizeCombo.setMaximumRowCount(5);
        switch (flavor) {
          case J_FORMATTED_TEXT_FIELD:
            sizeCombo.setEditor(new SizeComboBoxEditor());
            break;
          case J_SPINNER: {
            sizeCombo.setEditor(new Size2ComboBoxEditor());
        DefaultComboBoxModel sizeModel = (DefaultComboBoxModel) sizeCombo.getModel();
        for (int size : DEFAULT_SIZE) {
          sizeModel.addElement(size);
        sizeCombo.setSelectedItem(textArea.getFont().getSize());
        sizeCombo.addItemListener(new ItemListener() {
          @Override
          public void itemStateChanged(ItemEvent event) {
            if (isEditing) {
              return;
            switch (event.getStateChange()) {
              case ItemEvent.SELECTED:
                  Object value = sizeCombo.getSelectedItem();
                  System.out.println("Received " + value + "\t" + value.getClass());
                  if ((value instanceof Integer) || (value instanceof Long)) {
                    int size = ((Number) value).intValue();
                    DefaultComboBoxModel sizeModel = (DefaultComboBoxModel) sizeCombo.getModel();
                    int sizeCount = sizeModel.getSize();
                    for (int i = 0; i <
                      sizeCount; i++) {
                      int val = ((Number) sizeModel.getElementAt(i)).intValue();
                      // Value already in combo.
                      if (size == val) {
                        break;
    // Insert before current value.
                      else if (val > size) {
                        sizeModel.insertElementAt(size, i);
                        break;
                      // Add at end.
                      else if (i == sizeCount - 1) {
                        sizeModel.addElement(size);
                        break;
                    applyNewFont();
                break;
       * Produces a new font from the user input.
      protected void applyNewFont() {
        int size = ((Number) sizeCombo.getSelectedItem()).intValue();
        Font font = textArea.getFont().deriveFont((float) size);
        textArea.setFont(font);
       * Self-test main.
       * @param args Arguments from the command line.
      public static void main(String... args) {
        SwingUtilities.invokeLater(new Runnable() {
           * {@inheritDoc}
          @Override
          public void run() {
            try {
              UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
              final JFrame frame = new JFrame("Test");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.setLayout(new BoxLayout(frame.getContentPane(), BoxLayout.Y_AXIS));
              for (final Flavor flavor : Flavor.values()) {
                JPanel panel = new JPanel();
                panel.setLayout(new FlowLayout(FlowLayout.LEFT));
                panel.add(new TestComboBoxEditor(flavor));
                switch (flavor) {
                  case J_FORMATTED_TEXT_FIELD:
                  case J_SPINNER:
                    JButton forwardEventButton = new JButton("Forward event");
                    forwardEventButton.addActionListener(new ActionListener() {
                      @Override
                      public void actionPerformed(ActionEvent event) {
                        JOptionPane.showMessageDialog(frame, new TestComboBoxEditor(flavor), flavor + " - Event forwarded", JOptionPane.INFORMATION_MESSAGE);
                    panel.add(forwardEventButton);
                    JButton doNotForwardEventButton = new JButton("Do Not Forward event");
                    doNotForwardEventButton.addActionListener(new ActionListener() {
                      @Override
                      public void actionPerformed(ActionEvent event) {
                        TestComboBoxEditor test = new TestComboBoxEditor(flavor);
                        test.fireActionPerformed = false;
                        JOptionPane.showMessageDialog(frame, test, flavor + " - Event not forwarded", JOptionPane.INFORMATION_MESSAGE);
                    panel.add(doNotForwardEventButton);
                    break;
                  case DEFAULT:
                    JButton openButton = new JButton("Dialog");
                    openButton.addActionListener(new ActionListener() {
                      @Override
                      public void actionPerformed(ActionEvent event) {
                        JOptionPane.showMessageDialog(frame, new TestComboBoxEditor(flavor), flavor + " - Default editor", JOptionPane.INFORMATION_MESSAGE);
                    panel.add(openButton);
                frame.add(panel);
              frame.pack();
              frame.setLocationRelativeTo(null);
              frame.setVisible(true);
            catch (Exception e) {
              e.printStackTrace();
       * A combo box editor that only accepts integers.
       * @author  fabriceb
      private class SizeComboBoxEditor implements ComboBoxEditor, PropertyChangeListener, FocusListener {
        private JFormattedTextField delegated = new JFormattedTextField(new NumberFormatter(NumberFormat.getIntegerInstance()));
        private EventListenerList listenerList = new EventListenerList();
        private boolean isEditing;
         * Creates a new instance.
        public SizeComboBoxEditor() {
          delegated.addPropertyChangeListener("value", this);
          delegated.addFocusListener(this);
          delegated.setBorder(null);
         * {@inheritDoc}
        @Override
        public Component getEditorComponent() {
          return delegated;
         * {@inheritDoc}
        @Override
        public void selectAll() {
          delegated.selectAll();
          delegated.requestFocus();
         * {@inheritDoc}
        @Override
        public void setItem(Object anObject) {
          isEditing = true;
          if (delegated.getValue() == null || !delegated.getValue().equals(anObject)) {
            delegated.setValue(anObject);
          isEditing = false;
         * {@inheritDoc}
        @Override
        public Object getItem() {
          return delegated.getValue();
         * {@inheritDoc}
        @Override
        public void addActionListener(ActionListener l) {
          listenerList.add(ActionListener.class, l);
         * {@inheritDoc}
        @Override
        public void removeActionListener(ActionListener l) {
          listenerList.remove(ActionListener.class, l);
        protected void fireActionEvent(Integer value) {
          Object listeners[] = listenerList.getListenerList();
          ActionEvent actionEvent = null;
          for (int i = listeners.length - 2; i >= 0; i -= 2) {
            if (listeners[i] == ActionListener.class) {
              // Lazily create the event.
              if (actionEvent == null) {
                actionEvent = new ActionEvent(delegated, ActionEvent.ACTION_PERFORMED, String.valueOf(value));
              ((ActionListener) listeners[i + 1]).actionPerformed(actionEvent);
         * {@inheritDoc}
        @Override
        public void propertyChange(PropertyChangeEvent event) {
          if (!isEditing) {
            Object value = delegated.getValue();
            if (value == null) {
              return;
            int val = ((Number) value).intValue();
            System.out.println("Should forward " + value);
            if (fireActionPerformed) {
              fireActionEvent(val);
        @Override
        public void focusGained(FocusEvent e) {
          System.out.println("JFormattedTextField: Focus gained.");
        @Override
        public void focusLost(FocusEvent e) {
          System.out.println("JFormattedTextField: Focus lost.");
       * A combo box editor that only accepts integers.
       * @author  fabriceb
      private class Size2ComboBoxEditor implements ComboBoxEditor, ChangeListener, FocusListener {
        private SpinnerNumberModel model = new SpinnerNumberModel(1, 1, 100, 1);
        private JSpinner delegated = new JSpinner(model);
        private EventListenerList listenerList = new EventListenerList();
        private boolean isEditing;
         * Creates a new instance.
        public Size2ComboBoxEditor() {
          delegated.addChangeListener(this);
          delegated.addFocusListener(this);
          delegated.setBorder(null);
         * {@inheritDoc}
        @Override
        public Component getEditorComponent() {
          return delegated;
         * {@inheritDoc}
        @Override
        public void selectAll() {
          //delegated.getEditor().selectAll();
          delegated.requestFocus();
         * {@inheritDoc}
        @Override
        public void setItem(Object anObject) {
          isEditing = true;
          if ((anObject != null) && (delegated.getValue() == null || !delegated.getValue().equals(anObject))) {
            delegated.setValue(anObject);
          isEditing = false;
         * {@inheritDoc}
        @Override
        public Object getItem() {
          return delegated.getValue();
         * {@inheritDoc}
        @Override
        public void addActionListener(ActionListener l) {
          listenerList.add(ActionListener.class, l);
         * {@inheritDoc}
        @Override
        public void removeActionListener(ActionListener l) {
          listenerList.remove(ActionListener.class, l);
        protected void fireActionEvent(Integer value) {
          Object listeners[] = listenerList.getListenerList();
          ActionEvent actionEvent = null;
          for (int i = listeners.length - 2; i >= 0; i -= 2) {
            if (listeners[i] == ActionListener.class) {
              // Lazily create the event.
              if (actionEvent == null) {
                actionEvent = new ActionEvent(delegated, ActionEvent.ACTION_PERFORMED, String.valueOf(value));
              ((ActionListener) listeners[i + 1]).actionPerformed(actionEvent);
         * {@inheritDoc}
        @Override
        public void stateChanged(ChangeEvent event) {
          if (!isEditing) {
            Object value = delegated.getValue();
            if (value == null) {
              return;
            int val = ((Number) value).intValue();
            System.out.println("Should forward " + value);
            if (fireActionPerformed) {
              fireActionEvent(val);
        @Override
        public void focusGained(FocusEvent e) {
          System.out.println("JSpinner: Focus gained.");
        @Override
        public void focusLost(FocusEvent e) {
          System.out.println("JSpinner: Focus lost.");
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

    Thanks for the advice but that's not what I am looking for. My itend is to later have a fully custimized editor that implied pattern configuration (for currency, scientific units, etc..) as well as context popup support as well as complitly different kinds of editors (ie: not-textfield based) but that still fit within the combo area (ie: the address bar for Vista's Explorer).
    I am still considering keeping a (weak) reference to the parent combo to manually edit its content when the PropertyChangeEvent is received.
    Edited by: bouye on Sep 1, 2008 2:23 PM

  • HT200169 Having a problem with Logic 9 on a Mac Pro.Working on a lenghty song and apparently session got corrupted.Doesnt let me export tracks,program crashes.Already tried start brand new session with the tracks imported into it but still wont export.Sug

    Hello,having a problem with Logic 9 on a Mac Pro.Working on a lenghty song and apparently session got corrupted.Doesnt let me export tracks,program crashes.Already tried start brand new session with the tracks imported into it but still wont export.Suggestions?

    Thanks, Ian. Yeah, that's how I do it now...or with the controls in the left side pane. Still, I would have liked that quick on-the-spot edit capability...especially while sketching.
    Ian Turner wrote:
    Sorry Mark, you are out of luck as it does not do that - it works the same as L8. The way I would achieve that with more accuracy and control would be to route all the tracks you want to fade to a Bus then use volume automation on the bus. To do this you will need to add a standard audio track, then re-assign it using (Control Click on the track header) to the Bus track. You can then automate volume/plugins etc on the Bus track.
    Ian

  • JTree selection problem when using custom renderer and editor

    Hello:
    I created a JTree with custom renderer and editor.
    The customization makes JCheckBox to be the component
    responsible for editing and rendering.
    The problem is that when I click on the node with the checkbox
    the JTree selection model does not get updated.
    Without customizations of the editor and renderer the MouseEvent would be fired and BasicTreeUI$MouseHandler.mousePressed() method would call
    the selectPathForEvent() method which would be responsible for updating
    the selection model. At the same time if I attach a mouse listener to the JTree (customized) I see the events when clicking on the nodes. It seems like the MouseEvent gets lost and somehow as a result of which the selection model does not get updated.
    Am I missing something?
    Thanks
    Alexander

    You probably forgot to call super.getTreeCellRendererComponent(...) at the beginning of your getTreeCellRendererComponent(...) method in your custom renderer.
    Or maybe in the getTreeCellEditorComponent(...) of the TreeCellEditor...

Maybe you are looking for

  • Airport Express connectivity with a remote server

    I have gone to our ISP already with this question, but they cannot assist me. I am hoping someone here will be able to assist me in solving this problem. My boss wishes to connect to our server at our company from his home using an Airport Express. T

  • Itunes won't open unless I disconnect the network/internet, why?

    My Itunes won't open (after clicking the icon and seeing it running in task manager) until I disconnect the internet connection.  How do I fix this?  I have the latest version of Itunes and Quicktime installed.

  • Current Period in DM package

    Hello Experts, How will we get current period in DM package? What would be the best solution to get current period in DM Package? We want to load ACTUAL from ECC for current month only. Hence in DM package we want to write this logic to populate curr

  • Batch file renaming

    How can I rename a group of files with heterogeneous names? I have a series of several hundred images, nealy all of which have unique, unrelated names.  I want to be able to rename them as a batch so they can be imported into quicktime pro to make a

  • Problem in video transmission

    hi, i hav done a video transmission from Local PC to internet, i am sucessfull in transmitting video from LAN to Static IP pc, i am receiving it in the server using the public IP, but in reverse when i send video from Static IP server to public IP i