Problem with socket and Flash

I have a chat application where the client is written in Flash 9 and it connects an XMLSocket to my java server.
Those that know Flash 9 know that it first makes a policy file request and all you have to do is provide a small chunk of xml stating the desired port and domain.
To get a better understanding I adding some thread tracking to the server app. Now when I run the following:
String policy_response = "<?xml version=\"1.0\"?><cross-domain-policy><allow-access-from domain=\"*\" to-ports=\"6000\" secure=\"false\" /></cross-domain-policy>"+ "\0";
ErrorBroker.addError("name: " + this.currentThread().getName());
String mes = "";
if(cs.incoming.ready())
     mes = cs.readln();
     ErrorBroker.addError( this.currentThread().getName()+ " ready: " + mes);
if(mes.equals("<policy-file-request/>" + "\0"))
     ErrorBroker.addError( this.currentThread().getName()+ " policy hit");
     cs.send(policy_response);
counter++;
ErrorBroker.addError( this.currentThread().getName()+" counter: " + counter);and the results I get are the following:
name: Thread-34
Thread-34 in ready: <policy-file-request/>
Thread-34 policy hit
Thread-34 counter: 1
Thread-34 after read2: <policy-file-request/>
END OF processClient()
  Closing socketThere is no second connection though there should be. On the flash end I get nothing..no message stating a connection made or lost.
Now if I have the server as such:
ErrorBroker.addError("name: " + this.currentThread().getName());     
String mes = "";
/* ---- policy response sent BEFORE readLine() ---- */
cs.send(policy_response);
if(cs.incoming.ready())
     mes = cs.readln();
     ErrorBroker.addError( this.currentThread().getName()+ " in ready: " + mes);
if(mes.equals("<policy-file-request/>" + "\0"))
     ErrorBroker.addError( this.currentThread().getName()+ " policy hit");
counter++;
ErrorBroker.addError( this.currentThread().getName()+" counter: " + counter);The one difference being that the policy reply happens before any read.
I get these results:
name: Thread-34
Thread-34 in ready: <policy-file-request/>
name: Thread-35
Thread-34 policy hit
Thread-35 counter: 1
Thread-34 counter: 2
Thread-35 after read2:
Thread-34 after read2: <policy-file-request/>
io error1: java.lang.StringIndexOutOfBoundsException:String index out of range: 0
END OF processClient()
END OF processClient()
  Closing socket
  Closing socketDoes this make sense to anyone? How is it that if I do a readLine before sending the policy request file that nothing happens but I send after a readLine the second socket shows up.
Any help is GREATLY appreciated.

The second case does appear to be a threading issue.....but what bothers me the most is why I get nothing from flash when I readLine first. This doesn't seem to be an issue with anyone else and I've seen many examples (though almost all were written in PHP) that are exactly the same. Read first...look for the policy request...then reply accordingly.
This is a small chat application running on Tomcat 5.5.
It worked well back when I ran it with Flash 8 but since I upgraded to Flash 9 (had to...no other way around) I now have to deal with this policy issue (apparently it pissed off quite a few developers).

Similar Messages

  • Problem with dreamweaver and Flash

    Hi, maybe someone can help me, i have any problem with
    dreamweaver and flash, i have a page and i have a menu and
    sub-menu, and the same page i have a category en flash 550 x 700 (
    photography and more... ) but when the menu to unfold
    the menu to see under flash and it cant see ( sorry my
    english is bad.... i hope you can understand me, and help me.. )
    i dont now why always flash ever stay up, or first, and
    another information under flash... this a problem... if you have
    menus...
    thanks.... have nice day.....

    This is a drawback of using flash or any other active
    content. By default, all active content including flash will
    display over every other content and thats why your menu stays
    under the flash movie. Some people make the flash background
    transparent to show content under the flash movie, but that will
    not work for menu items.
    I would suggest that you make the menu such that it does not
    overlap with the flash movie.

  • Problem with Safari and Flash Player

    Hi, I've done a quick search and can't find an answer, however since updating from Lion to Mountain Lion I've had problems with my (2011) Macbook Pro whilst in Safari, following a Genuis bar visit last week we managed to narrow it down to a flash player problem and uninstalled and reinstalled flash was told that should the problems persist (we couldn't get the computer to repeat it's beahviour in store) then to re-install OSX, now I've done this but still getting the same problem, screen not refreashing so parts of previous page or pop still showing over top of new page and Computer getting VERY hot (to the point of almost burning. Now I've had a look on Adobe website and they recommend running 10.3 rather than 11.4 and I managed to download it from them however Safari blocks it as it's out of date, also on my iMac running Mountain Lion Flash appears to be blocking internet access, internet fails when attempting to use a website that needs flash, but works fine when not using it.  Anyone got any ideas on a work around?

    Try this...
    Quit Safari.
    Open System Preferences > Flash Player then select the Advanced tab. Click: Delete All
    Relaunch Safari.
    From the Safari menu bar click Safari > Reset Safari
    Select:  Clear History  (also empties the cache)
    Deselect the remaining boxes then click Reset.
    Quit and relaunch Safari. Try a Flash based video.

  • Problem with Safari and Flash

    Hi guys,
    i've a macbook pro 15' top-2010  with osx 10.7 Lion & Adobe Flash Player 11.0.1.98 (beta) and i've this problem (with safari, firefox and chrome):
    - when i go in a facebook game (cityville, poker, or other flash games) my cpu go at over 100% (also 150%) usage, the temperature become very very high and the fans go to 4500rpm.
    in the other sites (youtube, normal flash site,...) i haven't problem.
    note that all the browser are update at the last stable version. i've also tried to install the last stable version of flash (10.3.183.5) but nothing.
    in the console, when i'm in a facebook game, i see (repeated many times):
    - kernel: IOSurface: buffer allocation size is zero
    - kernel: nstat_lookup_entry failed: 2
    what can I do?
    solutions?
    thanks

    i done this, but the problem remains.
    I have to wait for updates (for lion and for adobe flash)

  • STILL no real answer to problems with QuickTime and Flash Player

    The reply to Problems with QuickTime really didn't answer or solve the basic problem. Some sites to work at all require you to have working Flash Player 8 so when I try to use these sites I get the QuickTime logo with a question mark and then nothing. For all you experts on Apple and Mac; what is going on? Apple is the parent of QuickTime and I assume they want their customers happy with their work. So why is it so hard for these apparently small updates to their programs causing entire sites being blocked off? I have OS x 10.3.9 on a G4 iMac 855mHrz .... It seems that even though we, the customer by default become Apples program testers;the actual programers are never given the go ahead to actualy look at these problem posts. Has anyone ever gotten a solution for a problem they posted here from one of the programmers of the product? It would be nice to know we aren't left to our own devices when it comes to program gliches from the source. If the powers that be in apple are watching and willing to help; any time now is a good time to just but in on the conversation and help solve some of the problems us little people keep on running into.--------------
    While online I run into sites that will NOT work without Flash Player 8 (which costs over $150.00) which is told to the viewer with a QuickTime logo with a question mark in it.
    This leads the web surfer to try to upgrade or at least investigate Flash Player in their computer and it's version.When said web surfer looks at Flash player upgrade for bucks and the fact that in some way it is tied to QuickTime, web surfer gets real curious. Do the web masters for those sites know that their site is now blocked off? If any major portion ( say 30 or 40 % ) of the web surfing crowd is required to purchase an upgrade to Flash Player even though it doesn't look like Apple is the parent of said Flash Player; those web masters are going to be upset with Apple. Their income is tied to actuall access and browsing of a site, even if it is only to actually just get the Home page. With no access to the site due to no Flash Player 8, the web master is going to find those all important Hits going down to nil. -------
    This post is way to broad for any one answer so I don't really expect one. But for you people who have run into similar problems with other programs and sites; I would love to hear if you got any help from other web surfers or from the parent people of those programs and/or sites. I know that my isp earthlink has helped out with problems faster than other groups involved. Anyway.. Any help or comment on this post ( or gripe if you prefer ) would be greatly appreciated. Thank you.

    Sorry, but you are completely misinformed. Flash Player 8 doesn't cost one red cent; it's only the Flash creation package that you have to pay for. You can download the free Flash Player 8 here.
    QuickTime can natively handle some Flash content, which is why with the lack of the Flash player the browser defaults to the QT plugin. But Flash 8 is a relatively new format from Macromedia and I'm not sure QT supports it yet. Install the Flash 8 player and things should work just fine.
    And just FYI, for questions about the Mac version of QuickTime, you'll be better off asking them in the QuickTime for Mac forum.

  • Problems with sockets and InputsStreams

    Hi,
    I ve this code:
    InputStream is = null;
    boolean ok=true;
    while(ok){
    //sc is an object instance of socketConnection
    is = sc.openInputStream();
    return this.parse(is);
    //is.close();
    return "";
    and this exception is produced:
    java.io.IOException: no more Input Streams available.
    This exception is produced in the line:
    is = sc.openInputStream();
    I m connecting to a server and this server sends data throw a socket... but the problem is that when i m reading from this socket and this socket doesn t have data in it...
    how could i solve this problem...?
    Thanks,
    Diego

    That would be the "real" code:
    public String process()throws IOException{
    InputStream is = null;
    is = sc.openInputStream();
    String result= this.parse(is);
    is.close();
    any suggestions?
    Thanks,
    Diego

  • Problems with validation and flash (xhtml)

    I don't understand...
    I've built the page using fireworks and dreamweaver cs3.
    I've inserted a flashmedia by using insert-media-flash and on
    some pages flashbuttons. It works fine in a browser (checked with
    IE7 and NS9). But when I use validate in dreamweaver I get errors
    that says something like the tag with the name "embed" can't be
    found in (something) versions.[XHTML 1.0 transitional].
    Why does dreamweaver use "embed" when it shouldn't be used
    with xhtml? How do I fix this?
    Please help?
    Site address:
    http://www.forsakringscenter.se

    > Why does dreamweaver use "embed" when it shouldn't be
    used with xhtml?
    Because that's the only way to make Flash work on all
    browsers reliably.
    > How do I fix this?
    http://blog.deconcept.com/2005/12/15/internet-explorer-eolas-changes-and-the-flash-plugin/
    Background:
    http://en.wikipedia.org/wiki/Eolas
    See also
    http://www.adobe.com/devnet/activecontent/
    If you're running Dreamweaver 8.0.2, the fix is already built
    into DW's
    interface.
    If not, try
    http://blog.deconcept.com/swfobject/
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "PatrikI" <[email protected]> wrote in
    message
    news:f5dsr3$5r0$[email protected]..
    >I don't understand...
    >
    > I've built the page using fireworks and dreamweaver cs3.
    > I've inserted a flashmedia by using insert-media-flash
    and on some pages
    > flashbuttons. It works fine in a browser (checked with
    IE7 and NS9). But
    > when I
    > use validate in dreamweaver I get errors that says
    something like the tag
    > with
    > the name "embed" can't be found in (something)
    versions.[XHTML 1.0
    > transitional].
    >
    > Why does dreamweaver use "embed" when it shouldn't be
    used with xhtml? How
    > do
    > I fix this?
    >
    > Please help?
    >
    >
    > Site address:
    http://www.forsakringscenter.se
    >

  • Problem with IE8 and Flash on LL Bean website

    My desktop machine is running XP SP3 with all updates and the latest Flash Player. When visiting the LL Bean online catalog you view the products which have small pictures associated with them. If you click on a picture a larger window opens up with zoom controls etc which gives you a much better idea of what the product looks like. This works perfectly with my laptop running the same software setup as well as my work computers. With my desktop the image loading progress bar runs to the end of the bar and then just sits there. It doesn't hang IE8 or anything...it just sits and does nothing. I can close the window and go back to browsing the catalog with no problem until I try to view another larger image where it does the same thing.
    So far I have not run into any  issues with any of the other websites I have visited.
    I am hoping the experts here can help me resolve this problem. I have uninstalled and reinstalled flash 3-4 times. I have read several articles on google but none quite like what I'm experiencing...I have run into a brick wall.
    Any help tearing the wall down will be much appreciated.

    It do happen with IE many times. Few flash files works exactly in other browsers but in IE they dont. Try to update the IE latest software or patches from microsoft website.
    Sai.
    My Website - Placement Papers, Interview Questions, Job Openings, Prepaid Mobile Recharge Online, ITClerk

  • Problem with Socket and dynamic IP

    The problem I have is the following: My domain has a dynamic IP, so after the IP changes the s.accept() does not work any more!
    try // Point 1 *)
    ServerSocket s = new ServerSocket(portNumber);
    for(;;)
    Socket incoming = s.accept(); // does not work after IP changes
    new ThreadedEchoHandler(incoming, i).start();
    So I have to detect that the IP has changed and have to start again at Point 1
    How can I do this?
    thx walter

    Something is vary wrong with your network software if your getting an error on that.
    When you start your computer connected to the network, a DHCP (in your case) Server sends your NIC a dynamic IP address, we call this process "binding". When the client computer connects it also is given an IP address to bind to. You can't connect to anything, or in your case create a ServerSocket, if you dont even have an IP. So your Server has an IP address, and so does the client. You should not be getting any errors unless the client/server network is using two different protocols. You can't run an IPX/SPX network and a TCP/IP network together without a Bridge.
    That does not seem to be your problem. I believe, then, that the problem is that your ThreadedEchoHandler is holding the CPU. Instead of having a client connect (s.accept()) outside of that thread. Have the thread be created by using the arugment of the ServerSocket instead and no the Socket object created.
    new ThreadedEchoHandler(ServerSocket ss);
    Then let it do it's thing. Also, you will need to call it's start() method to actually run the thread as a thread. Otherwise it runs as a simple class.

  • Problems with IE9 and Flash Player when Offline

    I can't get embeded flash to work in IE9 with Windows 7 when offline (works fine online) but it works fine with Google Chrome. I am saving the webpage with embeded flash as html.

    I was having the same problem using Internet Explorer—this is how I solved it. This worked for me—it may not work for you.
    First go to http://get.adobe.com/flashplayer/ and install Adobe Flash Player for your computer.
    Click to open Internet Explorer.
    Click the Tools button , and then click Manage add-ons.
    Under Add-on Types, click Toolbars and Extensions.
    Under Show, To display a complete list of the add-ons on your computer, click “All add-ons” on the left bottom under “Show”.
    Under “Name” go to “Adobe Systems Incorporation” select “Shockwave Flash Object” right click on “Disabled” and click on “Enabled”
    Also make sure “Shockwave ActiveX” is also “Enabled:
    When you're finished, click Close.
    marv70

  • Audio Problems with Quicktime and Flash

    Hi,
    For some reason, my Mac has stopped playing audio from flash and movies. I have no idea how this has happened as I cannot remember changing any preferences. This has occured with movies that I've watched before that I know the audio works on.
    Does anyone know what I can check?
    Thanks,
    Steve.

    It is a known problem and Apple even has a KB article about it.
    It seems that some apps might change the sound prefs and in doing so, they keep some other apps from playing back sound. Opening a GB loop will change the settings back to the default, but you can also do it manually following the directions in the KB article.
    Why they just don't change it so that those apps do not change the sounds prefs without notifying you of the possible effects, I have no idea.

  • High CPU Problems With Screensavers and Flash Player - FYI

    Upgraded my 1.42 Ghz PPC MacMini (1 GB RAM) to Leopard, fresh install and suffered high CPU problems as outlined in various other threads.
    Fixed major 100% cpu and 100% FAN issue by removing The Weather Channel Screensaver - so have a look at your console system info and see if a 3rd Party screensaver is causing a problem, or if no 3rd party screensaver, try using a simply screensaver like Forest.
    Safari/Netscape/Firefox also were using high CPU when a webpage was using Flash, I removed Flash Player 9 (latest version) and cpu load decreased dramatically.
    Go here for uninstall DMG
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14157
    Hope this helps someone else until there are fixes.

    Just wanted to clarify that the Flash and Screensaver problem is still ongoing even after the latest QT updates as of Nov 07.
    The Flash problems is with Flash images/code that use moving graphics/user input, such as those adverts you see where you push a button to punch Paris Hilton.
    I think the overall problem is with the way QT/Core Image/Core Animation is different in Leopard compared to Tiger. As have now often witnessed iTunes just displaying the Cover Flow image area and nothing else (everything else in the application area is white) when going between applications, clicking on the iTunes icon in the dock refreshes the image okay.

  • Problem with socket and Threads

    Hi,
    I have coded a package that sends an sms via a gateway.
    Here is what is happening:
    * I create a singleton of my SMSModule.
    * I create an sms object.
    * I put the object in a Queue.
    * I start a new Thread in my sms module that reads sms from queue.
    * I connect to sms gateway.
    * I send the sms.
    * I disconnect from socket! This is where things go wrong and I get the following error (see below).
    I have a zip file with the code so if you have time to take a look at it I would appreciate it.
    Anyway all hints are appreciated!
    //Mikael
    GOT: !LogoffConf:
    mSIP Kommando var: !LogoffConf
    CoolFlix log: MSIPProtocolHandler;setLoggedin(false)
    We got LogOffConf
    Waiting ......for thread to die
    java.net.SocketException: Socket operation on nonsocket: JVM_recv in
    socket input stream read
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:116)
    at
    sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:405)

    Off the top of my head, probably the garbage collector cleared your SMSModule coz all classes loaded through other classloaders will be unloaded when that classloader is unloaded.
    mail in the code if you want me to look at it with greater detail.

  • Problem with socket and object writing

    Hi,
    I programm this client/server app, the client has a point (graphic ) , the server has a point and when the mouse is moving it moves the point and the new position is send via the socket.
    The probleme is that i don't receive the good thing.
    When i display the coord of the point before sending it's good , but when receiving from the socket the coords are always the same ...
    i don't understand .
    Well , try and tell me ...
    Thx.

    oups, the program can be usefull ...
    import java.applet.*;
    import java.awt.*;
    import java.util.*;
    import java.awt.event.*;
    public class server_JFrame extends javax.swing.JFrame implements MouseListener,MouseMotionListener{
    point p1,p2;
    server s;
    public server_JFrame()
    this.setSize(600,400);
    addMouseListener(this);
    addMouseMotionListener(this);
    p2=new point(50,50,new Color(0,0,255));
    p1=new point(200,200,new Color(255,0,0));
    s = new server(p2,this);
    public void paint(Graphics g)
    super.paint(g);
    g.setColor(p1.get_color());
    g.fillOval(p1.get_x(), p1.get_y(),10,10);
    g.setColor(p2.get_color());
    g.fillOval(p2.get_x(), p2.get_y(),10,10);
    public void mouseClicked(MouseEvent e) { }
    public void mouseEntered(MouseEvent e) {}
    public void mouseExited(MouseEvent e) {}
    public void mousePressed(MouseEvent e) {}
    public void mouseReleased(MouseEvent e) {}
    public void mouseDragged(MouseEvent e) {}
    public void mouseMoved(MouseEvent e)
    p1.set_x(e.getX());
    p1.set_y(e.getY());
    s.write_point(p1);
    repaint();
    public static void main(String args[])
         server_JFrame sjf = new server_JFrame();
    sjf.setDefaultCloseOperation(EXIT_ON_CLOSE);
         sjf.setTitle("server");
    sjf.show();
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.awt.*;
    public class server {
    point p_;
    Container c_;
    ObjectInputStream Istream_;
    ObjectOutputStream Ostream_;
    public server(point p,Container c)
    p_=p;
    c_=c;
    try
    ServerSocket server = new java.net.ServerSocket(80);
    System.out.println("attente d'un client");
    java.net.Socket client = server.accept();
    System.out.println("client accept�");
    Istream_ = new ObjectInputStream(client.getInputStream());
    Ostream_ = new ObjectOutputStream(client.getOutputStream());
    ThreadRead tr = new ThreadRead(Istream_,p_,c_);
    catch (Exception exception) { exception.printStackTrace(); }
    public void write_point(point p)
    try
    System.out.print("x="+p.get_x());
    System.out.println(" y="+p.get_y());
    Ostream_.flush();
    Ostream_.writeObject(p);
    Ostream_.flush();
    catch (Exception exception) {exception.printStackTrace();}
    import java.applet.*;
    import java.awt.*;
    import java.util.*;
    import java.awt.event.*;
    public class client_JFrame extends javax.swing.JFrame implements MouseListener,MouseMotionListener{
    point p1,p2;
    client c;
    public client_JFrame()
    this.setSize(600,400);
    addMouseListener(this);
    addMouseMotionListener(this);
    p1=new point(50,50,new Color(0,0,255));
    p2=new point(200,200,new Color(255,0,0));
    c = new client(p2,this);
    public void paint(Graphics g)
    super.paint(g);
    g.setColor(p1.get_color());
    g.fillOval(p1.get_x(), p1.get_y(),10,10);
    g.setColor(p2.get_color());
    g.fillOval(p2.get_x(), p2.get_y(),10,10);
    public void mouseClicked(MouseEvent e) { }
    public void mouseEntered(MouseEvent e) {}
    public void mouseExited(MouseEvent e) {}
    public void mousePressed(MouseEvent e) {}
    public void mouseReleased(MouseEvent e) {}
    public void mouseDragged(MouseEvent e) {}
    public void mouseMoved(MouseEvent e)
    p1.set_x(e.getX());
    p1.set_y(e.getY());
    c.write_point(p1);
    repaint();
    public static void main(String args[])
         client_JFrame cjf = new client_JFrame();
    cjf.setDefaultCloseOperation(EXIT_ON_CLOSE);
         cjf.setTitle("client");
    cjf.show();
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.awt.*;
    public class client {
    point p_;
    Container c_;
    ObjectInputStream Istream_;
    ObjectOutputStream Ostream_;
    public client(point p,Container c)
    p_=p;
    c_=c;
    try
    ipJDialog ipjd = new ipJDialog();
    String ip = ipjd.getvalue();
    Socket socket = new Socket(ip,80);
    System.out.println("connection avec serveur reussi");
    Ostream_ = new ObjectOutputStream(socket.getOutputStream());
    Istream_ = new ObjectInputStream(socket.getInputStream());
    ThreadRead tr = new ThreadRead(Istream_,p_,c_);
    catch (Exception exception) {*exception.printStackTrace();*/System.out.println("connection avec serveur echou�");}
    public void write_point(point p)
    try
    System.out.print("x="+p.get_x());
    System.out.println(" y="+p.get_y());
    Ostream_.flush();
    Ostream_.writeObject(p);
    Ostream_.flush();
    catch (Exception exception) {exception.printStackTrace();}
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.awt.*;
    public class client {
    point p_;
    Container c_;
    ObjectInputStream Istream_;
    ObjectOutputStream Ostream_;
    public client(point p,Container c)
    p_=p;
    c_=c;
    try
    ipJDialog ipjd = new ipJDialog();
    String ip = ipjd.getvalue();
    Socket socket = new Socket(ip,80);
    System.out.println("connection avec serveur reussi");
    Ostream_ = new ObjectOutputStream(socket.getOutputStream());
    Istream_ = new ObjectInputStream(socket.getInputStream());
    ThreadRead tr = new ThreadRead(Istream_,p_,c_);
    catch (Exception exception) {*exception.printStackTrace();*/System.out.println("connection avec serveur echou�");}
    public void write_point(point p)
    try
    System.out.print("x="+p.get_x());
    System.out.println(" y="+p.get_y());
    Ostream_.flush();
    Ostream_.writeObject(p);
    Ostream_.flush();
    catch (Exception exception) {exception.printStackTrace();}
    import java.io.Serializable;
    import java.awt.*;
    public class point implements Serializable{
    private int x_;
    private int y_;
    private Color c_;
    public point(int x, int y, Color c) {
    x_=x;
    y_=y;
    c_=c;
    public int get_x() { return x_ ; }
    public int get_y() { return y_ ; }
    public void set_x(int x) { x_=x ; }
    public void set_y(int y) { y_=y ; }
    public Color get_color() { return c_ ; }
    }

  • Problem with Socket and public IP

    Hi.
    I was create a program to tchat with my friend.
    This program turn good in à local network but i obtain
    A Connection refused: connect exception when I want
    to communiqué by internet :
    I write
    Socket client = new Socket("my public IP",12347);And I was configurate my router to mapping 12347 port.
    Help me please.

    the exception is :
    Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)

Maybe you are looking for

  • 10.5.6 Update killed my mac, recovery software?

    The title says it all. I'm looking for some HFS compatible recovery software. I've been using GetDataBack NTFS and FAT32 for years on PC systems. I ran the 10.5.6 update on Wednesday night, and right before it was suppose to restart my macbook just t

  • I have a 3tb disk on an enclosure and works on wind 7/8 but in mac OSX 10.8.5 don't

    I just bought an enclosure for my 3tb disk, and it works like a charm in my windows 7/8, even in my virtual machine i dont have any problem, but my Mac OSX 10.8.5 dont can renconizes, it just see a disk with 800 GB, is there a way to made it work on

  • Getting references to the objects in a VM to dynamically link MBeans

    Hi, I am dynamically generating MBeans and using Apache BCEL to change the resource classes to link themselves to the MBeans. The objective is to instrument applications wich we can't access the code and, if possible, do it on a running one. I could

  • Qty Contracts

    Hi there, Can someone advice to me please, if i have a Value Contract what is the best way of triggerin the sales order to be created for the contract?  will it be automatically done? or is it manually done?  how and who will genertae the Release Ord

  • Line chart - add 3rd value to each datapoint

    I have a chart with stock trades: http://www.psychobanker.com/main.php I'd like to add the name of the person who made the trade to each value so that when the user hovers with the mouse over the chart, he can see who made the trade. How can I achiev