Calling states in a state machine more than once
Hello again,
Is there a way to call a state in a state machine after it has already ran? To elaborate, I have a program that will set pressure in increments of 20% and will then write to a file. Once it is done with the highest pressure state (100%), I want it to repeat the test again, but this time in decrements of 20%. So, it will do:
1. Set pressure at lowest point
2. Read meter and write value
3. Set pressure at 20%
4. Read meter and write value
All the way up to 100%, then:
5. Set pressure at 80%
6. Read meter and write value
7. Set pressure at 60%
8. Read meter and write value
All the way down to the lowest point.
Is there a way to do this instead of making a state for read and writes at each percentage? That way I don't have Read Agilent 20% Increment, Read Agilent 40% Increment, etc.
I've attached the code to help explain what I'm talking about.
Thanks everyone, still a newbie
Solved!
Go to Solution.
Attachments:
Pressure&Measurements.vi 58 KB
Yes, everything I described is automatic, no user intervention. ( I edited my post, please review ). As I understand what you are asking, you don't want to have multiple states where the only difference is the multiplier value.
But, you do already have all those states, so you can decide to re-write for flexibility and future expansion, or just index the state enum as described above.
Missed the part about decrementing afterwards. The idea is identical, you have an array that has the values you want in the order you want. If the pattern repeats, then you have to reset the index to start at the beginning after each run.
If you are going up then down, then repeating, I would suggest putting the values in order 20,40 ...100 .... 40, 20, and then repeat that sequence.
Alternatively, you can use an array of the state names as you already have the 20, 40, ... etc... states written.
Mark Ramsdale
Similar Messages
-
Deauthorizing all machines more than once in a year?
Is it possible to deauthorize all machines more than once in a year? I have had two machines crash and one time I forgot to de-authorize before I installed a new OS.
iTunes tells me I have to wait until June to do this. There has to be a way to manually get someone to agree to do this. Is there a number I can call or process????
tflink
HP Compaq NC8230 Windows XP ProNo.
-
Prepared statement st in servlet - not executing more than once!
Hi,
my problem is that the following piece of code in a servlet does not get executed more than once:
myQuery = "DELETE FROM MREMINDERS WHERE username=? AND reminders=?";
PreparedStatement st = conn.prepareStatement(myQuery);
st.setString(1,usern);
st.setString(2,oldRem);
st.executeUpdate();
st.close();
The above code is called in a servlet to delete fields from a table. I call this code in a for loop from another method in the servlet. It executes the first time in the loop, but the second time onwards it throws an error!!! please let me know how to solve this ASAP since i am at the point of frustration now!!!
thanx...Hi,
sorry... i got it fixed!!!! :-)
i was closing a JDBC connection which was generating that error!!
thanx again.. -
Calling thread.start() more than once concurrently
Hi, I got a simple doubt that may feel awkward or absurd to people who are well versed in the java threading concepts. I just thought of it and as I couldn't get an easy answer I am posting this.
Consider a class that implements the runnable interface. The run() method of the class is implemented with just a System.out.println(). If I make an instance of this class, say 't' in the main method and calling t.start() susequently twice or thrice; an illegal ThreadStateException will be thrown. The code snippet is as follows:
ThreadTest t = new ThreadTest();
t.start();
t.start();
It is understood that state of the thread object is changed to run state and so, if it is again started, it must be thrown. So if I put a Thread.sleep() inbetween these two subsequent calls assuming that the main method thread will be sleeping. So there is sufficient time for the first thread to terminate and then only the second will start - still the same exception is being thrown. I tried putting the synchronized qualifier for run too, still no effect - the same only happening. Why the java thread object is made in such a way that once the thread changes it state from Runnable to Running and then finally to dead state, it can be restated back to Runnable state, such that the start() method can be called again. Is it possible or not? Please post your comments.As ejp says you can't start a thread more than once - even if it has already terminated after the first start.
By making threads a one-shot it simplifies reasoning about them: you don't have to wonder whether a second start() will work or not, depending on whether the thread has completed its first "incarnation". It also makes it easier to ensure thread resources are reclaimed. It also avoids semantic issues like whether anything about the thread is "carried over" across incarnations.
This might seem a limitation but there are many ways around it - simply don't let the thread terminate. Whatever control structure you would enforce by re-starting the thread can be emulated without letting the thread terminate in between "executions". -
Method called more than once - and dies with EXC_BAD_ACCESS error
Hi,
In my app, I have 4 views with their respective viewControllers. In the appDelegate.m, I provide methods that allows to switch to any of these views. Following is code for switching to the editView:
-(void) flipToEditView {
[self populateTheList]; // populate an array
EditViewController *anEditVC = [[EditViewController alloc] initWithNibName:@"EditView" bundle:nil];
[self setEditVC:anEditVC];
[viewController.view removeFromSuperview];
[self.window addSubview:[editVC view]];
[anEditVC release]; }
The view is not switched - and moreover, this method is called more than once; and the app dies with EXCBADACCESS!
2009-08-23 14:54:40.648 iNotate[2128:20b] Album (before): x= 0 y=20 width=320 height=460
2009-08-23 14:54:40.653 iNotate[2128:20b] Album (after): x= 0 y= 0 width=320 height=480
warning: Couldn't find minimal bounds for "_sigtramp" - backtraces may be unreliable
(gdb) bt
#0 -[iNotateAppDelegate flipToEditView] (self=0x523690, _cmd=0x9563) at /Users/sam/MY_FILES/iPhone Apps/app/Classes/iNotateAppDelegate.m:116
#1 0x00008661 in -[FirstView editAction] (self=0x546a30, _cmd=0xac94) at /Users/sam/MY_FILES/iPhone Apps/app/FirstView.m:25
#2 0x30a4eee6 in -[UIApplication sendAction:to:from:forEvent:] ()
#3 0x30ab0d36 in -[UIControl sendAction:to:forEvent:] ()
#4 0x30ab11fe in -[UIControl(Internal) _sendActionsForEvents:withEvent:] ()
#5 0x30ab0544 in -[UIControl touchesEnded:withEvent:] ()
#6 0x30a67917 in -[UIWindow sendEvent:] ()
#7 0x30a56fff in -[UIApplication sendEvent:] ()
#8 0x30a561e0 in _UIApplicationHandleEvent ()
#9 0x31565dea in SendEvent ()
#10 0x3156840c in PurpleEventTimerCallBack ()
#11 0x94a713c5 in CFRunLoopRunSpecific ()
#12 0x94a71aa8 in CFRunLoopRunInMode ()
#13 0x31566600 in GSEventRunModal ()
#14 0x315666c5 in GSEventRun ()
#15 0x30a4eca0 in -[UIApplication _run] ()
#16 0x30a5a09c in UIApplicationMain ()
#17 0x000027e8 in main (argc=1, argv=0xbffff068) at /Users/sam/MY_FILES/iPhone Apps/app/main.m:14
Current language: auto; currently objective-c
(gdb) continue
2009-08-23 14:54:55.885 iNotate[2128:20b] >>>>>>>>>>>>>>>>>> populateTheList
(gdb) bt
#0 -[iNotateAppDelegate flipToEditView] (self=0x523690, _cmd=0x9563) at /Users/sam/MY_FILES/iPhone Apps/app/Classes/iNotateAppDelegate.m:116
#1 0x00008661 in -[FirstView editAction] (self=0x5457b0, _cmd=0xac94) at /Users/sam/MY_FILES/iPhone Apps/app/FirstView.m:25
#2 0x30a4eee6 in -[UIApplication sendAction:to:from:forEvent:] ()
#3 0x30ab0d36 in -[UIControl sendAction:to:forEvent:] ()
#4 0x30ab11fe in -[UIControl(Internal) _sendActionsForEvents:withEvent:] ()
#5 0x30ab0544 in -[UIControl touchesEnded:withEvent:] ()
#6 0x30a67917 in -[UIWindow sendEvent:] ()
#7 0x30a56fff in -[UIApplication sendEvent:] ()
#8 0x30a561e0 in _UIApplicationHandleEvent ()
#9 0x31565dea in SendEvent ()
#10 0x3156840c in PurpleEventTimerCallBack ()
#11 0x94a713c5 in CFRunLoopRunSpecific ()
#12 0x94a71aa8 in CFRunLoopRunInMode ()
#13 0x31566600 in GSEventRunModal ()
#14 0x315666c5 in GSEventRun ()
#15 0x30a4eca0 in -[UIApplication _run] ()
#16 0x30a5a09c in UIApplicationMain ()
#17 0x000027e8 in main (argc=1, argv=0xbffff068) at /Users/sam/MY_FILES/iPhone Apps/app/main.m:14
(gdb) continue
2009-08-23 14:55:22.493 iNotate[2128:20b] >>>>>>>>>>>>>>>>>> populateTheList
Program received signal: “EXCBADACCESS”.
(gdb) continue
What's happening here?
Sam!-(void) flipToEditView {
[self populateTheList]; // populate an array
EditViewController *anEditVC = [[EditViewController alloc] initWithNibName:@"EditView" bundle:nil];
[self setEditVC:anEditVC];
[viewController.view removeFromSuperview];
[self.window addSubview:[editVC view]];
[anEditVC release]; }
}<---- is this } matched elsewhere? -
QuickTime DOM Events called more than once?
I am in the process of writing code in JavaScript that will track the interaction on a embedded QuickTime video.
function ew_addImage(v) {
trackImg=new Image(1,1);
trackImg.src=v;
function ew_pauseTrk() {
var imgStr='http://www.sldkfjsldfjk.com/200125/EWTRACKNEW_VINT?ewadid=751801&ewbust='ewbust'&eid=1078554&file=$VIDEO$&bw=56&vlen=3:00&vint=PAUSED';
ew_addImage(imgStr);
if (document.addEventListener)
document.getElementById("mov1").addEventListener("qt_pause", ew_pauseTrk, false);
Everything works correctly. I am able to see the image being called when I am looking at Wireshark. The problem is when I click pause more than once.. It seems like the QuickTime DOM Events can only be called once.. Is that true?
Thanks-(void) flipToEditView {
[self populateTheList]; // populate an array
EditViewController *anEditVC = [[EditViewController alloc] initWithNibName:@"EditView" bundle:nil];
[self setEditVC:anEditVC];
[viewController.view removeFromSuperview];
[self.window addSubview:[editVC view]];
[anEditVC release]; }
}<---- is this } matched elsewhere? -
How to call the same query more than once with different selection criteria
Hi,
Please do anybody know how to solve this issue? I need to call one query with the fixed structure more than once with different selection criteria. For example. I have following data
Sales organization XX
Income 2008 Income 2009
Customer A 10 20
Customer B 30 0
Sales organization YY
Income 2008 Income 2009
Customer A 20 5
Customer B 50 10
Now, I need this. At the selection screen of query, user fill variable charakteristic "Sales organization" with interval XX - YY, than I need to generate two separate results per sales organization, one for Sales Organization XX and the second for SO YYwhich will be displayed each on separate page, where result for SO YY will be dispayed under result for SO YY. Are there some options how to do it for example in Report Designer or WAD or with programming? In Report Designer is possible to use one query more than once, but I dont know how to force each query in RD to display result only for one Sales Organization, which will be defined in selection screen.
Thank you very much
J.Hello,
thanks to all for cooperation. Finally we solved this issue with the following way..
User fill appropriate SO on the selection screen, which is defined as range. This will resulte, that selected SO are listed in report below each othe (standard behavior). Required solution we achieved with the Report Designer, we set page break under each Result row of RD. This caused, that report is divided into required part per SO, which are stated each on separate page.
J. -
WDDOMODIFYVIEW and WDDOPOSTPROCESSING is called more than once!
Hello everybody,
maybe someone can help me. Our WDA application consist of 5 Components. One main and 4 components embedded in it. We instantiate the components in the WDDOINIT of the main component and use them between themselves.
I suppose that's the reason that the events in the views and componentcontrollers of each component is called so often.
With a break point in a WDDOMODIFYVIEW an the debugger I find out that the HANDLE_REQUEST methos from the CL_WDR_CLIENT_ABSTRACT_HTTP class is startet also more than once.
1. if m_ucf is not bound -> yes and m_request_type = suspend
2. if m_ucf is not bound -> initial and m_request_type = suspend
3. if m_ucf is not bound -> initial and m_request_type = suspend
4. if m_ucf is not bound -> initial and m_request_type = refresh
Maybe someone has expierence with it an can give a hint or explanations for this.
I hope so
Thanks for any answer
Best regards
Christian Breitenbachhi christian.......
a wddomodifyview view method will be called even if there is a little change in your view. it will b e called more times than your normal pbo in a dynpro application. the wddoinit will be called only before the view is loaded... but the modify willbe called even for popups nad any event.
---regards,
alex b justin -
In migrating to a 21.3" iMac from a Time Machine backup, can I do this more than once?
David,
My apologies....I was working on questions from a different thread and thought yours was part of that one. Your question is fine where it is....
Now....that being said, I'm afraid I don't know the answer to your question. I know you can exclude certain items from being backed up in Time Machine, which would save disk space on your external drive. But, you'd first have to calculate how much disk space you're using for the different things you want to back up vs. those you want to exclude.
I think it MIGHT be possible to do what you want, but (in my honest opinion) it's a recipe for a LOT of headaches should things not work out as you calculated. Better (again, in my opinion) to just pick up a larger external hard drive and transfer everything as Time Machine was designed.
Just my $0.02 worth. -
-setFence:count: called more than once per transaction
I am getting following error, any body have any idea what it is?
-setFence:count: called more than once per transaction
Debugger stopped.
Program exited with status value:101.
Thanks in Advance
RaviI am getting the same error...
T'is usly a m'ry error.
Use the debugging/testing tools in the latest Xcode to track down suspects, etc. -
How to use same page fragment more than once in a page,
Hi Gurus,
How to use same page fragment more than once in a page. I have a complex page fragment which has lots of Bindings (Binding Property set with backingBean variables).
I want to use the same page fragment multiple times on the same page with different tabs.
I want different ApplicationModule Instance for the page fragment in different tabs.
So I have created a Bounded Taskflow with pagefragments which has this complex pagefragment.
I've dragged the taskflow to page and created regions.
I'm able to execute the page successfully when I have only one region but fails if I have region more than once in the page.
Can anyone help me how to resolve this issue.
Web User Interface Developer's Guide for Oracle Application Development Framework: section 19-2 states we can have same pagefragment more than once in a page.
Thanks,
Satyajava.lang.IllegalStateException: Duplicate component id: 'pt1:r1:0:t2:si5', first used in tag: 'com.sun.faces.taglib.jsf_core.SelectItemsTag'
+id: j_id_id1
type: javax.faces.component.UIViewRoot@1d23189
+id: d1
type: RichDocument[UIXFacesBeanImpl, id=d1]
+id: j_id_id5
type: HtmlScript[UIXFacesBeanImpl, id=j_id_id5]
+id: j_id0
type: javax.faces.component.html.HtmlOutputText@bc252
+id: m1
type: RichMessages[UINodeFacesBean, id=m1]
+id: f1
type: RichForm[UIXFacesBeanImpl, id=f1]
+id: pt1
type: RichPageTemplate[oracle.adf.view.rich.component.fragment.UIXInclude$ContextualFacesBeanWrapper@2a0cc, id=pt1]
+id: ps1
type: RichPanelSplitter[UIXFacesBeanImpl, id=ps1]
+id: pt3
at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1199)
at jsp_servlet.__projectrevenuern_jsff._jspx___tag265(__projectrevenuern_jsff.java:12356)
at jsp_servlet.__projectrevenuern_jsff._jspx___tag264(__projectrevenuern_jsff.java:12317)
at jsp_servlet.__projectrevenuern_jsff._jspx___tag263(__projectrevenuern_jsff.java:12262)
at jsp_servlet.__projectrevenuern_jsff._jspx___tag262(__projectrevenuern_jsff.java:12200)
at jsp_servlet.__projectrevenuern_jsff._jspx___tag261(__projectrevenuern_jsff.java:12147)
at jsp_servlet.__projectrevenuern_jsff._jspx___tag260(__projectrevenuern_jsff.java:12099)
at jsp_servlet.__projectrevenuern_jsff._jspx___tag259(__projectrevenuern_jsff.java:12047)
at jsp_servlet.__projectrevenuern_jsff._jspx___tag258(__projectrevenuern_jsff.java:11992)
at jsp_servlet.__projectrevenuern_jsff._jspx___tag257(__projectrevenuern_jsff.java:11948)
at jsp_servlet.__projectrevenuern_jsff._jspx___tag255(__projectrevenuern_jsff.java:11860)
at jsp_servlet.__projectrevenuern_jsff._jspx___tag254(__projectrevenuern_jsff.java:11808)
at jsp_servlet.__projectrevenuern_jsff._jspx___tag9(__projectrevenuern_jsff.java:510)
at jsp_servlet.__projectrevenuern_jsff._jspx___tag8(__projectrevenuern_jsff.java:461)
at jsp_servlet.__projectrevenuern_jsff._jspx___tag1(__projectrevenuern_jsff.java:149)
at jsp_servlet.__projectrevenuern_jsff._jspService(__projectrevenuern_jsff.java:67)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:499)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:429)
at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:163)
at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:184)
at oracle.adfinternal.view.faces.taglib.region.IncludeTag.__include(IncludeTag.java:443)
at oracle.adfinternal.view.faces.taglib.region.RegionTag$1.call(RegionTag.java:153)
at oracle.adfinternal.view.faces.taglib.region.RegionTag$1.call(RegionTag.java:128)
at oracle.adf.view.rich.component.fragment.UIXRegion.processRegion(UIXRegion.java:492)
at oracle.adfinternal.view.faces.taglib.region.RegionTag.doStartTag(RegionTag.java:127)
at jsp_servlet.__projectrevenuepg_jspx._jspx___tag50(__projectrevenuepg_jspx.java:2392)
at jsp_servlet.__projectrevenuepg_jspx._jspx___tag49(__projectrevenuepg_jspx.java:2353)
at jsp_servlet.__projectrevenuepg_jspx._jspx___tag46(__projectrevenuepg_jspx.java:2209)
at jsp_servlet.__projectrevenuepg_jspx._jspx___tag45(__projectrevenuepg_jspx.java:2162)
at jsp_servlet.__projectrevenuepg_jspx._jspx___tag9(__projectrevenuepg_jspx.java:526)
at jsp_servlet.__projectrevenuepg_jspx._jspx___tag8(__projectrevenuepg_jspx.java:475)
at jsp_servlet.__projectrevenuepg_jspx._jspx___tag7(__projectrevenuepg_jspx.java:424)
at jsp_servlet.__projectrevenuepg_jspx._jspx___tag6(__projectrevenuepg_jspx.java:373)
at jsp_servlet.__projectrevenuepg_jspx._jspx___tag2(__projectrevenuepg_jspx.java:202)
at jsp_servlet.__projectrevenuepg_jspx._jspx___tag1(__projectrevenuepg_jspx.java:144)
at jsp_servlet.__projectrevenuepg_jspx._jspService(__projectrevenuepg_jspx.java:71)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:499)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:248)
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:267)
at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:473)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:141)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:710)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:273)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:205)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101020 MACHINE = CAMIND1 TXID = CONTEXTID = TIMESTAMP = 1262712477691
WatchAlarmType: AutomaticReset
WatchAlarmResetPeriod: 30000
>
<JMXWatchNotificationListener><handleNotification> failure creating incident from WLDF notification
oracle.dfw.incident.IncidentCreationException: DFW-40116: failure creating incident
Cause: DFW-40112: There was an error executing adrci commands; the following errors have been found "DIA-48415: Syntax error found in string [create home base=C:\\Documents and Settings\\tammineedis\\Application] at column [69]
DIA-48447: The input path [C:\\Documents and Settings\\tammineedis\\Application Data\\JDeveloper\\system11.1.1.2.36.55.36\\DefaultDomain\\servers\\DefaultServer\\adr] does not contain any ADR homes
DIA-48447: The input path [diag\ofm\defaultdomain\defaultserver] does not contain any ADR homes
DIA-48494: ADR home is not set, the corresponding operation cannot be done
Action: Ensure that command line tool "adrci" can be executed from the command line.
at oracle.dfw.impl.incident.DiagnosticsDataExtractorImpl.createADRIncident(DiagnosticsDataExtractorImpl.java:708)
at oracle.dfw.impl.incident.DiagnosticsDataExtractorImpl.createIncident(DiagnosticsDataExtractorImpl.java:246)
at oracle.dfw.spi.weblogic.JMXWatchNotificationListener.handleNotification(JMXWatchNotificationListener.java:195)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor$ListenerWrapper.handleNotification(DefaultMBeanServerInterceptor.java:1732)
at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:257)
at javax.management.NotificationBroadcasterSupport$SendNotifJob.run(NotificationBroadcasterSupport.java:322)
at javax.management.NotificationBroadcasterSupport$1.execute(NotificationBroadcasterSupport.java:307)
at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:229)
at weblogic.management.jmx.modelmbean.WLSModelMBean.sendNotification(WLSModelMBean.java:824)
at weblogic.diagnostics.watch.JMXNotificationProducer.postJMXNotification(JMXNotificationProducer.java:79)
at weblogic.diagnostics.watch.JMXNotificationProducer.sendNotification(JMXNotificationProducer.java:104)
at com.bea.diagnostics.notifications.JMXNotificationService.send(JMXNotificationService.java:122)
at weblogic.diagnostics.watch.JMXNotificationListener.processWatchNotification(JMXNotificationListener.java:103)
at weblogic.diagnostics.watch.Watch.performNotifications(Watch.java:621)
at weblogic.diagnostics.watch.Watch.evaluateLogRuleWatch(Watch.java:546)
at weblogic.diagnostics.watch.WatchManager.evaluateLogEventRulesAsync(WatchManager.java:765)
at weblogic.diagnostics.watch.WatchManager.run(WatchManager.java:525)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: oracle.dfw.common.DiagnosticsException: DFW-40112: failed to execute the adrci commands "create home base=C:\\Documents and Settings\\tammineedis\\Application Data\\JDeveloper\\system11.1.1.2.36.55.36\\DefaultDomain\\servers\\DefaultServer\\adr product_type=ofm product_id=defaultdomain instance_id=defaultserver
set base C:\\Documents and Settings\\tammineedis\\Application Data\\JDeveloper\\system11.1.1.2.36.55.36\\DefaultDomain\\servers\\DefaultServer\\adr
set homepath diag\ofm\defaultdomain\defaultserver
create incident problem_key="BEA-101020 [HTTP]" error_facility="BEA" error_number=101020 error_message="null" create_time="2010-01-05 12:27:58.155 -05:00" ecid="0000INzXpbB7u1MLqMS4yY1BGrHn00000K"
Cause: There was an error executing adrci commands; the following errors have been found "DIA-48415: Syntax error found in string [create home base=C:\\Documents and Settings\\tammineedis\\Application] at column [69]
DIA-48447: The input path [C:\\Documents and Settings\\tammineedis\\Application Data\\JDeveloper\\system11.1.1.2.36.55.36\\DefaultDomain\\servers\\DefaultServer\\adr] does not contain any ADR homes
DIA-48447: The input path [diag\ofm\defaultdomain\defaultserver] does not contain any ADR homes
DIA-48494: ADR home is not set, the corresponding operation cannot be done
Action: Ensure that command line tool "adrci" can be executed from the command line.
at oracle.dfw.impl.incident.ADRHelper.invoke(ADRHelper.java:1052)
at oracle.dfw.impl.incident.ADRHelper.createIncident(ADRHelper.java:786)
at oracle.dfw.impl.incident.DiagnosticsDataExtractorImpl.createADRIncident(DiagnosticsDataExtractorImpl.java:688)
... 19 moreI get the above Error.
I have checked the bindings and it has 2 instances of the taskflow.
I have changed the backingbean scope to backingBean -
How to retrict user cannot open the same form more than once (Forms 6i)
Our users always open the same forms more than once. For example the customer form, the user may access a customer record in the first form, however, he will open a new customer form to edit the same record, the result is he cannot save the record because the record is locked in the first customer form.
How can I control the user cannot open the same form more than 1 time.
Best Regards,
KaneThe customer form is only an example, I found there will cause a lot of problems is I cannot control the user from calling 1 program more than 1 than within application. Sometimes a user (not good in using computer) will overlap the form for many times.....
Is there any simple way to do that?...can I have some PL/SQL statement or build-in functions that let me easily found our what forms the user has already opened, then I can control whether I let him open this form or not.
Urgent...please
Thanks -
HT3702 iv been billed more than once
i have been billed more than once i did buy 60 donuts for the simpsons tapped out for 2.99 but iv been billed for 8.97 and i dont know who to contact to explain i only brought it once not 3 times as the invoice state can anyone help me on who to contact please
You can contact iTunes support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
-
Custom Administrative Template Error 53 Key name specified more than once
Hi All,
Hope I've picked the correct forum. I am making my first foray into setting up a custom administrative template for some software that is developed in house. The current deployment method is to merge a reg file on each computer that requires the registry
settings. I am trying to set this up so that it is controlled via GPO.
My idea is that in the a GP can set the registry settings for one or more areas that are controlled by the software.
The problem I have - I get Error 53 Keyname specified more than once on Line 9 (second KEYNAME). In total I will have about 30 different sites this needs to be set up for.
Does this mean that I can't set more than one registry key per "Policy" setting in the GPO?
The adm file I have so far is below
TIA
Jason
---------------------------------------------CUT---------------------------------------------
CLASS User
CATEGORY "App Site Settings"
POLICY !!Site1Policy
EXPLAIN !!Site1Explain
KEYNAME "Software\ApplicationCompany\Site1\Access"
VALUENAME "SystemDatabase"
VALUEON "D:\\App\\Data\\App.mdw"
VALUEOFF DELETE
KEYNAME "Software\ApplicationCompany\Site1\Arbitration"
VALUENAME "ConfigPath"
VALUEON "D:\\Site1\\Data"
VALUEOFF DELETE
KEYNAME "Software\ApplicationCompany\Site1\Common Settings"
VALUENAME "ConfigFile"
VALUEON "D:\\App\\Data\\App_Comms.mdb"
VALUEOFF DELETE
VALUENAME "SysConfig"
VALUEON "D:\\Site1\\Data\\SITE1_SYS.mdb"
VALUEOFF DELETE
END POLICY
POLICY !!Site2Policy
EXPLAIN !!Site2Explain
KEYNAME "Software\ApplicationCompany\Site2\Access"
VALUENAME "SystemDatabase"
VALUE "D:\\App\\Data\\App.mdw"
KEYNAME "Software\ApplicationCompany\Site2\Arbitration"
VALUENAME "ConfigPath"
VALUE "D:\\Site2\\Data"
KEYNAME "Software\ApplicationCompany\Site2\Common Settings"
VALUENAME "ConfigFile"
VALUE "D:\\App\\Data\\App_Comms.mdb"
VALUENAME "SysConfig"
VALUE "D:\\Site2\\Data\\Site2_SYS.mdb"
END POLICY
END CATEGORY
[strings]
Site1Policy = "Site1 settings"
Site1Explain = "Enabling this setting configures the registry settings for dummy Site1."
Site2Policy = "Site2 settings"
Site2Explain = "Enabling this setting configures the registry settings for dummy Site2."Well - I ended up sorting this out - and no - you can't have the Keyname keyword twice - unless you enclose the the setting in a PART statement. Below is what I ended up with:
---------------------------------------------CUT---------------------------------------------
CLASS USER
CATEGORY "ApplicationSettings"
KEYNAME "Software\ApplicationCompany\Site1\Common Settings"
POLICY !!SITE1Policy
#if version >= 3
EXPLAIN !!PolicyExplain
#endif
KEYNAME "Software\ApplicationCompany\Site1\Access"
PART !!ConfigFilePolicy EDITTEXT
KEYNAME "Software\ApplicationCompany\Site1\Common Settings"
VALUENAME ConfigFile
DEFAULT !!ConfigFileDefault
END PART ;!!ConfigFilePolicy
PART !!SystemDBPolicy EDITTEXT
KEYNAME "Software\ApplicationCompany\Site1\Access"
VALUENAME SystemDatabase
DEFAULT !!SystemDBDefault
END PART ;!!SystemDBPolicy
PART !!SysConfigPolicy EDITTEXT
KEYNAME "Software\ApplicationCompany\Site1\Common Setting"
VALUENAME SysConfig
DEFAULT !!SysConfigDefault
END PART ;!!SysConfigPolicy
PART !!ArbitrationPolicy EDITTEXT
KEYNAME "Software\ApplicationCompany\Site1\Arbitration"
VALUENAME ConfigPath
DEFAULT !!ArbitrationDefault
END PART ;!!ArbitrationPolicy
END POLICY
POLICY !!SITE2Policy
#if version >= 3
EXPLAIN !!PolicyExplain
#endif
KEYNAME "Software\ApplicationCompany\Site2\Access"
PART !!ConfigFilePolicy EDITTEXT
KEYNAME "Software\ApplicationCompany\Site2\Common Settings"
VALUENAME ConfigFile
DEFAULT !!ConfigFileDefault
END PART ;!!ConfigFilePolicy
PART !!SystemDBPolicy EDITTEXT
KEYNAME "Software\ApplicationCompany\Site2\Access"
VALUENAME SystemDatabase
DEFAULT !!SystemDBDefault
END PART ;!!SystemDBPolicy
PART !!SysConfigPolicy EDITTEXT
KEYNAME "Software\ApplicationCompany\Site2\Common Setting"
VALUENAME SysConfig
DEFAULT !!SysConfigDefault
END PART ;!!SysConfigPolicy
PART !!ArbitrationPolicy EDITTEXT
KEYNAME "Software\ApplicationCompany\Site2\Arbitration"
VALUENAME ConfigPath
DEFAULT !!ArbitrationDefault
END PART ;!!ArbitrationPolicy
END POLICY
END CATEGORY
[Strings]
ArbitrationDefault =D:\SITE\Data
ArbitrationPolicy =Arbitration path
ConfigFileDefault =D:\App\Data\App_Comms.mdb
ConfigFilePolicy =Application configuration file
PolicyExplain =Enter Explainition of the Registry settings here
SysConfigDefault =D:\SITE\Data\SITE1_SYS.mdb
SysConfigPolicy =Application site system configuration file
SystemDBDefault =D:\App\Data\App.mdw
SystemDBPolicy =Application system database path
SITE1Policy =Site1 Application Settings
SITE2Policy =Site2 Application Settings -
ORA-00604 & ORA-30512 CANNOT MODIFY TABLE MORE THAN ONCE IN A TRANSACTION
We have a requirement where two tables should be in sync at any given point
in time with respect to the structure of the tables.
Any change on table/column via ALTER (MODIFY, ADD, RENAME COLUMN, DROP
COLUMN) on the parent table should be replicated to the replica table.
I created a DDL_TRIGGER on the schema and the desired result is achieved but
for the following one scenario for which its failing.
The issue is, if we try to reduce the width of the column (via ALTER ..
MODIFY) it fails with the following error
ORA-00604: error occurred at recursive SQL level 1
ORA-30512: cannot modify DEVTESTF_OIM.REPLICA_ABC more than once in a
transaction
Please follow the steps to reproduce the issue (the issue is across the DB
version checked on 10.2, 11.1 and 11.2 DB version)
-- Step1 Create Parent Table
CREATE TABLE abc (col1 VARCHAR2(10))
-- Step2 Create Replica Table
CREATE TABLE replica_abc (col1 VARCHAR2(10))
-- Step3 Create DDL Trigger
CREATE OR REPLACE TRIGGER ddl_trigger
AFTER ALTER ON SCHEMA
DECLARE
operation VARCHAR2(30);
object_name VARCHAR2(30);
l_sqltext VARCHAR2(100);
i PLS_INTEGER;
l_count NUMBER:=0;
sql_text dbms_standard.ora_name_list_t;
BEGIN
i := dbms_standard.sql_txt(sql_text);
SELECT ora_sysevent, ora_dict_obj_name, UPPER(sql_text(i))
INTO operation, object_name, l_sqltext
FROM dual;
IF ora_dict_obj_name = 'ABC' THEN
l_count := INSTR(l_sqltext,'ADD CONSTRAINT',1,1);
l_count := l_count + INSTR(l_sqltext,'DISABLE',1,1);
l_count := l_count + INSTR(l_sqltext,'DROP CONSTRAINT',1,1);
l_count := l_count + INSTR(l_sqltext,'PRIMARY KEY',1,1);
l_count := l_count + INSTR(l_sqltext,'ADD CHECK',1,1);
IF (l_count = 0) THEN
l_count := INSTR(l_sqltext,'ADD',1,1);
l_count := l_count + INSTR(l_sqltext,'MODIFY',1,1);
l_count := l_count + INSTR(l_sqltext,'DROP COLUMN',1,1);
l_count := l_count + INSTR(l_sqltext,'RENAME
COLUMN',1,1);
IF (l_count >0) THEN
l_sqltext := REPLACE(l_sqltext,'TABLE ABC','TABLE REPLICA_ABC');
execute immediate l_sqltext;
END IF;
END IF;
END IF;
EXCEPTION
WHEN OTHERS THEN
RAISE ;
END;
-- Step 4 Issue the following ALTER command on the Parent table 'ABC'
ALTER TABLE ABC MODIFY COL1 VARCHAR2(9);
will show the following
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-30512: cannot modify DEVTESTF_OIM.REPLICA_ABC more than once in a
transaction
ORA-06512: at line 34
whereas the following commands works fine
ALTER TABLE ABC MODIFY COL1 VARCHAR2(11);
and also the rest of the operations
ALTER TABLE ABC ADD COL2 VARCHAR2(20);
ALTER TABLE ABC RENAME COLUMN COL2 TO COL3;
ALTER TABLE ABC DROP COLUMN COL3;
The issue is while reducing the size of VARCHAR2 columns, while the rest of
option works fine.
Any suggestion or workaround please.It looks like a bug to me. The failing statement from the SQL trace is
PARSE ERROR #12:len=77 dep=3 uid=0 oct=3 lid=0 tim=1263332549608656 err=30512
select /*+ first_rows */ 1 from "TIM"."REPLICA_ABC" where LENGTHB("COL1") > 9and exception cannot explain it.
Maybe you are looking for
-
Hi all, I'm currently using SO_NEW_DOCUMENT_ATT_SEND_API1 to send out the email and together with a pdf attachment. However when I tried to open the attachment, it has the decoded incorrectly error. What am I missing? Thanks. Below is the code, this
-
New field not appearing in component configuration for standard web dypro
I'm trying to add a new column to a table in an sap web dynpro component. I've enhanced the view to add in the new column but also noticed that it's using component configuration. When I go into the approriate configuration, however, all of the exist
-
I have a YTD toolbar that's appeared when I open Firefox, and I have had Google as my home page. Now YTD (aka Bing, aka Microsoft product) has taken over my home page, and I cannot reset it to Google or anything else. Any ideas?
-
SSL Network Extender Service is Down and could not be started
I'm trying to use a VPN access from work, which worked fine in XP but with vista the SSL service won't start. Any ideas?
-
Hi gurus, can u kindly tell me technical differences b/w scipts and smartforms. how many MAIN WINDOWS are possible in scripts and smartforms. please tell me how to create multiple MAIN WINDOWS. Best answers will be rewarded. Thanks and Reg