Problem using passivateStateForUndo when having taskflow requires-transacti
HI All,
i'm trying to use oracle.jbo.server.ApplicationModuleImpl.passivateStateForUndo / activateStateForUndo methods to make and restore some application savepoints.
The problem is that, when i try to use these methods from adf bounded taskflow, (placed on a page as a region ) i receive:
java.lang.NullPointerException
at oracle.jbo.server.ApplicationModuleImpl.passivateStateForUndo method
I made some investigation of the problem and founded that this NullPointerException is caused by taskflow transaction settings "requires-transaction"
If i put the taskflow transaction setting on default , no exception is thrown and passivateStateForUndo / activateStateForUndo methods worked fine.
Is that a bug, and does somebody have an idea how can i solve this ?
I work with TP4.
Regards,
Krasimir
Hi,
why don't you use the declarative save-point feature in taskflows as described in chapter 18 of the documentation ?
"If you want changes the user made within the called ADF bounded task flow to be discarded when it is exited, you can specify the restore-save-point option on the task flow return activity. The ADF Controller will roll back to the previous ADF Model save point that was created when the ADF bounded task flow was entered. The restore-save-point option applies only to cases when an ADF bounded task flow is entered by joining an existing transaction (either the requires-existing-transaction or requires-transaction option is also specified) and a Save Point is created upon entry."
Frank
Similar Messages
-
Problem using inputFile when a file is not required
I have a page that has a table component with the following fields
Title - inputText (required)
File - inputFile (not required)
File URL - inputText (not required)
The code for the input File is this:
<af:inputFile id="OrigReviewAttachmentsFileDoc"
label="#{bindings.OrigReviewAttachmentsFileDoc.hints.label}"
visible="#{bindings.OrigReviewItemsStatName.attributeValue == 'New' && row.bindings.ClsfnCode.attributeValue != null && row.bindings.ClsfnCode.attributeValue == 'PEND'}"
valueChangeListener="#{OrigReviewAttachmentsFileDocFileHandlerInTable.uploadFile}"
binding="#{OrigReviewAttachmentsFileDocFileHandlerInTable.usesUploadIndicator}"
shortDesc="#{bindings.OrigReviewAttachmentsFileDoc.hints.tooltip}"
partialTriggers="OrigReviewAttachmentsClsfnCode"/>The problem I am having is that under certain circumstances (like the file is too large) I want the user to enter a File URL instead of actually uploading a file. But when I save the row with the other 2 fields on the screen filled in and not the inputFile I get the error, "Cannot Find the File Specified." Is there any way that I can tell it, that if it doesn't have a path, to not try to upload a file?
I am using:
JDeveloper 11.1.1.4.0
Oracle 11g with OrdSys.OrdDoc column to hold the file.
Any help would be appreciated,
MichelleI figured out the problem, and it was caused by JHeadstart. I placed a default display value in JHeadstart for the download link. This caused a default values bean to be created by jheadstart and that bean was what was causing my problem. The download link had a display value, but not a valid path. I removed the default value, re-generated the screen and it is totally fixed. I have pretty much decided that it is never a good idea to use a default value in Jheadstart.
Thanks for your help,
Michelle -
I'm having problems using Firefox when opening up PDF files that are called from jsp.
I'm trying to open my billing statement in pdf format. When I click on the link, Firefox 4 takes me to the dowload page and starts to download a readPDF.jsp file. How come Firefox is asking for that? When I use IE 7 I get no problems. Please advise on how to get Firefox to open jsp files automatically.
I have same problem too
-
How best 2 use Shared AM in taskflow -new transaction/isolated data control
Hi all
I have nearly 800 screens in my app (under 20 or so different AMs), in which I access some Common VOs to work with by applying filtering (on Secondary Rowset, on Default Rowset using View criteria) on that, Used as View Accessor VO (List of Values) & Sorting. These common VOs are not DB driven but custom java datasource implemented and once it is loaded with data, data will not change. I use Dynamic tab shell to load the screens as separate task-flows. These task-flows are defined to be opened with New Tansaction/Isolated Datacontrol. Right now these Common VOs are shuttled in a default scoped AM (Say 'LookupAM') and attached the same as nested AM for the other AMs.
With the above design, the current behavior is whenever I load a task-flow in Dynamic tab shell, it creates a fresh instance for Shreen AM as well as LookUpAM (I tested by including println inside prepareSession() API of AM Implementation class).
I feel I'll get benefitted in terms of memory saving/performance when I use only one instance of LookupAM for all the screens. I prepared a sample app that mimic our actual application, but made the LookupAM to be a Application scoped shared AM (lets say SharedLookupAM). I've also made all the LOV View accessors comes from this Shared AM. When I run this sample, the behavior is every time I load the task-flow, still the framework creates Am instance for both screen AM and SharedLookupAM! Why so?
Question:
1. Considering my application design (i.e. consuming Shared AM instance from inside the task-flow which are desinged to be opened with new transaction/isolated datacontrol), will I get benefitted in any way If i use Shared AM. If so, what are all the possible type of usages of shared AM for my design?
2. Why framework creates instance of Shared AM everytime I load the task-flow. Does it meant task-flow settings takes the precedence over the Shared AM configuration and it overrides that?
Thanks in advance.
Raghu
Edited by: Raguraman on Apr 9, 2013 3:25 AMHi,
+1. Considering my application design (i.e. consuming Shared AM instance from inside the task-flow which are desinged to be opened with new transaction/isolated datacontrol), will I get benefitted in any way If i use Shared AM. If so, what are all the possible type of usages of shared AM for my design?+
Isolated data control settings are the most expensive settings you can have in ADF. They should be used only if the requirement for the task flow is to be atomic in that it can be committed or rolled back independently. If this is not the case for your use cases, then using shared data control is a better option to use. Note that my expectation to application scope AM is that the AM instance is created per user but that the data cache is only queried once.
+2. Why framework creates instance of Shared AM everytime I load the task-flow. Does it meant task-flow settings takes the precedence over the Shared AM configuration and it overrides that?+
Well, you tell it to do so. With the setting of isolated to the Data Control you explicitly tell it to open a new transaction in which case a new instance is created.
Frank -
A problem recently developed using Firefox. When I now try to Chat with AT&T Tech Support about my internet, the CHAT BOX blinks on & off every second. It used to work fine but now it doesn't.
AT&T Tech Support just spent 93 minutes on the phone controlling my computer by remote & every thing pointed to Firefox. It does work fine with all other browsers, too.
AT&T suggested a new auto update for Windows 7 might not be compatible with Firefox. Is there any way to fix this problem?
I'm using Firefox 4.0.1 because Firefox 5 isn't compatible with 2 Tool Bars I need for some very important websites that I can't be without. Firefox said they're working on the problem & I'll upgrade when they've fixed it. But for now, I need this problem fixed.
Thanks!Don't expect support here. Nokia does not bother to pay a tech or two to support the people who have bought the 920. Not really a point to these forums.
Anyways, i have huge bt issues as well. Cannot connect or see my jawbone. In truck with pioneer nav system (it is illegal here to use a phone without handsfree in vehicle) it links, but when i make a call or receive a call it shows the phone off the receiver icon so it knows call in progress, but i either get no sound from the caller... at all, or i get a robotic mess i cannot decipher. when i cannot hear anything, people can hear me, but when i hear robotic, people can hear me but with distortion. However, when it reads a text message, the phone voice is fine through the system. Because i have to turn bt off then to use phone, i have to return this handset and just go back to android.
Have also had this drop calls a few times now as reception is probably the worst i have seen in a decade... even drops in downtown core. Battery life poor because i assume its always struggling for a signal. -
Problem Using GetNetText when accessing secured (https) sites
I have been having trouble getting GetNetText &
PostNetText to work with a secured (https) server. I need to
execute PHP files located on this server. I have heard of SecureNet
Xtra but before I try it I want to ask if there are other ways to
do this. Thanks in advance.You should be able to access secure sites when running in
Shockwave but
not from a projector. Like you suggested, you'll need the
SecureNet xtra -
Problem using BAPI to create Service Confirmation in CRM
Good afternoon all.
I have raised this is CRM forum too, just thought it best to ask the broader ABAP community the question too.
We are encountering a problem using a BAPI to create a transaction in CRM, specifically:
I am trying to create a Service Confirmation (BUS2000117) in a CRM system using the BAPI BAPI_BUSPROCESSND_CREATEMULTI.
The BAPI succeeds in creating the header of the transaction, but I cannot make the BAPI create any other data in the transaction such as partners or items.
Just want to be sure that I am not being foolish...has anyone succeeded in using this BAPI to create an error-free Service Confirmation?
Regards
NickI am going to pop this thread into General ABAP forum too.
Nick -
I am having problems sending emails when using apps. I dont receive any emails when I try to send documents such as pdf or pictures. I tried sending it to my other email account but I don't get any email. What is wrong?
System Preferences > Network > your-connection-medium > (Assist me) > ( Diagnostics )
This sometimes provides additional helpful information, sometimes not so much. -
When i listened my music on my ipod nano 4th, It's sound like a used LP with the distortion. I check my earphone and it's not the problem. I reset my ipod and it's still having the same problem. Does anybobody having a solution ?
From my limited knowledge the iPod Nano has no support for iCloud or wireless transfers- therefore the only means of downloading songs is by hooking it up to the computer by the white cable.
-
I am having problems using my iphone4 during calls. The screen does not automatically lock to prevent any part of my skin or face from touching it. When my skin touches the screen it would either go mute, hold, divert to speaker phone or calls another in my contact list. The person i'm talking to then cannot hear me suddenly when in mute or hold. Is there any application for my iphone4 like a "screen lock" when it is being used on calls?
Hello APVzW, we absolutely want the best path to resolution. My apologies for multiple attempts of replacing the device. We'd like to verify the order information and see if we can locate the tracking number. Please send a direct message with the order number so we can dive deeper. Here's steps to send a direct message: http://vz.to/1b8XnPy We look forward to hearing from you soon.
WiltonA_VZW
VZW Support
Follow us on twitter @VZWSupport -
having a problem with dates when I send my numbers doc to excel. dates are all out and that they have to cut and paste individual entries onto their spreadsheet. Any idea how I can prevent this.
I'm using Lion on an MBP and Numbers is the latest versionMay you give more details about what is wrong with your dates ?
M…oSoft products aren't allowed on my machines but I use LibreOffice which is a clone of Office.
When I export from Numbers to Excel and open the result with LibreOffice, the dates are correctly treated.
To be precise, dates after 01/01/1904 are correctly treated. dates before 01/01/1904 are exported as strings but, as it's flagged during the export process, it's not surprising.
Yvan KOENIG (VALLAURIS, France) mardi 3 janvier 2012
iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
My iDisk is : http://public.me.com/koenigyvan
Please : Search for questions similar to your own before submitting them to the community
For iWork's applications dedicated to iOS, go to :
https://discussions.apple.com/community/app_store/iwork_for_ios -
Whats the use of having pragma autonomous transaction
Hii All,
The below is the procedure developed by our predecessors.We are making use of this for writing our debug messages.
I'm aware of pragma autonomous transaction ,this allows my code to run independently of the calling program.
But here we are just using utl_File and we are neither using any DML(Inserting error messages into a table) or DDL statements in the below code.
What is real use of having pragma autonomous transaction.???This code is working in the same way even without the pragma...I dont' find any difference .
Please let me know the use of having pragma autonomous transaction in the below procedure and where it actually comes into usage.
Create or replace Procedure logmesg
p_file_name in varchar2,
p_mesg_text in varchar2,
p_dir_path in varchar2 default fn_get_debug_path,
p_file_ext in varchar2 default 'log',
p_append_flag in varchar2 default 'Y'
) Is
pragma autonomous_transaction;
l_utl_file utl_file.file_type;
l_append_flag varchar2(1);
l_mesg_text varchar2(32000);
l_file_name varchar2(3000);
l_dir_path varchar2(32000);
l_delimeter_occurance number;
l_buffer_str varchar2(32000);
Begin
if trim(p_dir_path) is null then
l_dir_path := fn_get_debug_path ;
else
l_dir_path := p_dir_path;
end if;
l_mesg_text := p_mesg_text;
l_append_flag := nvl(p_append_flag,'Y');
l_file_name := p_file_name||'_'||to_char(sysdate,'ddmmyyyyhh')||'.'||p_file_ext;
l_append_flag := Case l_append_flag
When 'Y' then 'a'
When 'N' then 'w'
End;--l_append_flag
Begin
l_utl_file := utl_file.fopen(l_dir_path,l_file_name,l_append_flag);
Exception
When Others Then
l_utl_file := utl_file.fopen(l_dir_path,l_file_name,'w');
End;
if dbms_lob.getlength(l_mesg_text) > 32000 then
loop
exit when dbms_lob.getlength(l_mesg_text) < 32000;
l_delimeter_occurance := dbms_lob.instr(l_mesg_text,chr(32),1,1);
l_buffer_str := dbms_lob.substr(l_mesg_text,l_delimeter_occurance-1);
utl_file.put_line(l_utl_file,l_buffer_str);
l_mesg_text := dbms_lob.substr(l_mesg_text,l_delimeter_occurance+1);
utl_file.fflush(l_utl_file);
end loop;
end if;
utl_file.put_line(l_utl_file,l_mesg_text);
utl_file.fflush(l_utl_file);
utl_file.fclose(l_utl_file);
End logmesg;
/HerePlease let me know the use of having pragma autonomous transaction in the below procedure and where it actually comes into usage.Seems it is redundant in that procedure, and doesn't add any value, since the procedure isn't doing anything 'transactional'.
I would remove it. -
Good Morning. I'm having a problem using both my Photoshop elements and premiere programs. I've installed the programs, redeemed my code and entered the serial numbers, and created the adobe log-in. I am able to open up the organizer without problems, but when I try to open up the photo editor (either by trying to open up the program from the main menu, or right-clicking on a photo in the organizer to edit in elements), the program asks me to sign in to adobe (which I can do and it doesn't give an an "incorrect password" or log-in ID error) then accept the terms and conditions. When I click to accept the terms and conditions, nothing happens and the editor fails to open. Everytime I click on the program, I get this same "loop" of signing in and accepting T&C's, but the program fails to open. Any advice?
Premiere Elements 10 is now 64 bit, but not PSE10.
Take a look at your scratch disk set-up and if you have a spare volume, allocate that first before the C drive. Elements use scratch disks when it gets low on RAM.
Click image to enlarge
Turn off face recognition and the auto-analyzer to improve performance.
When editing photos or videos check the task manager to see what background processes may be running and end them temporarily if not needed. -
Image 10.7.3. Problems with settings when new image is used on another mac
10.7.3 image.I create an image of 10.7.3 using disk utility with the "Require an admin password to access system preferences" checked under Security and Privacy, once i move the image to another mac it reverts and unchecks the setting "Require an admin password to access system preferences. There is no problems creating the image or loading the image on new mac. There is something that is reverting the setting from original image on new mac. I am not using a 3rd party software to create an image. As what i understand the image should exactly the same. Not sure what is causing these problems since it only happens when using 10.7.3 and did not happend on 10.7.2. Any feedback will be appreciated. thanks
Also AppleScript for QuickTime player control is broken. Instead of moving playhead forward, this AppleScript now moves it backward!
set the increment_amount to 40
tell application "QuickTime Player"
try
ignoring application responses
tell document 1
set the movie_length to the duration
repeat
step forward by the increment_amount
if the current time is equal to the movie_length then exit repeat
end repeat
end tell
end ignoring
end try
try
ignoring application responses
play document 1
end ignoring
end try
end tell -
Problem with SDO_relate when using polygons with holes.
I'm having a problem with sdo_relate. I'm trying to extract all elements from a point table (bdtq_batim_p) that are inside a specific polygon from another table (SDA_MUNIC_SS). The spatial index for both table have been rebuilt and the data from both table is valid.
When I do a count on the query, I know the answer should be 1422 elements (Counted in ArcGIS). However, sdo_relate gives a smaller number of elements in the result set.
The query :
SELECT count(distinct t.identifiant) FROM bdtq_batim_p t, SDA_MUNIC_SS s WHERE s.mus_co_geo = '48015' and sdo_relate( t.SHAPE,s.SHAPE,'mask=anyinteract querytype=window') = 'TRUE'
returns 282 elements. The query with mask=inside, SDO_Anyinteract() and SDO_inside() all give the same result.
I did a test with the following query and the result is 1422 (which is the good result).
SELECT count(distinct t.identifiant) FROM bdtq_batim_p t, SDA_MUNIC_SS s WHERE s.mus_co_geo = '48015' and SDO_WITHIN_DISTANCE( t.SHAPE,s.SHAPE,'distance=0') = 'TRUE';
It's important to note that the polygone (from SDA_MUNIC_SS) that is used for this query have holes in it. I have the same problem with all the polygons from the SDA_MUNIC_SS table that have holes in it. For the polygon without holes, the results are the same for the 2 queries.
My question are :
Why are the result from the two queries different? A query with a buffer of 0 should always return the same result as a query with Anyinteract.
Is there a known problem with SDO_RELATE when using a polygon with holes in it?
Do you have any idea how to solve my problem.Since i don't have much control on the version of Oracle and Patches that we use in the system, we used a workaround that detects the polygons with holes and uses the SDO_WITHIN_DISTANCE( t.SHAPE,s.SHAPE,'distance=0') = 'TRUE' operator in those case. We saw a slight decline in performance but it now returns the right results. When the system will be patched, we'll come back to the original version and see if the problem is solved.
Maybe you are looking for
-
CC desktop app greyed out, not functioning
For several weeks now, the CC desktop app is greyed out and shows no app updates (or anything else for that matter). Just downloaded and reinstalled. No change. Works fine on another Mavericks updated iMac, but not on this older MacPro (too old to in
-
Problem adding EPSON USB printer
I contacted Epson's support about this, then did what they told me to in the reply. As you can probably tell since I'm posting this, it didn't work. Here is the email I sent: "No matter what I do I cannot get EPSON USB to show up under More Printers
-
So i found these two things under the Window option in Photoshop CS4...i'm not sure if they are new or not, but i'm also not sure they are working properly. I understand Kuler....its a color-scheme/inspiration list linked to things you search for, us
-
Hi. I`m using a Toshiba laptop and I`m running Windows 7. (Please note: I don`t have the following problem when I use Microsoft Internet Explorer, or when I`m using Microsoft Word.) Every single time I try to generate the "@" symbol I get ". The same
-
Since the iOS 7, iCloud doesn't send my photo stream to my windows.
I checked every setting and it should work. I mean I have been using the icloud service for over a year and I love it. The weird thing is that the picture i'm taking are sent to my ipad and ipod but not my windows computer. any thoughts?