COM Events not working

I have a servlet that is accessing a COM object. It issues commands to the
COM object, and some time later, events are supposed to fire into the Java
class to update some info. Well, the updates are not happening. Any
thoughts?
Some info:
class Connection is the implementation (proxy) of the COM object.
class CLServer is my code that implements _IConnectionEvents (the COM-event
interface). It also calls methods on Connection, especially
Connection.add_IConnectionEventsListener(this)
As I said, this is all running under weblogic (running as a service) as a
servlet. The calls out to COM succeed, but the asynchronous calls back in
don't.
Thanks,
Jeff

Does anybody have COM-to-Java event callbacks working???
Kinda frustrated with feedback (lack thereof) from this group.
Jeff
"Jeff Muller" <[email protected]> wrote in message
news:3d10affd$[email protected]..
Actually, when I try and register my event listener, I get an
AutomationException (0x80040202). Anybody know what that's about?
Jeff
"Jeff Muller" <[email protected]> wrote in message
news:[email protected]..
By the way, I found the problem.
The COM object I was using was actually posting Windows messages to
itself
to fire the events. Of course, the JVM isn't running a message loop, sothey
never got handled, therefore, no events got fired. I had to write awrapper
COM Server (exe) with a message loop that instantiated the object that I
really wanted. Of course that led to other problems that I post about in
another message above! :-)
Jeff
"Jeff Muller" <[email protected]> wrote in message
news:3cf678e6$[email protected]..
I have a servlet that is accessing a COM object. It issues commands to
the
COM object, and some time later, events are supposed to fire into theJava
class to update some info. Well, the updates are not happening. Any
thoughts?
Some info:
class Connection is the implementation (proxy) of the COM object.
class CLServer is my code that implements _IConnectionEvents (theCOM-event
interface). It also calls methods on Connection, especially
Connection.add_IConnectionEventsListener(this)
As I said, this is all running under weblogic (running as a service)
as
a
servlet. The calls out to COM succeed, but the asynchronous calls backin
don't.
Thanks,
Jeff

Similar Messages

  • Onclick and doubleclick event not working in CC

    hi..  onclick and doubleclick event not working in CC..  how to get these events to work?
    Please advise anyone. Thanks alot!

    Is your event target a ListBox?
    In that case there are serious issues to deal with:
    http://indiscripts.com/blog/public/ScriptUIEvents.pdf
    @+
    Marc

  • FileReference Select and Cancel Event Not Working in leopard

    FileReference not working in leopard
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    public function onClick():void{
    var fr:FileReference=new FileReference();
    //fr.addEventListener(
    fr.addEventListener(Event.OPEN,openHandler);
    fr.addEventListener(Event.COMPLETE,completeHandler);
    fr.addEventListener(Event.SELECT,selectHandler);
    fr.addEventListener(Event.CANCEL,cancelHandler);
    fr.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA,uploadCompleteDataHandler);
    fr.addEventListener(HTTPStatusEvent.HTTP_STATUS,httpStatusHandler);
    fr.addEventListener(IOErrorEvent.IO_ERROR,ioErrorHandler);
    fr.addEventListener(ProgressEvent.PROGRESS,progressHandler);
    fr.addEventListener(SecurityErrorEvent.SECURITY_ERROR,securityErrorHandler);
    fr.browse([new FileFilter("images", "*.png;*.jpg;*.gif")]);
    private function cancelHandler(event:Event):void {
    trace("cancelHandler: " + event);
    private function completeHandler(event:Event):void {
    trace("completeHandler: " + event);
    private function
    uploadCompleteDataHandler(event:DataEvent):void {
    trace("uploadCompleteData: " + event);
    private function
    httpStatusHandler(event:HTTPStatusEvent):void {
    trace("httpStatusHandler: " + event);
    private function ioErrorHandler(event:IOErrorEvent):void {
    trace("ioErrorHandler: " + event);
    private function openHandler(event:Event):void {
    trace("openHandler: " + event);
    private function progressHandler(event:ProgressEvent):void {
    var file:FileReference = FileReference(event.target);
    trace("progressHandler name=" + file.name + " bytesLoaded="
    + event.bytesLoaded + " bytesTotal=" + event.bytesTotal);
    private function
    securityErrorHandler(event:SecurityErrorEvent):void {
    trace("securityErrorHandler: " + event);
    private function selectHandler(event:Event):void {
    Alert.show("XD");
    ]]>
    </mx:Script>
    <mx:Button x="205" y="198" label="Button"
    click="onClick()"/>
    </mx:Application>
    Adobe Flex Builder 3 Beta3
    Leopard 10.5.1
    both Safari and firefox doesn't work

    Flash version is 115 debug player

  • Cut and Paste between Events not working

    Using iPhoto11, I can drag and drop pictures between events, no problem...but Cut and Paste does not work.
    I select a photo and cut in event A, go to event B, I right click and get a PAST button, It even clicks but nothing happen, the Cut image never gets pasted.
    Is this a bug? whats the solution?

    To delete the test user, go to the black apple menu, click on system preferences, then on accounts. From an administrator account, click on the "test" user and hit the "-" key. when the dialog box comes up, hit "delete the home folder" and it will be gone.
    For the startup disk issue you should repair permissions. From the finder, click on the "go" menu, then on "utilities". Select disc utility. Select your HD and click on repair disk permissions. This will take several minutes (5 or more).
    If that has not done the trick then you may need to reset the parameter ram (PRAM).  Turn your computer off. When you turn it back on, simultaneously hold 4 keysL command-option-p-r. Keep holding them. The startup chime will ring. Continue to hold until you have heard the chime at least 2 times (more won't help or hurt). Then release.

  • Portal event not working

    Hi,
    I am try to handle portal event in my WD ABAP i view. The event is fired by WD Java team viewer iView in MSS. What I want is when someone select an employee from team viewer iview from MSS, my WD ABAP iview should react accordingly.
    I check SAP note 1112733 for corresponding solution to handle event but it didnt worked. My WD ABAP application is not able to subscribe to the event.
    I wrote the following code in WDINIT method of my view
    DATA: l_api_component  TYPE REF TO if_wd_component,
            l_portal_manager TYPE REF TO if_wd_portal_integration,
            view TYPE REF TO if_wd_view_controller.
      l_api_component = wd_comp_controller->wd_get_api( ).
      l_portal_manager = l_api_component->get_portal_manager( ).
      view ?= wd_this->wd_get_api( ).
      l_portal_manager->subscribe_event(
    portal_event_namespace = 'urn:com.sap.mss.employeesearch'
    portal_event_name      = 'selection_changed'
    view                   = view
    action                 = 'RECIEVE_EMP_DATA' ).
    and the code written in event handler method is:
    METHOD onactionrecieve_emp_data .
      DATA: evt_name TYPE string.
      DATA lo_nd_gc_event_data TYPE REF TO if_wd_context_node.
      DATA lo_el_gc_event_data TYPE REF TO if_wd_context_element.
      DATA ls_gc_event_data TYPE wd_this->element_gc_event_data.
      DATA lv_event_string LIKE ls_gc_event_data-event_string.
    navigate from <CONTEXT> to <GC_EVENT_DATA> via lead selection
      lo_nd_gc_event_data = wd_context->get_child_node( name = wd_this->wdctx_gc_event_data ).
    get element via lead selection
      lo_el_gc_event_data = lo_nd_gc_event_data->get_element(  ).
    get single attribute
      lo_el_gc_event_data->set_attribute(
        EXPORTING
          name =  'EVENT_STRING'
          value = 'before handle' ).
      evt_name = wdevent->get_string( name = 'PORTAL_EVENT_NAME' ).
      IF evt_name = 'selection_changed'.
        lv_event_string = wdevent->get_string( name = 'PORTAL_EVENT_PARAMETER' ).
    get single attribute
      lo_el_gc_event_data->set_attribute(
        EXPORTING
          name =  `EVENT_STRING`
          value = 'handled' ).
      ENDIF.
    ENDMETHOD.
    In debugging mode, I am not able to go inside my event handler method.
    Please help why this event is not getting handled .
    Thanks
    Vishal Kapoor

    >
    Jon MB wrote:
    > Hi Thomas
    >
    > Please, can you confirm the restriction above applies to the following scenario?
    >
    > - We have an ECC system with the following URL: ecchost.domain.suffix
    > - We have a portal with the following URL: portalhost.subdomain.domain.suffix
    >
    > We have configured the portal for domain relaxing and SSO is working fine.
    >
    > Each system is under the same domain (domain.suffix), but in different subdomains.
    >
    > Shoudl this be the cause of ABAP WD applications not working? Is there any way to fix this without changing the URLs?
    >
    > Thanks in advance,
    > Jon
    I'm not a portal consultant, so I can only related the requirement from the WDA side that the domains must be the same. I don't know if the domain relaxation on the portal sise will take take of the subdomain.  My guess is that if you are having problems, that it doesn't.  You would probably need to ask this question in the portal forum or discuss with a portal consultant.
    > Is there any way to fix this without changing the URLs?
    I don't know of any.
    >Shoudl this be the cause of ABAP WD applications not working?
    What do you mean, not working?  Is the portal eventing just not work or are you not able to load the WDA applications at all.

  • PEI event not working as expected after Hofix 1 for 5.0.2

    Dear all,
    we are running in some problems after installing the Hotfix to our Portalversion 5.0.2.
    After installing the Hotfix 1 for Plumtree Portal 5.02 we have a problem with a PEI event that worked without any problem before. The redirect does not work anymore, instead it redirects to the standard login view (the same you would see if you try to login with the wrong password, username or authentication source). Are there any hints on a solution for that problem?
    Many thanks in advance,
    This is an excerpt of the code:
    import com.plumtree.uiinfrastructure.activityspace.Redirect;
    public class LoginActions implements ILoginActions {
    public Redirect OnBeforeLogin(ApplicationData appData, String userName) {
         if (someCondition()) {
              Redirect r = new Redirect();
              r.SetLinkToExternalURL("http://www.foo.bar");
              r.SetIsHTTPRedirect(true);
              return r;
         } else {
              return null;
    // rest of code omitted for clarity

    Some of the Redirects returned by the methods in LoginActions are broken. These problems will be addressed in the next Service Pack. In the meantime, here is a summary of what works, what doesn't and how you can code around those bugs: OnAfterLogin: Redirecting the Guest user to an external URL doesn't work. Instead of using the Redirect object, set the URL in the header. Here is how you can do this:_appData.SetHeader("Location", "http://www.plumtree.com");_appData.SetStatus(302); All other redirects work. OnBeforeLogin: Redirecting from OnBeforeLogin doesn't work at all. Once again, instead of using the Redirect object, set the URL in the header:_appData.SetHeader("Location", "http://www.plumtree.com");_appData.SetStatus(302); Another option is to redirect from OnAfterLogin.

  • Click event not working on anchor tag

    I've the following code and it's not working on the Safari browser (latest version, windows or in iPhone User Agent mode). This works fine in any other browser. What am I missing or is there any other alternative to fix this?
    What code is supposed to do, is, when you click on the "google" link in the example, it should create a Image request from JS (junk test) which I don't see it happening when I look through network sniffer.
    Thank you in advance...
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title></title>
    </head>
    <body>
    google
    <script type="text/javascript">
    //<![CDATA[
    function HandleClick(ev)
    CreateImg();
    function CreateImg()
    //some junk request
    var img = new Image(1,1);
    img.onload = function(){};
    img.src = "http://www.google.com/images/logos/somelogo.png?" + new Date().getTime();
    var isSafari = navigator.userAgent.toString().toLowerCase().indexOf("safari") > -1;
    window.onload = function(){
    if (isSafari)
    document.body.addEventListener("click", HandleClick, false);
    else
    if (document.addEventListener)
    document.body.addEventListener('click', HandleClick, false);
    else if (document.attachEvent)
    document.body.attachEvent('onclick', HandleClick);
    />]>
    </script>
    </body>
    </html>

    quote:
    Originally posted by:
    myIP
    Are you using Flash’s IDE? I can’t seem to get it
    to run in Flex but in Flash it runs ok.
    No, I'm using Flex 3 with FlashDevelop. I have a pure AS3
    file which is the one I posted and I compile it. The resulting swf
    runs fine and displays the box as expected. Only the events aren't
    working as expected.
    Changing the clickhandler to the version you suggested yields
    nothing. No trace. But if I change the condition to:
    event.eventPhase == EventPhase.AT_TARGET
    I get the click trace again. My conclusion is that for some
    reason the event is only registered at the stage and not in the
    child components(sprite and shape).
    Edit: I'm not using any mxml file, just a pure AS3 file to
    compile.

  • Javafx tableview onscroll event not working

    tableview onscroll event is not working and how to add scrollbal event on tableview.could u help me

    As jsmith notes, the best place to report bugs is directly into the Jira tracker at http://javafx-jira.kenai.com. If you put it in the 'runtime' area against the 'controls' component, it'll end up on my plate.
    Thanks!
    Jonathan

  • Event not work

    We migrated from VS 2010 to VS 2013 . In our Silverlight 5 app we are using
    HtmlPage.Window.AttachEvent("method", ..)
    to change the layout when browser window size has changed.
    After migration "method" event stopped working

    Hi,
    Silverlight 5 application supports in Visual Studio 2012,There are some similar problems about "HtmlPage.Window.AttachEvent", you may refer to them and check it in your code:
    http://social.msdn.microsoft.com/Forums/en-US/3cccb2ce-b158-41f3-a91f-ba12ab45f9b8/using-compositiontargetrendering-and-htmlpagewindowattachevent-mouse-not-working
    http://social.msdn.microsoft.com/Forums/en-US/dd16b852-68c7-472c-99a3-9e24e7493a21/htmlpagewindowattachevent-problem
    Besides, unsuccessful Visual Studio projects upgrades may cause the problem, you may refer to
    https://msdn.microsoft.com/en-us/library/vstudio/ms185327.aspx
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Multiple event not working in interactive report

    Hi Experts,
    I am developing a interactive report used Set-PFstatus '100' , AT user-command and At line-selection in a single program.
    Here At line-selection is not working but at user-command is working fine.
    After commenting set-PF ststus '100' event at line selection is working.
    Ii want at to use at-user command and at line-selection both to work with set pf-status.
    Please help me out.

    Hi,
    You can use these events together but in case while
    creating your GUI status for your program you have
    to give Function Code 'PICK' with F2 short cut key
    because for at line selectino double click 'PICK' function
    code is trigerred.
    hope it helps,
    Regards
    Mansi

  • System Events not working correctly with Acrobat Professional

    Hey Guys, I have a script that I have written that automatically enables security settings on a PDF through Acrobat Professional. Because of Acrobats poor scriptability I am forced into doing much though System Events.
    This is not a major problem... however when activating some settings in the security settings, often warning Alert dialog boxes appear when you tell System Events to enable particular settings. These Alerts do not have a title... The only way I have been able to get the script to deal with them is with the following code:
    if title of front window is "" then
        tell front window
            click button "OK"
        end tell
    end if
    I guess this is an ok solution... bit hard to identify windows when they don't have titles...
    BUT this is not my main problem. The main problem is that the script gets to one of these alert dialog boxes and just sits there... It sits there for like 10 seconds and then it performs the "click button "OK"" command.
    This is a problem as there are like 3 of these instances and it really adds up. Can anybody help me... I am using Acrobat Professional 8.2.0 and the entire code is:
    tell application "System Events"
        try
            tell process "Acrobat"
                -- Enable security settings
                click menu item "Properties..." of menu "File" of menu bar item "File" of menu bar 1
                tell window "Document Properties"
                    tell tab group 1
                        click radio button "Security"
                        tell group "Document Security"
                            click pop up button 1
                            click menu item 2 of menu 1 of pop up button 1
                        end tell
                    end tell
                end tell
                tell window "Password Security - Settings"
                    click pop up button 1
                    click menu item 4 of menu 1 of pop up button 1
                    tell group "Permissions"
                        click checkbox "Restrict editing and printing of the document. A password will be required in order to change these permission settings."
                        click text field 1
                        keystroke pdfPassword
                        click pop up button 1
                        click menu item 2 of menu 1 of pop up button 1
                        click pop up button 2
                        click menu item 4 of menu 1 of pop up button 2
                    end tell
                    click button "OK"
                end tell
                if title of front window is "" then
                    tell front window
                        click checkbox 1
                        click button "OK"
                    end tell
                end if
                tell window "Adobe Acrobat - Confirm Permissions Password"
                    click text field 1
                    keystroke pdfPassword
                    click button "OK"
                end tell
                if title of front window is "" then
                    tell front window
                        click checkbox 1
                        click button "OK"
                    end tell
                end if
                tell window "Document Properties"
                    click button "OK"
                end tell
    end tell
        on error
            display alert "System Events was unable to Enable Commenting. This may be because Acrobat has modified its menu system. Please contact your system administrator."
        end try
    end tell
    A delay does not work... its like as soon as I click the "OK" button it stalls for 10 seconds or does not know that is meant to continue... because I did this:
    tell window "Password Security - Settings"
        click button "OK"
    end tell
    beep
    In this situation it still takes like 10 seconds for the beep to occur after the click button "OK" command.

    Hey Guys, I have a script that I have written that automatically enables security settings on a PDF through Acrobat Professional. Because of Acrobats poor scriptability I am forced into doing much though System Events.
    This is not a major problem... however when activating some settings in the security settings, often warning Alert dialog boxes appear when you tell System Events to enable particular settings. These Alerts do not have a title... The only way I have been able to get the script to deal with them is with the following code:
    if title of front window is "" then
        tell front window
            click button "OK"
        end tell
    end if
    I guess this is an ok solution... bit hard to identify windows when they don't have titles...
    BUT this is not my main problem. The main problem is that the script gets to one of these alert dialog boxes and just sits there... It sits there for like 10 seconds and then it performs the "click button "OK"" command.
    This is a problem as there are like 3 of these instances and it really adds up. Can anybody help me... I am using Acrobat Professional 8.2.0 and the entire code is:
    tell application "System Events"
        try
            tell process "Acrobat"
                -- Enable security settings
                click menu item "Properties..." of menu "File" of menu bar item "File" of menu bar 1
                tell window "Document Properties"
                    tell tab group 1
                        click radio button "Security"
                        tell group "Document Security"
                            click pop up button 1
                            click menu item 2 of menu 1 of pop up button 1
                        end tell
                    end tell
                end tell
                tell window "Password Security - Settings"
                    click pop up button 1
                    click menu item 4 of menu 1 of pop up button 1
                    tell group "Permissions"
                        click checkbox "Restrict editing and printing of the document. A password will be required in order to change these permission settings."
                        click text field 1
                        keystroke pdfPassword
                        click pop up button 1
                        click menu item 2 of menu 1 of pop up button 1
                        click pop up button 2
                        click menu item 4 of menu 1 of pop up button 2
                    end tell
                    click button "OK"
                end tell
                if title of front window is "" then
                    tell front window
                        click checkbox 1
                        click button "OK"
                    end tell
                end if
                tell window "Adobe Acrobat - Confirm Permissions Password"
                    click text field 1
                    keystroke pdfPassword
                    click button "OK"
                end tell
                if title of front window is "" then
                    tell front window
                        click checkbox 1
                        click button "OK"
                    end tell
                end if
                tell window "Document Properties"
                    click button "OK"
                end tell
    end tell
        on error
            display alert "System Events was unable to Enable Commenting. This may be because Acrobat has modified its menu system. Please contact your system administrator."
        end try
    end tell
    A delay does not work... its like as soon as I click the "OK" button it stalls for 10 seconds or does not know that is meant to continue... because I did this:
    tell window "Password Security - Settings"
        click button "OK"
    end tell
    beep
    In this situation it still takes like 10 seconds for the beep to occur after the click button "OK" command.

  • Apple Remote Events Not Working

    I have an internal drive with OS X Client 10.3.9 and a fresh install of the same OS X Client on an external hard drive. Apple Remote Events, though turned on in System Preferences, does not function across my local network when booted on either of these drives.
    With a 2nd internal drive, I've got OS X Server 10.3.9 and when booted under this OS version, Apple Remote Events works as it should.
    Any ideas how I can enable the proper functionality of Apple Remote Events on OS X Client?
    QuickSilver Dual 1GHz   Mac OS X (10.3.9)  

    I have discovered that an apostrophe character in the machine name created a mismatch between the network identity name and the actual name. "Ken Goff's Computer" was converted to "Ken-Goffs-Computer.local" by OS X 10.0 when I first set up my computer.
    Changing the computer name to anything without the apostrophe and then editing the network name substituting dashes for spaces between words in the name fixed it.
    Remote Apple Events now works across the network.
    QuickSilver Dual 1GHz   Mac OS X (10.3.9)  

  • [EB3]Events not working in Photoshop

    Hi All,
    Except the "applicationActivate", other events-
    - documentAfterActivate
    - documentAfterDeactivate
    - documentAfterSave
    are not working in Photoshop; strange thing is that they are working in InDesign.
    The code I'm using(working in case of InDesign)-
    var csInterface = new CSInterface();
    csInterface.addEventListener("documentAfterActivate", myEventHandler);
    function myEventHandler(){
         alert(event.type); // not alerted in case of photoshop
    Are these events not implemented in Photoshop? I also want these events with Illustrator (not tested yet)
    Any help will be highly appreciated

    Hi Shadowfax,
    Thank you for reporting this. The mechanism of CSInterface Events needs Products like PS or
    ID to send out the event like “applicationActivate” at the right time. However,
    not all Products send out all events now; attachment events.png is a table that
    listed current situation. Our team is actively pushing this issue forward and has asked Products team to
    send out necessary events.

  • OnChange Event not working when portlet is opened in Page

    The onChange event is working well in a Portlet. When a user selects a value from an LOV it is updating other LOVs. However, when that portlet is brought into the main page, the onChange event only resets the page. Is there a workaround for this?

    Hi Jerry,
    Iam also facing the same problem ....were you able to get solution ..if yes plz share...
    When I Clikced on Add Macros button in Workbook Settings ,i was able to access the buttons ..but once i close and open the workbook iam again getting the same error..
    Iam not able to Save the Workbook settings afte Clicking on ADD Macros...
    Regards,
    Ravi

  • Eventing not working with FLASH

    Hello,
    My VC application events will not work if i choose FLASH(Flex2) in the "Runtime" attribute of the Compiler settings.
    Can anybody give me a hand with this?
    thanks,
    Alejandro.

    Hi Alejandro,
    Things to check:
    1. Do you have the "Select" event coming form the table to display further info?
    2. Does it work with Web Dynpro?
    Did you know that if the compiler option is portal and on deployment you would see 2 deployed versions 1. HTML and the 2. Flex?
    Let me know.
    Good luck,
    Dharmi

Maybe you are looking for

  • PHD syncing and OmniGraffle package files

    I am having an issue where package files synced to the home directory are appearing empty at a later date. This issue seems to be directly related to OmniGraffle documents, affecting anything that is a .graffle (OmniGraffle Document) or .gstencil (Om

  • What is the best way to create an Hours of operation field?

    I'm creating a form in adobe central forms to gather information about my existing clients' business. One of the things I'd like to know is their hours of operation. I'm a real fan of the way Google does it: multiple labled drop downs in a table. How

  • Sending non-English parameters vlaues to rwservlet for a pdf reports

    Hi friends, I have developed a report which I open through calling rwservlet from an HTML form posting all form inputs to the rwservlet to use as parameters to my report. The problem arises when I try to pass non-English (Arabic) values, the report c

  • Compiz writes Primary modifier instead of Control

    Hello. I am new in Arch. Recently I made a choise of using Compiz as a window manager and AWN as dock/system panel. Everything works quiet well, but I can't get my favorite keybindings to work. I want to set a command to ctrl+shift+r combination, but

  • Problems with RandomAccessFile

    Hello! I have a problem with reading data from file which was written with RandomAccessFile I write data with writeChars() method and then try to read what i wrote with readLine() method. But if i wrote ie 3333 when i read it i have *3*3*3*3 * = look