Debugging in Eclipse

558 byte By KinkyHagara at 2007-11-26 17:32:54
Hi,I don't know how to overcome an annoying thing of the Eclipse debugger. When my program crashes, normally, when you run it in debug mode, the program stops at the place where it will crash. But i use finally clauses in my code, and when my program runs in debug mode and it is going to crash ...

Out of memory in java application

678 byte By jannyguya at 2007-11-26 17:52:36
Hi,I am continously getting out of memory in my java application. I collected the java heap dump and found major memory chunk ( >90%) of total java heap is taken by some "class [I", which is array of 'Inetger' objects and sometimes by "class [S", which is array of 'Short' ...

Client recieving a User List

841 byte By QTQa at 2007-11-26 18:03:44
How would I make a client keep listening for a certain action..Basically I have created a Client-Server Chat app... on connection and disconnection the server creates a userlist using the vectorlist, thus keeps updating on connection/disconnection of a socket/user.... so serverside is ...

Problem sending data over a stream

641 byte By QTQa at 2007-11-26 18:05:58
Hi,I am having a problem sending the following string over a stream from server to client.strUserName = "QTQ";param = "hi";Send the following: (""+CHAT2ALL+strUserName+(char)(220)+param); which when written or sent or recieved should be "104QTQ躧i" But when i send it the client recieves it as : ...

Peer to Peer program

485 byte By robotdoggia at 2007-11-26 18:08:42
I would like to know how to write a program to communicate with another program located at another server in different location. Just call it Program A and B.Program A and B must able to talk to each other, which it can send and receive a simple string. Is it possible to do this by using the ...

trouble!

532 byte By kothari_neerava at 2007-11-26 18:08:43
i'm making a messenger client which has 4 classes.ClientSocketsSendReceivea thread t1 in client in binded to object of send. the run inside send will send messages using a PrintWriter object 'out' of sockect object soc which are delcared an inidialised in sockets. i have created an object of ...

SSL HandShake problem in Linux

2805 byte By jjmarmola at 2007-11-26 18:11:16
HelloI have developed an application that opens a SSLSocket to connect to a remote server. It works on windows but not on Linux machines.Running the application on Linux machines (RH 7.3, RHEL4.3 and CentOS), I find the following exception when executing ...

Working with NIO and non-NIO sockets

1050 byte By Jay-Suna at 2007-11-26 18:14:25
Hello,Trying to write a network manager kind of program where the client initiates a number of connections to different servers. Need to manage these connections through the life time of the session ( time the client is connected to the server). The client connections originate from a single ...

How can I connect many client in one server ?

133 byte By Fabio_Aurelio-Brasilia-Brasila at 2007-11-26 18:21:32
Hello, My name is Fabio, i live in Brazil.I need that two or more conect the ane server socket.Who can help me ?

connect to telnet

79 byte By gaurav_xmla at 2007-11-26 18:24:37
i want toconnect to telnet using java, can anyone tell me how to do that

Convert Julian to Gregorian date

230 byte By Tarajjiwarriorsa at 2007-11-26 18:29:23
Hi,I am having some trouble converting a Julian date to a Gregorian one or to a String of type : dd-MM-yyyy hh:mm:ss aThe input format of my julian date is a string : 2007030020859574Any idea?Thx

Connecting a Socket to echo port

1651 byte By G.Vasua at 2007-11-26 18:32:02
Hi, I am trying to connect to the echo port of my own system. The code I am using is provided here under. When I am executing this I am getting an IOException.I am running this on Windows XP machine...I belive this code is working fine when I exectuted on a windows 98 machine..Pls. suggest if I ...

No traffic detected with Wireshark

363 byte By tomas_beraneka at 2007-11-26 18:32:35
Hi,Don't you know, how is it possible, that when a TCP client running on PPC connects to server running on PC over ActiveSync, there are no packets captured by the Wireshark running also on this PC? I tried to listen on all of possible interfaces, but always with the same result. Thank ...

Problem resolving domain name to current (new) IP address

4112 byte By carcophana at 2007-11-26 18:34:14
Hi everyone,I have a server somewhere in the internet that listens on a certain port. This server is available only through dynamically changing IP addresses therefore the server updates its IP address to a dynamic DNS provider at a regular interval.I also have a client that connects to this ...

Probelm when calling a servlet using URL connection from a thread

717 byte By Mckinseya at 2007-11-26 18:39:50
HiI have a servlet which does some calculation on address.This calculation had a SAX parser inside it.I want to present this servlet as a service.I called this servlet using URLConnection.During my testing i created a runnable class, which actually calls the servlet using the URLConnection from ...

Synchronous IO with nio

3691 byte By jdupreza at 2007-11-26 18:41:39
Hello,I have been programming in Java for a while but today is my first shot at NIO.I'm implementing a custom protocol over TCP between a java server and several Java and C clients. The classical one-thread-per-client approach works with a couple of test connections, but I'm afraid it will ...

How to build GUIs in eclipse

207 byte By va97a at 2007-11-26 18:42:58
Hello everyoneI hope I am posting this in the right forum.Is there a way to build Java GUIs in eclipse w/o the developer having to code ? like JBuider does ?Thanks for the answers

Read from a HTTPS url

701 byte By landisaa at 2007-11-26 18:44:01
I'm new to HTTPS and SSL implementation, so my question may seem very basic to you all.I'm trying to read from an HTTPS url. I can successfully read a standard HTTP url. I've read a lot of the posts, but I can't seem to get a handle on how to do this. We are not concerned about verifying ...

Should I uninstall J2SE 5 before installing J2SE 6?

344 byte By mservina at 2007-11-26 18:51:03
Hi,I have version Version 1.5.0 (build 1.5.0_11-b03) with NetBeans 5.0 installed in my Windows XP on a AMD 64 machine. Did I have to unsinstall it before installing the new Java 2 Platform Standard Edition Development Kit 6.0 and NetBeans IDE 5.5?I am confused and didn't find any help on the ...

help! Eclipse can't debug.

650 byte By fans@javaa at 2007-11-26 19:00:55
hi, everybody.I can run my application program in the Eclipse 3.2, but when I debug the application, a popup window tell me "Cannot connect to VM". The massages on the console is as below:FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=JVMTI_ERROR_INTERNAL(113)ERROR: ...

Server side programming fails!

3663 byte By kothari_neerava at 2007-11-26 19:07:02
hello. i'm developing a messenger program. initial design had one client sending a message and the server echoing the message back to the client. it worked fine. now i'm making it for multiple clients. that is one client sending a message and multiple clients receiving the message like in ...

chatting messenger

1116 byte By alok_agrawala at 2007-11-26 19:07:46
I am final year student. I am making project on instant messenger,I am using Socket programming .I want from my application that when client1 want to chat with any of the online client2,he send that name of the client2 to the server then server send his socket address to the client1,& then ...

Netbeans - Debugging client server application

688 byte By Jay-Suna at 2007-11-26 19:11:57
Hello,I am new to Java and netbeans. I am writing a Java NIO, client/server application. Trying to run and debug the same. I have two projects, one client and the other server. I start the server in debug mode, enable a breakpoint, switch the project so that client project is active. Then run ...

chat client

3333 byte By Anu_007a at 2007-11-26 19:12:54
I am trying to create a simple chat client (like yahoo mssg)import java.io.*;import java.net.*;import java.awt.*;import java.awt.event.*;import javax.swing.*;public class chat1 {JTextField text;PrintWriter write1;JTextAreatext1;BufferedReader read1;Socket sock; public static void main(String[] ...

Uses & syntax of classes

780 byte By alok_agrawala at 2007-11-26 19:17:13
hi friends, I am making a chatting messenger using socket programming in java,I have some problem in establishing chatting session between two clients,where server just provide socket address of the c2 to c1,and then two client connect to each other and then send message without passing that ...

sever side error

5377 byte By Anu_007a at 2007-11-26 19:18:50
my server side program:import java.io.*;import java.net.*;import java.util.*;public class simpleserver{ArrayList clientoutputstream;public class clienthandler implements Runnable{BufferedReader reader;Socket sock;public clienthandler(Socket clientsocket){try{sock=clientsocket;InputStreamReader ...

How to separate/eliminate CRC, MSB and LSB from response

457 byte By kvijaia at 2007-11-26 19:23:17
Hi allIf I send the following command to RFID reader through TCP/IP.byte[] buf = { 0x01, 0x04, 0x06, 0x22, (byte)0xA0, 0x69, 0x72 };It returns the response packet as a byte stream including CRC, MSB and LSB . Besically i am not able to interpret the response packet so that I can ...

connecting client

242 byte By alok_agrawala at 2007-11-26 19:23:46
I want the connection between two client such that messages between two client are pass directly,without passing through serverWill it possible if yes then please tell me the procedure for doing that thank you for replies

cast date format string into value

88 byte By shiva_Ideaa at 2007-11-26 19:32:29
Is there any method to get value like (070215) from date fomat String(15/02/2007)

Binding to a port

500 byte By ray6855a at 2007-11-26 19:37:15
I am reading the documentation and it says the ServerSocket(12345) would bind to 12345 port. So does this mean any other application won't be able to use this port?I am trying to build a class which can hold on to a port and when required release it. The reason is that some other application ...

How to attach Source Code to Jprofiler?

442 byte By seemada at 2007-11-26 19:39:59
Hi,I am using Jprofiler to profile local application. But i am unable to map source code to deployed application.Is there any specific directory structure to be followed to save the source code so that at runtime jProfiler can point it to?I have tried specifying the external path in Source Path ...

How to implement hashCode() whenever an equals() is implemented

1387 byte By Pingillia at 2007-11-26 19:43:19
public boolean equals(Object obj) {// TODO Add the following, if required// && format == docDelResponse.getFormat()// && viewType == docDelResponse.getViewType() && type ==// docDelResponse.getType()// && inclCertifiedCopy == ...

NoRouteToHost Exception

568 byte By Sunaya at 2007-11-26 19:49:03
Hi Experts,I am new to socket programming. I want to develop voice chat client application.Now i have few queries if it is solved it will help me great to develop my application. I am final year student of MCA please i have to complete this application in very short time Early reply help me ...

Socket write while read is currently blocking

334 byte By Salamzana at 2007-11-26 19:51:42
I have a client swing application that is reading from the socket InputStream in its own thread. This is a blocking read, via a BufferedReader.readLine() call.When someone presses a button or some other event is to trigger a socket write, would you suspect some sort of dead lock or non ...

File Download

226 byte By g_ravikanthguptaabapa at 2007-11-26 20:02:09
Hi Gurus,I have requirement of when the client clicks on download link in browser then i had send the file from server to client. Can any body ve a code for this please send me.Thanks in advanceRavi

Problem with Java6 + applet + reading file from http

1635 byte By droida38a at 2007-11-26 20:04:23
I've been using the below code since Java1.1 for downloading files from a http-server. But with Java6 it has stopped working. Or rather it downloads less bytes than the file actually is.Ex. when loading a file that is actually 28.043 bytes, it consistently only loads 28.011 bytes.connection is ...

a good starting point for java sockets?

522 byte By panosjavaa at 2007-11-26 20:05:07
hello everyone,i have just started to implement a client-server paradigm for a secure communication channel... do you know of very good starting point of socket programming with java? a url or a book? i am looking for something that will guide me through the process of a simple client-server to ...

struts

465 byte By narin.ozlem@gmail.coma at 2007-11-26 20:07:03
hiI tried to execute a struts project but I want to ask how can I manage to deal with "Http status 500 The server encountered an internal error () that prevented it from fulfilling this request ....Unable to find a javac compiler;com.sun.tools.javac.Main is not on the classpath.Perhaps ...

socket connection timeout in SJSAS

539 byte By emilio.remognaa at 2007-11-26 20:15:32
Hi all!I have a strange problem using sockets in SJSAS (version 9.0_01).I've deployed a servlet which uses sockets to check some ports on remote hosts (a sort of scanning).I've set my socket connection timeout, but timeout exception is never thrown.Sockets seem to be "hung up" in SJSAS.With ...

reading data from textbox

244 byte By jaggu321a at 2007-11-26 20:42:41
i have a textbox with button, if i execute a button it has to start the backend console program and if i submit the some data through textbox that console programhas to read that data and save it.how will do this..help me plz..thx

DatagramSocket.connect

691 byte By pulikesia at 2007-11-26 20:51:32
Hi,I am trying to find whether a server is running on the remote machine on a specified port. When the remote server is unreachable, the DatagramSocket.connect(InetAddress, int) always returns without even throwing exception. Even the method DatagramSocket.isConnected also returns true. ...

SOCKS redirection

529 byte By mplc1980a at 2007-11-26 20:52:12
I have a SOCKS ver4 proxy server and an application that runs on SOCKS ver 4 (Yahoo Messenger). I want to create an application that will serve as a transit between the 2. Meaning, I will be creating an API that will listen to the SOCKS application and forward the data to the SOCKS server.The ...

java.net.SocketException: socket closed

10578 byte By Sunaya at 2007-11-26 20:52:54
I get this error when i try to read text from the server, My code is as followspackage VChat;import java.io.BufferedReader;import java.io.BufferedWriter;import java.io.DataInputStream;import java.io.DataOutputStream;import java.io.IOException;import java.io.InputStream;import ...

One log file for each class with log4j

751 byte By a_potroa at 2007-11-26 21:25:54
Hello I want create one file for each class in my project. I have 2 paCkages with 2 class.p1|--class1_1|--class1_2p2|-- class2_1 |-- class2_2I wont create the next result with the logslog/p1|class1_1.log|class1_2.loglog/p2|class2_1.log|class2_2.log Well, I don't wont write one appender for ...

virtual machine

171 byte By ratula at 2007-11-26 21:29:23
im new in java programming i dont understand how the virtual machine work & what the benefit of using it for this reason is the java work platform independently

establish a socket through a phone line

214 byte By Ehsan_KhSa at 2007-11-26 21:29:48
is there any body who guide me how can i establish a socket or any type of communication bridge through a phone line for sending data between to computer ?sample code may help me more than anything...

Server Socket Question ?

2558 byte By SCOOBYJSPa at 2007-11-26 21:39:34
I have a server client app using SE Java.There are 6 types of clients that connect to the server using a socket.As it is now i just use 1 server socket to spin off a thread each time any client arrives.like so:import java.net.ServerSocket;import java.io.IOException;public final class ...

Programming Problem Math.floor

1127 byte By diedeadenougha at 2007-11-26 22:51:41
I'm a beginner programmer using Java version jdk1.5.0_11 and I'm having trouble solving the following problem:An application of method Math.floor is rounding a value to the nearest integer. The statement:y = Math.floor( x + 0.5 );will round the number x to the nearest integer and assign the ...

Debugging Tools and Techniques - JUnit test gives ClassCastException

2305 byte By haydnwa at 2007-11-26 23:03:46
I'm trying to migrate some JUnit 3.8 tests to 4.3. At the moment my tests run fine in Eclipse, but when I try to run them from the command line they fall over with a "ClassCastException" error. This happens even when all the actual tests are ignored, e.g.:package ac.nott.chem.lattice;import ...

Anyone can please reccomend any good pdf writer software products?

241 byte By veidaa at 2007-11-26 23:51:56
I am looking for an easy way to convert documents ( pictures, data sheets, word, excel ) to pdfs. There are many products around ( lower cost alternative to Adobe Acrobat ) but of what I tried so far each of them have some annoyances.