Shankar Shanmugam

Greenhorn
+ Follow
since Sep 12, 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 Shankar Shanmugam

Hi All,

I am getting the below exception, when I try to update a record in MS-Access database. Its a desktop application that does the update in MS-Access.

java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Could not update; currently locked by user 'admin' on machine 'ZCHQ_B2B'.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcStatement.executeUpdate(Unknown Source)

This error does not occur in all systems, it has happened in just one system and I am not able to re-create this error in my system.
Both the systems are Windows 2K with service pack 4.

I suspect either the driver or could be because that we use two different DBConnection and Process to update the same record.

Please reply if you guys have any suggestions.
Or, forward the same to your friends.

Thanks in Advance.
Hi,
I need to do a Client Authentication with the server running on HTTPS (from a Java code).
First, I thought of connecting and reading to a HTTPS server and try Client Authentication later.
I failed in the first step itself. I could not connect to https://mail.yahoo.com . It throws an the following error..
NOTE: I could get the connection and read the content of the server running my company's internal network using the below code.
Please let me know if you guys have any idead about this one and also for doing the Client Authentication
java.util.NoSuchElementException
at java.util.StringTokenizer.nextToken(StringTokenizer.java:232)
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:768)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA6275)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:562)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(DashoA6275)
at Test.main(Test.java:19)
Exception in thread "main"

import java.io.*;
import java.net.*;
import javax.net.ssl.*;
public class Test {
public static void main(String args[]) throws Exception {
System.setProperty("https.proxyHost", "ghqproxy1.is.ge.com");
System.setProperty("https.proxyPort", "80");

URL url = new URL("https://www.entrust.com/");
URLConnection conn = url.openConnection();
HttpsURLConnection urlConn = (HttpsURLConnection) conn;
BufferedReader in = new BufferedReader(new InputStreamReader(urlConn.getInputStream()));
String str;
while( (str=in.readLine()) != null) {
System.out.println(str);
}
}
}
Hi,
I know that I am replying to an old chain.
Just hoping that someone else wud respond.
I just tried the above program and I get this error.
PLease let me know if any of you people have faced similair problems.
java.util.NoSuchElementException
at java.util.StringTokenizer.nextToken(StringTokenizer.java:232)
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:768)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA6275)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:516)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(DashoA6275)
at Test.gatewayPost(Test.java:58)
at Test.main(Test.java:34)
Exception in thread "main"
Hi..
I hope you guys remmeber that there was a dicussion in this fourm about revising SCEAj exam with latest version of 1.4.
I do understand that the version doesn't matter with Part II or III. But, It does matter with Part I to some extent.
Check these links..
https://coderanch.com/t/151180/java-Architect-SCEA/certification/SCEA-EJB
https://coderanch.com/t/151187/java-Architect-SCEA/certification/Sign-up-SCEA-Beta-Exam
https://coderanch.com/t/151286/java-Architect-SCEA/certification/SCEA-version
Do you guys have any updates on that ?
I am just delaying it for this new release...
Thanks In Advance.
[ September 18, 2003: Message edited by: Shankar Shanmugam ]
[ September 18, 2003: Message edited by: Shankar Shanmugam ]
I am sorry.. +91 (-80) -207 8989 (+27654) is wrong.
Try +91 (-80) -229 8989 (+27654) and It should work. One mentioned by shrinivas dhande.
Hi,
Thats the problem with the Tomcat engine...the one that converts the JSP file into a Java Servlet.
If you open the servlet, it will have a syntax error.
If you have a page import with "MyClass"..
It wil try to generate a Java Servlet code with..
import MyClass;
Which is wrong by java syntax...we are not suppose to import a java class which is in the same package.
So, you might try to remove the page import from jsp file, even then Tomact will nto do the job.
I am not sure, one of my friend did something and fixed this issue. I am not aware of it.
Anyhow, It is adivisable to place the file in a package.
20 years ago
JSP
Full Name:Johnathan Sylvester
Last Name:Sylvester
First Name:Johnathan
Business Address:Sun Microsystems India Pvt. Ltd
6th Floor , Divyashree Chambers
Off Langfors Roamd
ShanthiNagarj
Bangalore 560027
Business:+91 (-80) -207 8989 (+27654)
Business 2:91-80-207 2223 -38
Business Fax:+91 (-80) -223 1792
E-mail:johnathan.sylvester@india.sun.com
Watch out....
Examination Fee
The examination fee for each test is US$200. The beta exam fee is $80.

http://www.omg.org/uml-certification/program.htm#Examination_Fees
Hi,
Thanks for your detailed reply with a neat code.
I didn't a try with border. But, I have a problem here.
When you have a list of JButton in a sequence and try to do a mouse over.
All, the botton's location wud get affected....It willlok like all the JButton's are dancing.
There are two methods setRolloverEnabled() setRolloverIcon().
setRolloverEnabled(true) should give our expected effect. But it doesn't work and API also says that it might not work for some platform (UI L&F).
I tested it with windows.
But, setRolloverIcon() of some Icon is work fine. The icon gets changed.
After all, we don't need to capture mouse events for these two methods.
Thanks in Advance.

Regards,
Shankar
20 years ago
Hi,
When you create a JMenu and move a mouse over it, you can see an elevated JMenu.
You can also see that in Back/Stop/Forward buttons in IE.
Thats the wasy is works for JMenu.
But, I also need to generate such an elevated JButton for my desktop application.
Regards,
Shankar
20 years ago
Hi,
When we sign an applet and run it with a Java plug-in, user will be promted with a question to Grant/Deny the applet with all permission to the system.
Can we have specific permission for an Applet...Say only file permission for a signed applet....instead of granting all permission to the applet. And, the user should be requested for that specific permissions only.
Thanks in Advance,
Shankar
20 years ago
Hi,
When we sign an applet and run it with a Java plug-in, user will be promted with a question to Grant/Deny the applet with all permission to the system.
Can we have specific permission for an Applet...Say only file permission for a signed applet....instead of granting all permission to the applet. And, the user should be requested for that specific permissions only.
Thanks in Advance,
Shankar
20 years ago
How about EJB version. Is it EJB 1.1 or 2.0 ?
B'cos we might have read CMR, if EJB 2.0
Hi,
What is the version of J2EE/EJB covered in the SCEAJ exam.
Thanks in Advance.
Hi,
I have a basic question which is not related to MOM/MDB. Just wanted to know the J2EE/EJB version covered in the SCEAJ exam.
Thanks in Advance,
Shankar Shanmugam