Hi I have a client and server program, all the coding is done and compiles, the client has a GUI and the server is command line. The program uses sockets.
But ... |
I'm currently writing something to work around this Java bug:
http://bugs.sun.com/view_bug.do?bug_id=5049299
Basically, I've got a light weight C server that runs on the same machine as the Java server. I'm ... |
everyone!
Few days ago I catch interesting j2me exception while testing my application on device nokia 5230.
I connect to the server by tcp/ip, all works fine, but in 3 - 5 minutes ... |
We have J2EE Web application deployed on JBOSS 4.0.2 server.
On production we are facing serious issue of socket error.
we are getting following error.
java.net.SocketException: Software
caused connection abort: ... |
I'm trying to create a new socket, but it keeps finding a IO Exception, saying
Couldn't get the I/O for the connection to: localhost.
Here is my code snippet:
Socket mySocket = ...
|
Hello The task is to send datastreams between sockets (java.net sockets extended for particular functionality i.e. random insertion of errors) and to evaluate the datastreams sent by examining any errors in the stream. Does anyone know if it is possible to use XML with Java as a way to detect errors when sending data between 2 sockets? If this is possible, ... |
|
|
Hi, i am working on jsp, tomcat, jdk1.3 for webpage. My problem is when i browse the index site there is error in tomcat as "2001-09-24 22:16:31 - Ctx( /examples ): IOException in: R( /examples + /jsp/p/s/sc/images/upper_banner.gif + null) Connection reset by peer: socket write error 2001-09-24 22:33:16 - Ctx( ): 404 R( + /d/winnt/system32/cmd.exe + null) null 2001-09-24 22:33:18 - ... |
Hello All, I have an application which creates html's with applets loaded after authentication to the server (Linux) using sockets. It works perfectly in the intranet environment. But am trying to host it on the net, by changing respective Inetaddress of the server. When i try to authenticate, I land up in the problem "Host Unreachable" when i try to open ... |
Hi, When I compile the appended class, I get the following error: socketApp1.java:11: cannot resolve symbol symbol : constructor Socket (java.lang.String,java.lang.String) location: class java.net.Socket Socket socket = new Socket("127.0.0.1", "8080"); ^ 1 error The code is: import java.io.*; import java.net.*; import java.net.Socket; import java.net.ServerSocket; import java.net.InetAddress; public class socketApp1 { public static void main (String args[]) { Socket socket = new ... |
Hi. I am looking for a list with explanations of error "references/codes" for java sockets. Like the list that exists for Berkeley sockets, and Windows sockets. I understand it is not the same with java, but does it exist something like this. Want it for referance. I have googled alot, but not found any, only some comments related to some spesific ... |
|
hi, i'm trying to send a soap message to the following url: http://europe.ipx.com/api/services/SmsApi50 as you see, the axis service there is alive and running. i build a soap message and send it as a string with the following code: URL url = new URL("http://europe.ipx.com/api/services/SmsApi50"); URLConnection uc = url.openConnection(); connection = (HttpURLConnection) uc; connection.setDoOutput(true); connection.setDoInput(true); connection.setRequestMethod("POST"); connection.setRequestProperty("Connection", "Keep-Alive"); connection.setRequestProperty("Content-Type", "text/xml;charset='utf-8'"); connection.setRequestProperty("SOAPAction", "\"\""); ... |
I am experimenting with writing/reading objects over sockets. When I set up both the server (who listens for a connection) and a client(who initiates a connection) on the same machine the server accepts the connection, gets the input stream and eventually the objectinputstream from the newly formed socket and the readObject method on the ObjectInoutStream on the server side reads the ... |
Dear All, Issue:- When applet sends POST data via browser, the server does not receive the same. On checking the Java Console, the following error is displayed. "java.net.SocketException: Unexpected end of file from server" O.S :- Win XP, Service Pack 2 Browser:- I.E 6, Service Pack 2 Applet :- Signed Applet VM :- Sun VM (1.4.2_06) Note:- When MS VM is ... |
Q: On which server operating systems is FTPClient able to bring back a parsed listing? A: Currently parsers have been written for UNIX, Windows, OS/2, Netware, VMS and OS400. These can be autodetected by the code without being specified. Additionally, the code correctly handles cases where NT or OS400 servers have been configured to look like unix servers. There is also ... |
Hi all, I am writing a Socket client . After finishing all the transactions, I amusing the below method to close the socket: public int closeConnection(Socket socket, InputStream in,OutputStream out){ try{ if(in!=null){ System.out.println("Before Calling ShutDown Input:"+socket.isClosed()); if(socket.isClosed()){ System.out.println("SHI-Socket is already closed"); }else{ try{ in.close(); in=null; socket.shutdownInput(); System.out.println("Socket Input Shutdown:"); } catch(Exception e){ System.out.println("Unable to shutdown Input:"); e.printStackTrace(); } } } if((out!=null)){ ... |
Hi guys, i am unable to conect from my machine to the other,i have attached the errors i get,Can you please help me. Reading the previous topics i would like to add that i have 2 IP addresses for my machine 192.168.1.128 192.168.152.128 If that is of any importance I am able to telnet to port 42028 to the host machine......but ... |
I am using Jpcap api to capture network packets. I have installed WinPCap on my m/c. by using following code I m getting the network devices connected to my m/c String[] devs = PacketCapture. lookupDevices(); the device name i m giving input to for (int i = 0; i < devs.length; i++) { try { System.out.println("\tDevice " + i + " ... |
hi all I have a problem in comm.jar i'm using the usb to serial converter which communicating with serial port Problem is: when the port is opened if we remove the cable "WaitCommEvent: Error 5" Error is comming i need to close th eport at the time of this event Please give some ideas |
|
my servlet is trying to recieve a multipart/form-data request from an applet which containing a file [image] and store it in the DB the dopost method is: public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { String path = null, fileName = null; path = this.getServletConfig().getServletContext().getRealPath("/tempimages/")+imageType+"/"; ServletFileUpload fu = new ServletFileUpload(new DiskFileItemFactory()); List fileItems = fu.parseRequest(request); Iterator itr ... |
|
Hi am sneha...my final year project is about tracking botnets..in that my first coding part includes peer registration.. peer registration: import javax.swing.*; import java.awt.event.*; import java.awt.*; import java.net.*; import java.io.*; class PeerRegistration { JFrame f=new JFrame(); JPanel p=new JPanel(); JLabel l1,l2,l3; JTextField t1,t2,t3; JButton b1,b2; public PeerRegistration() { try { component(); System.out.println("Constructor"); } catch (Exception one) { System.out.println(one); } } public ... |
|
Taken directly from http://download.oracle.com/javase/tutorial/networking/sockets/examples/KnockKnockServer.java It is the Java tutorials. Here is the code and the error. Code: import java.net.*; import java.io.*; public class KnockKnockServer { public static void main(String[] args) throws IOException { ServerSocket serverSocket = null; try { serverSocket = new ServerSocket(4444); } catch (IOException e) { System.err.println("Could not listen on port: 4444."); System.exit(1); } Socket clientSocket = null; try ... |
|
Is there something possibly going on in windows XP internally causing this? It appears if I change server_socket.setSoTimeout(5000) to server_socket.setSoTimeout(0) it seems to stop the error. So it looks as if it takes longer to create the socket Can someone tell me why this happening as I am new to java and socket stuff |
|
|
Hello, I've been working on a program that relies on TCP sockets, an I'm running into a strange error. I've got a Socket, and an InputStream retuned from the Socket's getInputStream() method. The isConnected() method for this socket returns true, but when I try to read a byte of data from the InputStream, I recieve the Socket Exception "socket closed" Does ... |
|
I am getting the following error: SQLException detail [SQLState: IX000 Error code: -79716] java.sql.SQLException: System or internal error java.net.SocketException: Connection aborted by peer: socket write error I am pretty sure I know what is causing it, but not sure what to do about this. The code basically listens for changes/updates to a field in an MS SQL database and when there ... |
|