Ganesh Dhakshinamurthy

Greenhorn
+ Follow
since Apr 08, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Ganesh Dhakshinamurthy

There is no ordering guaranteed in a set.
I'm going to appear for SCJP6 upgrade exam. Is there is a change in the number of questions for upgrade exam too?
Neither version works for me too. In checked it in 5.0 and 6.0
It is giving me compiler error "Incompatible operand types" when i just use the code you have pasted here.
Are you sure you used "int" primitive not Integer?
When i tried the first one, it compiled and executed successfully. Am I missing something here?

It doesn't work both ways. Please check your code again.
I access the webservices not through internet, its a firewall rule within the intranet which allows the connection between these two servers.
Now for my application to work, a new firewall rule has to be implemented allowing access between these two servers.
16 years ago
In my application, I use webservices deployed in another server for which I have a direct access i.e. a specific firewall rule has been implemented to allow direct connections.
I look up the webservices using the domain name of the server i.e. not using specific IP address of the hosted server.
IP address of the server got changed some 15 days ago, but my application was working fine till I did a restart last weekend. After the restart, my application is unable to access the webservices which is understandable.

My question is even after the IP change, my application was able to connect to the webservices server till I restarted my application. Can anyone please explain me how is this possible?
16 years ago
I've java process which reads data from a socket. Below is the code for reading the data from the socket. The program creates a ServerSocketChannel
and binds it to a socket and accepts the connection from the socket.
Then it creates a bytebuffer with a specified capacity and reads data from the SocketChannel by filling this buffer. This particular logic runs in an
infinite loop, as there is continuous flow of data.

I'm pasting the code below:

The process runs for sometime, reads the data and hangs after sometime at the SocketChannel read() method. I took the thread dump of the process which is below:

at sun.nio.ch.FileDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:38)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:258)
at sun.nio.ch.IOUtil.read(IOUtil.java:225)
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:223)

If i restart the process, it starts processing the data again and after sometime goes in to a hung state.

One more thing I noticed is that there are lot of CLOSE_WAIT connections on the socket in which the process is reading data.

Can any one help in identifying what is going wrong here?

[ October 03, 2008: Message edited by: Ganesh Dhakshinamurthy ]
Please use code tags
[ October 03, 2008: Message edited by: Joe Ess ]
16 years ago
The extra '>' is considered as a body content and the EL ${username} evaluates to null. I guess this is the reason you are getting the error.
In HFSJ Errata page - <%@tag body-content="empty" %> has been listed as the correct answer.