317 byte By
sam021a at 2007-9-26 1:19:56
i have a client server application in which the client applet communicates with the server.now the problem is i don't know how and where to run the server application,supposing the applet is embedded in my webpage and is run from there.please respond asap.thanks sam. ...
577 byte By
jmsyed at 2007-9-26 1:29:06
Hi I am new in using JSDT but I am trying to use JSDT to develop a collaborative application in which The Java 3D objects will be shown on different clients. The 3D objects are basically Shape3D and have Transform Group what I want to do is whatever changes one user do to the 3D object the ...
I've opened a socket and I'm able to access the OutputStream. However, when I try to wrap a ObjectInputStream around the socket's InputStream, I get this error:SocketException: Connection reset by peer: JVM_recv in socket input stream read.What should I be looking for?Larry ...
448 byte By
lfwu at 2007-9-26 1:37:39
Hi all,I would like to implement a system that can communicate with different modules in different computers (hosts). Why I intend to do this is I want each module can use its own computer's procesing power and share the workload. I learn that Java RMI can let me to do this. Does anyone have ...
Hi, I have a servlet that calls another servlet using the URLConnection class. This seems to work very well if I am using http. However when trying to call it using https using JSSE I get the following error:"javax.net.ssl.SSLHandshakeException: untrusted server cert chain." The following is ...
Hi, part of my Java software requires the application to download files from the Gnutella Network, as part of P2P component. Suppose I connect to Gnutella Network using JTella (see http://www.kenmccrary.com/jtella/) and get the following information from a SearchReply (the info about search ...
Very Strange,if server programmed by java (running on my pc) is shutdown, I can catch the IOException , but when I communicate with server programmed by C++(running on DEC),I cannot catch the IOException. Why?I use a thread to read socket inputstream and try read operation.Thanks in advance! ...
541 byte By
TingA at 2007-9-26 1:53:22
Hi all,I need some help here. I need to write a program to forward the UDP message received to another machine. The requirement form my boss is that the source ip field must remain the same as when I receive it. However, when I forward the message, the socket will automatically change the ...
655 byte By
jyoti_27 at 2007-9-26 2:00:00
Hi,I want to build an application which will communicate with motorola HDT300 handset scanner. This handset contains a file system. My objective is, after connecting the handset with PC using RS 232 cable cord, I will run my application in PC. The application will get into the file system of ...
300 byte By
joey829 at 2007-9-26 2:04:28
Dear all,I'm writing a programme which will transfer and get files or data between a PDA(Palm OS with Sony PDA) and PC. Can i do that by MIDP? Do anyone know how to do so cos i only find examples and tutorials talking method to have HTTP connection?Thanx alot.Joey ...
1100 byte By
Sone at 2007-9-26 2:05:35
I got a thread that listen on a socket for data with: while (LISTENING)new AAAcknowledgeThread(serverSocket.accept()).start();When the thread mentioned executes and tries to read from the socket with:BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()));A ...
hi, can someone tell me how can i send a file through a socket?thanks in advancerajesh
188 byte By
jmusun1 at 2007-9-26 2:09:41
Can I make multiple Http Connections at the same time from the same client to a server? I mean can I have multiple threads running making HttpConnection to the server.
623 byte By
ShafeeqA at 2007-9-26 2:12:59
hi all,i very much trust u all to sort out the problem RMI thru Firewall(s).To overcome the RMI - firewall issue, i've learned from the websites that HTTP Tunneling can be used. so for this RMI - Firewall(my RMI application works fine in LAN). How to start HTTP Tunneling in my existing RMI ...
534 byte By
cs0amc at 2007-9-26 2:13:36
hi,Using socket.close() and setting the socket = null, is not enabling a port to be reused - seemingly until my application is closed. Java thinks the port is closed, so I think this is an OS problem.Im using jdk1.3.1, WinNT 4.0.Is this a known problem, any solutions?Have been changing the ...
I need to send a cookie to a server over HTTP. I have found several threads on how to do this, using the setRequestProperty() method of URLConnection. No luck.I tried all kinds of spellings, likeurlConn.setRequestProperty("Cookie" , "this=that");urlConn.setRequestProperty("Cookie:" , ...
Problem:I have a Sun box with 2 nodes (2 CPU's with non-shared memory but shared hard disk).A Java developed system will be running concurrently on both nodes (i.e. failure reduction).The problem is that both processes need access to a common registry (with fast access, several million ...
173 byte By
ibrara at 2007-9-26 2:34:27
I am trying to creat an app that will connect to a news server and download ariticle from a given newgroups.I cant find any class for jdk1.3.Please help
240 byte By
manu176 at 2007-9-26 2:36:44
I want to create a combobox which shall contain the names of the computers in the lan.How can I get these names?Are there any classes specifically for lan?How can I achive this?Thank you.Manu
Hi all,I am trying to write an application that communicates over the network using HTTP. I have written two little classes. One to send data using an HttpConnection (Client) and the other to listen using a ServerSocket (Server).My problem is that although the Http Header info comes through to ...
775 byte By
jostad at 2007-9-26 2:54:18
I am having a hard time to find a right method and class to do a simple DNS query and get the octet information.My app should get a URL address and create a query in a packet and send the packet to the remote host to get the response back in octet codes.something like:$ dns ...
566 byte By
alee1010 at 2007-9-26 2:55:25
Hi,I was testing the multicast example from the Java Tutorial ( http://java.sun.com/docs/books/tutorial/networking/datagrams/broadcasting.html). The example does not seem to work with machines running different operating systems. I tried running the example server on Solaris machines and the ...
hi,how can i sent 2 files in the same socket ? i am able to sent 1 file but when i am trying to sent the second 1 it gaves me error
355 byte By
ashash1 at 2007-9-26 3:17:18
i don't want my data to be accessible outside the firewall, but need to be displayed on a web page If i generate an XML document of an oracle table, data changing daily, and use it to build an html page, does this assure that the data is safe? Where should the xml file be - app server/ web ...
634 byte By
mariaC at 2007-9-26 3:22:36
Hi to everybody!!I know im asking about something questioned too many times, but the thing is that i don t have ideas right about this.I would like to know if somebody could tell me if there is enough JavaComm and JTAPI for implementing a dialer, (from begining to end) or if i need something ...
Hi, I'm writing a P2P program using Gnutella API, and thisi uses a socket that connects to a Gnutella server, and attempts to download a file from it. The problem is, I can't separate the header from the file itself, and use the information from the header to guide the file i/o. Here's the ...
Does anyone know why when I open a HttpURLConnection on MSN I only get 4170 bytes while the Content-Length Header says 20021? When I try the program on other web sites I get the full page. Does anyone have a clue as to why this is happening?
348 byte By
chhatwal at 2007-9-26 3:49:12
I am developing a large scale library appication system on the web using jsp / servlets as the main technology. The database will contain over 6000 records of books. How can I improve performance of this system using distributed servers? Is there any link which gives a tutorial to do this? ...
335 byte By
san_dro at 2007-9-26 3:49:55
hi all,I'm realizing a little multithread server. it first accept on port 1025 and then, when a call arrives, creates a thread hearing (by a ServerSocket) on a given port; how can I see which are the free ports on the server's machine? (ports not occupied by mail-servers or others ...
369 byte By
akw at 2007-9-26 3:54:09
I have a Java program that creates a url from a String, then uses the openConnection method of URLConnection to send the request to a web server. The *exact* same Url string works fine from my browser, but the Java program throws a java.io.FileNotFoundException. Other url's work OK.Any ...
I have some questions about the life cycle of a servlet and the use of synchronozed.We have a main controller class that is extended from HTTPServlet and accepts all HTTP requests. It in turn instantiates another class to do the work. That class eventually returns control to the main controller ...
Hi ,I am on NT machine and developing my web application on NT machine . This web application is going to be hosted at NT . I need to read some file on intranet which is on unix box .Also on Unix machine , it requires user id and password. What classses should I use so that my task can be ...
1345 byte By
phipma at 2007-9-26 4:13:28
Hi,I have a problem with writing data to a socket. I'm using a java.io.Socket to connect to a c-language server. Both client & server running on Windows2000. My program writes the messages to the socket, with no Exceptions. A "message" is a byte array, with a known start and end byte, ...
791 byte By
Java_Jey at 2007-9-26 4:27:36
Haiya...I'm trying to send a txt file within an Ambient system using TCP.Is there any java.net API methods which I can use to transferthe whole file to the other end? I can't use DatagramSocket class'ssend () because it requires bytes of data...I can probably use like... <i copied it from ...
Hello,I tried to run a simple client program that uses sockets to create a connection to an IP address which does not exist ( I pulled the network cable of the machine the client is trying to connect to).The results was that I got a message that said that the connection could not be ...
All,I am generating a text File dynamically based on the information from the Database. I need to give some Page breaks after every 80 lines. Does any one has any clue how can I do that. I am able to generate the file though.Also I need to set the Font to Courier.Please let me know if anyone ...
Hi, I am creating a socket using the socket constructorand was wondering how if possible I can use ausername/password when doing that. The default only allows a port/host. Can someone tell me how I might do this? Thanks so much for your help!! Mike ...
Hi all,Is it possible to have a Javaspace running over multiple machines (ie, for failover purposes)?Is it just a case of starting up on multiple machines a Javaspace with the same name?Thanks,Ads
All,While generating text files dynamically how can we add "next page" character as we do the next Line (/r/n) ?Any clue please let me know the Syntax..My file is as follows --static BufferedWriter output;output = new BufferedWriter(new FileWriter(newpath + File.separator + ...
1308 byte By
lei.shen at 2007-9-26 4:48:06
In Windows NT, 2000, UnixHow can you increase the number of socketsthat you can open?It seems to me if you are usingnew Socket(servername, port), it will neveruse local port great than 5000.If you try my problem attachedYou will soon get Addr in use JVM_BIND exceptionAlso, by using netstat you ...
339 byte By
Java_Jey at 2007-9-26 4:49:13
hi guys,I am in dire need of a Java built in library method which can transfer any binary file from client to server or vice versa. Is there such thing in Java .. if NOT, whereshould I look for.. in what field.. Should I be learning RMI to write a method?Please help this poor fellow. :)Jey ...
501 byte By
froelant at 2007-9-26 4:53:30
Hi,I would like to write a offline browser utility to follow up my yahoo groups and clubs.I took several attempts before I wrote this mail and I discoverd that it are the redirections and cookies that cause the problems.Does anyone know a class capable to download a URL dispite of cookies and ...
301 byte By
borgesc at 2007-9-26 4:59:05
Hi,I'm getting an OutputStream from a socket and I'm writing bytes in it, but i often have a java.net.SocketException with the message: socket write error (code=10053)Does anybody know where i can find the description of that error code.Thanks a lotborges. ...
292 byte By
borgesc at 2007-9-26 5:08:48
Hi,I'm working on NT4.0 with jdK1.2.I'm writing an array of bytes in a Socket OutputStream. The size of the array is about 7k. The problem is that i often get a socket writing error(code error = 10053).Could anybody help me about this?Thanks
Hi,Can i run run two mbean in two differnt jvm?If Possible do i need some protocol adaptors as they arnt defined in JMX1.0 specificationsyhanxanil
318 byte By
chinlj at 2007-9-26 5:29:38
Hi all, I am wondering how a Java program be executed within a compute farm like the Sun Grid Engine. Is it possible? I have been searching for this infomation but have no luck. I would appreciate if any one of you could point out the direction for me, if not possible to explain in ...
1121 byte By
SAOJ at 2007-9-26 5:29:44
Hi,I have been searching for this answer for a very long time. My question is simple:Let's say I have an Instant Messenger application written in Java. I will call it JICQ.If my JICQ is installed in a machine with invalid IP address (192.168.1.100) behind a proxy server (Wingate), how in the ...
418 byte By
RGassner at 2007-9-26 5:34:35
Hello !!!Can anyone tell me the meaning of this errno or tell me a link where I can find out more about such error-numbers java.net.SocketException: errno = 0x31at java.net.PlainSocketImpl.doConnect()at java.net.PlainSocketImpl.connectToAddress()at java.net.PlainSocketImpl.connect()at ...
436 byte By
covjim at 2007-9-26 5:34:53
Hi, I need to write a java program to be able to see the desktop of another computer and control it from my computer.I think I will need to have some sort of server operating on the target computer and then i will have access that server from my computer. The program should be as basic as it ...
1521 byte By
russdh at 2007-9-26 5:43:41
I'm trying to write an applet that communicates with a servlet via HTTP. I wrote an example that works fine under InternetExplorer, but doesn't work at all under Netscape. I get the exception UnknownServiceException: protocol doesn't support output at the point I'm trying to open a ...