File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Not merging post parameters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Not merging post parameters" Watch "Not merging post parameters" New topic

Not merging post parameters

siva ram

Joined: Nov 10, 2005
Posts: 4
Please note that I am facing some issues in my application. From the weblogic log files, the following is the warning.

####<Nov 16, 2005 11:40:45 AM GMT> <Warning> <HTTP> <host> <myserver1> <ExecuteThread: '5' for queue: 'default'> <kernel identity> <> <101
138> <ServletContext(id=3545093,name=MyWebApp.war,context-path=/myContext) One of the getParameter family of methods called after reading fr
om the ServletInputStream, not merging post parameters>
This warning is occuring continuously
I guess the parameters posted are not retrieved properly. Due to this when the parameters are made use of , we get exceptions.

I will be greatful if any assistance is provided in the matter.

Thanks in advance.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Are you actually calling request.getInputStream?

I don't think you can call both getInputStream and use getProperty with the same request. Many servlet engines delay the parsing of th input stream until it's actually going to be used (when someone calles getProperty) becuase parsing it can be expensive.

See if you're trying to do both with the same request.
You'll probably need to restructure your code to do one or the other.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63837

"siva r",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Forum Bartender

[Asking smart questions] [About Bear] [Books by Bear]
siva ram

Joined: Nov 10, 2005
Posts: 4
Please note that I am not using request.getInputStream or request.getParameter.
Actually we are using a struts application. We are only getting the session from the request.
HttpSession ses=req.getSession(false);

I agree. Here's the link:
subject: Not merging post parameters
It's not a secret anymore!