Unhandled event loop exception in workshop 10.3

Hi All,
when I tried to generate a Process controller from a JPD using WLI workshop 10.3 I found following error says
Message :
Unhandled event loop exception
here is following exception stack trace :
java.lang.ExceptionInInitializerError
     at com.bea.wli.bpm.compiler.CheckerVisitor.addIssue(CheckerVisitor.java:44)
     at com.bea.wli.bpm.compiler.CheckerVisitor.addWarning(CheckerVisitor.java:58)
     at com.bea.wli.bpm.compiler.CheckerVisitor.visit(CheckerVisitor.java:476)
     at com.bea.wli.bpm.model.ProcessNode.accept(ProcessNode.java:63)
     at com.bea.wli.bpm.model.BaseNode.accept(BaseNode.java:283)
     at com.bea.wli.bpm.compiler.Compiler.check(Compiler.java:46)
     at com.bea.wli.bpm.compiler.JpdChecker.checkProcessDefinition(JpdChecker.java:567)
     at com.bea.wli.bpm.compiler.JpdChecker.check(JpdChecker.java:146)
     at com.bea.wli.knex.runtime.core.compiler.WlwChecker.wrapCheck(WlwChecker.java:139)
     at com.bea.wli.knex.runtime.core.compiler.WlwChecker.checkType(WlwChecker.java:112)
     at com.bea.wli.knex.runtime.core.compiler.WlwAnnotationProcessor.check(WlwAnnotationProcessor.java:54)
     at com.bea.wli.bpm.compiler.JpdAnnotationProcessor.check(JpdAnnotationProcessor.java:61)
     at com.bea.wli.bpm.compiler.JpdAnnotationProcessor.check(JpdAnnotationProcessor.java:95)
     at com.bea.wli.bpm.compiler.JpdAnnotationProcessor.getProcessControl(JpdAnnotationProcessor.java:283)
     at com.bea.wli.ide.controls.process.ProcessControlInsertionDelegate.getControlContents(ProcessControlInsertionDelegate.java:85)
     at com.bea.wli.ide.controls.process.ControlGenerator.generate(ControlGenerator.java:57)
     at com.bea.wli.ide.jpd.actions.GenerateProcessControl.run(GenerateProcessControl.java:101)
     at org.eclipse.ui.actions.ActionDelegate.runWithEvent(ActionDelegate.java:70)
     at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:246)
     at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
     at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
     at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
     at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3687)
     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3299)
     at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
     at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
     at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
     at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
     at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
     at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
     at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
     at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:112)
     at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
     at org.eclipse.equinox.launcher.Main.basicRun(Main.java:448)
     at org.eclipse.equinox.launcher.Main.run(Main.java:1174)
     at org.eclipse.equinox.launcher.Main.eclipse_main(Main.java:1148)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at com.m7.installer.util.NitroxMain$1.run(NitroxMain.java:33)
     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
     at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Caused by: java.util.MissingResourceException: Can't locate bundle for class 'com.bea.wli.core.l10n.CoreBpmCompilerLogLocalizer'
     at weblogic.i18ntools.L10nLookup.getLocalizer(L10nLookup.java:382)
     at weblogic.i18ntools.L10nLookup.getLocalizer(L10nLookup.java:345)
     at com.bea.wli.bpm.compiler.CompileErrorImpl.<clinit>(CompileErrorImpl.java:35)
     at com.bea.wli.bpm.compiler.CheckerVisitor.addIssue(CheckerVisitor.java:44)
     at com.bea.wli.bpm.compiler.CheckerVisitor.addWarning(CheckerVisitor.java:58)
     at com.bea.wli.bpm.compiler.CheckerVisitor.visit(CheckerVisitor.java:476)
     at com.bea.wli.bpm.model.ProcessNode.accept(ProcessNode.java:63)
     at com.bea.wli.bpm.model.BaseNode.accept(BaseNode.java:283)
     at com.bea.wli.bpm.compiler.Compiler.check(Compiler.java:46)
     at com.bea.wli.bpm.compiler.JpdChecker.checkProcessDefinition(JpdChecker.java:567)
     at com.bea.wli.bpm.compiler.JpdChecker.check(JpdChecker.java:146)
     at com.bea.wli.knex.runtime.core.compiler.WlwChecker.wrapCheck(WlwChecker.java:139)
     at com.bea.wli.knex.runtime.core.compiler.WlwChecker.checkType(WlwChecker.java:112)
     at com.bea.wli.knex.runtime.core.compiler.WlwAnnotationProcessor.check(WlwAnnotationProcessor.java:54)
     at com.bea.wli.bpm.compiler.JpdAnnotationProcessor.check(JpdAnnotationProcessor.java:61)
     at com.bea.wli.bpm.compiler.JpdAnnotationProcessor.check(JpdAnnotationProcessor.java:95)
     at com.bea.wli.bpm.compiler.JpdAnnotationProcessor.getProcessControl(JpdAnnotationProcessor.java:283)
     at com.bea.wli.ide.controls.process.ProcessControlInsertionDelegate.getControlContents(ProcessControlInsertionDelegate.java:85)
     at com.bea.wli.ide.controls.process.ControlGenerator.generate(ControlGenerator.java:57)
     at com.bea.wli.ide.jpd.actions.GenerateProcessControl.run(GenerateProcessControl.java:101)
     at org.eclipse.ui.actions.ActionDelegate.runWithEvent(ActionDelegate.java:70)
     at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:246)
     at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
     at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
     at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
     at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3687)
     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3298)
     at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
     at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
     at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
     at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
     at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
     at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
     at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
     at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
     at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
     at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
     at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
     at org.eclipse.equinox.launcher.Main.eclipse_main(Main.java:1148)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at com.m7.installer.util.NitroxMain$1.run(NitroxMain.java:33)
     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
     at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
     ... 1 more
Session Data:
eclipse.buildId=M20080221-1800
java.version=1.6.0_05
java.vendor=BEA Systems, Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86
Any idea on this issue would be appreciated.
Regards,
Kal.

Got the same error in Ubuntu as well.
Found any solution?

Similar Messages

  • Unhandled event loop exception (open a log file in NW Developer Studio)

    Hi!
    SAP NetWeaver Developer Studio
    SAP NetWeaver 7.1 Composition Environment
    When I try to open a log file at the SAP Management Console View (i.e. available.log) I get a "Unhandled event loop exception" and the log file content is not shown.
    Any hints?
    Example:
    Log Viewing  @ <a href="http://help.sap.com/saphelp_nwce10/helpdata/en/45/e3b0f5f76a2e99e10000000a155369/content.htm">http://help.sap.com/saphelp_nwce10/helpdata/en/45/e3b0f5f76a2e99e10000000a155369/content.htm</a>
    Thanks,
    Chris

    Update:
    I have a stack now
    Caused by: java.lang.NullPointerException
         at com.sap.managementconsole.jface.JFaceDataPublisher.getEditorForInput(JFaceDataPublisher.java:290)
         at com.sap.managementconsole.jface.JFaceDataPublisher.access$000(JFaceDataPublisher.java:49)
         at com.sap.managementconsole.jface.JFaceDataPublisher$7.run(JFaceDataPublisher.java:180)
         at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
         at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
         ... 20 more
    -Chris

  • Event Loop in SO and failover

    Hi, All Forte Experts
    I have 2 questions:
    1. Would any one tell me where can I put the event loop block in a
    Service Object?
    I tried to put it in the Init to get a timer.tick event, but the SO
    hanged to wait there.
    How can I do this to let the SO do something at certain time?
    2. I have SO doing failover. Can one sleeping SO get any kind of
    information when it becomes alive
    after the running SO dies?
    Thanks a lot for your help.
    Alex
    Carpe Diem, Seize the Day !
    Alex Lee (Li Zhongling)
    Forte, Java/CORBA Group
    International Business Corporation
    Bangalore 560010, India
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Hi,
    Thank you all a lot for your help.
    For the second question, I explain the situation here. I have a failover
    LockManager SO which contains a LockList. When the first running SO dies, I
    want the second one to become alive and restore the state of the first one( I
    mean the LockList should not be lost). Then I tried to do it in this way:
    1. As Daniel Nguyen suggested in Re:Retaining state on failover of SO
    (Jan.19,1999), I put one shared object holding one Locklist on the Router
    partition. Let the running SO always refresh its contents.
    2. I make the SO Transactionaln with Transaction Dialog Duration. On the
    client, every time I start a transaction to add or remove lock through SO, I
    try to catch the exception "AbortException" (which means the SO dies). To
    handle the exception, I use Releaseconnection, then force the backup SO get the
    locklist from the shared object on Router partition. In this way, the backup SO
    becomes alive and also restore the state.
    I think this works. I will also try your suggestion ASAP. However, would you
    please tell me how to control the secondary SO not to start and later to start
    it? Every time I try to run the app, all the partition will start. And I guess,
    I can not new it.
    Thanks.
    Rds
    Alex
    Alex,
    1) as Arpad mentioned in his posting, you can start task a method which
    contains your event loop from the init method.
    as for
    2), what I've done in the past is to start both primary and secondary SOs,
    where the primary SO's event loop begins at start up, but the secondary SO
    is dormant.. I created a "monitoring" SO which listens for remote access
    exceptions (or distributed access exceptions) and on the death of the first
    SO, the second SO's event loop is started. The other option is to not start
    the secondary SO until the primary one fails, but there is a lag time for
    the SO to come up.
    j
    Carpe Diem, Seize the Day !
    Alex Lee (Li Zhongling)
    Forte, Java/CORBA Group
    International Business Corporation
    Bangalore 560010, India
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Validation returns : no data found + unhandled user-defined exception

    Hi, I'm working with Application Express 4.1.1.00.23.
    I have an application for timesheet management.
    On one page, I've got a report (not interactive) in which you can enter the hours you've worked. First you add a free line, choose the task and then enter the hours you've spent.
    You can only have one empty line at a time. If you try to add a line when you already have an empty line, a validation will display an error. It worked fine in version 3.2. Now we upgraded to 4.1 and get a weird error :
    1) The validation msg appears fine
    2) The report appears fine
    3) There is a msg at the end of the report saying :
    report error:
    ORA-01403: no data found
    ORA-06510: PL/SQL: unhandled user-defined exception
    Could somebody point out the source of this problem ?
    Thank you!
    Here is the debug :
    0.31117     0.00204     parse query as: FEUILLES_DE_TEMPS     4     
    0.31319     0.07865     ...Execute Statement: select NULL "CHECK$01", NULL "nom_projet2", NULL "NO_TACHE_ENTRE", NULL "NO_TACHE", NULL "NO_SEMAINE_EMPLOYE", NULL "NOM_TACHE", NULL "Tâches", NULL "SEQUENCE", NULL "Heures dim", NULL "DIM", NULL "Heures lun", NULL "LUN", NULL "Heures mar", NULL "MAR", NULL "Heures mer", NULL "MER", NULL "Heures jeu", NULL "JEU", NULL "Heures ven", NULL "VEN", NULL "Heures sam", .........
    0.39191     0.00158     print column headings     4
    0.39342     0.02546     rows loop: 500 row(s)     4
    0.41889     0.00087     report error: ORA-01403: no data found ORA-06510: PL/SQL: unhandled user-defined exception
    .....

    Hi, thanks for your answer. Here is the validation we are executing. I'm pretty sure its fine since count(*) always return a value (plus we see V2 in the debug...) :
    declare
    l_count number;
    begin
    apex_debug_message.enable_debug_messages(7);
    apex_debug_message.log_message('-----------------------------------V1----------------------------------');
    -- get remaining empty tasks count
    SELECT count(*) into l_count
    FROM VIEW_TACHE_SYSTEME
    WHERE NO_TACHE NOT IN (SELECT DISTINCT NO_TACHE FROM TACHE_JOUR WHERE NO_SEMAINE_EMPLOYE = :P36_NO_SEMAINE_EMPLOYE);
    apex_debug_message.log_message('-----------------------------------V2----------------------------------');
    apex_debug_message.log_message(l_count);
    if l_count = 0 then
    return 'Veuillez utiliser la tâche vide avant d''ajouter une ligne.';
    else
    return null;
    end if;
    end;
    Here is the debug :
    0.14643     0.00318     ...Validation "ADD_ROW_VALIDATION" - Type: FUNC_BODY_RETURNING_ERR_TEXT     4     
    0.14961     0.00318     ...Execute Statement: declare function x return varchar2 is begin declare l_count number; begin apex_debug_message.enable_debug_messages(7); apex_debug_message.log_message('-----------------------------------V1----------------------------------'); -- get remaining empty tasks count SELECT count(*) into l_count FROM VIEW_TACHE_SYSTEME WHERE NO_TACHE NOT IN (SELECT DISTINCT NO_TACHE FROM TACHE_JOUR WHERE NO_SEMAINE_EMPLOYE = :P36_NO_SEMAINE_EMPLOYE); apex_debug_message.log_message('-----------------------------------V2----------------------------------'); apex_debug_message.log_message(l_count); if l_count = 0 then return 'Veuillez utiliser la tâche vide avant d''ajouter une ligne.'; else return null; end if; end; return null; end; begin wwv_flow.g_computation_result_vc := x; end;     4     
    0.15280     0.01299     -----------------------------------V1----------------------------------     6     
    0.16578     0.00310     -----------------------------------V2----------------------------------     6     
    0.16888     0.00235     0     6     
    0.17123     0.00225     ......Result = Veuillez utiliser la tâche vide avant d'ajouter une ligne.     4     
    0.17347     0.00276     ......Did NOT pass     4     
    0.17624     0.00314     Add error onto error stack     4     
    0.17938     0.00343     ...Error data:     4     
    0.18280     0.00327     ......message: Veuillez utiliser la tâche vide avant d'ajouter une ligne.     4     
    0.18607     0.00446     ......display_location: INLINE_IN_NOTIFICATION     4     
    0.19053     0.00323     ......is_internal_error: false     4     
    0.19375     0.00323     ......error_backtrace: - PL/SQL Call Stack - object line object handle number name c000000382130f30 717 package body APEX_040100.WWV_FLOW_ERROR c000000382130f30 833 package body APEX_040100.WWV_FLOW_ERROR c00000039da9b5c8 154 package body APEX_040100.WWV_FLOW_VALIDATION c00000039da9b5c8 363 package body APEX_040100.WWV_FLOW_VALIDATION c00000039da9b5c8 784 package body APEX_040100.WWV_FLOW_VALIDATION c00000039da9b5c8 905 package body APEX_040100.WWV_FLOW_VALIDATION c00000039d1142c8 10005 package body APEX_040100.WWV_FLOW c000000381287050 31 anonymous block

  • How to override the event loop

    As a windows game developer, I have always overridden the application message loop to make sure that graphics were rendered when the CPU was idle, and still being able to process windows messages like keyboard/mouse events. CPU is then maxed out (except when a forced sleep or v-sync is enabled) to give highest performance on graphics, making a simple clear opengl window render at 3500 frames per second (I know this is idiotic but I'm trying to make a point).
    Now that I'm porting my game engine (c++ code) to cocoa, I  am struggling with how to implement the main loop. I could use a timer but this will fix the framerate and might be slow. It will prevent me to use the CPU to its full extent.
    So: is there some kind of OnIdle event I can override? Or do I have to do the Event loop processing myself? And can anyone tell me how to do something like this? Is there a tutorial or a book or anything I can study to learn about this? I presume this is lower level API.
    Any help is appreciated!
    Dirk.

    etresoft wrote:
    Michael may profess ignorance about MacOS X applications, but he is still 100% correct. You need to study the architecture and find the best way to work with it. The first thing to know is that the CPU is irrelevant. Let the GPU handle your graphics - that is what it does best. You do want your CPU to be as idle as possible. Approach it from a device-driver or event-driven perspective.
    Just to clarify that I'm not a total noob trying to write his first program: of course I will not overly use the CPU if not necessary. I completely agree with what you guys say about maximizing CPU usage. My game engine on windows will put the CPU to sleep when it's not necessary making my engine perform very good with almost no CPU usage.
    But... when I want to test if changes to my engine/shaders/... improve or degrade performance of the renderings, I want to be sure that everything is maxed out so that I can be sure that the difference is correct. On maxed out CPU/GPU, I will notice the difference when framerate goes for example from 2000 to 1900 while this will not be visible when just at 60 fps and a lot of free time. I will see 60 fps even when my code is worse. That's why I need to be able to test this.
    Anyway, as I said, I completely agree and I will certainly do my very best to make sure that CPU is not overly used. So my question remains: how can I make sure that I have everything I need at the time I need it while I will do my best to make sure nothing more is used?
    Timer-events at 1/60th of a second is not the answer...
    Using threads for these things is not the answer... I use them for other things (loading from disk/processing data/generating data)
    But are there other options?
    Can you point me to where I can learn more about the architecture and its possibilities?

  • Problem using local variable in event loop

    I have a state machine from which I want to monitor various controls, including "Start" and "Stop" buttons.  Not every state needs to monitor the controls.  At present, most states run timed loops.  In the first state that reads the front panel, I have an Event structure (inside a While loop) that monitors the various controls' Change Value events.  For numeric controls, I update variables (in shift registers) as needed.  The "Start" button is used to end the While loop controlling the Event structure, allowing the State to exit to the next state.
    My problem comes in subsequent states that employ this same idea.  Here, I put a Local Variable bound to the Start button and use the same code, but it frequently happens that when I enter this particular state, I cannot "turn on" the control -- I push the button, but it stays off.  Curiously, if it was On when I enter, I can turn it off, but then I'm stuck not being able to turn it on.
    I mocked up a very simply routine that illustrates this.  There are two sequences (corresponding to the two states).  Both use an Event loop with a local variable bound to my Stop button (really this is an LED control with custom colors).  I've deliberately moved the "initialization" (the declaration of the control in the block diagram) out of the Event loops -- putting it inside the first loop modifies the behavior in another strange way.
    Here's my thinking on how I would expect this to work:  The code outside Event Loop 1 should have little effect.  Assume the Stop button is initially Off.  You will "sit" in Event Loop 1 until you push the Stop button, changing its value to True; this value will be passed out of the Event case and cause the first While loop to exit.  You now enter the second sequence.  As I understand the Exit tunnel, it defaults to "False", so I'd expect to stay in the second Event loop until I turn the Stop button from On to Off, which will pass out a False, and keep me in the While for one more button push.  However, this doesn't happen -- I immediately exit, as though the "True" value of the Stop local variable is being seen and recognized by the Event loop (even though it hasn't changed, at least not in the context of this second loop).
    An even more curious thing occurs if I start this routine with the Stop button turned on.  Now I start in my Event loop waiting for a change, but this time the change will be from On to Off, which won't cause an exit from the frame.  This will be reflected by having the While loop count increment.  We should now be in the state of the example above, i.e. in an Event loop waiting for the control to be pushed again, and turned On.  However, clicking the control has no effect -- I cannot get it to "turn on".
    Where am I going astray in my thinking?  What is it about this method of doing things that violates the Labview paradigm?  As far as I can tell, what I'm doing is "legal", and I don't see the flaw in my reasoning, above (of course not -- otherwise I'd have fixed it myself!).  Note that because I'm using local variables inside Event loops (and I'm doing this because there are two places in my code where I want to do such testing), the Stop control is not latching (as required).  Is there something that gets triggered/set when one reads a latched control?  Do I need to do this "manually" using my local variable?
    I'll try to attach the simple VI that illustrates this behavior.
    Bob Schor
    Attachments:
    Simple Stop Conundrum.vi ‏14 KB

    altenbach wrote:
    Ravens Fan wrote:
    NEVER have multiple event structures that share the same events. 
    Actually, that's OK.  NOT OK is having multiple event structures in the same sequence structure.
    See also: http://forums.ni.com/ni/board/message?board.id=170&message.id=278981#M278981
    That's interesting.  I had always thought I read more messages discouraging such a thing rather than saying it was okay.  Your link lead me to another thread with this message. http://forums.ni.com/ni/board/message?board.id=170&message.id=245793#M245793.  Now that thread was mainly concentrating on registered user events which would be a different, but related animal. 
    So if you have 2 event structures they each have their own event queue?  So if you have a common event, one structure pulls it off its event queue and it does not affect the other structure's event queue?  I guess the inherent problem with this particular VI was that the second event structure locked the front panel.  Since the code never got to that 2nd event structure because the  first loop never stopped because the change was from true to false.  After reading your post and the others, I did some experimentation and turned off the Lock front panel on the 2nd structure, and that prevented the lockup of the program.
    Overall, the example VI still shows problems with the architecture and I think your answer should put the original poster on the right track.  I think as a rule I would probably never put the same event in multiple structures, I feel there are better ways to communicate the same event between different parts of a program,  but I learned something by reading your reply and about how the event structures work in the background.  Thanks.

  • FOR LOOP EXCEPTION not working !!! please help

    Hi,
    Why is the NO_DATA_FOUND execption not getting executed. ????
    Hereis the code....
    CURSOR newreccur IS
    SELECT * from emp_table;
    BEGIN
    v_file_handle := UTL_FILE.FOPEN('out','new.dat','W');
    BEGIN
    FOR emp_rec IN newreccur LOOP
    -- Write procurement records
    UTL_FILE.PUT(v_file_handle,'emp_rec.num');
    END LOOP;
    EXCEPTION WHEN NO_DATA_FOUND THEN
    dbms_output.put_line ('No data found ')
    END;
    EXCEPTION
    WHEN UTL_FILE.INVALID_PATH
    THEN
    DBMS_OUTPUT.PUT_LINE ( 'Invalid Path ' || TO_CHAR (SQLCODE) );
    UTL_FILE.FCLOSE_ALL;
    END;

    cursor for loops do not raise no_DatA_found - they simply stop looping when they run out of data. you can set a variable within the loop, and then check it after the loop if you need to know if data was returned or not.

  • How to handle the 'folder button' in the path command throug Event loop ?

    Hi everybody.
    Again a stupid question but I can't find the answer.
    My VI has a dynamic event loop, to execute the right code depending on user action.
    Everything is working well but now I wish to do the following :
    I use a 'path command' with the path entry (like for text) and the folder button.
     the user click on the path entry     ->   something A happens.
     the user click on the folder button  ->   something B happens.
    As the folder button and the path entry are the same command, how to differenciate those two events in the event structure ?
    Maybe there is a value in the node, but I can't find it ...
    Thanks for helping !

    You can't do exactly what you are wanting to do. The problem is that you can't trigger an action based on clicking the browse button. To implement that you will need to hide the browse button that LV creates and put down a button of your own that you can then track and respond to independently.
    Mike...
    PS: what is it exactly that you are trying to accomplish?
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Event loop based programming help in c#

    Hello everyone . I was reading about node.js and how it does all the work using event loops using a single thread to do all the non-blocking socket I/O . I am trying to implement the same concept in my application which will be doing a lot of socket I/O
    including some disk I/O while I will do on a separate thread so that the application doesn't come to its knees . I am going to implement this mode in C# . I have looked around but the answers and solutions given are just too abstract and general . Can you
    please help me ?

    Have you seen this article (12/25/2014)?
    http://www.codeproject.com/Articles/846803/Developing-Applications-With-Express-Framework-And
    It uses Visual Studio and includes code and instructions. Also gives you the opportunity to communicate with the author.

  • Error : ORA-06510: PL/SQL: unhandled user-defined exception

    Hi,
    Please help on this Error.
    Here is my code for Trigger
    Code for Trigger
    CREATE OR REPLACE TRIGGER TRG_EXCEP AFTER INSERT ON TEST FOR EACH ROW
    DECLARE
         vInt NUMBER := 0;
         vErr EXCEPTION;
    BEGIN
         vInt := :OLD.TEST_ID;
         IF vInt > 10 THEN
              INSERT INTO TEST1 VALUES (:NEW.TEST_ID,:NEW.TEST_NAME);
         ELSE
              RAISE vErr;
         END IF;
    EXCEPTION
              WHEN vErr THEN
                   INSERT INTO TEST1 VALUES (0,:NEW.TEST_NAME);
    END;
    While inserting in to the table TEST iam getting the following error
    Error on line 0
    INSERT INTO TEST VALUES (147541,'Mm',SYSDATE)
    ORA-00001: unique constraint (DB_TEST.SYS_C005327) violated
    ORA-06512: at "DB_TEST.TRG_EXCEP", line 13
    ORA-06510: PL/SQL: unhandled user-defined exception
    Someone help me please ...............
    Thanks,
    Murali.V

    Hi,
    I made the mistake here
    INSERT INTO TEST1(id,name) VALUES (0,:NEW.TEST_NAME);
    where i defined the id as primary key.
    But the another problem for me now is while compiling the trigger after i modified,
    i get this error
    11:37:05 Error: TRIGGER DB_TEST.TRG_EXCEP
    On line: 7
    PLS-00553: character set name is not recognized
    Please help.
    Thanks,
    Murali.V

  • Multiple "generate user event" in event loop

    Hello.
    1.)  I am wondering if you can user a "generate user event" into an event loop to create a quasi-state machine.
    For example create an event loop with the events "event a", "event b," "event c," and so on.   The in "event a" put in a function to generate a user event to call "event b".  Then "event b" will call "event c" and so on.
    2.)  If this is possible, then can u put multiple generate user events into a single event loop and have it queue the generate user events up.  For example have the "event 1" case use the "generate user event" 3 times (generating "event 7" "event 8" and "event 9.") to call the next three future event cases in that order?
    Thanks
    Charlie C.

    Of course it is possible, easiest with simply writing signaling properties. (See attached examples, LabVIEW 7.1).
    You have to be very careful that you don't create trigger loops, e.g. event A triggers Event B, which triggers Event A ... ad infinitum! :0
    Example "Multievents": event 1 triggers event 2, which triggers event 3.
    Example Multievents2": event 1 triggers events 2-3-2-stop in sequence.
    Message Edited by altenbach on 09-28-2005 01:26 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    MultiEvents.vi ‏57 KB
    MultiEvents2.vi ‏72 KB

  • Question related with loop exception

    Hello
    I got 4 database , i am using dblinks to check some tables and write the results to one table. I created also  one table to hold instance names so my loop check it and execute my procedure.
    declare
      sql_string1   VARCHAR2(4000);
      sql_string2   VARCHAR2(100);
    begin
    sql_string2:='truncate table  Backup';
    execute immediate sql_string2;
       for r in (select INSTANCE_NAME,HOST_NAME from del)
       loop
    sql_string1:= 'insert into Backup 
    SELECT '''||r.HOST_NAME||'''  '||', '''||r.INSTANCE_NAME||'''  '||' ,
    INPUT_TYPE,STATUS,START_TIME,END_TIME FROM V$RMAN_BACKUP_JOB_DETAILS@'||r.INSTANCE_NAME;
              execute immediate sql_string1;
           COMMIT;
       end loop;
       exception
      WHEN OTHERS THEN
        NULL;
    end;
    If all listeners are working or dbs are working this procedure work without any problem but if one of them is closed it is just insert the values until it gets error but i want that if it gets error to goes other value.How can i do that?
    I changed values of del table
    SYS@crofxd01:WSTORED: >select instance_name from del;
    INSTANCE_NAM
    BLABLA
    BLABLA
    BLABLA
    BLABLA
    FPT
    only FPT is real instance after i execute procedure , i wanna see that FPT values inserted to db.
    Thanks

    Hi,
    When control passes to an EXCEPTION section, it can not return to the block where the error occurred.  If you want to continue execution, the code to be executed after the exception is handled must be in a separate block.
    Use a nested BEGIN block, like this:
    declare
        sql_string1   VARCHAR2(4000);
        sql_string2   VARCHAR2(100);
        err_code   NUMBER;
    begin
        sql_string2 := 'truncate table  Backup';
        execute immediate sql_string2;
        for r in (select INSTANCE_NAME,HOST_NAME from del)
        loop
            sql_string1 := 'insert into Backup 
                            SELECT ''' || r.HOST_NAME || '''  , ''' || r.INSTANCE_NAME ||
                            '''   , INPUT_TYPE,STATUS,START_TIME,END_TIME FROM V$RMAN_BACKUP_JOB_DETAILS@' ||
                            r.INSTANCE_NAME;
            BEGIN
                  execute immediate sql_string1;
            EXCEPTION
                WHEN OTHERS THEN
                    err_code := SQLCODE;
                    IF  err_code  IN (-1234, -1236, ...) -- Find out actual numbers
                    THEN
                        NULL;
                    ELSE
                        RAISE;
            END;
           COMMIT;
       end loop;
    end;
    "EXCEPTION WHEN OTHERS THEN NULL" is usually a terrible idea.  Find out exactly what error codes will be generated for the routine problems that you want to ignore (I just made up numbers -1234 and -1236 above) and test specifically for them.

  • Is it ok to trigger 2 event loops off the same control?

    I have two event loops which need to trigger when the Exit button is clicked on. Is it ok to trigger both loops off the same control? It has been working great, but I'm not sure if there could be an issue. Please see below. Thank You!
    Solved!
    Go to Solution.

    sfrosty wrote:
    Another point may be that I have  50 ms wired to the timer in the MENU event structure and don't want any delay in the MAIN Event structure. Not sure if this is a valid point.
    Why?  Are you doing something else in that loop?
    I would recommend moving your menue stuff into your main event loop.  You will thank yourself later.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Unhandled user-defined exception in dbms_session?

    hi guys,
    I've had some code that's been working for a while but just now has started giving me the following:
    SQL> select *
      2    from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production
    CORE    10.2.0.5.0      Production
    TNS for Linux: Version 10.2.0.5.0 - Production
    NLSRTL Version 10.2.0.5.0 - Production
    5 rows selected.
    Elapsed: 00:00:00.00
    SQL> begin
      2 
      3 
      4          dbms_session.set_nls('cursor_sharing','FORCE');
      5         
      6         
      7  end;                                                     
      8  /
    begin
    ERROR at line 1:
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "SYS.DBMS_SESSION", line 158
    ORA-06512: at line 4I've closed my sessions and restarted, it doesn't matter whether this is running via a stored proc or as an anonymous block like the above - what should I be looking for to find the cause of this?
    I don't think I've been changing anything except using the dbms_session.set_identifier procedure, but certainly not in the sessions that I've been setting this nls parameter...

    sybrand_b wrote:
    You can not use set_nls to change this parameter, you need 'execute immediate 'alter system... etc'
    And it is a bad hack to work around not using bind variables.
    Sybrand Bakker
    Senior Oracle DBAalso a work around for when your system's parameter is set to 'SIMILAR' but you're trying to use certain XML functionality:
    SQL> alter session set cursor_sharing = SIMILAR;
    Session altered.
    Elapsed: 00:00:00.00
    SQL> with t as (select xmltype('<validation>
      2                                <error id="1">
      3                                  <sys_message>test</sys_message>
      4                                  <cust_message>testing</cust_message>
      5                                  <cust_code>blahblah</cust_code>
      6                                </error>
      7                              </validation>') pi_xml from dual)                  
      8            SELECT xtab.sys_message
      9                  ,xtab.cust_message
    10                  ,xtab.cust_code
    11              FROM xmltable('/validation/error'
    12                    passing (SELECT pi_xml
    13                               FROM T)
    14                    COLUMNS
    15                      ID            NUMBER   path '/error/@id'
    16                      ,sys_message  VARCHAR2(1000) path '/error/sys_message'
    17                      ,cust_message VARCHAR2(1000) path '/error/cust_message'
    18                      ,cust_code    VARCHAR2(1000) path '/error/cust_code') xtab;
                                </validation>') pi_xml from dual)
    ERROR at line 7:
    ORA-01780: string literal required
    Elapsed: 00:00:00.00
    SQL> alter session set cursor_sharing = 'FORCE';
    Session altered.
    SQL> with t as (select xmltype('<validation>
      2                                <error id="1">
      3                                  <sys_message>test</sys_message>
      4                                  <cust_message>testing</cust_message>
      5                                  <cust_code>blahblah</cust_code>
      6                                </error>
      7                              </validation>') pi_xml from dual)                   
      8            SELECT xtab.sys_message
      9                  ,xtab.cust_message
    10                  ,xtab.cust_code
    11              FROM xmltable('/validation/error'
    12                    passing (SELECT pi_xml
    13                               FROM T)
    14                    COLUMNS
    15                      ID            NUMBER   path '/error/@id'
    16                      ,sys_message  VARCHAR2(1000) path '/error/sys_message'
    17                      ,cust_message VARCHAR2(1000) path '/error/cust_message'
    18                      ,cust_code    VARCHAR2(1000) path '/error/cust_code') xtab; 
    SYS_MESSAGE
    CUST_MESSAGE
    CUST_CODE
    test
    testing
    blahblah
    1 row selected.edit:
    incidentally, the exact same result can be retrieved with with cursor_sharing = similar if you do it this way...:
    SQL> alter session set cursor_sharing = SIMILAR;
    Session altered.
    Elapsed: 00:00:00.00
    SQL> with t as (select xmltype('<validation>
      2                                <error id="1">
      3                                  <sys_message>test</sys_message>
      4                                  <cust_message>testing</cust_message>
      5                                  <cust_code>blahblah</cust_code>
      6                                </error>
      7                              </validation>') pi_xml from dual)                     
      8        SELECT extractvalue(pi_xml,'/validation/error[@id=1]/sys_message')  sys_message
      9              ,extractvalue(pi_xml,'/validation/error[@id=1]/cust_message') cust_message
    10              ,extractvalue(pi_xml,'/validation/error[@id=1]/cust_code')    cust_code
    11          FROM (SELECT pi_xml
    12                  from t); 
    SYS_MESSAGE
    CUST_MESSAGE
    CUST_CODE
    test
    testing
    blahblah
    1 row selected.Edited by: WhiteHat on May 11, 2011 5:11 PM

  • Start Task and Event Loops

    I have a Window with an Event Loop that looks like this:
    Event Loop
    when StartButton.click do
    SO.EventLoop;
    when StopButton.click do
    post SO.Z;
    End Event;
    I have ServiceObject (SO) that has an EventLoop that looks like this:
    Event Loop
    when X do
    start task Y();
    when Z do
    exit;
    End Event;
    The Event Loop on my SO is not catching Z until Y finishes processing.
    Does anyone know why? Is there another way do this so I can catch Z
    before Y finishes?
    Paul Monax
    Consultant
    Sage It Partners
    303.779.3309 x204
    [email protected]
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Paul
    Could it be that the StopButton.Click() event is not being trapped? That is, the window's event loop is waiting for the SO to complete, as it is a synchronous task. Therefore, use:
    when StartButton.Click() do
    start task SO.EventLoop();
    Anyway, I would think that a better way to do it would be to have the SO's EventLoop running initially. That is, start it (as a separate task) elsewhere (perhaps when the window is opened). Then, when you get the StartButton.Click() event, do:
    when StartButton.Click() do
    post SO.X; -- This will cause task Y to begin
    Hope this helps...
    Regards
    Sam Keall
    [email protected] on 11/08/98 02:42:00
    To: [email protected]
    cc: (bcc: Sam Keall/GB/ABNAMRO/NL)
    Subject: Start Task and Event Loops
    I have a Window with an Event Loop that looks like this:
    Event Loop
    when StartButton.click do
    SO.EventLoop;
    when StopButton.click do
    post SO.Z;
    End Event;
    I have ServiceObject (SO) that has an EventLoop that looks like this:
    Event Loop
    when X do
    start task Y();
    when Z do
    exit;
    End Event;
    The Event Loop on my SO is not catching Z until Y finishes processing.
    Does anyone know why? Is there another way do this so I can catch Z
    before Y finishes?
    Paul Monax
    Consultant
    Sage It Partners
    303.779.3309 x204
    [email protected]
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

Maybe you are looking for

  • TS1363 my computer will not recognize my iphone

    My iphone has been working fine with my computer.  After I did an update for itunes today, the phone froze up  and will not work at all.  It has a picture stating to connect it to itunes, which it is.  The itunes will not recognize the iphone now. he

  • How to set dynamic column width for analysis item

    Dear Experts, I have a query view which is added in the web template as an analysis item. The web item properties on width is not working - I tried entering a value in the width but when I execute the template, the query view's width still stays the

  • Report error: ORA-01403: no data found.

    Hi, I was getting a following error and not able to figure it out. Here what I have: I have a page where I have 3 regions and out of them, there are 2 Html conditional regions and one SQL updatable report. Also, I have a validation to validate a fiel

  • How to implement the runtime compression of texture?

    I've read the doc here: http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7d5b.html Flash Player 11.4 and AIR 3.4 support runtime texture compression, which is useful in certain situations, such as when rendering dynami texture

  • I need help with the remake of an old logo into vectors!

    Hello everybody, This is my first post here! I hope I'll get some information about my problem. So, I need to remake an old and pretty ugly logo, for a friend of mine, into vectors, because right now he has it only as jpg. It works for most places, b