Win a copy of Event Streams in Action this week in the Java in General forum!

dinesh Venkatesan

Ranch Hand
+ Follow
since Oct 12, 2006
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 dinesh Venkatesan

Hi Friends,

I have written a small code to connect to google. Here is the code:


And here is my policy file:


Then, I tried to execute the Connector class in the presence of DefaultSecurityManager and this policy file using the following command line:

java -Djava.security.manager -Djava.security.policy=test.policy Connector

java.security.AccessControlException: access denied (java.net.SocketPermission 209.85.153.104:80 connect,resolve)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkConnect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at Connector.main(Connector.java:6)

Can anybody help me to find what is wrong in my approach?

Thanks in Advance!
11 years ago
Hi,

Thanks for the replies. However, I am not looking for reading some physical files using Input Streams. I am working around the <context> tag but not able to achieve the results. I am trying it out.

Thanks again.

Thanks and Regards,
Dinesh Venkatesan.
11 years ago
Hi Friends,

I want to access the files not stored inside the tomcat folders. (stored in my hard disk D:/) through the URL.

I have done the same few months back using <Context> element but I am not able to recollect the exact procedure now. Can anybody help me?

Thanks and Regards,
Dinesh Venkatesan.
[ June 24, 2008: Message edited by: Bear Bibeault ]
11 years ago
Hi Friends,

I would like to know is there any feature in Eclipse that would help to keep track of the method flow. I mean, I would like to start from a method and I should be able to step through each lines of the code, when there is a method call, the utility should transfer to that particular source and comeback upon traversing the block.

Sorry if I am not clearly stated my problem.

Thanks and Regards,
Dinesh Venkatesan.
Hi,

Did anybody get different results upon executing the code?

Thanks and Regards,
Dinesh Venkatesan.
11 years ago
Hi Friends,

This my code.


While executing this code, I get a <null> as the output where I expect a valid instance of JavaCompiler. I am aware of this behavior while executing with JRE since JRE wont have compiler. But I tried with JDK/bin/java.exe and I am getting the same result. Any suggestions will be highly appreciated.

Thanks in Advance,
Dinesh Venkatesan.
11 years ago
Hi Friends,

Could anybody help me to know what is the notation to represent conditions in a sequence diagram.

For example:

An object invokes login message over other object and based on the return value two flows message invocation should be shown. How can i do that with sequential diagram. I am little bit aware of "Guards" used in Rational rose but I have no option other than using Netbeans for UML modeling.

Thanks in advance,
Dinesh Venkatesan.
Hi Friends,

I would like to concentrate in AWT concepts. Could anybody suggest me about any books on AWT that would be authorative?

Thanks in Advance,
Dinesh Venkatesan.
11 years ago
Hi Friends,

All the network connections from my system is getting routed through a proxy. My IE has been configured to use a Proxy URL Configuration script. This restricts me to write Networked Java programs that connects to internet.

I have an idea regarding Proxies, if the IP and username and password are given. i.e., Developing an Authenticator and overriding the getPasswordAuthentication() will work for me.

But i dont have an idea regarding Proxy URL handling.

Can anybody give some idea.
Thanks and Regards,
Dinesh Venkatesan
11 years ago
Hi Friends,

I need to protect some sensitive files available in my webapps directory from direct URL access. I can not put them in WEB-INF directory due to some other requirements.

Could anybody give some ideas?

Thanks and Regards,
Dinesh Venkatesan.
11 years ago
Hi Friends,

I would like to use the Java speech APIs inside java servlets or JSP. Of course I am aware of the fact that the speech can only be listened in the server side. My requirement is also the same.

I am getting Null Pointer exception while using the following code.


The kevinVoice object is Null.
The same code works fine as a stand alone program.
Can anybody guide me?

Thanks and Regards,
Dinesh Venkatesan
11 years ago
Hi Friends,

The problem statement is: I need to develop an API

File generateP12 ( File certFile, File keyFile );

This API will get two inputs a certFile and a Key File and using these two it has to generate a P12 file. Can anybody give some ideas?

Thanks and Regards,
Dinesh Venkatesan.
11 years ago
Hi Friends,

Can i support CGI scripts in struts framework?

Thanks and regards,
Dinesh Venkatesan.
11 years ago
Hi,

Hopefuly this can help you.

11 years ago
Hi Friends,

While trying to connect and communicate with the web through a java program via a proxy, I have an option of specifying the proxy ip and port by :

systemProps.put("http.proxy","name_Of_the_proxy");
systemProps.put("http.proxyPort","port_number");

Can anybody help me to know how to give ProxyURL?

thanks and regards,
dinesh Venkatesan