Sonara Rahul

Ranch Hand
+ Follow
since Jul 07, 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 Sonara Rahul

I'm trying to access this url
<a href="http://s.mappoint.net/mappoint-30</b rel="nofollow">" target="_blank">http://s.mappoint.net/mappoint-30



The error comes here[/B]


I have a clarification the url taht I mentioned above
"http://s.mappoint.net/mappoint-30" is not getting accessed directly in the browser.Is this a problem??If so what should be done to acess it.

[ May 29, 2007: Message edited by: Sonara Rahul ]
[ May 29, 2007: Message edited by: Sonara Rahul ]
16 years ago
Hi Everybody,

I'm new to Axis.We are trying out a sample application with mappoint and axis.Actually I get the following exception while trying to invoke getCommonServiceSoap() method.Till before this line of code the connection is fine and I can set the username & password and retrieve the same. But while invoking this method I get the exception.
I tried including client-config.wsdd in classpath as well as jar file.But still its not working. Please help me to solve this issue,because our upload date is near.
((net.mappoint.s.FindServiceSoapStub)findService).getUsername();-->1234 [5/29/07 13:49:46:699 IST] 6d09ab6e SystemOut O ((net.mappoint.s.FindServiceSoapStub)findService).getUsername();-->1234 [5/29/07 13:50:09:294 IST] 6d09ab6e enterprise I org.apache.axis.enterprise Mapping Exception to AxisFault [5/29/07 13:50:09:309 IST] 6d09ab6e enterprise I org.apache.axis.enterprise TRAS0014I: The following exception was logged AxisFault faultCode: {http://xml.apache.org/axis/}Server.userException faultString: java.net.SocketException: Operation timed out: connect:could be due to invalid address faultActor: null faultDetail: stackTrace: java.net.SocketException: Operation timed out: connect:could be due to invalid address at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:331) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:196) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183) at java.net.Socket.connect(Socket.java:478) at java.net.Socket.connect(Socket.java:428) at java.net.Socket.<init>(Socket.java:335) at java.net.Socket.<init>(Socket.java:150) at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:86) at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:651) at org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2630) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1065) at org.apache.axis.transport.http.CommonsHTTPSender.invoke(CommonsHTTPSender.java:130) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:182) at org.apache.axis.client.Call.invokeEngine(Call.java:2113) at org.apache.axis.client.Call.invoke(Call.java:2102) at org.apache.axis.client.Call.invoke(Call.java:1851) at org.apache.axis.client.Call.invoke(Call.java:1777) at org.apache.axis.client.Call.invoke(Call.java:1315) at net.mappoint.s.FindServiceSoapStub.findAddress(FindServiceSoapStub.java:1232) at org.apache.jsp._Result._jspService(Result.jsp :113) at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:683) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:781) 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:1019) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:592) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:204) at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:125) at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:286) at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71) at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116) 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:615) at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:449) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:912) java.net.SocketException: Operation timed out: connect:could be due to invalid address at org.apache.axis.AxisFault.makeFault(AxisFault.java:120) at org.apache.axis.transport.http.CommonsHTTPSender.invoke(CommonsHTTPSender.java:200) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156) Thanks, Sonara
16 years ago
Hi All,

The below code is working fine in a DynamicProject created in RAD.But in portlet project its not working.I'm getting null pointer exception for httpresponse,so I made it static.BUt still even though i get httpservletresponse instance I'm getting null pointer exception in getting servletoutputstream.
I had used externalcontext but still I get null pointer exception while trying to get ServletoutputStream instance.

My requirement is when I click on the command button or commandLink I'm calling a method which converts byte array to filetype specified.But I get null pointer exception when I try to get servletoutputstream.If someone has faced the same pbm and got the solution please let me know.
I'm posting my code here.

public void doClickAction(ActionEvent event)
{
try {
File f=new File("c:\\test.html");
HttpServletResponse httpServletResponse= FacesContext.getCurrentInstance().getExternalContext().getResponse();
ServletOutputStream servletOutputStream = httpServletResponse.getOutputStream();
httpServletResponse.setHeader("Content-disposition", "attachment; filename=" +"test.html");
httpServletResponse.setContentLength((int) f.length());
httpServletResponse.setContentType("application/x-download");
servletOutputStream.write(getBytesFromFile(f));
} catch (IOException e) {
e.printStackTrace();
}
FacesContext.getCurrentInstance().responseComplete();
}

Thanks,
Sonara.
17 years ago
Hi All,

The below code is working fine in a DynamicProject created in RAD.But in portlet project its not workign.I'm getting null pointer exception for httpresponse,so I made it static in SessionHelper class.Now I get null pointer exception while trying to get ServletoutputStream instance.

My requirement is when I click on the command button or commandLink I'm calling a method which converts byte array to filetype specified.But I get null pointer exception when I try to get servletoutputstream.If someone has faced the same pbm and got the solution please let me know.
I'm posting my code here.





JSF



[/nobr]




Is that something to be added to faces config or where does I go wrong.
PLease help me to solve this pbm.

Thanks,
Sonara.
[ April 05, 2006: Message edited by: Sonara Rahul ]
17 years ago
JSF
Hello Mr.jamie Robertson,
Thx once again for ur other reply.The specified statement also I have tried,pstatement.executeUpdate();But still I get the error. ((

Hope u wuld tell me some other solution.
Thanks & Regards,
Sonara.
Hello Mr.jamie Robertson,
Thanks for ur reply.
But still I have my server running properly & is able to handle other request.I dont establish connection at that time its already established & also queries are already made,which worked fine.
This exception occurs only if I do some insert statements,& if the query is of select like that sort it works fine in the same regard.
So what culd be the problem.
Expecting ur reply,
Sonara.
Hello Mr.Sanjeev Kaushik,
Here is the part of my code where I like to insert records in the loop.
/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/
Vector getvector=new Vector();
int transMaxId=0;
String query="insert into Sample(id,name,no) values(?,?,?)";
PreparedStatement pstatement=igeteniv.getPreparedStatement(query);
int vecsize=getvector.size();
Vector internal=new Vector();
internal=getvector;
for(int i=0;i<vecsize;i++)
{
transMaxId=transMaxId+1;
try {
pstatement.setInt(1,transMaxId);
pstatement.setString(2,internal.get(i).toString());
pstatement.setString(3,"1");
pstatement.addBatch();
int[] ss=pstatement.executeBatch();
} catch (SQLException e) {
e.printStackTrace();
}
}
/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/
Still the code works fine without connection reset error,if the query is SELECT.Hope U wuld reply.
Thanks & Regards,
Sonara.
Dear Friends,
Culd U please help me out in this regard.
I Update database(pointbase) by inserting few records through Jdbc statements.
When execute select statements I don't get this exception,but when I try to insert records I get this exception.
[java] java.net.SocketException: Connection reset by peer: socket write err
[java] at java.net.SocketOutputStream.socketWrite0(Native Method)
[java] at java.net.SocketOutputStream.socketWrite(SocketOutputStream.ja
92)
[java] at java.net.SocketOutputStream.write(SocketOutputStream.java:126
[java] at com.sun.net.ssl.internal.ssl.OutputRecord.a(DashoA6275)
[java] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
[java] at com.sun.net.ssl.internal.ssl.AppOutputStream.flush(DashoA6275
[java] at com.sun.net.ssl.internal.ssl.AppOutputStream.close(DashoA6275
[java] at org.mortbay.http.NullableOutputStream.destroy(NullableOutputS
am.java:81)
[java] at org.mortbay.http.HttpOutputStream.destroy(HttpOutputStream.ja
390)
[java] at org.mortbay.http.HttpConnection.destroy(HttpConnection.java:1
)
[java] at org.mortbay.http.HttpConnection.handle(HttpConnection.java:81
[java] at org.mortbay.http.SocketListener.handleConnection(SocketListen
java:196)
[java] at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:28
[java] at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:48

People who have come across such an exception ,please do reply me with solutions or cause for it.
Expecting ur reply,
Thanks & Regards,
Sonara.
Dear Lasse Koskela,
Thx for ur reply.Could u please explain it how it culd be done with some samples.
Expecting ur reply,
Sonara.
20 years ago
Dear Friends,
I have deployed my web services using WSDD.I have 2 classes class1 & class2.
Here is the sample of classes.
package pck1;
public class Class1 {
private int no; private int val;
public Class1(){
}
public void setno(int no){
this.no=no;}
public int getno(){
return no;}
public void setval(int val){
this.val=val;}
public int getval(){
return val;}
}
package pck1;
public class Class2 {
private int no; private int val;
public Class2(){
}
public void setno(int no){
this.no=no;}
public int getno(){
return no;}
public void setval(int val){
this.val=val;}
public int getval(){
return val;}
}
and I have an interface
package pck1;
import java.util.List;
public interface Interface1 {
public List getValues();
public Class2 synchronizeAccounts(Class1 c1); }

After deployment of web services & generated the stubs.But the client is not able to access the methods specified in the interface.But the client culd access the methods in class1 & class2.
So culd u pl.. help me out in this regard,to that I shuld be able to access the mtds in the interface which doesn't have java data types as parameters.
Excepting ur replies,
Regards,
Sonara.
Class1Class2
20 years ago
Hello Friends,
I ahve a problem in retriving the height of JTextpane for which I ahve set JScrollPane.
From the JScrollPane method I get the height as follows:
JScrollPane jsp=new JScrollpane(JTextPane);
Dimension dim=jsp.getViewport().getViewSize();
int hei=(int)dim.getHeight();

The height I get differs in j2sdk1.4.0_01 & j2sdk1.4.1_02.
The height I get is correct in j2sdk1.4.0_01 but in j2sdk1.4.1_02 it is very greater than j2sdk1.4.0_01 which is ofcourse wrong.
Culd u please help me out in this regard.
Regards,
Sonara.
20 years ago
Hi Friends,
How could I the sentence line by line in JTextPane.
I have set a html content say for exampl
<html>This is my first line.df d dsfs dfsfsdfdsfd sdfdsfdsfsd dsfds fdsfdsfdsfsd dsfdsfsdf dsf dfdsf dsfdsfdfdsf dsf sdf s</html>,this has been set to JTextPane.
When output is viewed it has four lines as specified below.
This is my first line.df d dsfs
dfsfsdfdsfd sdfdsfdsfsd dsfds
fdsfdsfdsfsd dsfdsfsdf dsf dfdsf
dsfdsfdfdsf dsf sdf s.
How culd I get each sentence line by line.
There is no break tag specified in html content.Break tag will not be present.
So how come this can be done.
Any Suggestions,
Regards,
Sonara.
20 years ago
Essentially, I've developed a page that looks great in 1024x768 resolution.This is how I set font face & size:
<html><p style=\"font-family:Sanserif";margin-top: 0; font-size: 14pt;>+content+</p></html>
But when I look at it in a smaller resolution(800x600) the content that gets accomodated very well in 1024x768 ,it goes out of view in 800x600.

What's the font size that should be speciifed for 800x600 resolution,so that the content gets displayed without cut as its in 1024x768?
Colud u please help me out in this regard.
TIA,
Sonara.
21 years ago
Dear Friends,
I have the problem of colors getting mixed up of two different components & results in different color.
Here 's the way I do.
I have a JPanel & set the background color with rgb value as 250,243,215.Then I place JLabel over the panel for which I set Lineborder with rgb value as 253,253,253.If the panel's background color is white then the JLabel's border color reflects correctly.If the panel's background color is given other than white then the border color specified for JLabel doesn't reflect properly.
The label border should be opaque.How could this be done.
Expecting u'r replies,
Regards,
Sonara.
21 years ago
Dear Mr.Ashish,
Thanks very much for u'r reply.I'm able to find the location using viewToModel(point) ,but I'm not getting the word (which is very much needed),using that int value returned.Culd pl.. help me out how get the word using that location.
Thanks & Regards,
Sonara.
21 years ago