Link to home
Start Free TrialLog in
Avatar of praetorean
praetoreanFlag for Singapore

asked on

Error 500 HTTP Web Server: Corrupt Data Exception

Hi all,

I am encountering this issue on Lotus Domino:
"Error 500, HTTP Web Server: Corrupt Data Exception "

This happens when:
1- I have a search form, where I fill-in a search criteria i.e date ranges, strings.
2- The search invokes an agent,
3- The calls a list of views to show the data.

My problem here is that, I somehow get that "Corrupt Data Exception" error.

I have tried fixup() in the server's console BUT I am still having the error.
I am able to see the data on the Views individually...

Can anyone advise on this?...

thanks
Avatar of kcarrim
kcarrim

Do you perhaps have multiple replicas of the same database on the same server?

Also try re-apply the design template.

HTTP Web Server: Corrupt Data ExceptionNot that common an error in practice. Usually due to a change in the design of a form taking place after a user opens it and before they submit it. Source: www.andrewbarker.com
Avatar of Sjef Bosman
Would it be possible to show us the agent's code? I expect it does something "illegal", e.g. it saves a document that should not be saved.
Hi there praetorean,,,

May I suggest applying the following :

1- Fixup -f
2- updall -r
3-Compact - c-i


You also can read the following links  :

http://www.codestore.net/store.nsf/cmnts/819F9D026AE9402086256D4800452458?OpenDocument


http://www-10.lotus.com/ldd/nd6forum.nsf/ReleaseAllThreadedweb/632a2025bd5904ce852574cc005005f7?OpenDocument

Best Wishes

Avatar of praetorean

ASKER

@akhafaf: i tried fixup / updall / compact... but i still get the error.

@kcarrim: unfortunately, our system does not use design template...

@sjef_bosman: i'll try to post a pseudo code (unfortunately, i can post the whole code)

i'm suspecting it might be the data, since the form to select the criteria uses dlookup... would there be any connection to such an issue?
Could be, but it's not very likely.

If you cannot reveal your code, we have to take a different route. Step one: comment everything out except for one or two simple lines that open a document. Now what happens?

By the way, can you show the last few lines of the agent, where you generate the resulting webpage? Censored of course. And what exactly do you see in the log.nsf database of the server, in the Miscellaneous section?
SOLUTION
Avatar of akhafaf
akhafaf
Flag of Saudi Arabia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@akhafaf: perhaps it may be, but we tried by removing the code the executes the agent & we still get the error. after a user sets-up the criteria; there is an ok button to show the list of data. it executes 2 lines of code:
   1- refreshes the index
   2- executes the agent.

these are legacy codes. we tried removing item 1 or item 2 and we still get the error.

@sjef_bosman: i checked the logs, it says :HTTP Web Server: Corrupt Data Exception [/xxx.nsf/xxx?OpenForm&Seq=2]

here's a snippet of the code:
// objects, variable declaration
 
Vector PrevValuesVec = new Vector();
Vector CurrValuesVec = new Vector();			
Vector SelValuesVec = new Vector();
Vector NamesVec = new Vector();
Vector ItmsVec = new Vector();
Vector HeadingsVec = new Vector();
String vals = "";
int tot = 0;
int grndTot = 0;
boolean selected = false;
 
PrintWriter oPrint = getAgentOutput();
Document CurDoc = agentContext.getDocumentContext();
Database Db = agentContext.getCurrentDatabase();
String Rpt = CurDoc.getItemValueString("Report");
	
	
// codes, picks up data from views.
 
View Vue;
if(Rpt.startsWith("Safety"))
	Rpt = CurDoc.getItemValueString("rept_type");
if (Rpt.startsWith("Accident"))
	Vue = Db.getView("ADBSPRV");
else if(Rpt.startsWith("Incident"))
	Vue = Db.getView("IDBSPRV");
else if(Rpt.startsWith("SQA"))
	Vue = Db.getView("SQADBSPRV");
else if(Rpt.startsWith("Line"))
	Vue = Db.getView("LineDBSPRV");
else 
	Vue = Db.getView("FSCDBSPRV");
DateTime FmDt ;
DateTime ToDt;
String FmDtStr = CurDoc.getItemValueString("FromDt");
String ToDtStr = CurDoc.getItemValueString("ToDt");
 
//... snipped code for data validation from the views
 
//... snipped code for loop to generate the html code

Open in new window

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
> it's been there for the last 7 years
Now THAT was essential info. It would have been nice to know that nothing changed, and that suddenly this started to occur. I assumed (wrongly as many times before) that you were in the middle of a development, and that you had problems developing a search form. If things happen out of the blue, with proven code, step 1 always is to reboot the server or restart the Domino server, to see if it happens again. I only start at step 4...

By the way, Domino appends the Seq=2 to the URL after each visit to the server to get more data for the same document/form.