File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes Searching for s list explaining errors related to java sockets. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "Searching for s list explaining errors related to java sockets." Watch "Searching for s list explaining errors related to java sockets." New topic
Author

Searching for s list explaining errors related to java sockets.

daniel dunvoll
Greenhorn

Joined: Mar 03, 2005
Posts: 2
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 error users have had.

I have been looking for a complete list, not some portion of it.

A book/list describing error like:

- StateTransfering::An existing connection was forcibly closed by the remote host (reading length)


- PESharedPortSelector: failed to find matching info hash


I have spent a lot of time on this site, and havent found eny thing here. Have followed different links posted here, but dident find the kind of list/explanation I was looking for.

I have posted earlier under "sockets and internet protocols", but dident receive eny feedback. Therfor I try to post here.

Have also been at SUN and searching/reading alot, but it seems difficult to find.

What ever I have done, I only find fragments of info.

I hope some of you are willing to, and have time, to guide me in the right direction, because I have really tryed hard to find this, but only met the wall.

There must be some kind of info about this out there I assume.?

Best regards from Daniel
Mark Vedder
Ranch Hand

Joined: Dec 17, 2003
Posts: 624

I do not think you will find what you are looking for. In the "old days" systems gave error codes, and then you had to look those codes up on a list to find out what they meant. This was, to the best of my knowledge, done simply because of memory constants. A 3 digit number or short 3 or 4 character string was very small in comparison to a large string. It also had to do with the inner workings and design of the programming language itself.

Since an Exception in Java can contain a full description of the error as an error message, there is no need for such a reference chart. For example, the error you list:
  • StateTransfering::An existing connection was forcibly closed by the remote host (reading length)

  • tells us everything we need to know. The remote host forcibly closed the connection. What more could a reference list tell me? Troubleshooting a possible cause is still necessary, but a reference list wouldn't help me there; good troubleshooting techniques and a Google search will. I would also check any reference documentation for the application I was using (which gave the error). I need to determine why my remote host forced the connection closed. The remote host didn't get the acknowledgement it expected? A timeout issue? A firewall? Dropped packets? Someone unplugged the network cable? Antivirus software detected a threat?

    If you are locking for a list simply to know what possible errors might occur, even that would be a difficult issue. Since Java is multi-platform, the sockets errors that might occur on Linux are different then those that might occur on my cell phone, PDA or windows machine.

    Lastly, since these type of errors will be JVM dependent, and different vendors can (and do) implement JVMs, the "list" would be different for each JVM. And then on top of that, an application developer would (or should) catch any Java SocketExceptionss, BondExceptions, ConnectExceptions, etc and then either handle them, or wrap them in a more meaningful error message (which is relevant to the code at hand and what it was doing) for the end user. This appears to be what is happening with the errors you posted.

    You can take a look at all the Exceptions in the java.net package in the api docs. That may help you some.

    I hope that helps. I know it is not what you are looking for, but as I said, I don't think such a thing exists. If the gurus in the "Sockets and Internet Protocols" forum didn't know of one, then I would suspect such is the case.
    [ March 05, 2005: Message edited by: Mark Vedder ]
    Ilja Preuss
    author
    Sheriff

    Joined: Jul 11, 2001
    Posts: 14112
    Moving to our Sockets and Internet Protocols forum...


    The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
    daniel dunvoll
    Greenhorn

    Joined: Mar 03, 2005
    Posts: 2
    Hi.

    Thank you very much Mark Vedder, for taking the time to help me.
    You don�t believe how glad I was, when I saw somebody had replied.

    I have tried to do my lesson by searching the internet for many days, before I posted here, and now I understand why I didn�t find a list like this.

    You have helped me a lot, now I understand this can be a bit different, dependent of several reasons, and therefore it is not as straight-forward as I believed.
    You have also helped me so now I know where I should try to look for more info, on my one, next time I receive this error messages.

    Thank you very much, I am so glad and happy, you would not believe it.

    Best regards from

    Daniel Dunvoll
    Northern part of Norway
     
    I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
     
    subject: Searching for s list explaining errors related to java sockets.
     
    Similar Threads
    Disable Key Input in a J frame
    Prevayler
    Reading from a Named Pipe File (Solaris 2.6)
    What are EJB related security annotations in Java EE 6?
    Invoking web service from pl sql, requires a nonce, but I cannot find much info on how to do it