Somnath Das

Greenhorn
+ Follow
since Jun 06, 2006
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 Somnath Das

Hello Everyone,

Warm Greetings!,


I am building up an application, which is basically to do with File Transfer over Bluetooth.

When we run our application, on two devices, having one as sender and other as receiver, I get java.lang.MemoryOutOfException on the sender.

The logic I am using is, I am creating a array of byte and loading the entire file on a particular port, so that the client can receive the data from the Port. But, this doesn�t work, as it gives Memory Exception on the sender itself.

But, if we use the default bluetooth transfer on a mobile phone, any file size goes through without any problem.

I am trying to simulate the same device bluetooth transfer.

Can anyone please help me in solving, either my problem or my logic.

Thanks in advance,

Regards,
Somnath Das
16 years ago
Hi koh khai huat,

Thanks for the link, it seems now i would be able to move my road block

I am going through the link.

Thanks again,
Somnath Das
16 years ago
Hi huat,

thanks for the info...,

What type of certificate should i go for and how can i obtain it, any idea?

Thanks again
16 years ago
Hi,

According to me, it eould be better to test on the real devices, cause there is a lot of difference and constraints on a phone than in emulators.

Thanks & Regards,
Somnath Das
16 years ago
Hello Everyone,

Warm Greetings.

I have an application, which has to do read and write operation on the device, but always it fails saying that "Security Exception: no read (write) permission"

This is what i guess, is something of Certificate problem (though not so sure)

Kindly can anyone through some light, about how to go for a development certicate,

Thanks and regards,
Somnath Das
16 years ago
Hi all,

I have cleared SCJP, this saturday scoring 93%,
I would like to specially thank Kathy Sierra and Bert Bates, because of the book.

The book is really fun reading....,

Please can someone tell, what are the further procedure for the certificates and other vouchers, do i have to register to some site?


Thanks again,
Somnath Das
17 years ago
Hi,

Do you people have any idea as to how I can obtain the list of windows services running in the system.

Thanks & Regards,
Somnath Das
17 years ago
Thanks for our support..., I removed the flush .., but still facing the same problem

Any idea?

Thank you,
Somnath Das.
17 years ago
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {


ResultSet rs = null;
Statement stmt;
String sql;
DatabaseConnection db = new DatabaseConnection();


response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">");
out.println("<HTML>");
out.println(" <HEAD><TITLE>A Servlet</TITLE></HEAD>");
out.println(" <BODY>");
out.print(" This is ");
out.print(this.getClass());
out.println(", using the POST method");
out.println(" </BODY>");
out.println("</HTML>");
out.flush();
out.close();








try
{

sql="select city_info.City, state_info.State_name from city_zip_area_code_master as city_info," +
"country_state_code_master as state_info where city_info.Zip='"+ value + "' "+
"and city_info.State_ID=state_info.State_ID";

Connection conn =db.getConnection();

stmt = conn.createStatement();
rs = stmt.executeQuery(sql);
if(rs.next())
{

response.sendRedirect("register.jsp?cityname="+rs.getString("City")+"&statename="+rs.getString("State_name"));



}

}
catch(Exception ex)
{
ex.printStackTrace();
}


}



Thank you,
Somnath Das.
17 years ago
Hi,
i have a register page, when i fill in the zip code on my jsp page i pass this info to a servelet and after that process some thing from the database and i redirect the same page using
response.sendRedirect("register.jsp?cityname="+city_name+"&statename="+state_name);

but after this statement is executed i am facing the error as shown below(the entire stack trace i am giving for referance)

11:40:54,801 INFO [STDOUT] java.lang.IllegalStateException
11:40:54,801 INFO [STDOUT] at org.apache.coyote.tomcat5.CoyoteResponseFacade.sendRedirect(CoyoteResponseFacade.java:352)
11:40:54,801 INFO [STDOUT] at ZipcodeGenerator.doPost(ZipcodeGenerator.java:163)
11:40:54,817 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
11:40:54,817 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
11:40:54,817 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
11:40:54,817 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
11:40:54,817 INFO [STDOUT] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
11:40:54,817 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
11:40:54,817 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
11:40:54,817 INFO [STDOUT] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
11:40:54,817 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
11:40:54,817 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
11:40:54,817 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
11:40:54,833 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
11:40:54,833 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
11:40:54,833 INFO [STDOUT] at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:44)
11:40:54,833 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
11:40:54,833 INFO [STDOUT] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:169)
11:40:54,833 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
11:40:54,833 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
11:40:54,833 INFO [STDOUT] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
11:40:54,833 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
11:40:54,833 INFO [STDOUT] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
11:40:54,848 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
11:40:54,848 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
11:40:54,848 INFO [STDOUT] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
11:40:54,848 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
11:40:54,848 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
11:40:54,848 INFO [STDOUT] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
11:40:54,848 INFO [STDOUT] at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
11:40:54,848 INFO [STDOUT] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
11:40:54,848 INFO [STDOUT] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
11:40:54,864 INFO [STDOUT] at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
11:40:54,864 INFO [STDOUT] at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
11:40:54,864 INFO [STDOUT] at java.lang.Thread.run(Thread.java:534)



i would be really gratefull, if any one could solve this problem

Thank you,
Somnath Das.
17 years ago
Hi,
I would be taking the SCJP exam, asap, i request you all if any one could help me out for my preparation, about how to go for it.
it would be gratefull, if anyone could help me out to get some sample questions or dumps.

Sincere thanks,
Somnath