Combine 2 events in a Listener

anybody know how or if you can combine 2 events in 1
Listener?
They are similar functions that use 2 different events and 2
of the same function calls.
Event "select" and "load"

I had a change in logic for firing reasons so my Listeners
are like this now.
They are duplicate and maked (TYPICAL) except there are 2
seperate Lists.
(List and List5)

Similar Messages

  • BI Configuration manger Error while mapping Workforce Event Reason Combination → Workforce Event Detail

    Hi
    we installed OBIA 11.1.1.7.1 and we are performing configuraiton for HRMS / HCM.
    In configuration manager when we try to map "Domain member mappings for domain map Source Workforce Event Reason Combination → Workforce Event Detail"
    we get error "Java.lang.NullPointerExecption:  ADF_FACES-60097: For more information please see the server error log"
    when i check server log i am getting following error.
    Need your input please.
    i check in database such a object does not not exists
    "invalid name pattern: DEV_BIACOMP.FND_TABLE_OF_VARCHAR2_120"
    [ecid: bec22a6ffc2aafb0:-2f0779d2:141da31bf5d:-8000-0000000000004cc7,0]
    [APP: oracle.biacm#11.1.1.7.1] [DSID: 0000K7QDhdLF4EWFLzmJOA1IPEbf000005]
    getRoles W1tsL6Nt4L0vLEDBaul+/L4iuRiuUrka, obi raised java.sql.SQLException: invalid name pattern: DEV_BIACOMP.FND_TABLE_OF_VARCHAR2_120[[
    java.sql.SQLException: invalid name pattern: DEV_BIACOMP.FND_TABLE_OF_VARCHAR2_120
      at oracle.jdbc.oracore.OracleTypeADT.initMetadata(OracleTypeADT.java:599)
      at oracle.jdbc.oracore.OracleTypeADT.init(OracleTypeADT.java:506)
      at oracle.sql.ArrayDescriptor.initPickler(ArrayDescriptor.java:2152)
      at oracle.sql.ArrayDescriptor.<init>(ArrayDescriptor.java:260)
      at oracle.sql.ArrayDescriptor.createDescriptor(ArrayDescriptor.java:167)
      at oracle.sql.ArrayDescriptor.createDescriptor(ArrayDescriptor.java:135)
      at oracle.sql.ArrayDescriptor.createDescriptor(ArrayDescriptor.java:117)
      at oracle.sql.ArrayDescriptor.createDescriptor(ArrayDescriptor.java:75)
      at oracle.jdbc.driver.NamedTypeAccessor.otypeFromName(NamedTypeAccessor.java:89)
      at oracle.jdbc.driver.TypeAccessor.initMetadata(TypeAccessor.java:96)
      at oracle.jdbc.driver.T4CCallableStatement.allocateAccessor(T4CCallableStatement.java:759)
      at oracle.jdbc.driver.OracleCallableStatement.registerOutParameterInternal(OracleCallableStatement.java:196)
      at oracle.jdbc.driver.OracleCallableStatement.registerOutParameter(OracleCallableStatement.java:258)
      at oracle.jdbc.driver.OracleCallableStatementWrapper.registerOutParameter(OracleCallableStatementWrapper.java:1783)
      at weblogic.jdbc.wrapper.CallableStatement_oracle_jdbc_driver_OracleCallableStatementWrapper.registerOutParameter(Unknown Source)
      at oracle.apps.fnd.applcore.common.ApplSession.getRoles(ApplSession.java:706)
      at oracle.apps.fnd.applcore.common.ApplSession.attachSession(ApplSession.java:2436)
      at oracle.apps.fnd.applcore.oaext.model.OAApplicationModuleImpl.prepareSession(OAApplicationModuleImpl.java:979)
      at oracle.jbo.server.ApplicationModuleImpl.prepareSession(ApplicationModuleImpl.java:6918)
      at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:182)
      at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9316)
      at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4530)
      at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2460)
      at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2270)
      at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3169)
      at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:592)
      at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:234)
      at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:525)
      at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:520)
      at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1609)
      at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1514)
      at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1485)
      at oracle.apps.fnd.applcore.Profile.getNonBindingContainerProfileService(Profile.java:341)
      at oracle.apps.fnd.applcore.Profile.getService(Profile.java:318)
      at oracle.apps.fnd.applcore.Profile.get(Profile.java:223)
      at oracle.apps.fnd.applcore.common.ApplSessionUtil.getProfileValue(ApplSessionUtil.java:3295)
      at oracle.apps.fnd.applcore.patterns.uishell.internal.ExternalServicesAdapter.getProfileValue(ExternalServicesAdapter.java:385)
      at oracle.apps.fnd.applcore.patterns.uishell.ui.bean.ManageSandboxesBean.getSandboxCheckActive(ManageSandboxesBean.java:314)
      at oracle.apps.fnd.applcore.patterns.uishell.ui.bean.ManageSandboxesBean.isRenderFlag(ManageSandboxesBean.java:1248)
      at sun.reflect.GeneratedMethodAccessor912.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at javax.el.BeanELResolver.getValue(BeanELResolver.java:293)
      at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)
      at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)
      at com.sun.el.parser.AstValue.getValue(AstValue.java:138)
      at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:206)
      at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:68)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.getBooleanProperty(UIXComponentBase.java:1363)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.isRendered(UIXComponentBase.java:496)
      at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:154)
      at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)
      at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:213)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:343)
      at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1432)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:358)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:840)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:422)
      at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2788)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelBorderLayoutRenderer.renderSideFacet(PanelBorderLayoutRenderer.java:316)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelBorderLayoutRenderer._renderRightFacets(PanelBorderLayoutRenderer.java:384)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelBorderLayoutRenderer._encodeAllWithSideFacets(PanelBorderLayoutRenderer.java:227)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelBorderLayoutRenderer.encodeAll(PanelBorderLayoutRenderer.java:83)
      at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1432)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:358)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:840)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:422)
      at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2788)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeChild(PanelGroupLayoutRenderer.java:432)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$300(PanelGroupLayoutRenderer.java:30)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:682)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:601)
      at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:170)
      at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)
      at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:255)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:358)
      at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1432)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:358)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:840)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:422)
      at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2788)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeTopFacet(PanelStretchLayoutRenderer.java:781)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeHorizontalPane(PanelStretchLayoutRenderer.java:1255)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeAll(PanelStretchLayoutRenderer.java:298)
      at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1432)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:358)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:840)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:422)
      at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2788)
      at oracle.adf.view.rich.render.RichRenderer.encodeStretchedChild(RichRenderer.java:2150)
      at oracle.adfinternal.view.page.editor.renderkit.PageCustomizableRenderer.encodeAll(PageCustomizableRenderer.java:330)
      at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1432)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:358)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:840)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:422)
      at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2788)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeCenterFacet(PanelStretchLayoutRenderer.java:769)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeCenterPane(PanelStretchLayoutRenderer.java:1146)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeMiddlePanes(PanelStretchLayoutRenderer.java:348)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeAll(PanelStretchLayoutRenderer.java:313)
      at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1432)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:358)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:840)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:422)
      at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2788)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:438)
      at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:220)
      at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1432)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:358)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:840)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)

    Hi,
    sorry, but this forum cannot assist in issues that include Oracle Fusion Applications as we don't have the same JDeveloper version publicly available.
    Frank

  • Error occured in invoking event "contextInitialized()" on listener class co

    Hi All,
    I am working on JSF 1.2 on SAP NetWeaver CE. I am able to execute sample JSF application successfully when NO java program is written in the application. When I write a java program inside the JSF application...I am getting following error. Please let me know how to proceed on this:
    "Application error occurred during the request procession."
    Error occured in invoking event "contextInitialized()" on listener class com.sun.faces.config.ConfigureListener.
    Details:
    java.lang.UnsupportedClassVersionError: Bad version number in .class file
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:654)
    at com.sap.engine.boot.loader.ResourceMultiParentClassLoader.loadClassLocal(ResourceMultiParentClassLoader.java:198)
    at com.sap.engine.boot.loader.MultiParentClassLoader.findClassInLoaderGraph(MultiParentClassLoader.java:302)
    at com.sap.engine.boot.loader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:256)
    at com.sap.engine.boot.loader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:228)
    at com.sun.faces.config.ManagedBeanFactoryImpl.getManagedBeanClass(ManagedBeanFactoryImpl.java:227)
    at com.sun.faces.config.ManagedBeanFactoryImpl.scanForAnnotations(ManagedBeanFactoryImpl.java:1130)
    at com.sun.faces.config.ManagedBeanFactoryImpl.<init>(ManagedBeanFactoryImpl.java:156)
    at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:926)
    at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:507)
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:402)
    at com.sap.engine.services.servlets_jsp.server.application.WebEvents.contextInitialized(WebEvents.java:74)
    at com.sap.engine.services.servlets_jsp.server.deploy.ApplicationThreadInitializer.run(ApplicationThreadInitializer.java:198)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:152)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:247)
    Rgds,
    Pathan

    Pathan wrote:
    java.lang.UnsupportedClassVersionError: Bad version number in .class fileThe Java version of the Java compiler used is newer than the Java version of the Java runtime used.
    E.g. compiling with JDK 1.6 and running with JRE 1.5 would cause this error.

  • How to receive the custom event in the listening portlet (No backing file)

    I have couple of portlets (JPF based). Portlet A is firing an event
         public Forward processAction()
              PortletBackingContext context =PortletBackingContext.getPortletBackingContext(this.getRequest());
              String message = "XXXXX";
              context.fireCustomEvent("customevent", message);
              Forward forward = new Forward("success");
              return forward;
    I have configured the Portlet B's eventhandler to listen for the 'customEvent' and invoke the pageFlowAction 'listenForEvent'
         @Jpf.Action(forwards = { @Jpf.Forward(name = "success", path = "test2.jsp") })
         public Forward listenForEvent() {
              Forward forward = new Forward("success");
              return forward;
    Portlet B's method listenForEvent is indeed getting invoked, but is there a way I can retrieve the 'Event' object (as fired by Portlet A) inside the listenForEvent. I could have done this via the Backing file, but for some reasons i cann't use the backing file. Is there a way i can get the CustomEvent and the associated payload in my listening JPF portlet, without a backing file?
    The WLP version is 10.3

    Hello,
    I originally said:
    All you should need to do is to modify the method signature for your event-receiving method. The method signature should be:
    public void listenforEvent(HttpServletRequest request, HttpServletResponse response, Event event)
    where Event is a com.bea.netuix.events.Event object. You can then cast this to a CustomEvent object.
    But I mis-read your earlier post about catching the custom event and invoking a pageflow action. When you do that, you will lose the custom event's payload (your message), and there is no way to retrieve it from your pageflow action.
    The only way you can actually retrieve the event's payload is using a backing file for the portlet, with a method having the signature I mentioned above. You can then set a request attribute with the event's payload and still have it invoke the pageflow action, at which time you could retrieve the request attribute value-- assuming you don't need to run this portlet over WSRP. Over WSRP, the event-handling and pageflow action-invoking lifecycles will happen with independent request objects, so you would need to store the event payload in session to work over WSRP.
    Kevin
    Edited by: kfrender on Aug 31, 2009 3:34 PM

  • DI Event Service not listening

    Hi all,
    On the server side, the DI Event Service is started,
    SBO_SP_TransactionNotification is modified,
    when I run the client sample, it connects to the company,
    when I start listening and add/delete some clients for exemple, The client doesn't display anything.
    I can't see what's going wrong.
    On B1DIEventServiceLog files I have the following message (french sorry):
    <i>11/08/2006 15:42:55;ERROR;RunMsgRcv La file d'attente n'est pas inscrite dans le DS.</i>
    Thanks anybody for help, I'd really like to get the di event service working for improving my addon

    I downloaded specific for private queues version.
    Yes environment in Test and production is same apart from win server version (2000 vs 2003).
    In 2003 queue is created, but no messages are written in queue...
    here's server log.
    [code]TIME;LEVEL;INFO;
    20.11.2006 17:11:09;INFOPLUS;TraceLevel: Verbose
    20.11.2006 17:11:09;INFOPLUS;PortNumber: 4334
    20.11.2006 17:11:09;INFOPLUS;KeepAlivePeriod: 2000000
    20.11.2006 17:11:09;INFOPLUS;KeepAliveMax: 12000000
    20.11.2006 17:11:09;INFOPLUS;MaxSizeAction: Replace
    20.11.2006 17:11:09;INFOPLUS;MaxFileSize: 6000000
    20.11.2006 17:11:09;INFOPLUS;Server starting ...
    20.11.2006 17:11:09;INFOPLUS;.NET Remoting Channel Opened
    20.11.2006 17:11:09;INFOPLUS;Server running...
    20.11.2006 17:11:44;INFOPLUS;InitChannel: ARTEMIS\private$\632996395042812500
    20.11.2006 17:11:44;INFOPLUS;CreateQueue: FormatName:DIRECT=OS:ARTEMIS\private$\632996395042812500
    20.11.2006 17:11:44;INFO;AddListener key: iittala_testi2/oOrders/Add listener: ARTEMIS\private$\632996395042812500
    20.11.2006 17:11:44;VERBOSE;KeepAlive received from ARTEMIS\private$\632996395042812500
    20.11.2006 17:11:44;INFO;AddListener key: iittala_testi2/oOrders/Update listener: ARTEMIS\private$\632996395042812500
    20.11.2006 17:11:44;INFO;AddListener key: iittala_testi2/oOrders/Close listener: ARTEMIS\private$\632996395042812500
    20.11.2006 17:11:44;INFO;AddListener key: iittala_testi2/oOrders/Cancel listener: ARTEMIS\private$\632996395042812500
    20.11.2006 17:11:44;INFO;AddListener key: iittala_testi2/oDeliveryNotes/Add listener: ARTEMIS\private$\632996395042812500
    20.11.2006 17:11:44;INFO;AddListener key: iittala_testi2/oInvoices/Add listener: ARTEMIS\private$\632996395042812500
    20.11.2006 17:11:44;INFO;AddListener key: iittala_testi2/oReturns/Add listener: ARTEMIS\private$\632996395042812500
    20.11.2006 17:11:44;INFO;AddListener key: iittala_testi2/oCreditNotes/Add listener: ARTEMIS\private$\632996395042812500
    20.11.2006 17:12:58;VERBOSE;Received bytes
    20.11.2006 17:12:58;INFO;SendEventToClients iittala_testi2 /oOrders/Update/1/DocEntry/41
    20.11.2006 17:13:01;VERBOSE;Received bytes
    20.11.2006 17:13:01;INFO;SendEventToClients iittala_testi2 /oOrders/Update/1/DocEntry/41
    20.11.2006 17:14:52;INFO;RemoveListener key: iittala_testi2/oOrders/Add listener: ARTEMIS\private$\632996395042812500
    20.11.2006 17:14:52;INFO;RemoveListener key: iittala_testi2/oOrders/Update listener: ARTEMIS\private$\632996395042812500
    20.11.2006 17:14:52;INFO;RemoveListener key: iittala_testi2/oOrders/Close listener: ARTEMIS\private$\632996395042812500
    20.11.2006 17:14:52;INFO;RemoveListener key: iittala_testi2/oOrders/Cancel listener: ARTEMIS\private$\632996395042812500
    20.11.2006 17:14:52;INFO;RemoveListener key: iittala_testi2/oDeliveryNotes/Add listener: ARTEMIS\private$\632996395042812500
    20.11.2006 17:14:52;INFO;RemoveListener key: iittala_testi2/oInvoices/Add listener: ARTEMIS\private$\632996395042812500
    20.11.2006 17:14:52;INFO;RemoveListener key: iittala_testi2/oReturns/Add listener: ARTEMIS\private$\632996395042812500
    20.11.2006 17:14:52;INFO;RemoveListener key: iittala_testi2/oCreditNotes/Add listener: ARTEMIS\private$\632996395042812500
    20.11.2006 17:14:52;INFOPLUS;DisconnectChannel FormatName:DIRECT=OS:ARTEMIS\private$\632996395042812500[/code]

  • Event handling to listen directory file changes?

    I want to write a Java program that watches directories for changes. If there are any new files, or files are deleted in a directory, notify the user. I think this is a multi-thread program that watches files changes in specific directories. But I don't know what listener that the program should implements. please help!!

    There are no events that do what you ask (actually, there are native OS events in Win32 that do this, but I suspect that isn't what you are going for).
    You'll need to write your own event source for this (and hey, if you are feeling crazy, you could even create your own event type - FolderChangedEvent or such).
    Start a thread that wakes up periodically and checks the contents of a specified folder for changes. If there is a change, fire your event to any listeners.
    Now, how you actually define a change in a folder is an entirely different matter. It may be sufficient to calculate a CRC (or Adler32) on the modified date of all files in the folder, then compare that to a previous version to see if there has been a change.
    If you have to drop into sub-folders, you'll need to create a recursive call to do that.
    - K

  • Prioritized Messages in combination with Event-Driven Message Processing

    Hi,
    our Scenario (EO): Sender A sends large IDocs to Receivers X and Y (> Split)
    1.
    What we did first:
    Prioritized Message Processing
    Sender A sends large Messages, therefore we prioritzied Messages in the IE with EO_MSG_SIZE_LIMIT > 4000.
    This works fine: Messages are queued in XBTL and XBTM and afterwards they are send to Receiver X and Y.
    2.
    What we did next:
    Event-Driven Message Processing
    Now we want to send the Message from Sender A to Receiver X directly and to Receiver Y at night time.
    We add Event-Driven Message Processing, Sender- and ReceiverID for A and Y,Job and so on...
    On it's own (without Prioritized Message Processing), this works fine: The messages are send at night time.
    But in combination (Event-Driven + Prioritized Message Processing) the messages only passes the Prioritized Message Processing and the Event-Driven is ignored.
    Our "Hop-List" for Split A to Y was:
    1. XBTL
    2. XBTJ2008...
    3. XBTM
    But actually all Messages passes:
    1.XBTL
    2.XBTM
    Why are the messages not filtered for the Event-Driven Message Processing (in combination with the Prioritized Message Processing)?

    It was an error in the SourceCode and is now corrected by SAP:
    Hinweis 1295746 - XI Runtime: Fehler in Ereignisgesteuerte Messageverarbeitung
    Olaf

  • Programatic Contextual Event on Disclosure Listener - jdev 11.1.2.3

    Hello:
    I want to programatically fire a contextual event from a DisclosureListener(when a showDetailItem is disclosed in tabbed panel). When I detect the tab is opened I want to publish the Contextual Event.
    See code below
    It compiles ok, but the error I get is:
    oracle.jbo.uicli.binding.JUEventBinding cannot be cast to oracle.binding.ControlBinding
    What am I missing here???
    Thanks for the help...
    ===============================================================
    package com.xxx.dbmstr.sbe.view.beans;
    import com.xxx.ptnr.cc.uc1.common.JSFUtils;
    import javax.faces.event.ActionEvent;
    import javax.faces.event.ActionListener;
    import oracle.adf.model.BindingContext;
    import oracle.adf.model.binding.DCBindingContainer;
    import oracle.binding.BindingContainer;
    import oracle.jbo.domain.Number;
    import oracle.jbo.uicli.binding.JUCtrlActionBinding;
    import oracle.jbo.uicli.binding.JUEventBinding;
    import org.apache.myfaces.trinidad.event.DisclosureEvent;
    public class DBMstrTabs {
    private String isOpen = "QA";
    public DBMstrTabs() {
    super();
    public void doCE(){
    SBEPayload p = (SBEPayload) JSFUtils.getManagedBeanValue("SBEPayloadBean");
    if (p == null){
    p = new SBEPayload();
    Number empKey = (Number)JSFUtils.resolveExpression("#{bindings.empKey_t.inputValue}");
    p.setEmpKey(empKey);
    JSFUtils.setManagedBeanValue("SBEPayloadBean", p);
    DCBindingContainer bc = (DCBindingContainer) BindingContext.getCurrent().getCurrentBindingsEntry();
    JUCtrlActionBinding actionBnd = (JUCtrlActionBinding) bc.getControlBinding("eventBinding");
    ((DCBindingContainer)bc).getEventDispatcher().queueEvent(actionBnd.getEventProducer(),p);
    ((DCBindingContainer)bc).getEventDispatcher().processContextualEvents();
    public void checkQA(DisclosureEvent disclosureEvent) {
    if (disclosureEvent.isExpanded()){
    setIsOpen("QA");
    doCE();
    public void checkSTANDARDS(DisclosureEvent disclosureEvent) {
    if (disclosureEvent.isExpanded()){
    setIsOpen("STANDARDS");
    doCE();
    }

    Here is a small work around that might help until an ideal solution is discovered. Since the CE ActionEvent can be easily created declaratively, you can fake an producer event by programatically queuing an ActionEvent on a button binding from the disclosurelistener.
    fragment code:
    <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <af:panelAccordion id="pa1">
        <af:showDetailItem text="showDetailItem 1" id="sdi1" disclosureListener="#{TesterBean.tabdisclosed}"/>
        <af:showDetailItem text="showDetailItem 2" id="sdi2"/>
      </af:panelAccordion>
      <af:commandButton text="commandButton 1" id="cb1" binding="#{TesterBean.buttonbinding}"
                        actionListener="#{bindings.eventBinding.listener.processAction}" visible="false"/>
    </ui:composition>Backing Bean code:
    public class TesterBean {
        private RichCommandButton buttonbinding;
        private String helloStr;
        public void tabdisclosed(DisclosureEvent disclosureEvent) {
            ActionEvent actionEvent = new ActionEvent(buttonbinding);
            actionEvent.queue();
        public String getHelloStr() {
            return helloStr; //invoked when the CE is fired
    ...pageDef code:
    <eventBinding id="eventBinding" Listener="javax.faces.event.ActionListener">
          <events xmlns="http://xmlns.oracle.com/adfm/contextualEvent">
            <event name="buttonCE" customPayLoad="#{TesterBean.helloStr}" eventType="Action Event"/>
          </events>
        </eventBinding>
      </bindings>
      <events xmlns="http://xmlns.oracle.com/adfm/contextualEvent">
        <event name="buttonCE" customPayLoad="#{TesterBean.helloStr}" eventType="Action Event"/>
      </events>
    ...good luck

  • Trying to write Event or Action Listener

    I believe what I am trying to write is an Event Listener (it may be the case that I want to be writing an entirely different type of class), but I don't seem to be having any success.
    I currently have two classes that I want to establish a Listener (whether it be Action or Event, I don't know) relationship between.
    One of the classes (class Container) has a container (let's say a Vector for simplicity) and throughout the program's lifetime I add elements to the container. Therefore, I have a generic addElement method in class Container. And lets say I have another class (class ContainerListener). I want class ContainerListener to know whenever class Container's method addElement is called.
    So I thought I could make them ActionListeners or something and class ContainerListener could be informed whenever class Container add's an element to its container.
    This is where I got with the Container class:
    package com.timCassidy.misc;
    import java.util.*;
    import java.awt.event.*;
    public class Container implements ActionListener{
    private Vector m_vectorOfElements;
    /** Creates new Container */
    public Container() {
    m_vectorOfElements = new Vector();
    public void addElement (String _text){
    m_vectorOfElements.addElement (_text);
    public void actionPerformed(ActionEvent e) {
    System.out.println ("this shouldn't be getting called as I haven't registered this object with any other object as a listener");
    public static void main (String [] args){
    And this is where I got with the ContainerListener class:
    package com.timCassidy.misc;
    import java.awt.event.*;
    public class ContainerListener implements ActionListener{
    /** Creates new ContainerListener */
    public ContainerListener() {
    public void actionPerformed(ActionEvent e) {
    System.out.println ("an element has been added to the container");
    public static void main (String [] args){
    ContainerListener containerListener = new ContainerListener();
    com.timCassidy.misc.Container container = new com.timCassidy.misc.Container();
    container.addActionListener (containerListener);
    container.addElement ("tim");
    This is the compiler error I get:
    com/timCassidy/misc/ContainerListener.java [21:1] cannot resolve symbol
    symbol : method addActionListener (com.timCassidy.misc.ContainerListener)
    location: class com.timCassidy.misc.Container
    container.addActionListener (containerListener);
    ^
    I assume this problem stems from the fact that my Container class doesn't implement/extend some class that has the method ActionPerformed in it???
    Can someone tell me how to fix these classes or just the Container class if that is all that is necessary.
    Thanks,
    Tim

    This seems to work, what do you think:
    package com.timCassidy.misc;
    import java.util.*;
    import java.awt.event.*;
    public class Container implements ActionListener{
    private Vector m_vectorOfElements;
    private Vector m_registeredListeners;
    /** Creates new Container */
    public Container() {
    m_vectorOfElements = new Vector();
    m_registeredListeners = new Vector();
    public void addElement (String _text){
    m_vectorOfElements.addElement (_text);
    for (int i = 0;i < m_registeredListeners.size();i++){
    ActionListener listener = (ActionListener)m_registeredListeners.elementAt(i);
    listener.actionPerformed(new ActionEvent(this,0,"blah"));
    public void addActionListener(Object _class) {
    if (_class instanceof ContainerListener){
    m_registeredListeners.addElement(_class);
    public void actionPerformed(ActionEvent e) {
    System.out.println ("this shouldn't be getting called as I haven't registered this object with any other object as a listener");
    public static void main (String [] args){

  • Custom event never reaching Listening function

    Hi all, I have been having a problem usign a custom event... I attached it to the the main class using "addEventListener" and fire it off with "dispatchEvent" in another class. I checked that it was attached to the main class using "hasEventListener" and it returned true, also "dispatchEvent" returns true... but it ever reaches the function that I attaced it to... is there any thing I am missing?
    Thanks a lot

    i assume by main class you mean document class.
    1.  is the listener function in your document class?
    2.  is the even listener added before the event is dispatched?
    if no to either (or both), you need to fix that.
    if yes and yes, you don't have a correct reference to your document class.

  • Can event listeners be listened to by components which they are registed on

    Is it possible to have an event listener being listened to by the component on which it has registered interest to listen for changes. I am linking a database to a GUI and i have indicated that the GUI listens for changes to the database, but can the database also listen for changes to the GUI without having to make the database register interest in listening to changes to the GUI.

    The changes you wish to dected within the GUI must be listened to. Not neccesarily by the database. Changes to the database can be made by the listener that is registered on the GUI. What GUI changes are you trying to respond to?

  • Event Dispatch n Listen between module

    hello.
    i gonna develope a App using module based env.
    but, i don't know hot to do.
    so, hope someone let me the way with samples.
    here is my ideal structrue.
    When i click a node in Tree [module A],
    i want to send some data value to [module B] by event
    dispatching.
    [main App module]
     - [sub module]
      - [Display module A] : left side, Tree Type
      - [Display module B] : right side,
    AdvancedDataGrid

    You need to create a singleton object for main application
    for listening events and redirection them to modules. (In Caingorm
    microarchitecture it's called MainController)
    In each module it's needed an initial part for registering
    posible events in MainController and event listeners for events
    from other modules.

  • Updating JTable every second, want to ignore these events in my listener

    I have a JTable that I update every second using
    table.getModel().setValueAt(data, row, col);I'm also reacting to when the user clicks on a row in a the table, using a ListSelectionListener:
    public class MyTableListener implements ListSelectionListener {
              public void valueChanged(ListSelectionEvent e) {
                   if (e.getValueIsAdjusting()) return;
                   //do stuff
    }And of course I've done this:
    table.getSelectionModel.addListSelectionListener(new MyTableListener());Problem is, every time I update the table data it generates an event handled by valueChanged() above. I need to prevent this.
    Do I need a customized table model for this?
    Thanks!

    Found the problem: I forgot I was using JXTable, not JTable. Here's my example:
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    import java.awt.*;
    import org.jdesktop.swingx.*;
    public class Test {
         JXTable table = null;//change this to JTable to fix
         public class MyTableListener implements ListSelectionListener {
              public void valueChanged(ListSelectionEvent e) {
                   System.out.println("event="+e.toString());
         public Test()
              JFrame frame  = new JFrame();
              String columns[] = {"one", "two"};
              Object data[][] = {{0, 0}, {0, 0}, {0, 0}};
              table = new JXTable(data, columns);//change this to JTable to fix
              table.getSelectionModel().addListSelectionListener(new MyTableListener());
              frame.add(new JScrollPane(table, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED),
                          BorderLayout.CENTER);
              startThread();
              frame.setVisible(true);
         public static void main (String args[]) {
              Test test = new Test();
         public void startThread()
              class RefreshThread extends Thread {
                   public void run() { try {
                             while(true) { SwingUtilities.invokeLater(new Runnable() {public void run() {
                                       updateTable();
                                  sleep(1*1000);
                        } catch (Exception e) {e.printStackTrace();}
              RefreshThread rt = new RefreshThread();
              rt.start();
         public void updateTable()
              TableModel model = table.getModel();
              try {
                   for(int row = 0; row < model.getRowCount(); row++)
                        model.setValueAt(System.currentTimeMillis(), row, 0);
                        model.setValueAt(System.currentTimeMillis(), row, 1);
              } catch (Exception e) {
                   e.printStackTrace();
    }When I change it to a JTable, valueChanged() is not called every time I programmatically update the table.
    If it's a JXTable, valueChanged() is called with every update. Annoying!
    To compile/run the JXTable version you'll need something like
    java -cp swingx-1.0.jar:. TestAs for the events themselves, I added print statements with e.toString() and the events are not distinguishable from user interaction. I wonder if this is a JXTable bug or feature.
    Thanks!

  • Which events should I listen for in JTree

    OK I'm using TreeSelectionListener/Event to handle when someone selects a node, but I'd like to also create a JPopupMenu when someone right-clicks a node. How should I handle that?

    Ok nevermind... After doing some more intensive searching I found this thread:
    http://forum.java.sun.com/thread.jsp?forum=57&thread=274387&tstart=0&trange=15

  • Timer event doesn't listen to my if else statements how do stop it?

    So I'm building a random generator of just a vector that i imported into flash and everything works just fine, almost. I added a timer to the creation of the vector. I also have some if else statements that are going to govern User Input. I realized that if the UI was initially outside of the parameters i've set it runs fine but once the once the function with the timer starts it never stops regardless of whether or not the UI is in the parameters I set. How do I stop the function when the UI is not what i want it to be?
    Heres my code:
    //initial universal variable declaration
    var kface:Kobbyface;
    var UI:Number;
    var kfacex:Number;
    var kfacey:Number;
    var UIold:Number = 0;
    var timer:Timer = new Timer(200);
    //background rectangle
    graphics.beginFill(0xFFFF00, 1);
    graphics.drawRect(0,65, stage.stageWidth, stage.stageHeight);
    graphics.endFill();
    trace (inputnumber);
    //eventlistener for click
    gobutton.addEventListener(MouseEvent.CLICK, create);
    function create(me:MouseEvent):void {
    UI = Number(inputnumber.text);
    if (isNaN(UI)) {
    errormessages.text = "Kobby only responds to numbers"
    else if (UI > 500) {
    errormessages.text = "You're not ready for that many Kobbys"
    else if (UI < 15) {
    errormessages.text = "Come on you can handle more than that"
    else{
    createfaces();
    //for loop///
    function createfaces ():void {
    ////////timer for face animation///////
    timer.addEventListener(TimerEvent.TIMER, animate);
    timer.start();
    function animate(evt:TimerEvent):void {
    /////keep track of old number/////
    if (UIold != 0) {
    for (var i: int = 1; i<UIold + 1; i++) {
    stage.removeChildAt(1);
        /////assign old number to new number////
    UIold = UI;
    for ( var i:int = 1; i<UI + 1; i++ ) {
    trace( i );
    ////assign values to coordinate varialbes/////
    var kfacex:Number = Math.random() * stage.stageWidth;
    var kfacey:Number = Math.random() * stage.stageHeight + 65;
    //creation of faces///
    kface = new Kobbyface();
    stage.addChild(kface);
    kface.x = kfacex;
    kface.y = kfacey;

    you can apply the stop() method to your timer:
    timer.stop();

Maybe you are looking for

  • Export SQL Server report chart to excel as editable chart

    Hi, When I export the report in excel format the chart is displayed as picture. I want it to be displayed as editable chart. Does Office Writer work in this situation and did anyone use Office Writer to accomplish same type of problem. Is there any o

  • Batch JavaScript Fails to Save PDF from XDP

    I generated hundreds of XDP files from a database query and need to merge them with a PDF template.  Using Acrobat Pro 8 interactively allows me to do this by opening the file and then saving it, but I need to do this for hundreds of files. So, I cre

  • How do I take off Mountain Lion?

    I wish to take Mt Lion off my Mac Book Pro I have purchased a new Hard drive(1Tb) and need to set it up with Snow Lepard. Can this be done ?

  • Error while posting from runtime workbench

    Hi all, My scenario is idoc-idoc(One SAP system is sending data to another SAP system through XI as an idoc). I am trying to test the scenario by posting the idoc data in RWB -> Integration Engine but its showing me an error:500 Error during Sender A

  • Adobe Reader for IPad Download Problem

    I downloaded several files last evening but this morning I found them only in the 'recent' file and not in documents. How can I move the files from recent to documents? (I have a brand new iPad and the latest update of Adobe Reader for iPad.) The onl