Gpib, wait does not return after timeout
I use this code line:
gpibDevice.Wait(GpibStatusFlags.DeviceServiceRequest | GpibStatusFlags.Timeout);
I want to wait for a Service Request or a Timeout.
The IOTimeout is set to 1s, but the Wait function does not return after 1s.
What is the problem? Do I have to set any other timeout?
Hi Gregor,
I am sorry but this link that you send, did not help me. I am using this code within a c# application. This is a bit
different to LabView. Here is my full code:
gpibAddress = 1;
timeoutValue = TimeoutValue.T1s;
gpibDevice = newDevice( 0, gpibAddress , 0 , timeoutValue );
gpibDevice.IOTimeout = timeoutValue;
gpibDevice.Clear();
gpibDevice.DefaultBufferSize = receiveBufferSize;
gpibDevice.SerialPollResponseTimeout = timeoutValue;
gpibDevice.Wait(GpibStatusFlags.DeviceServiceRequest | GpibStatusFlags.Timeout);
And I still have the Problem, that this Wait Function does not return after the
timeout value - here 1s. Do I have to configure anything else from the GPIB device?
Similar Messages
-
Status light goes out and does not return after Apple TV is turned ON
HI, my recently purchased and updated to the newest software Apple TV does not display the status light in front of the unit. For a couple of weeks everything worked fine until last night when I turned the unit back on. Normally soonest you select a HDMI output the status LED comes ON. That did not happen last night. The LED did not light up at all, no mater what I did. After several different attempts; reset, powering down, disconnecting from AC and unplugging HDMI did not help. Then, after I turned my television OFF, few minutes later the light came ON on it's own. What could be causing it. I just replaced this particular unit for failing to remember my Wi-Fi network several days ago. What is going on with the Apple TV's? Thanks for help.
even i am also facing a similar problem. i have macbook air, ipad2, iphone4S and iphone5S and apple tv. i updated my iPhone 5S and ipad2 to ios8 where as iPhone 4s is still running on iOS 7.1.2. i updated my apple tv as well. when i connected apple tv to the same router as other devices, only iPhone 5s shows the option of airplay where as no other device is displaying it. i hv tried all other devices....changed the settings and rebooted and restarted each one of them but nothing doing. that makes me wonder is it a problem with the software update of apple tv as i can successfully connect my iphone5s but not other devices. apple tv was running very successfully till recent past, primarily before all these updates came. i hv successfully mirrored from my macbook air, iPad and iPhone 4s. but now nothing seems to be working. can anyone help me out pls
-
Poster image does not return after playthrough
Before the example video was Cathi Kwon on http://www.osmf.org/configurator/fmp/ it had a guy explaining what Strobe was and then the assigned poster image came back. The new example is broken and I'm tearing my hair out trying to get the Adobe hosted Strobe to act correctly and give me the poster image after video playthrough.
PLEASE, someone look into this.Here is the code form the configurator:
<object width="539" height="300"> <param name="movie" value="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf"></param><param name="flashvars" value="src=http%3A%2F%2Fdev.elpomarannualreport.infront.com%2Flibrary%2Fflash_video%2FExb y_Final.flv&poster=http%3A%2F%2Fdev.elpomarannualreport.infront.com%2Flibrary%2Fflash_vide o%2Fexby.jpg"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="539" height="300" flashvars="src=http%3A%2F%2Fdev.elpomarannualreport.infront.com%2Flibrary%2Fflash_video%2 FExby_Final.flv&poster=http%3A%2F%2Fdev.elpomarannualreport.infront.com%2Flibrary%2Fflash_ video%2Fexby.jpg"></embed></object>
It doesn't work in IE. The poster image doesn't show, just black.
It says I am running Flash Player version WIN 10,1,53,64. Which is the same as what I am running on my mac. The Poster image appears fine on the same PC in FF, just not at all in IE on first load. Once everything is cached, the poster image works fine.
Thanks for looking into this!! -
My Mini Ipad Does not return to the Home screen after I press the Home button
My Mini Ipad Does not return to the Home screen after I press the Home button. I have also tried to turn it off and it is not responding.
Check the following:
1. Check credit card number
2. Check security code
3. Billing Address must be the same as credit card
4. Check expiry date
5. Make sure you have sufficient fund -
Does not return to the Home screen after you press the Home button
The buttons do wear out, and when they do you'd need to get the phone serviced.
-
OCIStmtExecute does not return immediately when client is busy.
Hi.
I'm testing a very busy multi-threaded client server that consistently generates
a large number of simple queries through oci. The problem is that, when the
server(client) is busy, OCIStmtExecute does not return immediately in
non-blocking mode.
Of course I have set non-blocking mode and OCIStmtExecute does return
OCI_STILL_EXECUTING immediately when the server is not busy. But
when log rotation occurs which concatenates a large text file (~500MB)
onto an even larger text file (up to several giga bytes), or when I simply copies
or concatenates large text files manually, OCIStmtExecute returns very slowly.
(roughly about after 100~200ms)
However, while log rotation takes place, everything else including other oci
calls that come before OCIStmtExecute (prepare, define) return fast. So
for me it really seems that only OCIStmtExecute becomes extremely slower
when local server (especially the disk) is busy.
Is there any way to let OCIStmtExecute immediately return all the time?
Thanks in advance.Yes, I knew that OCIStmtExecute would be the only function that causes such
delay and that was why I traced that call. And so far, I checked several times
what happens at the exact moment on the server but everything was ok.
Actually OCIStmtExecute becomes slower exactly when crontab-ed log rotate
occurs so I think this delay must be a client-side problem for now.
This server is quite busy and has to respond fast, so it is important to
guarantee fast response time while a small number of timeout losses are tolerable.
But as OCIStmtExecutes' first OCI_STILL_EXECUTING return takes hundreds of
ms it has become more like a blocking call and currently I cannot find any way to do what I want.
So now everytime such thing happens, the thread waits
quite long, after the first OCI_STILL_EXECUTING return
the time difference exceeds timeout limit, and the thread
calls OCIBreak() and OCIReset() and returns. -
Runtime.getRuntime().exec() does not return
Hello,
I am running into a case where the call to Runtime.getRuntime.exec(command) does not return. The scenario is that the main thread spawns another thread which calls the Runtime.exec(). Since the call does not return, both threads seems to be hung. The jstack output from the main thread shows
----------------- t@2 -----------------
0xfeedab45 ___lwp_cond_wait + 0x15
0xfeb4030d void os::PlatformEvent::park() + 0xa9
0xfebadd48 void ObjectMonitor::wait(long long,bool,Thread*) + 0x26c
0xfe770287 void ObjectSynchronizer::wait(Handle,long long,Thread*) + 0xef
0xfe76ffbb JVM_MonitorWait + 0x20f
0xfb20a032 * java.lang.Object.wait(long) bci:0 (Interpreted frame)
0xfb20308d * java.lang.Thread.join(long) bci:38 line:1143 (Interpreted frame)
0xfb20308d * java.lang.Thread.join() bci:2 line:1196 (Interpreted frame)
0xfb20308d * DataLoader.checkThreadGroup() bci:92 line:316 (Interpreted frame)
0xfb202f27 * DataLoader.checkTables(int) bci:1 line:336 (Interpreted frame)
0xfb202f69 * DataLoader.runLoad(int, java.lang.String, java.lang.String, java.lang.String, com.sabre.fltsked.apm.util.FSIOHelper)
... more below ....
So it is waiting for the spawned thread on a join()
And the jstack dump for the thread that called exec() is
----------------- t@70 -----------------
0xfeed7409 __lwp_park + 0x19
0xfeed1be7 cond_wait_queue + 0x5e
0xfeed1f64 cond_wait_common + 0x1db
0xfeed20d2 condwait + 0x7b
0xfeed20fd cond_wait + 0x21
0xfeed2136 pthread_cond_wait + 0x1b
0x9741082a soft_delete_object_cleanup + 0x57
0x97410906 soft_delete_object + 0x5b
0x97410953 soft_delete_all_objects_in_session + 0x2e
0x97407b7a soft_delete_session + 0xec
0x97407860 soft_delete_all_sessions + 0x3c
0x97402525 finalize_common + 0x66
0x974026ae softtoken_fini + 0x34
0x974355f9 _fini + 0x21
0xfefdd49a remove_hdl + 0x766
0xfefd8be9 dlclose_core + 0xb1
0xfefd8c1d dlclose_intn + 0x21
0xfefd8c96 dlclose_check + 0x2a
0xfefd8d00 dlclose + 0x38
0x97480aeb pkcs11_slottable_delete + 0xb1
0x9747c691 finalize_common + 0xe2
0x9747c6e0 pkcs11_fini + 0x3e
0x9747c3bf pkcs11_fork_child + 0x73
0xfee628b8 postforkchild_handler + 0x2f
0xfeeca9ec fork + 0x12e
0xfe338029 Java_java_lang_UNIXProcess_forkAndExec + 0x395
0xfb20a032 * java.lang.UNIXProcess.forkAndExec(byte[], byte[], int, byte[], int, byte[], boolean, java.io.FileDescriptor, java.io.FileDescriptor, java.io.FileDescriptor) bci
:0 (Interpreted frame)
0xfb202f69 * java.lang.UNIXProcess.<init>(byte[], byte[], int, byte[], int, byte[], boolean) bci:62 line:53 (Interpreted frame)
0xfb20308d * java.lang.ProcessImpl.start(java.lang.String[], java.util.Map, java.lang.String, boolean) bci:182 line:65 (Interpreted frame)
0xfb202f27 * java.lang.ProcessBuilder.start() bci:112 line:452 (Interpreted frame)
0xfb202f27 * java.lang.Runtime.exec(java.lang.String[], java.lang.String[], java.io.File) bci:16 line:593 (Interpreted frame)
0xfb202f27 * java.lang.Runtime.exec(java.lang.String, java.lang.String[], java.io.File) bci:69 line:431 (Interpreted frame)
0xfb202f27 * java.lang.Runtime.exec(java.lang.String) bci:4 line:328 (Interpreted frame)
0xfb202f27 *SQLLoad(java.lang.StringBuffer) bci:181 line:51 (Interpreted frame)
0xfb202e61 *FSLoadThread.run() bci:84 line:54 (Interpreted frame)
The command I am trying to exec is "sqlldr" and I do have it in my PATH variable. Why is that the call to exec does not return? Any ideas?
This is on jdk1.6.0_17
Thanks,
Bijoy.It has definitely forked, and this is the child process. It says so. If it was the parent process it would just show Java code related to launching processes. That does not involve PKCS11. After the fork there are two identical processes with the same stack: the child process of the fork goes on to replace itself with the target command via Unix exec(), which it doesn't look like it is succeeding at. The parent process doesn't do much at all, probably just housekeeping and then a Unix wait() for Process.waitFor() to hook into.
-
My PC does not return to the source document I print from
I had a setting control for
this in XP but can't find the page I got it from.<o:p></o:p>
<o:p> </o:p>
In ANY application or browser
this happens. I print from a specific Excel workbook, by example, when I
have a number of them open. The system does not return to the workbook I
printed from. This is maddening and causes all kinds of issues.
Searching the web for this now produces nothing and I know I can't be the
only person who experiences this.<o:p></o:p>
<o:p> </o:p>
This is a Windows 7 platform
in a networked business environment. I'm running the Classic Menu add-in
from Addintools because I can't stand the ribbon and have never liked it.
In Windows 7, I'm running a couple of other add-ins that restore the XP
use of the task bar properly so one can work efficiently.<o:p></o:p>
<o:p> </o:p>
None of the add-ins are what
is causing this issue because I'd run the same Classic Menu add-in on the XP
box and it had the same issue until I found the work-around that I can't
remember now.<o:p></o:p>
<o:p> </o:p>
Has anyone else experienced
this issue?<o:p></o:p>
<o:p> </o:p>
Jeff Lynch<o:p></o:p>Hi,
"I print from a specific Excel workbook, by example, when I
have a number of them open. The system does not return to the workbook I
printed from."
If I'm not misunderstanding, do you mean that the workbook is automatically closed after you print from that workbook, right?
As I know, if we use the default ribbon in Excel, no matter in Windows XP or Windows 7, the opened workbook should be stay opened after you print from that Excel workbook.
So the question is that: what is the version of office? What is the Classic Menu add-in you're running now? Did you manually download and install it to your system? Could you please share a picture with us about the add-ins you're using?
Yolanda Zhu
TechNet Community Support -
PCI wireless card does not work after restart - FM2-A55M-E33
Installed TP-LINK WN751ND wireless PCI card onto FM2-A55M-E33 motherboard. The card works fine after cold start, but does not work after restart. Windows recognises the card, but it gets code 10, cannot start.
BIOS is updated (v.11.1), as well as drivers and Windows 7 64.
I suspect that this might be the issue: Incorrect ASPM Transitions on the GPP Interface as found in ChipsetMotherboard_TechDocs/48671.pdf on AMD's official support site.
Does anyone know more about this issue?Great! I've done that and now my card shows up. Thing is, when I try to get an IP address, it won't work. Here is the command output:
ieee80211 phy0: wl_ops_config: change monitor mode: false (implement)
ieee80211 phy0: wl_ops_config: change power-save mode: false (implement)
ieee80211 phy0: wl_ops_bss_info_changed: qos enabled: false (implement)
And then it times out and no IP is assigned. The thing is, wpa_supplicant stays alive after this time out, and I am unable to kill it (killall -9 wpa_supplicant won't kill it). At this point if I try to reboot the machine, it will stop at 'Rebooting' and won't go anywhere. If I turn off the wireless card in its switch Linux crashes. If I try to get an ip again (by running dhcpcd) the command will hang and not return to the shell anymore.
I am unable to find any useful information in the logs.
Got any more suggestions?
Thanks! (And sorry to disturb so much) -
WB_RT_GET_JOB_METRICS does not return values
DB v 10.2.0.2
OWB repository/client v 10.2.0.3
A DB function has a call to the Control Center transformation WB_RT_GET_JOB_METRICS to extract and preserve the metadata of number of records inserted/updated/deleted in a DB table.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1.
The control center transformation WB_RT_GET_JOB_METRICS does not return any values when used under the Post-Mapping Process(mapped to the DB function describe above) in a Map.
The input parameter ;Audit Id' to the Map is passed from a calling Process Flow. The following query is used to retrieve the Audit Id of the Map.,
SELECT execution_audit_id
INTO l_audit_id
FROM ALL_RT_AUDIT_EXECUTIONS
WHERE parent_execution_audit_id = P_AUDIT_ID;
And the retrieve l_audit_id is passed to the WB_RT_GET_JOB_METRICS transformation to extract the number of records inserted/deleted/updated with the execution of the map.
Gurus, please advice if the approach is appropriate to retrieve the number of records inserted/deleted/updated by the execution of the map. If not, any alternate method.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2. The control center transformation WB_RT_GET_JOB_METRICS returns values when used in a standalone pl/sql block with the appropriate audit_id.
Is this because the metadata for the Map execution is complete, whereas in the earlier attempt, the transformation is called within the map using the Post-Mapping process.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3. Since the option 1 did not return any value, tried other option of calling/executing a transformation(call the the DB function mentioned earlier) after the Map activity is successful in a ProcessFlow. Here, the transformation does not seem to be executing, any tips of correcting this issue.
Request the forum for some helpful tips to resolve the problem. TiA (Thanks in Advance) for the response.
Message was edited by:
user599655In a process flow, passed the pseudo variable to a transformation to run the WB_RT_GET_JOB_METRICS after the map execution. I am not sure if this is the best solution, but it worked for me.
Still trying to figure how to use the pre-defined transformation when working on expression.
Thanks. -
RAC does not start after trying to move storage
Hello,
We have a two nodes RAC Oracle 10g and ASM groups defined on one external storage.
RAC does not start after we reformated the storage to RAID 10.
What we did:
1) deleted the database
2) reformated the external storage to RAID 10 and defined needed volumes for OCR, VotingDisk and ASM
3) on both nodes
- recreated VotingDisk
node1:root$ /u01/oracle/product/10gr2/crs/bin/crsctl add css votedisk /dev/rdsk/c0t600A0B8000347E7D00000EE74A5AF386d0s3 -force
Now formatting voting disk: /dev/rdsk/c0t600A0B8000347E7D00000EE74A5AF386d0s3
successful addition of votedisk /dev/rdsk/c0t600A0B8000347E7D00000EE74A5AF386d0s3.
node2:root$ /u01/oracle/product/10gr2/crs/bin/crsctl add css votedisk /dev/rdsk/c0t600A0B8000347E7D00000EE74A5AF386d0s3 -force
Now formatting voting disk: /dev/rdsk/c0t600A0B8000347E7D00000EE74A5AF386d0s3
successful addition of votedisk /dev/rdsk/c0t600A0B8000347E7D00000EE74A5AF386d0s3.
- tried to move OCR but was able only on one node:
/u01/oracle/product/10gr2/crs/bin/ocrconfig -replace ocrmirror /dev/rdsk/c7t30d0s3
/u01/oracle/product/10gr2/crs/bin/ocrconfig -replace ocr /dev/rdsk/c7t29d0s3
/u01/oracle/product/10gr2/crs/bin/ocrconfig -replace ocr
These return ok for both node1 and node2:
node1:oracle$ cluvfy stage -post hwos -n node1
node1:oracle$ cluvfy stage -post crsinst -n node1,node2 -verbose
Performing post-checks for cluster services setup
Checking node reachability...
Check: Node reachability from node "node1"
Destination Node Reachable?
node1 yes
node2 yes
Result: Node reachability check passed from node "node1".
Checking user equivalence...
Check: User equivalence for user "oracle"
Node Name Comment
node2 passed
node1 passed
Result: User equivalence check passed for user "oracle".
Checking Cluster manager integrity...
Checking CSS daemon...
Node Name Status
node2 not running
node1 not running
Result: Daemon status check failed for "CSS daemon".
Cluster manager integrity check failed.
Checking cluster integrity...
Cluster is divided into 2 partitions.
Partition 1 consists of the following members:
Node Name
node1
Partition 2 consists of the following members:
Node Name
node1
node2
Cluster integrity check failed. Cluster is divided into 2 partition(s).
Checking OCR integrity...
Checking the absence of a non-clustered configuration...
WARNING:
CSS is probably working with a non-clustered, local-only configuration on nodes:
node1
Verification will proceed with nodes:
node2
Uniqueness check for OCR device passed.
Checking the version of OCR...
OCR of correct Version "2" exists.
Checking data integrity of OCR...
Data integrity check for OCR passed.
OCR integrity check failed.
Checking CRS integrity...
Checking daemon liveness...
Check: Liveness for "CRS daemon"
Node Name Running
node2 no
node1 yes
Result: Liveness check failed for "CRS daemon".
Checking daemon liveness...
Check: Liveness for "CSS daemon"
Node Name Running
node2 no
node1 no
Result: Liveness check failed for "CSS daemon".
Checking daemon liveness...
Check: Liveness for "EVM daemon"
Node Name Running
node2 no
node1 yes
Result: Liveness check failed for "EVM daemon".
Liveness of all the daemons
Node Name CRS daemon CSS daemon EVM daemon
node2 no no no
node1 yes no yes
Checking CRS health...
Check: Health of CRS
Node Name CRS OK?
node1 unknown
Result: CRS health check failed.
CRS integrity check failed.
Post-check for cluster services setup was unsuccessful on all the nodes.
Please help.Thanks for the answer.
Problem is that the RAC is not healty, I know how to start it but now it doesn't start and I cannot find helpful logs.
You can see that cluster is not healty from cluvfy output.
When I tried to start crs whith crsctl start crs but:
- on node2 none of the demons starts (CSS, CRS or EVM)
- on node1 CSS and EVM demons start but CRS is not starting and I cannot find helpful logs
Problem 2: Cannot change OCR location
node2:root$ cat /var/opt/oracle/ocr.loc
+#Device/file /dev/rdsk/c7t30d0s3 getting replaced by device /dev/rdsk/c7t30d0s3+
ocrconfig_loc=/dev/rdsk/c7t30d0s3
local_only=falsenode2:root$ ocrconfig -replace ocr /dev/rdsk/c0t600A0B8000347EAD00000F314A5AF5B8d0s3
PROT-1: Failed to initialize ocrconfig
node1:root$ cat /var/opt/oracle/ocr.loc
ocrconfig_loc=/u01/oracle/product/10gr2/db/cdata/localhost/local.ocr
local_only=TRUE
node1:root$ ocrconfig -replace ocr /dev/rdsk/c0t600A0B8000347EAD00000F314A5AF5B8d0s3
PROT-1: Failed to initialize ocrconfig
Problem 3: On node 1 I wrongly issued a command
node1:root$ /u01/oracle/product/10gr2/db/bin/localconfig reset
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Configuration for local CSS has been initialized
Adding to inittab
Startup will be queued to init within 30 seconds.
Checking the status of new Oracle init process...
Expecting the CRS daemons to be up within 600 seconds.
Giving up: Oracle CSS stack appears NOT to be running.
Oracle CSS service would not start as installed
Automatic Storage Management(ASM) cannot be used until Oracle CSS service is started -
16 GB x-Fi Style - does not start after charging
Hi,
4 weeks ago I bought my x-Fi style and used it during my holidays for 2 weeks. After charging the player only twice (USB-connection with notebook), it now fails starting. Maybe there is an internal temperature fuse to protect from overheating and I only have to wait to try again? After connecting to USB the CREATIVE sign appears but disappears directly and a battery symbol appears and remains on the screen. After disconnecting the player does not react in any way. I already tried to reset but cannot start it again.
Can anyone help me?
Cheers,
UliRe: 6 GB x-Fi Style - does not start after charging:Just fyi
I found the website for Creative to be very frustrating. Not one snail mail address or corporate headquarters info. The link for website feedback didn't work and one other customer service link was a dud. They clearly don't want to be 'bothered' with complaints, or anything positi've for that matter!
But, I searched on the forum and found a three-year-old post about someone who was frustrated with having to carry around a paperclip to always push 'reset' on his X-Fi -- and the light dawned! Didn't know I had one of those. I pressed reset and voila! it is working again. Still had to charge it, but it accepted the charge this time and I was able to finish my book and move on to the next. Now, the next problem is I tried to access my wireless network which has a $ in the password and there is no $ in the choices for entering a password. So, now I have to change the password, change all of my device passwords (Blu-Ray, iPad, laptops(2), friend's laptops, etc. a huge pain. Seems to me they could have included a $ in the choices! -
Content scope document library does not return result for non farm administrator
Hi
I have a situation where I had to go with a unique permission applied subsite to store 1000 documents in the document library. This site has a set of 50 users. I was able to create content scope and library path for search. It returns results for me(creator/owner/administrator)
however if I add other users as contributor or full permission, even after full crawling it does not return result for others.
I saw some article that security broken site wont be indexed normal way and to include and I did that as well but no result for other users. I always get result.
Please suggest if there are any specific security permissions that I need to include, so the document library target search will return result for others.
Thanks
ShriHi Shri,
For administrator search results, it looks like the documents could be crawled and searched.
For other users you grant full control permission on subsite with unique permission where you store 1000 dcouments in document library, please make sure these 50 users have access permission(at least view permission) on documents from the
library, then test again.
Also test if users search on search center site without search scope, see if it's scope issue or search web part issue.
If above doesn't work, please check ULS log for related useful information around the time when users search the documents, there should be more info to verify if issue is related to unique permision.
Thanks,
Daniel Yang
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
[Solved] ADF - Update does not return values generated by a trigger
Hello,
I'm using JDev 10.1.3.3.0 and DB 10.2.0.3.0.
On DB I've created a table, a sequence and a trigger:
CREATE TABLE TAB1
ID NUMBER PRIMARY KEY,
EDITED_AT DATE,
VALUE VARCHAR2(64)
CREATE SEQUENCE S_TAB1
INCREMENT BY 1
START WITH 1;
CREATE TRIGGER T_TAB1_BIE
BEFORE INSERT OR UPDATE ON TAB1
FOR EACH ROW
BEGIN
IF INSERTING THEN
SELECT S_TAB1.NEXTVAL INTO :NEW.ID FROM DUAL;
END IF;
:NEW.EDITED_AT := SYSDATE;
END;
/In JDev I've created an EO - Tab1, a VO - Tab1View and an AppModule.
In the EO Tab1 I have checked "Refresh After Insert" and "Refresh After Update" for Id and Edited_By attributes. I made the latter two attribures as "Never" updatable.
Then I test the AppModule with a JDev Tester (I use a connection which connects as an owner of the 3 objects above).
Then I insert a new row and enter a value into the Value field in the Tester. When I press Commit button everything works great - Id and Edited_By attributes get populated with values generated by the trigger.
But when I try to update the Value field and press Commit the Edited_By field does not retreives new value that was generated by the trigger.
Why does this happens?
Many thanks in advance.
Yerzhan.Frank,
I tried to set Refresh option on both, Value and Edited_At, fields but unsuccessfully.
Then I tried to do the following in SQL Plus:
SQL> insert into tab1(value) values('ddd');
1 row created.
SQL> commit;
Commit complete.
SQL>
SQL> select * from tab1;
ID EDITED_AT VALUE
1 27.03.2008 17:01:24 ddd
SQL>
SQL> declare dt date; val varchar2(64);
2 begin update tab1 set value = 'ddd' where id = 1 returning edited_at, value into dt, val;
3 dbms_output.put_line('txt = ' || dt || ', ' || val);
4 end;
5 /
txt = 27.03.2008 17:01:24, ddd
PL/SQL procedure successfully completed.
SQL>
SQL> select * from tab1;
ID EDITED_AT VALUE
1 27.03.2008 17:02:12 ddd
SQL>As it can be seen Returning clause of an Update statement does not return a new date, i.e. 27.03.2008 17:02:12, that was updated by the trigger, it returns an old one - 27.03.2008 17:01:24.
Frank, maybe the issue is in the Oracle DB? -
Function does not return a value
CREATE OR REPLACE PACKAGE BODY Promo_Version_Logo_Pkg IS
FUNCTION Promo_Version_Logo_Rule(Rc IN test.Ot_Rule_Context)
RETURN Ot_Rule_Activation_Result
IS
PRAGMA AUTONOMOUS_TRANSACTION;
v_Result NUMBER;
CURSOR Cur_Promo_Logos IS
SELECT Pvlo.Promo_Id,
Evt.On_Date,
Evt.Channel_Id,
Evt.Start_Time,
Evt.Duration,
Pvlo.Logo_Id
FROM Event Evt,
Event_Technical_Data Etd,
Promo_Version_Logo_Opt Pvlo,
Promo_Timing Pt
WHERE Evt.Event_Technical_Data_Id = Etd.Event_Technical_Data_Id
AND Etd.Promo_Timing_Id = Pt.Promo_Timing_Id
AND Pt.Promo_Timing_Id = Pvlo.Promo_Timing_Id
AND Evt.Channel_Id = Rc.Channelid
AND Evt.On_Date >= Rc.Fromdate
AND Evt.On_Date <= Rc.Todate
AND Evt.Day_Type_Id = Rc.Daytype;
BEGIN
FOR Each_Record IN Cur_Promo_Logos LOOP
v_Result := Testing_Pkg.Insert_Event(v_Channel_Id => Each_Record.Channel_Id,
v_Tx_Time => Each_Record.Start_Time,
v_Tx_Date => Each_Record.On_Date,
v_Content_Id => Each_Record.Logo_Id,
v_Duration => Each_Record.Duration,
v_Event_Type => Uktv_Tools_Pkg.c_Logo_Kind_Code,
v_Container_Id => Each_Record.Promo_Id);
IF v_Result = -1
THEN
EXIT;
END IF;
END LOOP;
END Promo_Version_Logo_Rule;
END Promo_Version_Logo_Pkg;why do I get this "Hint: Function 'Promo_Version_Logo_Rule' does not return a value" after I compile it? The Testing_Pkg.Insert_Event should insert some values somewhere...I just want to try to test it before I move on onto the next bit of it, but I do not understand what I am doing wrong...
ThanksYou need something like:
END LOOP;
RETURN v_Result; -- if this is what you are trying to get the function to do
EXCEPTION
WHEN OTHERS THEN
<exception handling/logging - whatever you want>
RAISE; --this with then raise an error back to the calling process
END Promo_Version_Logo_Rule;This way the function either returns a value, or an exception which can be handled in the calling procedure
Maybe you are looking for
-
Inbound delivery without reference
Hi all,, we have a scenario, where we need to transfer goods from IM storage location to EWM location. For EWM we need to have inbound delivery to get processed. is there any way we can create an inbound delivery without reference or with refrence to
-
Best practice for making database connection to Forms 10 apps?
Hi To upgrade our Forms applications we are moving from version 3 to 10. Our old system runs Forms applications and the connection to the database is based on the individual user. This means that any tables or views used require that the user has spe
-
How to use User entered dates in intreval
Hi, User will enter date range in variable As per my requirment i want to use no of days between those 2 user entered dates in my calculaction How can i achieve this at report level. Thanks
-
Hi, We have various process chains for daily loads. Among those some of the process chain shows the status as red, but the data loaded successfully in the targets. And subsequent chains are not getting triggered. Can someone let me know the solution
-
Our application has a table that is repeatedly queried; the queries may contain predicates involving non-primary key columns. Ideally, we would want to cache this entire table in memory to speed up retrieval. We are checking to see if TopLink's cache