Farouk Sherefudheen

Ranch Hand
+ Follow
since Jan 27, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Farouk Sherefudheen

I tried setting in session in action but when i retrieve and iterate over the session attributes inside my begin or test method in cactus i cannot find the set attributes. This is my problem can you help plz

Also what codes you need ?
16 years ago
Anyone please help>?
16 years ago
But i found in a document that if you enable session support on the server group for session management even if you dont create one, a default one will exist for the container to perform session management
Regards
Farouk
16 years ago
Dear friends
In websphere does a session exist for request even if there is no state stored on the session

Please help
Thanks
Farouk
16 years ago
Hello Friends
I have a cactus suite of test with some data alreadyy in the code. So now I am trying to refactor it so I can put in a html screen where the user enters the data and i validate it using struts and if everything is ok i forward the request to cactus test suite.

Basically till action i have the data and I set in request as a attibute but when it reaches the test sute the request attributes are lost can you please help or suggest me a way to customize these cactus tests by dynamic data.

Regards
Farouk
16 years ago
Also
I am using JPROBE and got an estimate of heap sizes. What i did was execute certain transactions right after begining the server till I have exected few use cases. Like add , search, view and update and delete use cases.
All of this i have done as one single stretch without requesting garbage collection and garbage collection happens when jvm wants. Do you think this is the right approach to get the heap sizes
Regards
Farouk
16 years ago
Thanks
I understand your concern, I am running this test from my pc inside wsad trying to get an estimate of the session size for a single user session,
Can you tell me what to do get the heap size associated with the session.
Any code samples would be nice..
Thanks
Farouk
16 years ago
Thanks for all your replies, if I understand correct it is the size of the references used in the session object and not the size of objects stored in the heap.

How can I find out the size of objects in heap, do I have to get each attribute from the session, find its type and then based on that calculate the size of heap?
16 years ago
Hello Friends
I use the following code to get a indication about the persistant usage of
Session Memory
Now my question is does the serialized bytes represent the size of references or the size of the session object or the reference to session


ByteArrayOutputStream out = null;
try{
out = new ByteArrayOutputStream();
ObjectOutputStream stream = new ObjectOutputStream(out);
stream.writeObject(request.getSession());
stream.flush();
}catch (IOException e){
log.error("Exception while retrieving size " + e);
}
log.debug("Total session size is : " + out.size() + "bytes");

Please reply
Thanks
Farouk
16 years ago
Sorry wrong message
Help is much appreciated

Farouk
16 years ago
Thanks very much your help was much appreciated
It works now....
16 years ago
Can anyone help plze
16 years ago
Finally now in the action foward i am able to find the servlet and load it as it has not implemented doPost method, i am getting the following error message

Error 405: HTTP method POST is not supported by this URL

Question:
1. Why does it invoke a POST method for loading this servlet from action method.
2. Is there any way to convert it as GET

Thanks
Would appreciate
Farouk
16 years ago
Thanks for your reply
I do appreciate it.
I get this error now. It is not able to find the servlet to be loaded it is defined in the Web.xml
and when we use the link pointing to this URL it is able to load it.


Error 404: File not found: AutomaticEventEARWeb/ServletTestRunner
Please help
16 years ago
This is what i get if i do what you asked me to do.
[05/04/05 15:55:03:891 BST] 754ac7a4 WebGroup X Servlet Error: Configuration is frozen: java.lang.IllegalStateException: Configuration is frozen
at org.apache.struts.config.ForwardConfig.setPath(ForwardConfig.java:208)
at com.rbsg.cesev.application.cqms.client.create.test.CQMSAction.execute(CQMSAction.java:48)
at org.apache.struts.action.RequestProcessor.processActionPerform
RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService
ServletManager.java:827)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)
at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110)
at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:678)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:331)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:117)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:134)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:239)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:151)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:315)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:323)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:137)
16 years ago