URGENT-i have a client/server application-how can i use it in my webpage...

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. ...

JSDT and Java 3D

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 ...

JVM_recv in socket input stream error

312 byte By larrygriffith at 2007-9-26 1:34:27
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 ...

Distributing computing?

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 ...

How to use HTTPS with JSSE URLConnection in servlet

919 byte By gaburdeineh at 2007-9-26 1:43:36
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 ...

Answer this for 15 Duke Dollars (How to download files from Gnutella Net)

998 byte By wwwslashdotcom at 2007-9-26 1:43:41
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 ...

how to know Server had shutdown?

320 byte By martin zhu at 2007-9-26 1:45:14
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! ...

change the source address in socket

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 ...

Serial communication with Motorola HDT300

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 ...

Question about Connection with PDA and PC

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 ...

SocketException thrown when reading from socket.

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 ...

sending file throught socket

121 byte By rajesh009 at 2007-9-26 2:07:28
hi, can someone tell me how can i send a file through a socket?thanks in advancerajesh

HTTP Connections

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.

pls help, Does any practical solution exist for RMI-Firewall Tunneling ?

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 ...

Closing a socket is not freeing the port!!

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 ...

Cookies and URLConnection.setRequestProperty()

627 byte By zmalltalker at 2007-9-26 2:19:07
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:" , ...

Dual node problem

663 byte By nick.armstrong at 2007-9-26 2:29:56
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 ...

NNTP related information need

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

Lan - Computer Names

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

Http Client/Server Problem

4704 byte By damianharvey at 2007-9-26 2:53:53
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 ...

doing a DNS query ?

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 ...

Multicasting using different operating systems

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 ...

2 files in the same socket

160 byte By rajesh009 at 2007-9-26 3:12:29
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

data protection

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 ...

configuring a dial-up........

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 ...

How To Separate Header from File in Socket Connection

900 byte By wwwslashdotcom at 2007-9-26 3:33:10
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 ...

HttpURLConnection limits?

255 byte By Massarian at 2007-9-26 3:39:27
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?

Setting up distributed servers

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? ...

how to know if a port is occupied by another app?

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 ...

Problem sending http request

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 ...

Servlet life cycle/Singleton pattern/synchronized

1161 byte By m_hartnett at 2007-9-26 3:57:36
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 ...

Reading file from Unix machine

359 byte By mdhariwal1 at 2007-9-26 3:57:59
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 ...

Lost data in writing to a socket

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, ...

How to send a file..?

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 ...

default socket properties

861 byte By prashant_c at 2007-9-26 4:33:51
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 ...

How to go to the next Page while generating a text file ?

439 byte By ssshalini at 2007-9-26 4:38:22
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 ...

Socket - Username/Password

318 byte By goochable at 2007-9-26 4:46:04
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 ...

Distributed Javaspaces...

238 byte By Ads_Green at 2007-9-26 4:46:18
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

While generating Text files dynamically how can we add "Page Break"

721 byte By ssshalini at 2007-9-26 4:47:26
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 + ...

How to increase the number of socket you can open?

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 ...

Transfering A FILE In Java!?!

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 ...

How to, login into the yahoo groups/clubs,....

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 ...

Socket writing error

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. ...

Socket writing error (URGENT!)

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

JMX:Mbeans in different jvm

181 byte By anildhiman at 2007-9-26 5:23:25
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

Parallel Processing

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 ...

How can I connect to a ServerSocket behind proxy ?

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 ...

SocketException with errno 0x31

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 ...

desktop sharing in java

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 ...

applet/servlet communication problem, UnknownServiceException

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 ...