Doshi Milan

Ranch Hand
+ Follow
since May 29, 2001
Merit badge: grant badges
For More
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 Doshi Milan

Thanks Paul for your reply,

I guess I have not really understood your questions or maybe I am missing something.

What is the differernce between a Primary key and an ID (assuming your id is unique and unchanging)?



We have various Generated Ids that act as Primary Key. It is <b>Different</b> from the the Composite Unique keys that we are using.

It will treat the object as an existing object is you loaded it through Hibernate.



As I mentioned earlier, the Unique key in our tables is NOT the primary key.My limited understanding states that Hibernate would have treated the object as an existing object , if and only if,the Pkey is the same. However in our case, as we genearte a new Pkey Hibernate is NOT able to LOAD based on UNIQUE keys.

Hence my original question : Can we have our saveOrUpdate to be based on the 'UNIQUE' key instead of the Pkey. Is that possible ?

Thanks,
Milan Doshi
We have a database where most of our Primary keys are IDs.

In hibernate we can easily use the saveOrUpdate(Object) method which would save or update the data. Now, we have IDs as primary keys. These IDs are genearted by Hibernate. So whenever we try to update an object(using saveOrUpdate(..) method) it will treat the object as a NEW object. Had we used some column as PKey than, I guess, we would NOT have faced this issue. But now, instead of updating an existing col, it is actually inserting a new . This is , as I mentioned above, due to the fact that Pkey is the generated id and NOT the unique key!

Thus, I wanted to know if there is any way to overcome this issue ! There is a 'Unique Key' within each table and we would rather like the AUTOMATIC saveOrUpdate to be based on this 'UNIQUE' key instead of the Pkey. Is that possible ?

Any suggestions / feedback / solution will be much appreciated. I am not sure if this is due to incorrect / poor designing of DB tables where we should have used the Unique Keys instead of IDs as Pkey...But in any case we now need to resolve this without changing any DB tables.

Thanks and regards,
Milan Doshi
Hello,

I am developing schemas and wsdl. I need to import existing schema inventory into my user defined schema . The existing inventory is our general company level inventory.

Can I put them in a JAR file and inport them ?

i.e Currently I do the following within my schema :



Instead can I refer to some JAR file ?


Kindly advice,
Thanks,
Milan
16 years ago
Hello Friends,

I have created a simple client-config.wsdd file and have the following content in it.

However it seems that the handler is just not invoked!!!

Any suggestions ?
Thanks for any inputs,
Regards,
Milan
17 years ago
Hi,

I am not much familiar with Webmethods but I know and I had created webservices in WebMethods using Flow Services and than publishing it as web service. This way WebMethods hides the complexity of Schema / WSDL from the developer.

Thus, what I would like to know is : Did you create the Schema /WSDL in webmethods or did the tool did it on ots own ? My guess would be the later and what I further guess is you just picked up that Schema and / or WSDL and tried it in some other tool. Thats ok, provided you pick up ALL relavant schemas. Just as a Java Class referring some other Java Class in some other library would require the other library to be present as well, I feel you are NOT importing ALL the schemas in your new tool.

Note : I am guessing here based on whatever information you have provided. As a thumb rule, I treat namespace issues in Schemas / wsdl like package issues in Java src code

Hope this helps...

Milan Doshi
17 years ago
Hello,

Our application, has of late started giving a weird error occasionally. It is observed that this error is thrown sometimes : org.xml.sax.SAXException: Invalid element in �. When we try to create an XML request(i.e Serialize).

I know, most common reasons would be a mismatch in Class file with respect to WSDL, or wrong entry in wsdd file etc. But this is what is happening:

�The application works most of the time and the SAX exception is NOT encountered.
�Suddenly, we see tons of these errors generated.
�We restart the server and everything looks ok, i.e the application starts working as expected. No more SAX errors...

My understanding is that:

There is NO issue with the classes generated, WSDD or the WSDL file as it works most of the time. It does NOT look like a web services related issue and hence I have not posted it in �Web servcies� forum.

Now, what I am not sure is...what prompts this very strange behaviour? Is it Serializaton issue (i.e runtime JVM) , can it be something related to our server / hardware etc? I have no clue ...

Kindly advice.

Thanks in advance,
Milan


The error stacktrace :

[code]
java.lang.reflect.InvocationTargetException: com.wellsfargo.uw.perform.EcprXmlException: org.xml.sax.SAXException: Invalid element in com.wellsfargo.service.provider.ecpr.shared.memento2004.AccountInfo_Type - rpmAccountIndicator error going to the server at com.wellsfargo.uw.perform.StreamlinedAddressChange.getSacAddresses(StreamlinedAddressChange.java:61) at java.lang.reflect.Method.invoke(Native Method) at com.epiphany.shr.ecs.access.java.JavaPort.makeCall(JavaPort.java:139) at com.epiphany.shr.ecs.components.Port.makeCall(Port.java:226) at com.epiphany.shr.ecs.components.Port.invoke(Port.java:301) at com.epiphany.shr.ecs.components.Port.invoke(Port.java:316) at com.epiphany.shr.ecs.access.eai.EAIAccess.getSyncResponseParameter(EAIAccess.java:231) at com.epiphany.shr.ecs.access.eai.EAIAccess.getSyncResponse(EAIAccess.java:135) at com.epiphany.shr.mi.webservices.WSProviderImpl.invokeMethod(WSProviderImpl.java:67) at com.epiphany.shr.mi.shr.MIProviderImpl.query(MIProviderImpl.java:363) at com.epiphany.shr.util.async.EAIRunnable.internalRun(EAIRunnable.java(Compiled Code)) at com.epiphany.shr.util.threadpool.LocalBlockingRunnableWithTimeout.run(LocalBlockingRunnableWithTimeout.java:119) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Thread.java:513)com.epiphany.shr.ecs.exceptions.EEWSRuntimeException: Exception when calling com.wellsfargo.uw.perform.StreamlinedAddressChange.null() at com.epiphany.shr.ecs.access.java.JavaPort.makeCall(JavaPort.java:142) at com.epiphany.shr.ecs.components.Port.makeCall(Port.java:226) at com.epiphany.shr.ecs.components.Port.invoke(Port.java:301) at com.epiphany.shr.ecs.components.Port.invoke(Port.java:316) at com.epiphany.shr.ecs.access.eai.EAIAccess.getSyncResponseParameter(EAIAccess.java:231) at com.epiphany.shr.ecs.access.eai.EAIAccess.getSyncResponse(EAIAccess.java:135) at com.epiphany.shr.mi.webservices.WSProviderImpl.invokeMethod(WSProviderImpl.java:67) at com.epiphany.shr.mi.shr.MIProviderImpl.query(MIProviderImpl.java:363) at com.epiphany.shr.util.async.EAIRunnable.internalRun(EAIRunnable.java(Compiled Code)) at com.epiphany.shr.util.threadpool.LocalBlockingRunnableWithTimeout.run(LocalBlockingRunnableWithTimeout.java:119) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Thread.java:513)com.epiphany.shr.ecs.access.eai.EAINoResponseReceived: Exception while invoking external system method. at com.epiphany.shr.mi.webservices.WSProviderImpl.invokeMethod(WSProviderImpl.java:70) at com.epiphany.shr.mi.shr.MIProviderImpl.query(MIProviderImpl.java:363) at com.epiphany.shr.util.async.EAIRunnable.internalRun(EAIRunnable.java(Compiled Code)) at com.epiphany.shr.util.threadpool.LocalBlockingRunnableWithTimeout.run(LocalBlockingRunnableWithTimeout.java:119) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Thread.java:513)com.epiphany.shr.data.dp.exception.DPException: Exception while performing a QUERY operation. at com.epiphany.shr.mi.shr.MIProviderImpl.query(MIProviderImpl.java:385) at com.epiphany.shr.util.async.EAIRunnable.internalRun(EAIRunnable.java(Compiled Code)) at com.epiphany.shr.util.threadpool.LocalBlockingRunnableWithTimeout.run(LocalBlockingRunnableWithTimeout.java:119) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Thread.java:513)com.epiphany.shr.ui.view.tags.EpiTagException: System exception while firing customization extensions at com.epiphany.shr.ui.view.tags.FormTag.fireExtensions(FormTag.java(Compiled Code)) at com.epiphany.shr.ui.view.tags.FormTag.doEpnyStartTag(FormTag.java(Compiled Code)) at com.epiphany.shr.ui.view.tags.EpnyBodyTagSupport.doStartTag(EpnyBodyTagSupport.java(Compiled Code)) at org.apache.jsp._Sales_5F_Detail_5F_Shell_5F_F0A6224493564E619CDF3AD54FD3301C._jspService(_Sales_5F_Detail_5F_Shell_5F_F0A6224493564E619CDF3AD54FD3301C.java:105) at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java(Compiled Code)) at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java(Compiled Code)) at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.ServicingServletState.service(StrictLifecycleServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java(Inlined Compiled Code)) at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java(Inlined Compiled Code)) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled Code)) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code)) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java(Compiled Code)) at com.epiphany.shr.ui.controller.ControllerServlet.includePage(ControllerServlet.java(Compiled Code)) at com.epiphany.shr.ui.controller.ControllerServlet.includeForm(ControllerServlet.java(Compiled Code)) at com.epiphany.shr.ui.view.tags.UseFormTag.doEpnyEndTag(UseFormTag.java(Compiled Code)) at com.epiphany.shr.ui.view.tags.EpnyBodyTagSupport.doEndTag(EpnyBodyTagSupport.java(Compiled Code)) at org.apache.jsp._root._jspService(_root.java:570) at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java(Compiled Code)) at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java(Compiled Code)) at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java(Inlined Compiled Code)) at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java(Inlined Compiled Code)) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled Code)) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code)) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java(Compiled Code)) at com.epiphany.shr.ui.controller.ControllerServlet.includePage(ControllerServlet.java(Compiled Code)) at com.epiphany.shr.ui.controller.ControllerServlet.includeScreen(ControllerServlet.java:1716) at com.epiphany.shr.ui.controller.ControllerServlet.process(ControllerServlet.java:1495) at com.epiphany.shr.ui.controller.EpnyServlet.doPost(EpnyServlet.java:531) at com.epiphany.shr.ui.controller.EpnyServlet.doPost(EpnyServlet.java:396) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at com.epiphany.shr.ui.controller.EpnyServlet.service(EpnyServlet.java:413) at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java(Inlined Compiled Code)) at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java(Inlined Compiled Code)) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled Code)) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code)) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:176) at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79) at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:201) at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71) at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114) at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186) at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334) at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56) at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java(Compiled Code)) at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:435) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
[code]
[ October 26, 2006: Message edited by: Doshi Milan ]
17 years ago
Hello,

Our application, has of late started giving a wird error oocaisonally. It is observed that this error is thrown sometimes. If the server is reatarted , this error stops.

My understanding is that :

This type of an error is usually seen when the CLASS files are NOT found by the application. I.e the application tries to parse the XML and generate a Java Object. However it DOES NOT find the required class and hence it is NOT able to parse the XML.So the question is WHY does it NOT find the class. Note : The JARS(class files) are naturally ok after a restart this issue was taken care of. So we need to find out why the server was NOT able to find the class at runtime � Maybe some issues with Class loader or can it be some other errors made the box unstable (I have never heard anything like that though).

I am posting it under websphere as I know for certain that this is NOT an issue related to classpath or JARS etc. We are using Websphere Application Server 5.0.2

Kindly advice.

Thanks for the help,
Milan

The error stacktrace :








java.lang.reflect.InvocationTargetException: com.wellsfargo.uw.perform.EcprXmlException: org.xml.sax.SAXException: Invalid element in com.wellsfargo.service.provider.ecpr.shared.memento2004.AccountInfo_Type - rpmAccountIndicator error going to the server at com.wellsfargo.uw.perform.StreamlinedAddressChange.getSacAddresses(StreamlinedAddressChange.java:61) at java.lang.reflect.Method.invoke(Native Method) at com.epiphany.shr.ecs.access.java.JavaPort.makeCall(JavaPort.java:139) at com.epiphany.shr.ecs.components.Port.makeCall(Port.java:226) at com.epiphany.shr.ecs.components.Port.invoke(Port.java:301) at com.epiphany.shr.ecs.components.Port.invoke(Port.java:316) at com.epiphany.shr.ecs.access.eai.EAIAccess.getSyncResponseParameter(EAIAccess.java:231) at com.epiphany.shr.ecs.access.eai.EAIAccess.getSyncResponse(EAIAccess.java:135) at com.epiphany.shr.mi.webservices.WSProviderImpl.invokeMethod(WSProviderImpl.java:67) at com.epiphany.shr.mi.shr.MIProviderImpl.query(MIProviderImpl.java:363) at com.epiphany.shr.util.async.EAIRunnable.internalRun(EAIRunnable.java(Compiled Code)) at com.epiphany.shr.util.threadpool.LocalBlockingRunnableWithTimeout.run(LocalBlockingRunnableWithTimeout.java:119) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Thread.java:513)com.epiphany.shr.ecs.exceptions.EEWSRuntimeException: Exception when calling com.wellsfargo.uw.perform.StreamlinedAddressChange.null() at com.epiphany.shr.ecs.access.java.JavaPort.makeCall(JavaPort.java:142) at com.epiphany.shr.ecs.components.Port.makeCall(Port.java:226) at com.epiphany.shr.ecs.components.Port.invoke(Port.java:301) at com.epiphany.shr.ecs.components.Port.invoke(Port.java:316) at com.epiphany.shr.ecs.access.eai.EAIAccess.getSyncResponseParameter(EAIAccess.java:231) at com.epiphany.shr.ecs.access.eai.EAIAccess.getSyncResponse(EAIAccess.java:135) at com.epiphany.shr.mi.webservices.WSProviderImpl.invokeMethod(WSProviderImpl.java:67) at com.epiphany.shr.mi.shr.MIProviderImpl.query(MIProviderImpl.java:363) at com.epiphany.shr.util.async.EAIRunnable.internalRun(EAIRunnable.java(Compiled Code)) at com.epiphany.shr.util.threadpool.LocalBlockingRunnableWithTimeout.run(LocalBlockingRunnableWithTimeout.java:119) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Thread.java:513)com.epiphany.shr.ecs.access.eai.EAINoResponseReceived: Exception while invoking external system method. at com.epiphany.shr.mi.webservices.WSProviderImpl.invokeMethod(WSProviderImpl.java:70) at com.epiphany.shr.mi.shr.MIProviderImpl.query(MIProviderImpl.java:363) at com.epiphany.shr.util.async.EAIRunnable.internalRun(EAIRunnable.java(Compiled Code)) at com.epiphany.shr.util.threadpool.LocalBlockingRunnableWithTimeout.run(LocalBlockingRunnableWithTimeout.java:119) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Thread.java:513)com.epiphany.shr.data.dp.exception.DPException: Exception while performing a QUERY operation. at com.epiphany.shr.mi.shr.MIProviderImpl.query(MIProviderImpl.java:385) at com.epiphany.shr.util.async.EAIRunnable.internalRun(EAIRunnable.java(Compiled Code)) at com.epiphany.shr.util.threadpool.LocalBlockingRunnableWithTimeout.run(LocalBlockingRunnableWithTimeout.java:119) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Thread.java:513)com.epiphany.shr.ui.view.tags.EpiTagException: System exception while firing customization extensions at com.epiphany.shr.ui.view.tags.FormTag.fireExtensions(FormTag.java(Compiled Code)) at com.epiphany.shr.ui.view.tags.FormTag.doEpnyStartTag(FormTag.java(Compiled Code)) at com.epiphany.shr.ui.view.tags.EpnyBodyTagSupport.doStartTag(EpnyBodyTagSupport.java(Compiled Code)) at org.apache.jsp._Sales_5F_Detail_5F_Shell_5F_F0A6224493564E619CDF3AD54FD3301C._jspService(_Sales_5F_Detail_5F_Shell_5F_F0A6224493564E619CDF3AD54FD3301C.java:105) at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java(Compiled Code)) at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java(Compiled Code)) at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.ServicingServletState.service(StrictLifecycleServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java(Inlined Compiled Code)) at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java(Inlined Compiled Code)) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled Code)) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code)) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java(Compiled Code)) at com.epiphany.shr.ui.controller.ControllerServlet.includePage(ControllerServlet.java(Compiled Code)) at com.epiphany.shr.ui.controller.ControllerServlet.includeForm(ControllerServlet.java(Compiled Code)) at com.epiphany.shr.ui.view.tags.UseFormTag.doEpnyEndTag(UseFormTag.java(Compiled Code)) at com.epiphany.shr.ui.view.tags.EpnyBodyTagSupport.doEndTag(EpnyBodyTagSupport.java(Compiled Code)) at org.apache.jsp._root._jspService(_root.java:570) at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java(Compiled Code)) at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java(Compiled Code)) at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java(Inlined Compiled Code)) at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java(Inlined Compiled Code)) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled Code)) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code)) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java(Compiled Code)) at com.epiphany.shr.ui.controller.ControllerServlet.includePage(ControllerServlet.java(Compiled Code)) at com.epiphany.shr.ui.controller.ControllerServlet.includeScreen(ControllerServlet.java:1716) at com.epiphany.shr.ui.controller.ControllerServlet.process(ControllerServlet.java:1495) at com.epiphany.shr.ui.controller.EpnyServlet.doPost(EpnyServlet.java:531) at com.epiphany.shr.ui.controller.EpnyServlet.doPost(EpnyServlet.java:396) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at com.epiphany.shr.ui.controller.EpnyServlet.service(EpnyServlet.java:413) at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java(Inlined Compiled Code)) at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java(Inlined Compiled Code)) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled Code)) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code)) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:176) at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79) at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:201) at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71) at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114) at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186) at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334) at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56) at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java(Compiled Code)) at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:435) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
17 years ago
Thanks everyone for valuable inputs, the Profiler has been installed and hopefully provide more information.

Regards,
Milan
17 years ago
Hi,

Of late we are facing Memory issues in our application. We have therfore enabled logs pertaining to Garbage Collection.We seem to have some heap memory issues. This is what we see in the GC logs :

<GC(2): GC cycle started Thu Sep<b> 21 02:03:01 2006</b>
<GC(2): freed 197316040 bytes, <b>87% free (233948016/268433920)</b>, in 247 ms>
<GC(2): mark: 45 ms, sweep: 11 ms, compact: 191 ms>
<GC(2): refs: soft 0 (age >= 32), weak 2, final 1222, phantom 0>
<GC(2): moved 579187 objects, 32745528 bytes, reason=4, used 13400 more bytes>

<AF[2]: Allocation Failure. need 65072 bytes, 29103 ms since last AF>
<AF[2]: managing allocation failure, action=1 (160408/265288192) (3145728/3145728)>
<GC(43): GC cycle started Thu Sep <b>21 02:03:21</b> 2006
<GC(43): freed 162749952 bytes,<b> 61% free </b>(166056088/268433920), in 126 ms>
<GC(43): mark: 110 ms, sweep: 16 ms, compact: 0 ms>
<GC(43): refs: soft 0 (age >= 32), weak 0, final 40, phantom 0>
<AF[2]: completed in 126 ms>

<AF[3]: Allocation Failure. need 32 bytes, 15490 ms since last AF>
<AF[3]: managing allocation failure, action=1 (0/265288192) (3145728/3145728)>
<GC(44): GC cycle started Thu Sep <b>21 02:03:37 </b>2006
<GC(44): freed 126280056 bytes, <b>48% free </b>(129425784/268433920), in 171 ms>
<GC(44): mark: 153 ms, sweep: 18 ms, compact: 0 ms>
<GC(44): refs: soft 0 (age >= 32), weak 2, final 144, phantom 0>
<AF[3]: completed in 172 ms>

<AF[6]: Allocation Failure. need 65072 bytes, 2313 ms since last AF>
<AF[6]: managing allocation failure, action=2 (49851136/268433920)>
<GC(47): GC cycle started Thu Sep <b>21 02:03:49 </b>2006
<GC(47): freed 60613344 bytes, <b>41% free</b> (110464480/268433920), in 200 ms>
<GC(47): mark: 176 ms, sweep: 24 ms, compact: 0 ms>
<GC(47): refs: soft 0 (age >= 32), weak 0, final 398, phantom 0>
<AF[6]: managing allocation failure, action=3 (110464480/268433920)>
<GC(47): need to expand mark bits for 315423232-byte heap>
<GC(47): expanded mark bits by 737280 to 4931584 bytes>
<GC(47): need to expand alloc bits for 315423232-byte heap>
<GC(47): expanded alloc bits by 737280 to 4931584 bytes>
<GC(47): need to expand FR bits for 315423232-byte heap>
<GC(47): expanded FR bits by 1470464 to 9859072 bytes>
<GC(47): expanded heap by 46989312 to 315423232 bytes, 49% free, ratio:0.211>


<AF[12]: Allocation Failure. need 98320 bytes, 984 ms since last AF>
<AF[12]: managing allocation failure, action=2 (106268536/370670080)>
<GC(53): GC cycle started Thu Sep <b>21 02:03:58 </b>2006
<GC(53): freed 39422592 bytes, <b>39% free </b>(145691128/370670080), in 214 ms>
<GC(53): mark: 191 ms, sweep: 23 ms, compact: 0 ms>
<GC(53): refs: soft 0 (age >= 6), weak 0, final 1, phantom 0>
<AF[12]: managing allocation failure, action=3 (145691128/370670080)>
<GC(53): need to expand mark bits for 435550720-byte heap>
<GC(53): expanded mark bits by 1015808 to 6807552 bytes>
<GC(53): need to expand alloc bits for 435550720-byte heap>
<GC(53): expanded alloc bits by 1015808 to 6807552 bytes>
<GC(53): need to expand FR bits for 435550720-byte heap>
<GC(53): expanded FR bits by 2027520 to 13611008 bytes>
<GC(53): expanded heap by 64880640 to 435550720 bytes, <b>48% free<b>, ratio:2.054>
<AF[12]: completed in 285 ms>

I am more of a Java Webservices Developer rather than system's guy but I need to ascertain some facts.

1. Why does the GC run so often ?
2. What we are seeing right now is just at server startup our Application has yet NOT started consuming memory. So, do we think our startup Heap memory should be more ?
3. We see such logs all over in our logs. What does that indicate, should we target the application code (that Developers have written) or it maybe related to Settings in the server , memory in the box etc?

While we are debugging the application code to see that most of the objects are released as soon as possible, what are the other steps to be taken ?

Thanks for all help,
Regards,
Milan
17 years ago
Thanks for all for the valued suggestions.

I agree that it maybe due to the style of coding. Now, our project is over two years old and developed by over 20 different developers. So... the million dollar question is.....

How do we know what code is the Culprit...
How do we know WHICH are the OBJECTS that are NOT being released...
Are there any tools for it ? Can Java Profilier point us to the object which is causing the issue ?If not, which other tool ?

Thanks,
Milan Doshi
17 years ago
We are having OutOfMemory issues in our appllication.

The logs points to Heap Size issue :

<AF[7380]: Allocation Failure. need 3276816 bytes, 108 ms since last AF>
<AF[7380]: managing allocation failure, action=2 (274822776/1073740288)>
<GC(7420): GC cycle started Thu Sep 14 13:39:32 2006
<GC(7420): freed 14574792 bytes, 26% free (289397568/1073740288), in 4835 ms>
<GC(7420): mark: 1165 ms, sweep: 39 ms, compact: 3631 ms>
<GC(7420): refs: soft 0 (age >= 32), weak 0, final 16, phantom 0>
<GC(7420): moved 2372574 objects, 106665600 bytes, reason=1, used 13592 more bytes>
<AF[7380]: managing allocation failure, action=3 (289397568/1073740288)>
<AF[7380]: managing allocation failure, action=4 (289397568/1073740288)>
<AF[7380]: clearing all remaining soft refs>
<GC(7421): GC cycle started Thu Sep 14 13:39:33 2006
<GC(7421): freed 77864 bytes, 26% free (289475432/1073740288), in 1195 ms>
<GC(7421): mark: 1158 ms, sweep: 37 ms, compact: 0 ms>
<GC(7421): refs: soft 17 (age >= 32), weak 0, final 1, phantom 0>
<GC(7422): GC cycle started Thu Sep 14 13:39:38 2006
<GC(7422): freed 14520 bytes, 26% free (289489952/1073740288), in 4542 ms>
<GC(7422): mark: 1158 ms, sweep: 36 ms, compact: 3348 ms>
<GC(7422): refs: soft 0 (age >= 32), weak 0, final 0, phantom 0>
<GC(7422): moved 286669 objects, 12860328 bytes, reason=1, used 40 more bytes>
<AF[7380]: managing allocation failure, action=6 (289489952/1073740288)>
<AF[7380]: totally out of heap space>
<AF[7380]: completed in 10577 ms>


1. Any idea what should be the next steps for us ?
2. On reseraching the internet, many things points to 'Connection Pooling' , recordset etc but that does not seem to be an issue in our case.


Any inputs to where should we be targetting next ?

All help appreciated.

Thanks,
Milan
17 years ago
Hi,

In our apllication we read files of 8 MB and images / PDF's of similar size. We need to have some of them atleast as an Object in Memory to work on them.

We have a Heap size allocation of 1 GB and RAM of 4 GB. Would this be an issue ?

What is normal in Java world as far the Object size is concerned ?

Thanks for any insight,
Milan
17 years ago
Vinod,

Such errors are usually caised due to :

Mismatch in Schemas that were used to generate the client Vis a Vis the Schemas that were used to create the Webservice.

Most likely cause of this error are your Schema Files, else your client program does not have the correct(updated) Schemas.

Thanks,
18 years ago
Hi,
The other contendor for SOAP Stacks would be Systinet WASP.
Also Webmethods have come out with webmethods Glue. But Systinet is used by many developers.Systiner , however , is not free (apart from the trial version).
Thanks,
MIlan Doshi
20 years ago
Hi,
I am not sure what is your platform but for basic understanding:
A very helpful link to start with Axis- Tomcat.
http://javaboutique.internet.com/tutorials/Axis2/
It also has its own code which you can download and deploy for quicker understanding.
I can give more suggestion but I am confused as to which is the platform that you want to work on.
Hope this helps,
Milan Doshi
[ April 06, 2004: Message edited by: Doshi Milan ]
20 years ago