VO is not getting executed or retains the previous state of execution
Hi,
We have a UI for the Party Site. Under this UI, you see the address for the party. When u change the address for the party, the old party site is inactivated and a new party site would be created. Assume that all the possible set of locations already exists in the system.
Structure of the Business Components
Page is linked to PartyAM
PartySitesVO -> Linked to PartySiteEO
PartySiteVO is linked to PartyAM
Validation VO - PartySiteInCustomerAccountSiteVVO is part of AM - PartyVAM
In the PartySiteEO - When we double click, open the EO and go to Properties section, we see the below.
Properties
======
VAMDef : xxx.oracle.apps.xxad.schema.server.PartyVAM
We call partysiterow.validate() to call the validateEntity() function of the PartySiteEO which is overridden.
protected void validateEntity()
super.validateEntity();
PartyEntityExpert expert = PartySiteEOImpl.getEntityExpert(getOADBTransaction());
if (expert.isPartySiteInCustomerAccountSite(getPartySiteId().toString())
System.out.println("Throwing the exception");
else
System.out.println("Not Throwing the exception");
Package xxx.oracle.apps.xxad.schema.server;
public class PartyEntityExpert extends OAEntityExpert
public boolean isPartySiteInCustomerAccountSite(String partySiteId)
PartySiteInCustomerAccountSiteVVOImpl vvo =
(PartySiteInCustomerAccountSiteVVOImpl)
findValidationViewObject("PartySiteInCustomerAccountSiteVVO");
vvo.initQuery(partySiteId);
return vvo.hasNext();
public class PartySiteInCustomerAccountSiteVVOImpl extends OAViewObjectImpl
public void initQuery(String partySiteId)
setWhereClauseParams(null); // Always reset
setWhereClauseParam(0, partySiteId);
executeQuery();
PartySiteInCustomerAccountSiteVVO
=======================
SELECT 1
FROM hz_cust_accounts a, hz_cust_account_sites_all b
where a.cust_account_id = b.cust_account_id
AND a.status = 'A'
AND b.status = 'A'
AND b.party_site_id = :1
Using this VO we want to check, if we have an active account site linked to party site or not.
Assume we have two party site Ids 100, 200
PS - 100 is not linked to AccountSite
PS - 200 is linked to Active Account Site.
Now the problem is, we have a FOR loop where we loop through all the PartySiteIDs fetched.
When the partySiteRow.validate() is called for the first time with say PartySiteID = 100, the PartySiteInCustomerAccountSiteVVO gets executed and no rows will be fetched, so false would be returned.
When the next itteration happens and partysiteRow,validate() is called, PartySiteID = 200 is passed to PartySiteInCustomerAccountSiteVVO and still no row is returned. Ideally, I should get a row. When I run the same PartySiteInCustomerAccountSiteVVO query in toad for PartySiteUD = 200, I get 1 as the output.
I am not quite sure, if using the PartyVAM and PartyAM and something around transaction state or VO state has anything to do with the VO cache.
Please let me know, if you see any logical error into the above kind of setup. Aslo, let me know, if you have any questions in understanding this.
Thanks
Saurabh
Edited by: SaurabhAg on Mar 7, 2012 10:43 AM
Hi,
I am just pasting the log messages near to the VO execution. What I have done is, I have hard coded the same PartySiteID, just before calling the executeQuery in VOImpl. If you look at the log message, when the first time the VO executes, it fetches the row which is correct. But when the VO is executed again for the same or different party site id, to me it looks like, it is not at all executing the query.
In this case, since the PartySiteID is hard coded, it should return 1 row each time the executeQuery is called from VOImpl.
public void initQuery(String partySiteId)
partySiteId = "25880390";
System.out.println("party site id in initQuery : " + partySiteId);
setWhereClauseParams(null); // Always reset
setWhereClauseParam(0, partySiteId);
executeQuery();
[2254] Loading from /xxx/oracle/apps/xxad/schema/server/PartySiteInCustomerAccountSiteVVO.xml file
party site id in initQuery : 25880390
[2255] Column count: 1
[2256] ViewObject : Created new QUERY statement
[2257] PartySiteInCustomerAccountSiteVVO>#q computed SQLStmtBufLen: 274, actual=234, storing=264
[2258] select party_site_id cust_account_site_exists
from ar.hz_cust_accounts ca
, ar.hz_cust_acct_sites_all cas
where CA.STATUS = 'A'
and CA.CUST_ACCOUNT_ID = CAS.CUST_ACCOUNT_ID
and CAS.STATUS = 'A'
and cas.party_site_id = :1
[2259] Binding param 1: 25880390
Row party site id : 25880390
Row is not null, Account Site exists : 1
party site id in initQuery : 25880390
[2356] Column count: 1
[2357] ViewObject : Reusing defined prepared Statement
[2358] Binding param 1: 25880390
Please see, if you can provide me some directions or approaches which I can try.
Thanks
Saurabh
Edited by: SaurabhAg on Mar 8, 2012 1:33 AM
Similar Messages
-
Queries are not getting executed in the EJB
Hi,
I am using Stateless EJB for database transactions. I have one getConnection() method in it which I am calling in every method for connection. I have created one more method in that I am executing one simple query for count(*) from one table and returning the count in the Web dynpro application. But I am not getting the count. It seems the query is not getting executed. I have added classes12 jar externally to the EJB and also to the WebDynpro application. Is there anything I am missing????
Thanks,
Swati GaurHi Swati Gaur,
Did you print any logs in the your code to print the count after executing the query?
For debugging purpose you can try
System.err.println("Count after executing the query "+count);
count is the variable which contains the count after executing the sql query.
Check for the above statement in default trace. If count is printing in default trace then the problem is in your webdynpro code.
Hope this helps!
Regards,
Jaya. -
I have been sent a 'word document' in which are a series of boxes about thirty lines long to insert written text. When Pages opens the document it extends these to a whole A4 page how do I get it to retain the original layout
You can't change the way Pages import .doc files.
It was never written that it reproduce exactly the original one.
From my point of view, as I refuse to give a cent to M...soft, the best way to deal with documents issued by their Office suite is to use the free libreOffice.
Yvan KOENIG (VALLAURIS, France) jeudi 7 juillet 2011 11:34:19 iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
Please : Search for questions similar to your own before submitting them to the community
To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer ! -
Deadline branch not getting executed
Hi
In my BPM i have an infinite loop and also the deadline branch with inerval as 1 minute (for testing purpose) but when i send the message my deadline branch does not get executed after 1 minute and it keeps on waiting.
in the bpm monitoring it shows wait step created.
i have verified my design with the standard pattern available, and it is almost similar.
i am not able to find out the reason behind this strange behavior.
Regards
DheerajHi Saravana
i did exactly the same, i have my deadline branch, in it i have my control step which trows exception, which is catched by my exception branch and does nothing, so ideally it should continue the processing after that.
but the problem is the exception is never thrown.
my deadline has been configured as
Reference Date/Time: Creating the step
Duration: 1
Unit: Minutes
control step in deadline branch
Action: Throw Exception
Exception: Time_out
Exception branch
Exception Handler: Time_Out
and outside this block i have transformation and other steps... which shoul get excuted after 1 minute deadline.
Regards
Dheeraj -
In PO Release "PO release effected" is not getting executed
Hi All,
I am working on PO Release WorkFlow.
when I execute the WF of PO release, its executing the first task "please release PO" but when I relase the PO from my work place the second step "PO release effected" is not getting executed. I could not found why this is happening.
Please help me in this issue.
Thanks.
Ranganadh.Thank You Adithya,
I have copied the standard one i.e. WS20000075. I am executing the workflow directly from the Workflow builde by giving the PO number and release code.
with this in my business workplace I can able to find the workitem.
I am releaseing the PO from the Workplace. After releasing the PO also I am getting the status of the workitem as "Inprocess".
In workflow log I found that only first task (PO Released) has been executed the subsequent steps are not getting executed.
Would be there any settings are missed out??
Thanks.
Ranganadh. -
Tasks not getting executed as per schedule
Hello Gurus,
my query is with respect to tuxedo 7.1 / singleview 4.02.17.01.
I am facing some new issues these days with singleview.
Whenever we submit any task in singleview, it is not getting executed on its scheduled time.
this has been happening from past few days.
worstly,nothing has been found in logs.
Interestingly, twice it happened that i took down the application & after the app was brought up,these "NOT" executed tasks started automatically.
Why this could be happening?
unix file " stdout" <standard output> is getting written heavily & reaching its MAX size ( 2 GB) in less than 24 hrs.
i have changed its schedule as of now,but has it got anything with above problem?
Finally,i have generated a new "ubbconfig" for tuxedo which will help in maximising billing performance.
reason for this is in recent times i have observed that memory usage has increased .so this "ubb" contains maximum billing servers & rest minimum.if you have any idea on this,pls let me know.
your suggestions & corrections are welcome.
Thanks & Regards
Abhijeet KSome follow up questions:
- How did you migrate (dsmig ldif or binary import)
- Did the accounts in .x have any custom password policies set?
For a "new" and a migrated entry, can you check if a passwordpolicysubentry is configured?
(search as directory manager and fetch the attribute) -
Scheduled job not getting executed on a logical standby
Hello,
We have created a job(through dbms_scheduler API). The job is enabled and shows up in the SCHEDULERJOBS view also.
However the job does not get executed. I looked into the following tables there was no relevant entry found for the aforesaid job:
select * from all_scheduler_job_log
select * from dba_scheduler_running_jobs
select * from DBA_SCHEDULER_JOB_RUN_DETAILS order by log_date desc
Is there any limitation that we cannot execute scheduled jobs on a logical standby database. If i execute the relevant program (that is configured to be run as job in this scenario) as an individual procedure from SQL plus, it gets executed successfully implying there is no errors/problem in the subprogram that the job is going to invoke.
Appreciate your thoughts in this regard.
Thanks.Hi Justin,
Thanks for your response.
As per the app design, the job invokes a stored program(that maps to a stored procedure present in standby db itself) that reads the data from standby and populates the relevant tables/entities in another database(third db, not primary or standby) which acts as a repository. No write operations are to be performed on standby.
So, i have two doubts:
-- Can scheduled jobs execute on logical standby db[Oracle release 10g(R2)]
I was going through few of the oracle docs and it is mentioned that this is a known limitation in 10g
R2 release and has been corrected in 11g. Now we have something called database_role
attribute that needs to be set to 'LOGICAL STANDBY' if you need to execute a job on
standby. However it is available in 11g onwards.
-- If there is no workaround for the above mentioned problem in 10g-R2 release.
Then we may have to schedule a job from third db instance that shall invoke the program(residing on the standby db). Can we have a scheduled job which executes a program that maps to a remote stored procedure instead of local stored procedure?
Appreciate your thoughts.
Thanks -
BADI is not getting executed in Portal (Front end)
Hello Portal Gurus
We have developed a new enhancement recently and it is not getting executed in Portal...what will be reason...?
Can someone please help me out in this...Hi Vijay,
It'll be a bit easier to point out some probable solutions if you can give some details regarding the error that you are getting... Also if you can mention the EP version it'll be great..
Thanks,
Pinac -
Hello friends.
I am new to workflows. i have created a sample workflow to cteate a material and then to display it. i have created all the std tasks successfully, and also in the workflow builder all is fine. but when i try to test it by executing the workflow, it is not getting executed, it gives a status message saying "Current status in process". please tell me the solution for this.
Thanks and Regards.
Vishal VH.Go and check what is happening in the workflow log.
After executing the workflow, run transaction SWIA and check the log. You can also check the containers there along with the graphical runtime display
Cheers
Anirban -
Infopackage not getting executed through Process Chain
Hi All,
I am facing a strange issue in BW Process Chain. Sometimes 3 Infopakages in my Process Chain is not getting executed and the variants get stucked in Yellow state. I checked the status of variants in RSPCPROCESSLOG table and they went in Undefined State.
Can anyone tell why this happening and how to resolve that issue permanently.
Thanks,
JavedHi Javed,
When you trigger the process manually, it might work.
But, as Raman told - some times due to huge number of loads running at the same time, the Back ground processes will be heavily occupied and loads will stuck. By the time, you trigger them manually; they will be successful due to some of the back ground processes which becomes free by that time.
Though this will not happen all the time. But this can also be the reason. Try checking, if the loads are getting stuck in yellow with "Target event" "with parameter" getting generated in display messages --> chain tab or not.
Thanks,
Vikranth. -
Hi,
My sql below is not getting executed.There are no errors but even after long time it is not producing any thing (error or result).
I am getting results till the statement SELECT D.budeptmap_v88_dept_id ,
but when I right the last statement on top of this nothing is coming.
select u.dw_code_skey,u.dw_code from dw.agg_inscope_top_nodes t, dw.dw_codes u
where
t.TOP_NODE_TR_HDR_SKEY = u.DW_CODE_TR_HDR_SKEY
and u.DW_CODE_SUPERTYPE_CODE = 'DEPT'
and u.DW_CODE_DW_CUR_IND = 'Y'
and u.DW_CODE_DW_DEL_IND = 'N'
and u.DW_CODE in(
SELECT D.budeptmap_v88_dept_id
from DW.CLIENT_ACCOUNTS C,DW.AON_V75_V88_BU_DEPT_MAP_SDO D
WHERE D.budeptmap_v75_dept_id = '-1'
AND D.budeptmap_v75_bu_id IN(C.cli_acct_producing_offICE_code)
AND C.CLI_ACCT_DW_CUR_IND='Y'
AND CLI_ACCT_SKEY IN (
SELECT A.CLI_SUM_CLI_ACCT_SKEY
FROM PROFIT.FACT_CLIENT_SUMMARIES A
WHERE A.CLI_SUM_PERIOD_SKEY = 3
AND A.DM1_TOT_ADJUSTED_REV_AMT =
(SELECT MAX(DM1_TOT_ADJUSTED_REV_AMT)
FROM PROFIT.FACT_CLIENT_SUMMARIES B
WHERE B.CLI_SUM_ENTITY_SKEY =A.CLI_SUM_ENTITY_SKEY
AND B.CLI_SUM_PERIOD_SKEY =3)))
any help in tunning is highly appreciated.
Thanks in advancehow long does this query takes to complete?
SELECT D.budeptmap_v88_dept_id
from DW.CLIENT_ACCOUNTS C,
DW.AON_V75_V88_BU_DEPT_MAP_SDO D
WHERE D.budeptmap_v75_dept_id = '-1'
AND D.budeptmap_v75_bu_id IN (C.cli_acct_producing_offICE_code)
AND C.CLI_ACCT_DW_CUR_IND = 'Y'
AND CLI_ACCT_SKEY IN (SELECT A.CLI_SUM_CLI_ACCT_SKEY
FROM PROFIT.FACT_CLIENT_SUMMARIES A
WHERE A.CLI_SUM_PERIOD_SKEY = 3
AND A.DM1_TOT_ADJUSTED_REV_AMT =
(SELECT MAX(DM1_TOT_ADJUSTED_REV_AMT)
FROM PROFIT.FACT_CLIENT_SUMMARIES B
WHERE B.CLI_SUM_ENTITY_SKEY =A.CLI_SUM_ENTITY_SKEY
AND B.CLI_SUM_PERIOD_SKEY =3)) -
Oracle Jobs not getting executed
Hi all,
I am using oracle release 10.2.0.4.0. I have two similar databases and I am trying to run same jobs in two different databases. one is running successfully however when i m trying to submit the same jobs in another database the jobs are getting stuck in DBA_JOBS with below values:
next_date next_sec total_time broken interval failures
15-07-2009 00:00:00 0 N NULL NULL
and jobs are not giving desired result. in fact they are not doing any thing which i am expecting.
there is no change in program level. same program unit is able to submit the job in another database. I have checked the job_queue_processes and value is 10.
I don't have any clue were to check at oracle level. i am pl/sql dev so i don't have much hand on oracle.
here is the program block which is submitting jobs:
Job := 'batch_run.Pr_Process_dup
( ' || chr(39) || CurBranch || chr(39) || '
,' || chr(39) || CurUser || chr(39) || '
sys.dbms_job.submit(jno, job, StartTime, Interval);
commit;
This is the part of function were job is getting submitted.
I don't think there is any issue at program level as it was working fine before and there is no change aswell. also same functions are being used in other database. in fact we are using these objects in front end which is working fine in rest of databases.
We have two databases at same server.I compared all parameters in both instances.
Please help me.hi
here are the steps which I did.
1. I submitted job using below code.
declare
job1 integer :=0;
begin
sys.dbms_job.submit(job1,'Begin null; end;',sysdate,'');
commit;
end;
here are the values i was getting in DBA_jobs:
next_date 16-07-2009 15:35:20
next_sec 15:35:20
total_time 0
broken N
interval null
failures (no value)
what Begin null; end;
I don't think it was running.
2. After running ur statement:
set serveroutput on;
exec dbms_job.run(9623);
output: PL/SQL procedure successfully completed.
Job was not present in DBA_JOBS so i think Job got executed.
I am clueless what is happening.What should be the cause?why is it not getting executingwhile running inside the pl/sql block?
Thanks
Edited by: sameer wani on Jul 16, 2009 8:52 AM -
AOP JoinPoint not getting executed
The spring configuration that I have is
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.1.xsd ">
<aop:aspectj-autoproxy />
<bean id="addCarrierService" class="com.service.AddCarrierService" />
<!-- Aspect -->
<bean id="authorizeBeforeAspect" class="com.custom.AuthorizeBeforeAspect" />
<aop:config>
<aop:aspect id="aspectLoggging" ref="authorizeBeforeAspect">
<!-- @Before -->
<aop:pointcut id="pointCutBefore" expression="execution(* com.service.*.*(..))" />
<aop:before method="secureBefore" pointcut-ref="pointCutBefore" />
</aop:aspect>
</aop:config>
</beans>
And the join point class is
package com.custom;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Component;
@Component
@Aspect
public class AuthorizeBeforeAspect {
public void secureBefore(JoinPoint joinPoint) {
System.out.println("Inside AuthorizeBeforeAspect.secureBefore() method");
if (SecurityContextHolder.getContext().getAuthentication().getPrincipal() != null)
DEPUser user = (DEPUser) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
AuthorizeBeforeAspect .java class does not get executed at all. Not sure where am I going wrong?Hi,
Was the chain created and activated properly, try activating the chain once again, if there is an issue with any of the variants the process chian will not get activated and throw and error.
If this is not the case and if you are able to activate the process chain successfully, open the start variant and change the settings.
Right click on the start variant -> Select direct scheduling option.-> press Change selection button
Select immediate button and press enter. Now come back save the start variant and activate the chain once again.
Schedule the chain and it should run right away. Monitor the logs.
Regards,
Sudheer -
Dead line block is not getting executed
Hi,
I configured BPM scenario to collect messages from one interface and create IDOCs in ECC.i configured with following steps
Start
Block(start of Block)
Loop(While 1=1)
receive
container step(to create multiline container)
endloop
Exception branch
Deadline branch(time 1 minute with control step)
End block
Transformation
send.
But deadline branch is not getting executed.its going to endless loop.
anybody got idea about the problem?Make sure that:
1. your deadline branch has a control step raising the exception (and this exception branch could be empty, since it will only end the block; you can create another exception handler for specific application exceptions);
2. all the exception handlers are defined in Block step;
3. your correlation container is properly started and used by receive step (with the right fields being used for each correlation string).
And as best practices, make sure that:
1. your correlation is defined as local correlation in the Block step;
2. your loop step contains only the receive step (which starts process) and a container operation of type append, which appends the received message into a multiline container (do all mappings after the loop is complete).
Finally, save and activate your changes, go into SXI_CACHE transaction and check the returncode your BPM; it should be zero. Otherwise, there is something wrong with it.
Regards,
Henrique. -
Java Dynpro - Consumed Java WebService - Not getting executed
I have consumed a Java Web Service ( EJB ) in my Java Web dynpro code ( using Import Web service Model ( Not adaptive ))
Successfully consumed.
But the Web Service Model is not getting executed by this code -
Request_CreatePortalUsrWebServiceViDocument_createUsr createPrtUsr = new Request_CreatePortalUsrWebServiceViDocument_createUsr();
wdContext.nodeREQUEST_CREATEPORTALUSRWEBSERVICEVIDOCUMENT_CREATEUSR().bind( createPrtUsr );
try {
wdContext.currentREQUEST_CREATEPORTALUSRWEBSERVICEVIDOCUMENT_CREATEUSRElement().modelObject().execute();
wdContext.nodeResponse().invalidate();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
This Web Service resides on the local portal server.
Thanks,Hi,
First, have you tested that the web service works if you run it directly in the WS Navigator?
Here is a snippet of how I usually call web services:
public void getUserControlTable( )
//@@begin getUserControlTable()
// Clear down existing context
wdContext.nodeGetUserControlTable().invalidate();
// Create model object
DBMaint_ConfigServicesFactoryWS model = new DBMaint_ConfigServicesFactoryWS();
// Create context elements
Request_GetUserControlTable request = new Request_GetUserControlTable(model);
GetUserControlTable method = new GetUserControlTable(model);
request.setGetUserControlTable(method);
// Bind to context
wdContext.nodeGetUserControlTable().bind(request);
// Call service
try {
wdContext.nodeGetUserControlTable().currentGetUserControlTableElement().modelObject().execute();
} catch (Exception ex) {
wdThis.wdFireEventDisplayDebugMessage(
"Error calling CanUserConfigureApp service - " + ex.getCause().toString());
wdThis.wdFireEventDisplayErrorMessage(
"Unable to read User Control table - configuration not currently possible",
null,
null);
return;
//@@end
I'm not sure why you aren't creating a model object as I cannot instantiate my objects without it - maybe it is because you are using a non-adaptive WS model. Why aren't you using the adaptive WS Model?
Also, I don't see where you are creating a method/operation object, you only seem to create the top level Request object. I'd expect you to need to create the operation level object too and add that into the request, as I do above.
There is little point in outputting the stack trace like that - I always use the message manager object to display errors and debug message on screen. I think you should at least add some debug messages to try and pinpoint what is going wrong.
Gareth.
Maybe you are looking for
-
Stock Report for selected posting period!
Dear All, Is there any standard program on Stock Report for selected posting period, which shows PRODUCT| UNITS| OPE.STOCK| PURCHASE| SALES| CLO.STOCK| I want report on this, anybody can help me out on the same. Or is there any standard report. Need
-
X-Fi Mixer App Probs with Multi Moni
Hello, I bought an X-Fi Fatality card, and I love it. There is only one issue with the software. I have 3 lcd screens in XP in multi-monitor configuration. Two DVI connected to a 7800GTX, and another on my other 7800GTX. When i'm not gaming, i'm not
-
is there any way to download ibooks for my ipod touch 4th generation?my iOs version is 5.1.1
-
Weblogic is using only one of the available cpus!
Hi all, I have this problem: weblogic application server 9 mp2 on a linux server with 4 cpus is using only one cpu. The jvm seems to be pinned on one cpu. Is there something to set or a particular jvm parameter? I'm using the jrockit jvm. Thanks Marc
-
Create New 802.1x Configuration?
Hi all, Is there a command in the terminal to create a New 802.1x Configuration? I want to bypass the Internet Connect app so that I can automate this. Thanks, Matt