Event custom and custom ItemRenderer

I created a MXML component based on < mx:Button / > and uses it as an itemRenderer in a DataGrid.

I also created a custom event, and my custom itemRenderer dispatches the event. I know that the event is sent because I see it in the debugger.

I register an event listener in the parent of the DataGrid, but the event handler is not called.

If you have any advice, please help.

In the DeleteItemEvent constructor:
Super (type, bubbles);

TS

Tags: Flex

Similar Questions

  • Custom ItemRenderer and event Bubbling

    I'm targeting Flex 4 on Air 2, but I don't think it changes the answer to this question.

    I have a spark DropDownList I wrote a custom itemRenderer. In my item renderer, I have a spark.button. I have links to events in the mxml and target functions in the respective classes, and I'm listening for the dropdownlist change event and my itemrenderer.spark.button click event.

    My problem is that I can't get any event in my fire element converter. It of like when I'm clicking the button, it triggers the dropdownlist.change event and destroyed the itemrenderer until it can handle the click event. So I thought that maybe I could solve this problem by adding listeners have rather than use mxml binding but same problem. Finally, I just put a trace in the click event of mxml and nothing. It does not with the item in the list before get rid you of the list.

    So, simply, how to capture events itemRenderer before allowing the DropDownList change event? Or why the click through button and cause control dropdownlist to destroy?

    It looks like uses DropDownList MOUSE_DOWN and no CLICK, which is why he

    close the drop-down list before you get your click.

    I saw a property hitAreaAdditions, you might be able to access the areas of block

    close the drop-down list, but you might want to just meet MOUSE_DOWN

    and stopPropagation on the event.

  • Flex 4: activate the scrolling on a list with a custom itemRenderer

    I extend the component Spark list to make it look like a Halo TileList component with a counter on top. The spark list default will add a horizontal scroll bar when the list content is wider than its width. This does not happen when I use a custom itemRenderer. I don't want the always visible horizontal scroll bar. It should be automatic. I tried all day to work around the problem and I have read the documentation and tried to change most of the component properties, but I cannot yet achieve what I wanted. Here is the source code:

    Main application

    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
                      xmlns:s="library://ns.adobe.com/flex/spark" 
                      xmlns:mx="library://ns.adobe.com/flex/mx"
                      minWidth="955" minHeight="600" 
                      backgroundColor="#777777">
         
         <fx:Declarations>
              <fx:XML id="libraryXML" source="/assets/xml/library.xml"/>
         </fx:Declarations>
                   
         <s:List id="library" itemRenderer="CustomItemRenderer" dragEnabled="true" contentBackgroundColor="#777777" selectionColor="0x555555"
                   alternatingItemColors="[0x777777, 0x707070]">
              
              <s:dataProvider>
                   <s:XMLListCollection source="{libraryXML.children()}"/>
              </s:dataProvider>
              
              <s:layout>
                   <s:HorizontalLayout paddingLeft="0" paddingRight="0" clipAndEnableScrolling="true"/>
              </s:layout>
              
         </s:List>
    </s:Application>
    

    Custom ItemRenderer

    <?xml version="1.0" encoding="utf-8"?>
    <s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" 
                        xmlns:mx="library://ns.adobe.com/flex/mx" 
                        xmlns:s="library://ns.adobe.com/flex/spark" >
         
         <s:states> 
              <s:State name="normal"/> 
              <s:State name="hovered"/>
         </s:states>
         
         <s:Group id="itemsRemaining" x="90" y="5" width="20" height="20">
              <s:Ellipse  height="20" width="20">
                   <s:fill>
                        <s:SolidColor color="0x333333"/>
                   </s:fill>
              </s:Ellipse>
              
              <s:Label text="{data.length}" color="0xFFFFFF" verticalCenter="0" horizontalCenter="0" fontSize="11" fontWeight="bold"/>
         </s:Group>
         
         <mx:Image id="image" source="{data.image}" width="116" height="116" horizontalCenter="0" verticalCenter="0"/>
         <s:Label id="itemName" fontSize="14" text="{data.label}" y="95" horizontalCenter="0" color="white"/>
    
    </s:ItemRenderer>
    

    DataProvider XML

    <?xml version="1.0"?>
    <items>
         <item>
              <label>stuff 1</label>
              <image>assets/images/img1.png</image>
              <length>4</length>
         </item>
         <item>
              <label>stuff 2</label>
              <image>assets/images/img2.png</image>
              <length>9</length>
         </item>
         <item>
              <label>stuff 4</label>
              <image>assets/images/img3.png</image>
              <length>7</length>
         </item>
         <item>
              <label>stuff 5</label>
              <image>assets/images/img4.png</image>
              <length>2</length>
         </item>
         <item>
              <label>stuff 3</label>
              <image>assets/images/img5.png</image>
              <length>5</length>
         </item>
         <item>
              <label>stuff 7</label>
              <image>assets/images/img6.png</image>
              <length>8</length>
         </item>
         <item>
              <label>stuff 8</label>
              <image>assets/images/img7.png</image>
              <length>11</length>
         </item>
         <item>
              <label>stuff 9</label>
              <image>assets/images/img8.png</image>
              <length>23</length>
         </item>
         <item>
              <label>stuff 10</label>
              <image>assets/images/img9.png</image>
              <length>4</length>
         </item>
         <item>
              <label>stuff 12</label>
              <image>assets/images/img10.png</image>
              <length>2</length>
         </item>
         <item>
              <label>stuff 11</label>
              <image>assets/images/img11.png</image>
              <length>8</length>
         </item>
    </items>
    

    Here is a screenshot:

    http://img812.imageshack.us/img812/4331/screenshotir.png

    Download (84 KB) Project:

    http://www.2shared.com/file/2EpFB3K2/Flex4ListIssue.html

    I think you could fix it in 2 ways

    (1) call "invalidateDisplayList()" on the list to "updateComplete" event.

    (2) which provide the dataProvider by using binding, preInitialize event to provide the dataProvider.

    I think that data comes after the initial layout. While it will create this problem. If this is the reason why this should correct the problem.

  • ComboBox with customized ItemRenderer

    It's my combobox when trying to get a custom converter:

    <?xml version="1.0" encoding="utf-8"?>
    <mx:ComboBox xmlns:fx="http://ns.adobe.com/mxml/2009" 
                    xmlns:s="library://ns.adobe.com/flex/spark" 
                    xmlns:mx="library://ns.adobe.com/flex/halo">
         <fx:Script>
              <![CDATA[
              import mx.events.FlexEvent;
              import mx.collections.ArrayCollection;
              import mx.controls.CheckBox;
              public var datas:XML;
              [Bindable]
              var ItemRenderer:ClassFactory;     
              override public function set data(value:Object):void
              {
                   dataProvider = datas["sku" + value.sku];
                   ItemRenderer = new ClassFactory(comboBoxCheckBoxItemRenderer);     
                   itemRenderer = ItemRenderer;
              }               
              public function saveCheckState(evt:Event):void
              {
                   var dataProviderItem:Object = dataProvider.getItemAt(dataProvider.getItemIndex(selectedItem));
                   dataProviderItem.selected = CheckBox(evt.currentTarget).selected;
                   dataProvider.setItemAt(dataProviderItem, dataProvider.getItemIndex(selectedItem));     
              }
              ]]>
         </fx:Script>     
    </mx:ComboBox>
    
     
     
    This combobox is used as a custom itemrenderer in datagrid.
    Here is code for comboBoxCheckBoxItemRenderer:
    package modulecode
    {
         import mx.containers.HBox;
         import mx.controls.CheckBox;
         import mx.controls.Label;
         import mx.controls.Spacer;
     
         public class comboBoxCheckBoxItemRenderer extends HBox
         {
              private var action:Label;
              private var spacer:Spacer;
              private var checkBox:CheckBox;
              public function comboBoxCheckBoxItemRenderer()
              {
                   super();
              }
              override protected function createChildren():void {
                   
                   // Call the createChildren() method of the superclass.
                   super.createChildren();
                   action = new Label();
                   // Add the child component to the custom component.
                   addChild(action);
                   spacer = new Spacer();
                   spacer.percentWidth = 100;
                   // Add the child component to the custom component.
                   addChild(spacer);
                   checkBox = new CheckBox();
                   // Add the child component to the custom component.
                   addChild(checkBox);
              }     
              override public function set data(value:Object):void
              {
                   action.text = value.action;
                   checkBox.selected = value.selected;
              }     
         }
    }
    
    What's happening is that nothing is happening untill I drop combobox down in the grids. As the result checkboxes are not selected properly.
    Any help?
    
    
     
    

    I would try

    selected = "{XML (data) .selected == 'true'} '"

  • Cannot focus on the custom itemRenderer?

    I made a custom itemRenderer double as an itemEditor following the instructions in the documentation.
    However, even if I put the rendererIsEditor = "true", when tabbing between other editable fields, controls within the itemRenderer do not receive focus. I can't help thinking it of a control/bug, but is it possible to submeter the itemRenderer to focus properly? At the moment my component is simply a box inside an HBox.

    Anyway, here is my code so that you can see for yourself (I have included a checkbox as itemRenderer so that you can see the * desired * effect.)

    <? XML version = "1.0" encoding = "utf-8"? >
    < mx:Application
    ' xmlns:MX =' http://www.adobe.com/2006/mxml ' layout = "vertical" >
    < mx:Script >
    <! [CDATA]
    Import mx.controls.dataGridClasses.DataGridListData;
    Import mx.controls.Alert;
    [Bindable]
    public var dp:Array = [{num:2, bool:true}, {num:3, bool:false}];
    []] >
    < / mx:Script >
    < mx:DataGrid id = "test" editable = "true" dataProvider = "{dp}" >
    < mx:columns >

    < mx:DataGridColumn dataField = "num" headerText = "num" / >
    < mx:DataGridColumn dataField = "bool".
    headerText = "sent".
    itemRenderer = "mx.controls.CheckBox"
    rendererIsEditor = "true" editorDataField = "selected" / >

    < mx:DataGridColumn dataField = "num" headerText = "num" editable = "true" / >
    < mx:DataGridColumn dataField = "bool" headerText = "Sent" rendererIsEditor = "true" editorDataField = "blorch" >
    < mx:itemRenderer >
    < mx:Component >
    < mx:HBox horizontalAlign = "center" >
    < mx:Boolean id = "blorch" / >
    "< mx:CheckBox id = 'check' selected =" {data.bool} "change =" blorch = check.selected "/ >
    < / mx:HBox >
    < / mx:Component >
    < / mx:itemRenderer >
    < / mx:DataGridColumn >
    < mx:DataGridColumn dataField = "num" headerText = "num" editable = "true" / >
    < / mx:columns >
    < / mx:DataGrid >
    < / mx:Application >

    Too bad... I found the answer to a few pages later in the docs...
    You must implement the IFocusManagerComponent interface and then substitute drawFocus as below to set the focus to the checkbox... hope it works for multiple controls.



    override public function drawFocus(focused:Boolean):void {}
    check.setFocus ();
    }
    ]]>



  • Edit event managed by this case in LabVIEW 2013 does not show the specifiers of the event, Event Sources and events on screen resolution 800 x 600

    Edit event managed by this case in LabVIEW 2013 shows not specifiers of the event, Event Sources and events on screen resolution 800 x 600.

    As far as I know, the list of supported resolutions is determined solely by the graphics card. It is possible that one used by the PC supports only 800 x 600 as maximum resolution, even if you plug an external monitor.

    Like Dennis suggested, the recommended option would probably be to develop on another PC and only deploy an executable for the industrial PC. That's what we do with our systems (although not because of this problem, but because it makes sense. There absolutely no need to have the IDE installed in most of our systems).

    Other options:

    1. See if you can get an update of the driver from the manufacturer to solve this problem.
    2. Plug a USB Monitor with its own driver.
    3. Try to hide the taskbar and make the smaller title bar in the hope that the bug manifests.
    4. Try remote access in the PC. I think that some remote access programs allow you to specify custom resolutions that are not affected by the original drivers. Remote Desktop seems to be a likely this option even if it has been awhile since I've used it.
    5. Check the BIOS. I saw at least one industrial PC where there was some settings in the BIOS to control the resolution, but I don't remember the details, and it was quite limited. I think that in this case, you can change the resolution, but then the image does not fill the entire screen.
  • Received a call from someone claiming to be from Microsoft - error in MS Windows event viewer and warnings

    I just got a phone call from someone claiming to be from Microsoft.  He directed me to go to MS Windows event viewer and County errors and warnings in the Applications and the system section.  Then he asked me to let them access my computer and fix any problems that would be 'crash' of my computer.  When I refused him access said he couldn't help me and hung up.  I do not think that it was Microsoft but are ratings warning and error a problem?  I use Windows XP.

    Kudos to you 1Grizzly, you have made the right choice. Microsoft does not make unsolicited support calls or send emails to customers, offering support.

  • My computer is slow and I checked the event viewer, and it says I have reached my limits of interruption of security.

    My computer is slow and I checked the event viewer, and it says I have reached my limits of interruption of security. I ran Netstat-no, but data flashed on the screen, but I can't freeze it at the screen to display the data. What keys down to hold the data on the screen to display it.
    Thank you, OTTO

    original title: interruption tcp/ip connect limits

    Hello

    Try the steps below and check if the problem persists.

    Step 1:

    Run the fix provided in the link below to reset TCP/IP and check if that helps.

    How to reset the Protocol Internet (TCP/IP)

    http://support.Microsoft.com/kb/299357

    Note:

    Step above contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    How to back up and restore the registry in Windows

    http://support.Microsoft.com/kb/322756

    Step 2:

    You can check the link provided below for more information on the use of Net command in Windows XP stat.

    Netstat

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/netstat.mspx?mfr=true

  • Error in Event Viewer and warning messages.

    original title: ERROR EVENT VIEWER AND warning MESSAGES

    My computer is running Windows XP Media Center Edition and if I click on the PANEL, performance and Maintenance, administrative tools, event viewer and select Application and/or system I see RED around the icons who say ERROR and yellow triangular icons who say WARNNING. This condition is a problem and what is the origin of the messages must be generated?

    Hi SamRyan,

    See this article which should give you more details on the event viewer.

    Procedure to view and manage event logs in Event Viewer in Windows XP

    See also:

    Microsoft Windows XP - using Event Viewer

  • Notifications of events generated and sent to EWS counts for TMSXE

    Hello world

    My account of EWS has been installed for TMSXE receives notifications of events planning and trying to find a way to turn it off.  When I go to system-> Notification of events and for the TMSXE account management, it is not configured to receive any notifications.  Yet, it does.

    If I add notifications for other events (for example start-up), the account TMSXE receives e-mails for charging machines, as well as planning events.

    It seems that TMS is stuck with the idea that it is to send this information to the TMSXE account.  What is a behavior of the integration of the Exchange with TMSXE?  Can it be disabled?

    Thank you

    Shawn

    Hey

    It happens that if you enable the user tmsxe as 'User integration Exchange' there is a checkbox if you change the user. Just uncheck it. This setting will be deleted in a future of tms versions because it is no longer used.

    / Magnus

    Sent by Cisco Support technique iPhone App

  • Difference xfa.event.newText and btwn xfa.event.change pls?

    Hello

    I tried to understand the difference between xfa.event.change and xfa.event.newText in google, but has not seen such a!

    Pls can you clariy my question that what is the differenvce between these 2 (xfa.event.change and xfa.event.newText)?

    Thank you

    Hello

    boxes do not generate a change of value, so you need another way to prevent bechecked if any other field is empty.

    A solution to this script in the event: click your checkbox.

    if (xfa.resolveNode("myFomr.Page2.mySubform21.BankNumber").isNull) {
              this.rawValue = "0";
    }
    
  • Event.Target and nested clips

    Hey all,.


    Here's my dilemma; I have a bunch of video clips in my main timeline with at least 2 nested clips inside them, MyMc.nested1.nested2 etc.
    I gave the top most video clips that rely on the main timeline instance names.
    In a document class that I created a private variable typed as an array and placed all these MC names in this table.
    I then loop through the length of the array and assigned 2 event for each instance listeners.
    Example:

    for (var i: uint = 0; i < _activities.length; i ++)
    {
    _activities [i] .buttonMode = true;
    _activities [i] .addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
    _activities [i] .addEventListener (MouseEvent.MOUSE_UP, dropIt);
    }

    in the event pickup() is were my problem seems to be coming.
    In the microphone function, I have the following:

    event.target.startDrag)

    It seems to work, but only on the lowest nested movie clip... nested2
    I can use event.target.parent.parent.startDrag () and that seems to work... Except when I place an another movieclip in the second layer of the of the MyMC, if it is accidentally clicked, it will now slide on the stage.
    I tried to use event.target.mouseChildren = false, but that doesn't seem to work on the lowest nested object... nested2 as this seems to be one I'm clicking
    Is there something that miss me to say, click only the mc at a higher level, and then ignore all nested mc?

    Thank you

    Try to use: "event.currentTarget" and you can also set 'mouseChildren = false' on the clip you want to move (but what to put in a function init, not the mouse Manager).

  • Problem of mouse event (OVER and CLICK)

    Hello world.

    I ' n new AS3 and it was DIFFICULT to understand some simple things, I used to solve easily on AS1 and AS2...

    I have a BUTTON called BOTAO82 which, once having a MOUSE event, should show a simple TEXT on a specific area of the screen (something explaining where this button takes you to).
    This button will be two events: MOUSE_OVER and MOUSE_CLICK.
    The CATCH, I understand... Ok.
    The problem is no LONGER. How to DISPLAY the related TEXT when the mouse is over this button?

    Here is what I put on the STAGE as code:

    =============
    botao82.addEventListener (MouseEvent.MOUSE_OVER, botao82over);
    botao82.addEventListener (MouseEvent.CLICK, botao82click);

    function botao82over(event: MouseEvent)
    {
    do not know what to do here...
    }
    function botao82click(event: MouseEvent)
    {
    gotoAndPlay ("video82");
    }
    ===============

    Any ideas, please?

    PS. : The first thing I tried was putting the TEXT to display IN the configuration BUTTON, who ended up in the TEXT BOX, a button itself! Gee whiz... terrible!

    Thank you all! ;)

    So, just so that we have everything (breakdowns) SETTLED in our minds... that's the FINAL working code:

    ------
    txt82. Visible = false;

    botao82.addEventListener (MouseEvent.MOUSE_OVER, botao82over);
    botao82.addEventListener (MouseEvent.MOUSE_OUT, botao82out);
    botao82.addEventListener (MouseEvent.CLICK, botao82click);
    function botao82over(event: MouseEvent)
    {
    txt82. Visible = true;
    }
    function botao82out(event: MouseEvent)
    {
    txt82. Visible = false;
    }
    function botao82click(event: MouseEvent)
    {
    gotoAndPlay ("video82");
    }

    where txt82 and botao82 are MOVIECLIPS with these exact instance NAMES.

    And here! That's all!
    Don't forget to mark the
    «automatically declare stage instances»
    the settings for AS3!

  • no selection in the list with custom itemRenderer

    Once an itemRenderer custom, consisting of a canvas with image and label, submit to a list control that list loses the ability to choose. the selectable attribute is set to true. There are no managers in the renderer that can eat the event.

    How can I provide the itemRenderer custom without losing the functionality of the list?

    Theoretically, you should avoid using containers as element converters because they are 'heavy' with the functionality you don't need.

    Best practice is to extend or to copy and modify ListItemRenderer.as. The source is in the file framework somewhere.

    This is not trivial, but it's not rocket science either. The Adobe code is quite clear and well commented.

    In addition, google: Alex Harui element converter, for a few examples by a master of Adobe.

    Tracy

  • Update scheduled task orchestration event custom password manager problem

    Hello experts,

    I'm trying to run a custom on-demand updating the user password in IOM 11.1.1.5

    Taken into account in the file input stream, there are 5 users
    TSTUSR1
    TSTUSR2
    TSTUSR3
    TSTUSR4
    TSTUSR5

    Problem that I face is when the update of password change fails for a user and for future users also obtain failed. Say to TSTUSR3 change the password has failed for some reason any (take the example user does not exist) then TSTUSR4 and TSTUSR5 also it is failed.

    Note: here the changepassword to TSTUSR4 and TSTUSR5 is get called but I get an orchestration event manager exception like below.

    < 9 March 2012 06:26:12 THIS > < WARNING > < oracle.iam.platform.kernel.impl > < IAM-00 80002 > < Orchestration validation failed on the event handler - the password change operation failed >.
    Exception occurred during password change
    oracle.iam.identity.exception.UserManagerException: the password change operatio n failed.
    at oracle.iam.identity.usermgmt.impl.UserManagerImpl.changePassword (user ManagerImpl.java:3024)
    at oracle.iam.identity.usermgmt.impl.UserManagerImpl.changePassword (user ManagerImpl.java:2959)
    at oracle.iam.identity.usermgmt.api.UserManagerEJB.changePasswordx (exercise wn Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl. java: 39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcces sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJo inpointUsingReflection(AopUtils.java:310)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMetho dInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMetho dInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntrodu ctionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntrodu ctionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMetho dInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisit orImpl.visit(MethodInvocationVisitorImpl.java:37)
    at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.c allback(EnvironmentInterceptorCallbackImpl.java:54)
    at com.bea.core.repackaged.springframework.jee.spi.EnvironmentIntercepto r.invoke(EnvironmentInterceptor.java:50)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMetho dInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocat ionInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMetho dInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntrodu ctionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntrodu ctionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMetho dInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopPr oxy.invoke(JdkDynamicAopProxy.java:204)
    to $Proxy331.changePasswordx (Unknown Source)
    at oracle.iam.identity.usermgmt.api.UserManager_nimav7_UserManagerRemote Impl.__WL_invoke (unknown Source)
    to weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke (its sionRemoteMethodInvoker.java:40)
    at oracle.iam.identity.usermgmt.api.UserManager_nimav7_UserManagerRemote Impl.changePasswordx (unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl. java: 39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcces sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke (distance BusinessIntfProxy.java:85)
    to $Proxy195.changePasswordx (Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl. java: 39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcces sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti on(AopUtils.java:307)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke (JdkDynami cAopProxy.java:198)
    to $Proxy328.changePasswordx (Unknown Source)
    oracle.iam.identity.usermgmt.api.UserManagerDelegate.changePassword (U're Source)


    And here is the code snippet I use
    ####################

    Try
    {
    CsvReader fileName = new CsvReader (actualPath);
    fileName.readHeaders ();

    While (fileName.readRecord ()) {}

    Try
    {

    String username = fileName.get("USR_LOGIN").toUpperCase ();
    Password String = fileName.get ("USR_PASSWORD");

    If (! isNullOrEmpty (username) & &! isNullOrEmpty (password))
    {
    userAPI.changePassword (username, password.toCharArray (), true);
    }
    on the other
    {
    System.out.println ("file is empty");
    Err.Add (FileName.getRawRecord ());
    }
    } catch (Exception e) {}
    Err.Add (FileName.getRawRecord ());
    System.out.println ("Exception occurred during password change");
    e.printStackTrace ();
    System.out.println ("continues with the next record");
    }
    }

    catch (Exception e) {}
    e.printStackTrace ();
    }

    ####################

    Your entry to most early would be useful.

    Thank you
    DK

    Published by: 875142 on March 8, 2012 22:56

Maybe you are looking for