on 06-12-2008 1:29 PM
Hi all,
I am having 2 tables in my view.In the first table total 29 records are there and in 2nd table total 4o records are there.
I selected all records in both the tables and given them as input to the function module.
On click of execute i am calling the function module execute method.
I am getting the following error as given below
Proxy Error
The proxy server received an invalid response from an upstream server.
Reason: Error reading from remote server
Can anyone plz help me out in resolving this issue
Regards
Padma N
Hi,
Instead of sending all records, try to execute with one record and see it works
If it works could you pl post the code that is been used to iterate and update.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It is working if i select all records from table 1 and upto 20 records of table 2.
But my table 2 is having total 40 records.If i select 40 i.e more than 20 it is giving the proxy error as "Error reading from Remote server"
The code i used is
List OpNumNode=null; //To hold OperationsNumber
OpNumNode= new ArrayList();
List OpDescNode=null; //To hold OperationsDescription
OpDescNode= new ArrayList();
int nSelOperations=0;
int nOperations=wdContext.node_Operations_Copy().size();
for(int i=0;i<nOperations;i++)
{
if(wdContext.node_Operations_Copy().get_Operations_CopyElementAt(i).currentChkBoxOperationsElement().getOperationsChkVal()==true)
{
OpNumNode.add(wdContext.node_Operations_Copy().get_Operations_CopyElementAt(i).getVornr()) ;
OpDescNode.add(wdContext.node_Operations_Copy().get_Operations_CopyElementAt(i).getLtxa1());
nSelOperations++;
}
}
int nCounters=wdContext.node_Group_Counters_Copy().size();
for(int i=0;i<nCounters;i++)
{
if(wdContext.node_Group_Counters_Copy().get_Group_Counters_CopyElementAt(i).currentChkBoxCountersElement().getCountersChkVal()==true)
{
String strGroupVal=null;
strGroupVal=wdContext.node_Group_Counters_Copy().get_Group_Counters_CopyElementAt(i).getPlnnr();
String strAssembly=null;
strAssembly=wdContext.node_Group_Counters_Copy().get_Group_Counters_CopyElementAt(i).getIstru();
String strCounterVal=null; strCounterVal=wdContext.node_Group_Counters_Copy().get_Group_Counters_CopyElementAt(i).getPlnal();
}
}
//Calling the function module with parameters
wdThis.wdGetlistCustomContollerController().execute_Copy_Operation(strMainGroup,strMainCounter,OpNumNode,OpDescNode,nSelOperations,strGroupVal,strAssembly,strCounterVal,chk1,chk2);
the code of function module execute is
try
{
Z_Operation_Input Copy Operation1 =null;
CopyOperation1=new Z_Operation_Input();
wdContext.nodeZ_Operation_Input().bind(CopyOperation1);
wdContext.currentZ_Operation_InputElement().modelObject().setPlnnr(strGroup);
wdContext.currentZ_Operation_InputElement().modelObject().setPlnal(strCounter);
wdContext.currentZ_Operation_InputElement().modelObject().setCheck1(Check1);
wdContext.currentZ_Operation_InputElement().modelObject().setCheck2(Check2);
Zgroup_Counter zz = null;
zz=new Zgroup_Counter();
zz.setPlnnr(GroupList);
zz.setIstru(AssemblyList);
zz.setPlnal(CounterList);
wdContext.currentZ_Operation_InputElement().modelObject().add_Group_Counters(zz);
for(int i=0;i<OpCount;i++)
{
Zoperation tt= new Zoperation();
tt.setVornr((String)OpNumList.get(i));
tt.setLtxa1((String)OpDesc.get(i));
wdContext.currentZ_Operation_InputElement().modelObject().add_Operations(tt);
}
wdContext.currentZ_Operation_InputElement().modelObject().execute();
wdContext.nodeOutput_Copy_Operation().invalidate();
}
catch(Exception e)
{
wdComponentAPI.getMessageManager().reportException("listCustomContoller - execute_Copy_Operation - Exception -"+e,false);
}
Regards
Padma N
Edited by: padma nallapati on Jun 13, 2008 8:17 AM
Edited by: padma nallapati on Jun 13, 2008 8:18 AM
HI,
At backend it is working fine...but the problem is my portal time out is 5 mins.
i keep track of the time taking to execute 20 records of table 2.It is taking around 2 mins.
If it is 2 mins for 20 records then it may be around or more than 4 mins for 40 records.
Like that the time may increase if the number of records increase..
Thats why it is givng portal time out..
Could you please suggest any other alternative to resolve this issue
Regards
Padma N
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.