Shivashankar Gurumurthy

Greenhorn
+ Follow
since Feb 26, 2005
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 Shivashankar Gurumurthy

I have a website running on struts,weblogic and iplanet sun one webserver. I got a new requirement to do from an SEO perspective. The URL in the address bar of my website needs to be always the same irrepective of the page its navigated to. I mean for example it needs to be always www.google.com irrespective of whatever search results are shown in the body. I dont want to use Frames as that would lead to SEO problems. can some one help?
15 years ago
JSP
thanks. I am facing the issues that you have told me
16 years ago
I am using my own custom layout using insets and spacing to display a dynamic object to the screen. I am not getting scroll bar when i use my own layout. Any pointers available?

public Sample(String displayName) {

frame = new JFrame("DisplayObjectTree");
Insets frameInsets = frame.getInsets();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
menuPanel = new JPanel();
menuPanel.setLayout(null);
insets = menuPanel.getInsets();
verticalPane = new JScrollPane(menuPanel,JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
frame.getContentPane().add(verticalPane);
frame.pack();
frame.setVisible(true);


}


I am parsing the dynamic object and adding them to the menupanel using the insets obtained from panel. In turn menu panel is going into scroll pane which is going into frame.

The problem is when i set the layout to null to override the default settings of panel scroll bar is not coming.
16 years ago
Hi
This problem will occur if there is a intervening firewall/proxy server between your websphere environment and remote server. Please check that out
17 years ago
Hi
Please let me know the answers for the following. If this has already been discussed then please let me know of the link.

1.What is Connection pooling?
2.Who manages the pool of connections?
Hi All
Thanks everyone for your prompt and patient replies
17 years ago
Hi
I want to know answers for the following questions. Anybody please help me out in this regard.
1)How would garbage collection work on the static variables
2)Will the static variables be garbage collected at all?

Thanks
Shiva
17 years ago
I want to create a SOAPFaultException of my own and throw it. I had set the code,string and actor attributes into the new class without a problem. but when i am trying to create a Detail object i am getting a null pointer exception from the server.

I am trying to do all these things in WSAD.

Yesterday i saw a page in developer works in which people were having problem in creating a detail entry. But in my case creating a detail object itself is throwing a null pointer

For your information the code is well checked and i am not the cause for that

Please advise.

the code ......

javax.xml.soap.SOAPFactory soapFactory = javax.xml.soap.SOAPFactory.newInstance();

javax.xml.soap.Detail detail = javax.xml.soap.soapFactory.createDetail();
18 years ago
Hi
Check the way your query is made. There is no space between table name "Student" and values. When you are concatenating those 2 strings the resulting query will look like

"insert into [B]studentvalues[/B]........."

Everything else in the code looks fine

One more thing is that print the stack trace in the exception block to get more information.
Hi,
This is my problem.
I try to throw a new SOAPFult exception from my catch block. I went to the site that is mentioned in your reply. i am throwing an exception in the same way the site is telling one to do. I created a detail object in order to place my fault detail inside that. Then in order to check whether exception is thrown atleast with a empty detail in it i tested the app. It is throwing a null pointer exception as shown in stack trace. if i throw a SOAPFult exception with detail as null it works. but the moment i create a detail object (in the sense only the detail creation code is present and no values are added to the detail) i get a null pointer generated from somewhere inside the auto generated system classes.
Please advise.
18 years ago

Originally posted by shivashankar gurumurthy:
I want to throw a customised soap fault exception from my code. I have the fault code , fault string, fault actor and fault detail to be set in that. When i create a detail object and test my application i am getting a null pointer exception.

I am developing a webservice in WSAD. Can anybody help me out by telling how to create a detail object and set my fault detail into that and throw a new soap fault exception with those 4 arguements. If there is any previous thread running about this then somebody please let me know.

The stack trace follows

[3/10/06 23:23:03:170 IST] 5faa5faa WebServicesSe E com.ibm.ws.webservices.engine.transport.http.WebServicesServlet WSWS3227E: Error: Exception:
[3/10/06 23:23:03:217 IST] 5faa5faa WebServicesSe E com.ibm.ws.webservices.engine.transport.http.WebServicesServlet TRAS0014I: The following exception was logged WebServicesFault
faultCode: Server.generalException
faultString: com.ibm.ws.webservices.engine.InternalException: java.lang.NullPointerException
faultActor: null
faultDetail:

com.ibm.ws.webservices.engine.InternalException: java.lang.NullPointerException
com.ibm.ws.webservices.engine.InternalException: java.lang.NullPointerException
at java.lang.Throwable.<init>(Throwable.java)
at java.lang.Throwable.<init>(Throwable.java)
at com.ibm.ws.webservices.engine.InternalException.<init>(InternalException.java:132)
at com.ibm.ws.webservices.engine.xmlsoap.SOAPElement.asSOAPElement(SOAPElement.java)
at com.ibm.ws.webservices.engine.xmlsoap.SOAPElement.getChildElements(SOAPElement.java:503)
at com.ibm.ws.webservices.engine.xmlsoap.Detail.getDetailEntries(Detail.java:127)
at com.ibm.ws.webservices.engine.WebServicesFault.<init>(WebServicesFault.java:238)
at com.ibm.ws.webservices.engine.WebServicesFault.makeFault(WebServicesFault.java:147)
at com.ibm.ws.webservices.engine.providers.java.JavaProvider.invoke(JavaProvider.java:294)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:212)
at com.ibm.ws.webservices.engine.handlers.WrappedHandler.invoke(WrappedHandler.java:61)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:212)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:212)
at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:255)
at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.doPost(WebServicesServlet.java:850)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at com.ibm.ws.webservices.engine.transport.http.WebServicesServletBase.service(WebServicesServletBase.java:341)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:948)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:530)
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:610)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:431)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
.




Hi,

I have done this already, but i got NullPointerException while creating Detail object even with any single element added to it. Is it a problem with IBM Websphere server?. if so then is there any other way round to get it done??
18 years ago
I want to throw a customised soap fault exception from my code. I have the fault code , fault string, fault actor and fault detail to be set in that. When i create a detail object and test my application i am getting a null pointer exception.

I am developing a webservice in WSAD. Can anybody help me out by telling how to create a detail object and set my fault detail into that and throw a new soap fault exception with those 4 arguements. If there is any previous thread running about this then somebody please let me know.

The stack trace follows

[3/10/06 23:23:03:170 IST] 5faa5faa WebServicesSe E com.ibm.ws.webservices.engine.transport.http.WebServicesServlet WSWS3227E: Error: Exception:
[3/10/06 23:23:03:217 IST] 5faa5faa WebServicesSe E com.ibm.ws.webservices.engine.transport.http.WebServicesServlet TRAS0014I: The following exception was logged WebServicesFault
faultCode: Server.generalException
faultString: com.ibm.ws.webservices.engine.InternalException: java.lang.NullPointerException
faultActor: null
faultDetail:

com.ibm.ws.webservices.engine.InternalException: java.lang.NullPointerException
com.ibm.ws.webservices.engine.InternalException: java.lang.NullPointerException
at java.lang.Throwable.<init>(Throwable.java)
at java.lang.Throwable.<init>(Throwable.java)
at com.ibm.ws.webservices.engine.InternalException.<init>(InternalException.java:132)
at com.ibm.ws.webservices.engine.xmlsoap.SOAPElement.asSOAPElement(SOAPElement.java)
at com.ibm.ws.webservices.engine.xmlsoap.SOAPElement.getChildElements(SOAPElement.java:503)
at com.ibm.ws.webservices.engine.xmlsoap.Detail.getDetailEntries(Detail.java:127)
at com.ibm.ws.webservices.engine.WebServicesFault.<init>(WebServicesFault.java:238)
at com.ibm.ws.webservices.engine.WebServicesFault.makeFault(WebServicesFault.java:147)
at com.ibm.ws.webservices.engine.providers.java.JavaProvider.invoke(JavaProvider.java:294)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:212)
at com.ibm.ws.webservices.engine.handlers.WrappedHandler.invoke(WrappedHandler.java:61)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:212)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:212)
at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:255)
at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.doPost(WebServicesServlet.java:850)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at com.ibm.ws.webservices.engine.transport.http.WebServicesServletBase.service(WebServicesServletBase.java:341)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:948)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:530)
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:610)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:431)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
.
18 years ago