Java Socket Programming
- "\n" gets lost by sending an XML-message via Socket.
- Sun, 23 Sep 2007 03:05:00 GMT
- Hi, everybody!I'm trying to implement a small Client/Server system. A Client has to send some simple XML messages, wich my server has to process.The Problem:I'd like to keep the new line-Marks in the message, but when I send a message via write(String s) (class BufferedWriter) , they get ...
- "Connection reset" problem NOT "Connection reset by peer"
- Wed, 16 Jul 2008 21:27:00 GMT
- Hi,I get this problem "java.net.SocketException: Connection reset"We are using socket pooling. Ours is a web application that internally connects to a legacy application through sockets.This happens if we login to a page and keep it like that for 1 day and then retry to opertae something. i.e.,...
- "Email Login" App: POST Forms, & Client Cookies for (Hotmail/Yahoo mail etc)
- Wed, 16 Jul 2008 21:24:00 GMT
- HelloI've been working on the above to automate "Email Login" for both a Java application and Applet.If anyone is working on this too and interested in collaborating or has final code they are willing to share this would be most helpful.Just to explain the background. POST form info is sent...
- "Extensions not allowed in v2 certificate"
- Wed, 16 Jul 2008 21:25:00 GMT
- I am opening an HTTPS URLConnection with self-signed certificates. I am using a loose trust manager in my SSL context that accepts whatever certificate the server returns. Yet, attempt to read off the input stream of the URLConnection yields the following exception:java.io.IOException: Extension...
- "Information -Help" Needed (Remote Login Implementation using JAVA)
- Sat, 22 Sep 2007 15:56:00 GMT
- Hello Friends!!I am a final year Engineering student doing my Course in Computer Science Engineering... Recently I've been alloted a project of Implimenting "Remote Login" ( i.e creating a client program) my project Head of the faculty said to use TELNET, I am very much confused, what i know ...
- "invalid flavor error" Printing html docs
- Sat, 22 Sep 2007 16:04:00 GMT
- DocFlavor flavor = DocFlavor.URL.TEXT_HTML_US_ASCII;I need to print a URL with an applet in Internet Explorer but keep getting the "invalid flavor" error.please post your answer in the following topic:http://forum.java.sun.com/thread.jsp?thread=350123&forum=57&message=2630553Thanks ...
- "Locking" windows (JFrames)
- Sat, 22 Sep 2007 04:16:00 GMT
- Hi!I'm writing an application where one JFrame (number two) is opened in another JFrame (number one). What I want is, that as long as the second window is opened, you are not able to select the first window, not until you close the second window that is. How is this implemented?/Andreas ...
- "Metal" theme?
- Sat, 22 Sep 2007 08:40:00 GMT
- Hmm, just doing some late night API reading and I came across all the Metal classes. What exactly are these, and how can I set them up? Do they display on every system? That kind of stuff would really help me out, or a link to an explanation article. Thanks for any help. ...
- "Refreshing" a Container
- Sat, 22 Sep 2007 13:45:00 GMT
- Hey. Is there any way to "refresh" a JPanel, or in other words, to update its contents?I have one large JPanel that is the main content pane for a JInternal frame. To this, I added three panels, one of which is a panel called OptionsPanel. I pass OptionsPanel an Options object which contains ...
- "Socket is closed"... why?
- Wed, 16 Jul 2008 21:24:00 GMT
- Hello,I am coding a client and using ServerSocket to receive data from server.code:while(true) { ois = new ObjectInputStream(new ServerSocket(PORT).accept().getInputStream()); theArray = (int[][])ois.readObject(); ois.close(); ... ...}the problem is the first loop client can receive data from se...
- "Software caused connection abort: socket write error"... what is it?
- Wed, 16 Jul 2008 21:29:00 GMT
- Hello again...Can anybody tell me what does quote:Software caused connection abort: socket write error means? I am making a program to transfer data int[][] through socket connection. Both server and client side has exactly the same codes (of course I alter the destination computer name and port...
- "URL"
- Sun, 23 Sep 2007 06:32:00 GMT
- Hi, (how) can I "fall back" on http protocol, "without Exception"?JEditorPane.setPage(String / URL);String / URL = JOptionPane.showInputDialog(frame, null, "", JOptionPane.PLAIN_MESSAGE);...
- "Value changed by user" event for JComboBox
- Sat, 22 Sep 2007 13:54:00 GMT
- Is there some way I can listen for selection changes made by the user on a JComboBox? "ActionPerformed" fires every time items are removed/added, while I'd want it only to respond to selection changes made by the user (by mouse/keyboard/other abstract undefined selection device x). ...
- "Voice Transmission via Socket"
- Wed, 16 Jul 2008 21:24:00 GMT
- Dear all,I am attempting to develop a socket application which transmit voicefrom one PC 's microphone to another PC 's speaker.Anyoneknow how to do this in Java.If someone can provide me guideline orsample code, I would be much appreciate, since the deadline is tight, only3 days ->06...
- "Weird" Problem (javaw crash)
- Wed, 14 Nov 2007 12:16:00 GMT
- I was playing around a bit with mtrace, trying to modify it to profile the new-keyword instead of the constructor of Object. This led me to make a number of changes to java_crw_demo. Without going into too much detail and taking up page after page with code, I'll mention the relevant parts ...
- <identifier> expected error message
- Sat, 22 Sep 2007 14:20:00 GMT
- I am a beginner in Java progrmming.I have got this error message everytime I compile this code:JOptionPane.showMessageDialog(null, "object", "input", JOptionPane.WARNING_MESSAGE);The error points to start of the method, at "(".Thanks for any help.kianpojan ...
- <t:div visibleOnRole="true">
- Wed, 14 Nov 2007 12:15:00 GMT
- Hello, I've Problem in using <t:div> .In my application i have 3 roles as role1,role2 and role3.According to the roles i need to display only that part of the page which is required for that role.Like role1 can view only one part of display, role 2 has to view only 2nd part of page and ...
- (java) net view
- Sun, 23 Sep 2007 16:43:00 GMT
- Hello World...I would like to know how can I obtain the list of hosts currently avaiable on my LAN, just like the net view command.Actually I've made this task with reading the console's output of net view command, but I want do this with an only-java solution.Sorry for my bad english, and ...
- (JTable) How can i get the first columns cell in a selected row?
- Sat, 22 Sep 2007 19:02:00 GMT
- Hello. I am trying to figure out how i can get the first columns cell within a selected row no matter what cell is selected in that row. I have a class that extends AbstractTableModel which represents the table. Now i have another class that extends DefaultSelectionModel. Each model is added to ...
- (new to GUIs) Dialog box with two text fields & OK/Cancel?
- Sat, 22 Sep 2007 12:15:00 GMT
- I'm writing a GUI application using Swing. I'm new to programming with GUIs but to give you an indicator of what I've learned so far, a screenshot of the application so far: http://www.bmjames.net/dev_screenshots/cheekybrowser05.pngI want to prompt the user to input two strings in one dialog ...
- (newbie) Changing JFrame menu from a JInternalFrame
- Sat, 22 Sep 2007 18:03:00 GMT
- Hello,When a certain JInternalFrame is activated within my Swing application, I would like to change/modify the menu bar of the parent JFrame window to add a new "Actions" menu item of actions that are specific to this JInternalFrame. Once this JInternalFrame is closed, I would like to go back ...
- (RMI) Downloaded ed remote object doesn't "work".
- Tue, 18 Sep 2007 23:09:00 GMT
- Hi, I implement an application service that as its field has a Display object which extends the JPanel class.public class Display extends JPanel{....} The service has a method that allows the client to obtain a copy of that object,....private Display display = new Diaplay(); // service ...
- (Server) UDP packet arrival ... local network
- Sat, 22 Sep 2007 03:34:00 GMT
- Hello, I am developing an application that contains a UDP Server to send and retrieve packets. I am currently stuck in a problem, and would appreciate any input. Let me try giving a description of the problem. So a UDP Datagram socket bound to a port is declared and the server is started in a ...
- (Struts) cookie problem with internet explorer.
- Wed, 14 Nov 2007 12:13:00 GMT
- hi there,When I'm populating the information into my form, the browser chooses a different information of the same form (to be more precise - the most recent form I used).when I delete the cookies from the browser - it works great.I do: Tools->internet Option-->delete->delete cookies ...
- $10 Please Help Simple Java Corba Problem
- Thu, 20 Sep 2007 07:12:00 GMT
- This is probably a really simple one but I am very cheased off about it.I run my applications on a Win XP OS, and when I go to type in nameserv it gives me the following error I have J2RE 1.4.1 also, JDK 1.4.1 and JRE 1.4 ,And jbuilder ver 8 personal edition.I have also installed Borland ...
- [A VERY CHALLENGING QUESTION]
- Wed, 19 Sep 2007 00:37:00 GMT
- Is there any method to increase the maximum number of connectionsthat can be accepted by a java server simultaneously?I have set a long queue length for my ServerSocket by"ServerSocket(2020, 10000)" and the server is multithreaded.I am now writing a test multithreaded client to generate a load ...
- ANSI connection via socket
- Wed, 19 Sep 2007 08:39:00 GMT
- HiI need help!!How can i establish an ANSI connection via socket? because the server dont let me connect with a VT100 connection...
- Problem with JavaMail API
- Wed, 16 Jul 2008 21:29:00 GMT
- ***Problem with JavaMail API***Hi Everybody!I have developed mail client using JavaMail API. It shows only one folder that is Inbox while retreiving messages from POP3 Server. I want to show all other folders like OUTBOX, Deleted Item, Sent Items and Trash also.Please suggest me a solution for m...
- PLEASE can someone help me with a cell problem
- Sat, 22 Sep 2007 05:02:00 GMT
- *PLEASE can someone help me! When i try to filling my table by pressing a button. I get a nullpointerexceoption even though I have caught it void l?ggTillText_actionPerformed(ActionEvent e) { int rowIndex = 1, columnIndex = 1;try {table.setValueAt("473018", rowIndex, columnIndex); } ...
- Proof of 1.4.x remote display degradation
- Sat, 22 Sep 2007 04:52:00 GMT
- Running this over a remote display in <= 1.3 works great. In >= 1.4, it's approximately 20-30x slower.Anyone in a similar situation or can offer advice? Thanks!Robpackage test.pattern;import javax.swing.*;import java.awt.*;import java.awt.image.BufferedImage;import ...
- "Java Socket Programming" Related Questions
- Problem with JavaMail API
- ***Problem with JavaMail API***Hi Everybody!I have developed mail client using JavaMail API. It shows only one folder that is Inbox while retreiving messages from POP3 Server. I want to show all other folders like OUTBOX, Deleted Item, Sent Items and Trash also.Please suggest me a solution for m...
- (java) net view
- Hello World...I would like to know how can I obtain the list of hosts currently avaiable on my LAN, just like the net view command.Actually I've made this task with reading the console's output of net view command, but I want do this with an only-java solution.Sorry for my bad english, and ...
- (Struts) cookie problem with internet explorer.
- hi there,When I'm populating the information into my form, the browser chooses a different information of the same form (to be more precise - the most recent form I used).when I delete the cookies from the browser - it works great.I do: Tools->internet Option-->delete->delete cookies ...
- (JTable) How can i get the first columns cell in a selected row?
- Hello. I am trying to figure out how i can get the first columns cell within a selected row no matter what cell is selected in that row. I have a class that extends AbstractTableModel which represents the table. Now i have another class that extends DefaultSelectionModel. Each model is added to ...
- "Value changed by user" event for JComboBox
- Is there some way I can listen for selection changes made by the user on a JComboBox? "ActionPerformed" fires every time items are removed/added, while I'd want it only to respond to selection changes made by the user (by mouse/keyboard/other abstract undefined selection device x). ...
- "Extensions not allowed in v2 certificate"
- I am opening an HTTPS URLConnection with self-signed certificates. I am using a loose trust manager in my SSL context that accepts whatever certificate the server returns. Yet, attempt to read off the input stream of the URLConnection yields the following exception:java.io.IOException: Extension...
- "invalid flavor error" Printing html docs
- DocFlavor flavor = DocFlavor.URL.TEXT_HTML_US_ASCII;I need to print a URL with an applet in Internet Explorer but keep getting the "invalid flavor" error.please post your answer in the following topic:http://forum.java.sun.com/thread.jsp?thread=350123&forum=57&message=2630553Thanks ...
- "Email Login" App: POST Forms, & Client Cookies for (Hotmail/Yahoo mail etc)
- HelloI've been working on the above to automate "Email Login" for both a Java application and Applet.If anyone is working on this too and interested in collaborating or has final code they are willing to share this would be most helpful.Just to explain the background. POST form info is sent...
- (RMI) Downloaded ed remote object doesn't "work".
- Hi, I implement an application service that as its field has a Display object which extends the JPanel class.public class Display extends JPanel{....} The service has a method that allows the client to obtain a copy of that object,....private Display display = new Diaplay(); // service ...
- "Locking" windows (JFrames)
- Hi!I'm writing an application where one JFrame (number two) is opened in another JFrame (number one). What I want is, that as long as the second window is opened, you are not able to select the first window, not until you close the second window that is. How is this implemented?/Andreas ...