Custom event on a bean not working!

I'm trying to set a beans properties by using the propertyEventsDescriptors method and have the 2 following classes 'Person' and 'PersonBeanInfo'.
When I add a bean to my program I want to be able to select the nameChange event but at the moment nothing is coming up when I choose event.
Its the getEventSetDescriptors() in PersonBeanInfo where I think something is wrong can you have a look.
package explicit;
import java.beans.EventSetDescriptor;
import java.beans.IntrospectionException;
import java.beans.PropertyDescriptor;
import java.beans.SimpleBeanInfo;
public class PersonBeanInfo extends SimpleBeanInfo {
     public Person person;
     public PropertyDescriptor[] getPropertyDescriptors() {
     try {
          PropertyDescriptor nameDescriptor = new PropertyDescriptor("name", Person.class);
          PropertyDescriptor addressDescriptor = new PropertyDescriptor("home address", Person.class, "getAddress", "setAddress");
          PropertyDescriptor[] propertyDescriptorArray = {nameDescriptor, addressDescriptor};
          return propertyDescriptorArray;
     } catch (IntrospectionException e) {
          System.out.println("error");
     return null;
     @Override
     public EventSetDescriptor[] getEventSetDescriptors() {
          Class sourceClass = Person.class;
          String eventSetName = "NameChangedEvent";
          Class listenerClassType = NameChangeListener.class;
          String[] listenerMethodName = { "nameChanged" };
          String addListenerMethodName = "registerNameChangeListener";
          String removeListenerMethodName = "deregisterNameChangeListener";                              
               try {
                    EventSetDescriptor nameChangeEventDescriptor = new EventSetDescriptor(sourceClass, eventSetName, listenerClassType, listenerMethodName, "nameChanged", addListenerMethodName, removeListenerMethodName);
                    EventSetDescriptor[] descriptors = {nameChangeEventDescriptor};
                    return descriptors;
               } catch (IntrospectionException e) {
                    return null;
package explicit;
import java.util.ArrayList;
import java.util.List;
public class Person {
     private String name;
     private String address;
     private int age;
     private List<NameChangeListener> listeners = new ArrayList<NameChangeListener>();
     public String getAddress() {
          return address;
     public void setAddress(String address) {
          this.address = address;
     public String getName() {
          return name;
     public void setName(String name) {
          this.name = name;
          this.fireNameChangeEvent();
     public void registerNameChangeListener(NameChangeListener listener) {
          listeners.add(listener);
     public void deregisterNameChangeListener(NameChangeListener listener) {
          listeners.remove(listener);
     private void fireNameChangeEvent() {
          NameChangeEvent event = new NameChangeEvent(this, name);
          for(NameChangeListener listener : listeners)
               listener.nameChanged(event);
I can't get my head around it, thanks for any help.

Sorry yeah everything complies perfectly. getEventSetDescriptors() is not being called in any other class no. What I want to do is when I put a bean on a window I want to be able to choose the event.
I'll post the other 2 classes I have sorry i forgot them
package explicit;
import java.util.EventListener;
public interface NameChangeListener extends EventListener {
     public void nameChanged(NameChangeEvent event);
package explicit;
import java.util.EventObject;
public class NameChangeEvent extends EventObject {
     private String name;
     public NameChangeEvent(Object source, String name) {
          super(source);
          this.name = name;
     public String getName() {
          return name;
}At the moment all the code compiles perfectly but its not doing what i want it to do. Thanks

Similar Messages

  • IPS event monitor and reports not working

    Dear after upgrading my IPS from E3 to E4  the event monitor  and reports not working, can you please advice my to solve this issues

    Hi All,
    Filter settings below:
    The filter works partially as I don't get alerts on the IPS itself.
    Firewall LOG:
    4          Feb 14 2014          15:33:22                              39715                    514          IPS requested to drop UDP packet from SOURCE_VLAN_NUMBER:/39715 to DESTINATION_VLAN_NUMBER:/514
    IPS LOG (when enabled):
    evIdsAlert: eventId=1352793300955167909  vendor=Cisco  severity=low 
      originator:  
        hostId: SSM02 
        appName: sensorApp 
        appInstanceId: 1192 
      time: Feb 14, 2014 15:33:22 UTC  offset=0  timeZone=GMT00:00 
      signature:   description=IP Fragment Too Small  id=1206  version=S212  type=anomaly  created=20030801 
        subsigId: 0 
        sigDetails: Too many small IP fragments in datagram 
      interfaceGroup: vs0 
      vlan: 0 
      participants:  
        attacker:  
          addr: 172.x.x.x  locality=OUT 
          port: 39715 
        target:  
          addr: x.x.x.x  locality=OUT 
          port: 514 
          os:   idSource=unknown  type=unknown  relevance=relevant 
      alertDetails: InterfaceAttributes:  context="single_vf" physical="Unknown" backplane="GigabitEthernet0/1" ; 
      riskRatingValue: 50  targetValueRating=medium  attackRelevanceRating=relevant 
      threatRatingValue: 50 
      interface: GigabitEthernet0/1  context=single_vf  physical=Unknown  backplane=GigabitEthernet0/1 
      protocol: udp 
    Our next step is to make a service policy exception on the firewall itself. We are also considering reloading the IPS device or at least the analysis engine.
    Thanks for all your help so far. Any more suggestions are most welcome. I'll keep you up to date.
    Regards
    Mariusz

  • Customized strings in iPad viewer not working?

    Hello,
    per request of client i've tried to change one string in viewer for iPad. So i've created template in DSP App Builder, modified this template on my computer, choose this file in App Builder and prepared another build (V28). Unfortunately, i still see old original string (i've double tested that i'm downloading new version of app). When i now check DPS App Builder, it just says "Asset stored on server", so i asume, that everything goes smoothly on this side.
    Any similar experience with customized strings?
    Thanks
    Martin

    Everything was done from scratch with V28.
    1. 10. 2013 v 16:14, Bob Bringhurst <[email protected]>:
    Re: Customized strings in iPad viewer not working?
    created by Bob Bringhurst in Digital Publishing Suite - View the full discussion
    That's odd. It worked for me when I tested it. Perhaps you should try moving the current xml file to a different folder, downloading a new version, copying and pasting, and rebuilding.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5728130#5728130
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5728130#5728130
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5728130#5728130. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Digital Publishing Suite at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • After migration from SP2010 to SP2013 event receiver code is not working

    we have two lists work order list and estimation list. we developed infopath form for work order list , in that we have work order field we don't enter the value of that field after filling the all fields when i clicked save button work order ID field
    will generate automatically and estimation hyper link will generate.when i click on estimation link estimation list will open, inthat list we have work order id filed it has to generate automatically(It will fetch the data from work order list). For generating
    automatically we written event receiver code in visual studio 2010.After migration from SP2010 to SP2013 it is not working. May i know what modification we have to do

    try these links:
    http://sharepoint.stackexchange.com/questions/75491/sharepoint-2013-event-receiver-on-custom-list-definition-not-firing
    http://www.sharepointdiary.com/2011/08/fix-missing-event-receivers-issue-in-migration.html
    http://stackoverflow.com/questions/28298707/we-have-event-receiver-code-issue-after-migration-from-2010-to-2013
    https://www.linkedin.com/groups/SharePoint-migration-designer-workflow-runs-3664766.S.5905212303858479106
    http://channel9.msdn.com/Series/Reimagine-SharePoint-Development/Migrating-a-SharePoint-Event-Receiver-to-a-Remote-Event-Receiver
    Please mark as answer if you find it useful else vote for it if it is close to answer..happy sharepointing

  • Event.hits property does not work at Adobe 9

    I have just discovered that the property "event.hits" does not work at Adobe Reader 9 properly.
    I have some JavaScript, which uses this property:
    if (event.hits.length > 0)
    var targetPos = event.hits[0].position;
    Now, at Adobe Reader 9 the value of "event.hits[0].position" is not correct.
    At Adobe 8 Standard this JavaScript works very well!
    Can you comment this issue?

    Hello to everyone!
    There is a some PDF file, which works fine on Adobe 8 and does not work properly on Adobe 9.
    You can download this file from the following hyper-link:
    http://www.pdf3d.co.uk/pdf/box97.pdf
    When I open this file on Adobe 8 then gold arrow works fine.
    In this case the gold arrow (pointer) has a true location on the box.
    When I open this file on Adobe 9 then gold arrow has a false location.
    In this case the gold arrow (pointer) has a false location on the box.
    Could somebody can to me a some suggestion?
    Thank you,
    Peter

  • Bean not working in 9i ids

    hello,
    i have a prograss bar bean class and i saved this bean in
    /form90/java and set the property of beans item " implement class" with this bean name but not working or display.
    urgent help.
    thanks

    Syed,
    does it show in the demos ? It's unusual that something doesn't show without an error message. Its hard to guess what the prolem is, but since you don't get Java errors in the Jinitiator panel, the Jar file seems to be there or the Bean conatiner doesn't reference it in his implementation property. However, even if you have a misspelled reference of the Java class in teh implementation class property, the Jinitiator console would show a file not found error. Java Beans are initiated when the canvas that they are placed on shows. This means that setting Bean properties before initialization does not have an effect (as far as I know even this raises an error).
    Which Jintiator version do you have? I am having 1.3.1.13 and experience some problem with the bean demos. It used to work with 1.3.1.9, which is the recommended version. Maybe your problem is similar.
    Fran

  • I am using a Application in c dll calling from jni jar by java applet in firefox version 19.0 , the problem is click event message box will not working correct

    I am using a Application in c dll calling from jni jar by java applet in firefox version 19.0 , the problem is button click event message box or popup window will not working correctly. Please any one suggest me the steps to overcome this not responding or slowness in the responding problem of Button click event.

    Hello,
    In Firefox 23, as part of an effort to simplify the Firefox options set and protect users from unintentially damaging their Firefox, the option to disable JavaScript was removed from the Firefox Options window.
    However, the option to disable JavaScript was not removed from Firefox entirely. You can still access it from about:config or by installing an add-on.
    '''about:config'''
    # In the address bar, type "about:config" (with no quotes), and press Enter.
    # Click "I'll be careful, I promise"
    # In the search bar, search for "javascript.enabled" (with no quotes).
    # Right click the result named "javascript.enabled" and click "Toggle". JavaScript is now disabled.
    To Re-enable JavaScript, repeat these steps.
    '''Add-ons'''
    You can alternatively install an add-on that lets you disable JavaScript, such as
    *[https://addons.mozilla.org/firefox/addon/noscript/ No-Script] (to disable JavaScript on a per page basis, as required)
    *[https://addons.mozilla.org/firefox/addon/quickjava/ QuickJava] (to easily disable and enable JavaScript, automatic loading of images, and other content)
    Thank you and I hope this helps!

  • Web Viewer embedded (custom domain) and button url not work!!! (Urgent!!!)

    Many sorry for this question - we have a Web Viewer embedded (custom domain) that have all url (button with open in browser) that not work!
    On tablet (Apple + Android) the button work great but on web viewer they do not work!
    Any ideas to solve?
    I see it: Where to place add externalLinksOpen : 'window' to FrameService?
    web viewer URL links

    Any ideas to solve?

  • Custom Logi task flow is not working

    I created a custom task flow for webcenter spaces login and deployed it using extending webcenter spaces, added it to one of my custom resource catalogue and then added it to the spaces login page. The login process works fine but the problem is that i am Evaluating an EL to check if the user falls under a particular group and if true then redirect him to a particular space. When i try login for the first time it authenticates but even though the user belongs to the desired group, the EL is still evaluated to "false", which in turn returns truw if i try login for the second time. i think the WCSecurityContext is not working for the first time. Any guesses why? or is there a different problem in the implementation. The EL is "#{WCSecurityContext.userInGroup['XYZ']}" where XYZ is one of the groups in OID.
    Urgent Help required..............
    Thanks in advance

    try
    securityContext.userInRole instead of WCSecurityContext

  • Custom built page bookmark is not working

    Hi,
    We have used Captive 2 to built course & publishing it
    for SCORM 1.2 for eLearning output.
    Some of the custom built interactivities page with more than
    one step in it, bookmarking is not working. It skips the bookmark
    for those interactive pages.
    Is there are solution to avoid this ?
    Thanks.
    Regards
    Chetan

    Hi,
    Thanks for the feedback. It is like that until we turn on
    report for particular slide nothing get reported to LMS (including
    bookmark).
    If this is the case then i have course which has some
    interactive pages along with assessment. I want to just report the
    scores for assessment pages and not the other interactive practice
    pages. If i turns on reporting for other pages for bookmarking
    purpose my score get updated which is not required.
    Is there any way I can bookmark each interactive page &
    normal page without updating the score ?(excluding assessment)
    Thanks.
    Chetan

  • Captivate 7 event video playback controls not working

    Hi,
    I'm using Captivate 7 and published an mp4 event video with limited playback controls (only play, pause, back, and close) on the slide, since the event video controls won't show up once published. When I publish the HTML5 video (with or without seamless tabbing) the controls are not working. When I click play the video plays and I can pause it, but when I want to continue play, the controls are not working.
    I tried only to use the skins (clear, corona, and halo) given with the event video, but then I can't pause the video at all, since the controls are not showing.
    We need the video to play in HTML5 mode for iPads and computers, but we're at a loss with the controls. The video has got to be limited to only play, pause, back, and close - no scrubbing or forwarding. Any ideas?
    Thanks,
    Nat

    I know you will hate Captivate for this. But if you are publishing to HTML5, the skins you select here won't make any difference as HTML5 output comes with its own mysterious skin which is not visible until you publish and check.
    Here is how that skin looks when viewed in Google Chrome browser on my laptop running on Windows 7.
    Here is the skin I have used for that in the Captivate editor.
    The best way to test these outputs is from a webserver or SCORM Cloud.
    Sreekanth

  • Customer JSF Component Value Expression not work

    why my customer tag not work,
    in my jsp
    <q:my formatString="yyyy/mm/dd" current="#{LoginBean.date}"></q:my>the isLiteralText() always return true, and I can't get the correct value, #{LoginBean.date} is returned.
    bellow is my tag source.
    can anyone help me.
    package jsf;
    import javax.el.ValueExpression;
    import javax.faces.component.UIComponent;
    import javax.faces.webapp.UIComponentELTag;
    public class MyCustomerTag extends UIComponentELTag {
        private String formatString;
        @Override
        public String getComponentType() {
            return "COMPONENT_TYPE";
        @Override
        public String getRendererType() {
            return "COMPONENT_TYPE";
        @Override
        public void release() {
            super.release();
            setFormatString(null);
        @Override
        protected void setProperties(UIComponent component)  {
            if (!(component instanceof UIDatePicker))
                throw new IllegalArgumentException("Component "+
                    component.getClass().getName() +" is no UIDatePicker");
            component.setValueExpression("current", current);
            System.out.println(current.getExpressionString());
            System.out.println(current.isLiteralText());
            System.out.println((String) component.getAttributes().get("current"));
         * @return the formatString
        public String getFormatString() {
            return formatString;
         * @param formatString the formatString to set
        public void setFormatString(String formatString) {
            this.formatString = formatString;
        private ValueExpression current;
         * @return the value
        public ValueExpression getCurrent() {
            return current;
         * @param value the value to set
        public void setCurrent(ValueExpression current) {
            this.current = current;
    }

    I do not know what your native is, but there's quite a huge difference between "custom" and "customer". Look it up in your dictionary.

  • Event.hits property does not work at Adobe 9 (repost)

    Hello to everyone!
    There is a some PDF file, which works fine on Adobe 8 and does not work properly on Adobe 9.
    You can download this file from the following hyper-link:
    http://www.pdf3d.co.uk/pdf/box97.pdf
    When I open this file on Adobe 8 then gold arrow works fine.
    In this case the gold arrow (pointer) has a true location on the box.
    When I open this file on Adobe 9 then gold arrow has a false location.
    In this case the gold arrow (pointer) has a false location on the box.
    Could somebody can to me a some suggestion?
    Please note if you are using "Orthographic" mode then the gold arrow works fine and has a true location on the box (both Adobe 9 and Adobe .
    If you are using "Perspective" mode then the problem is occurred.
    In this case the gold arrow (pointer) has a false location on the box (on Adobe 9 only).
    I am guessing that something in "Perspective algorithm" has been broken.
    Could somebody can to me a some suggestion?
    Best Regards,
    Peter

    Hello to everyone!
    There is a some PDF file, which works fine on Adobe 8 and does not work properly on Adobe 9.
    You can download this file from the following hyper-link:
    http://www.pdf3d.co.uk/pdf/box97.pdf
    When I open this file on Adobe 8 then gold arrow works fine.
    In this case the gold arrow (pointer) has a true location on the box.
    When I open this file on Adobe 9 then gold arrow has a false location.
    In this case the gold arrow (pointer) has a false location on the box.
    Could somebody can to me a some suggestion?
    Thank you,
    Peter

  • Oracle APPS custom form using KFF is not working as expected

    Hi,
    I have created a custom form and using KFF to accept code combination in line block. My custom form is based on AP_INVOICES_INTERFACE and AP_INVOICE_LINES_INTERFACE.
    When I query the records in form and update the code combination field using keyboard (typing or copy-paste) it works fine at first time but when I re-enter another code then it does not accepts the new code and reverts to previous code. Form accepts the same code when KFF screen is using by pressing LOV button. I concluded this problem as "when record status is QUERY then KFF works fine with keyboard but when record status changes to CHANGED then it does not accepts the new code when entered using keyboard".
    I have created all triggers and invoked relevant fnd_flex.event in triggers. I have created PRE-QUERY, POST-QUERY, PRE-INSERT, PRE-UPDATE, WHEN-VALIDATE-ITEM, WHEN-VALIDATE-RECORD, WHEN-NEW-ITEM-INSTANCE, KEY-EDIT, KEY-LISTVAL at form level and calling FND_FLEX.EVEND and APPS_STANDARD.EVENT (where required) in triggers.
    This same issue is in AP Invoice Workbench form. When updateing code combination in distribution block in invoice form is showing same behaviour.
    I am running this form in 12.1.2, same form is working in other instance which is on 12.1.3.
    Please help.
    Regards,

    Please check the below link just to make sure all steps are taken care.
    http://oraclemaniac.com/2012/08/15/how-to-add-a-descriptive-flexfield-dff-in-a-custom-oracle-apps-form/

  • DVR w/ FLVPlayback 2.5.0.15 & Custom Publishing Client - Seek Bar Not Working [updated]

    [ UPDATED to include code and modified language after I discovered that everything works when I use Live Encoder.... ]
    Hello.
    So I've got the DVRCast application installed, and I am successfully streaming live-DVR content to the updated FLVPlayback component.  I'm able to access the DVR-specific metadata (e.g. "currLen") without any trouble, and so forth.
    When I record with the Flash Live Encoder, everything works correctly; the seek bar fills in as more content is published, and the playhead advances slowly across the filled-in section of the seek bar.
    But when I do the publishing with a custom client instead of Flash Live Encoder, the seek bar doesn't work right.  Specifically, when I start viewing a stream which is still being broadcast live, the seek bar shows the length of the stream at the moment I started viewing it; however, the seek bar doesn't update correctly as new content continues to be appended to the end of the stream.  What happens instead is that the "playhead" (not sure of the proper terminology here) moves along the seek bar until it reaches the end, and then it just sits at the end -- and the seek bar itself starts expanding to the right, off the edge of the stage!
    So I assume the problem here is that I need to add some code to the publishing client.  Here's the meat of the publishing code (from MyDVRPublish.as, which is the document class for MyDVRPublish.fla):
            public function MyDVRPublish()
                nc = new NetConnection();
                nc.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
                nc.connect("rtmp://localhost/DVRCast");
                dvrFlag = true;
                isVideoReady = false;
                streamID = null;
                vid = new Video(640, 480);
                vid.x = 0;
                vid.y = 0;
                vidMonitor.addChild(vid);
                cam = Camera.getCamera();
                cam.setQuality(0,90);
                cam.setMode(640, 480, 30);
                vid.attachCamera(cam);
            private function onNetStatus(event:NetStatusEvent):void{
                trace(event.info.code);
                if(event.info.code == "NetConnection.Connect.Success"){
                    doRecording("mystream");
            private function doRecording(sID:String) {
                isRecording = true;
                streamID = sID;
                publishCamera();
            private function stopRecording() {
                ns.close();
                isRecording = false;
                trace("Finished recording " + streamID);
            private function onAsyncError(event:AsyncErrorEvent):void{
                    trace(event.text);
            private function publishCamera() {
                ns = new NetStream(nc);
                ns.client = new CustomClient();
                ns.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
                ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, onAsyncError);
                ns.attachCamera(cam);
                trace("Publishing Stream...");
                ns.publish(streamID, "record");
    ...What am I missing?
    Thanks,
    -dan
    Message was edited by DanMITRE.

    Hi Dan,
    Unfortunately, I don't know of a tutorial that builds a custom client that publishes to DVRCast, but Graeme Bull created a great video tutorial that should help:
    http://fmsguru.com/showtutorial.cfm?tutorialID=25
    Before Adobe published the DVRCast app, Graeme played around with FMLE3 and figured out what calls it was making to the server and built his own DVRCast app. I know this is the inverse of what you want to do, but watching him reverse engineer FMLE's calls to the server will show you how to make your own publishing client.
    Also, you check out the DVRCast code at rootinstall\applications\dvrcast_origin\scripts to see exactly what the DVRCast app expects the publishing client to call (and what it expects the subscribing client to call).
    Roughly:
    The DVRCast docs have a code example on page 11 that calls DVRSetStreamInfo. After the publisher calls DVRSetStreamInfo with the name of the DVR stream and calls NetStream.publish("streamname", "record"|"append"), the subscribing client calls DVRGetStreamInfo to get the name of the DVRStream. The subscribing client then passes the name of the DVRStream in a call to DVRSubscribe. Finally, the subscribing client calls NetStream.play("streamname", 0, -1) to play the stream.
    I'll get a tutorial up as soon as I can (unless someone beats me to it), but unfortunately I have to hit some deadlines today on other projects.
    HTH,
    Jody

Maybe you are looking for

  • Ever since I downloaded the new itunes I can't burn CD's using my external

    I can't burn cd's using my writemaster external CD drive. I can't use the one inside the computer because it's a piece of crap and burned out months ago. I burned a CD yesterday with no problem My only guess is that it has something to do with the ne

  • Problems in running SQLJ programs!

    Dear SQLJ Support, I am not able to run SQLJ programs. I am able to compile a .sqlj file. I tried to compile the demo programs, for example, TestInstallCreateTable.java. I get "Class oracle.sqlj.runtime.Oracle not found in import" error. "Class sqlj.

  • IAS Dynamic Reloading doesn't reload related classes!

    Hi, I am trying to configure dynamic reloading on the development machine [on Solaris 5.8] in order to get servlets and classes invoked by those servlets updated dynamically without having to restart the process. What I'd done was setting the SYSTEM_

  • IMovie keeps quitting unexpectedly when I'm trying to convert a project to iDVD.

    It processes for about an hour then when it's done processing it quits and gives me a message saying "iMovie quit unexpectedly" every single time! I've never had trouble converting and burning a project to DVD before and successfully made a DVD just

  • Won't reinstall OS. Ejecting Disks.

    Hey everyone! I've been stumped on this question for a few months now and am dying to get my computer up and running again! My 4 year old Powerbook wasn't booting and disk utility kept finding problems. Luckily I backed up my hard drive a few weeks e