Error: String Length Received is less than zero! Weird String!

Discussion in 'Bukkit Help' started by ghostsoldier23, Apr 29, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    ghostsoldier23

    I am posting a new thread simply because this is an issue I have not found reported elsewhere on this forum and others. It truly is bizarre and I feel like it should be brought up independently of itself.

    I am trying to run Bukkit as my server. Each time I try to connect via my client (I connect using the Hamachi IP with port 25565) I receive one of the following two errors:

    "Internal exception: java.io.IOException: Received string length longer than maximum allowed (32536 > 16)"

    "Internal exception: java.io.IOException: Received string length is less than zero! Weird String!"

    I honestly cannot make sense of this error. I would greatly appreciate your help. I would love to use Bukkit!

    1. What OS are you using (Brand and version - Ex. Windows XP SP3)?
    Windows Vista SP 1
    2. What architecture is the OS you are running (x64 or x86)?
    64-bit (x86)
    3. What version and architecture is your java install? (Type: java -version in command prompt.)
    Java 6 Update 24
    4. Are you running any wrappers? McMyAdmin, mcadmin, Hamachi, etc?
    Yes. Hamachi. And don't ask me to try without it because I can't!
    5. What build of CraftBukkit are you running? (do NOT say latest. Say the build number.)
    UPDATE: Build 766
    6. What command are you using to run your CraftBukkit server?
    RUN.bat (with %ProgramFiles(x86)%) The server runs fine. I can't connect.
    7. What plugins are you running?
    None at all.
    8. What error are you getting (post your server.log file if possible)?
    "Internal exception: java.io.IOException: Received string length longer than maximum allowed (32536 > 16)"
    "Internal exception: java.io.IOException: Received string length is less than zero! Weird String!"
    9. What have you tried already?
    -Using blank Server-Ip
    -Using Server-IP with Hamachi IP
    -Allowed 25565 TCP/UDP in Windows Firewall along with programs Minecraft and Hamachi.
    -Tried multiple builds of Bukkit (most test builds leading up to 733 and 735)
    -Tried installing a couple plugins. Didn't work. Removed them.

    Hopefully this is all of the information you will need.
     
  2. Offline

    AgentKid

    Please post the actual contents of RUN.bat, as it could be a typo in that.
     
  3. Offline

    ghostsoldier23

    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xincgc -Xmx1G -jar craftbukkit-0.0.1-SNAPSHOT.jar
    PAUSE
     
  4. Offline

    anon

    If you try to open the server with a new world, does this happen?
     
  5. Offline

    ghostsoldier23

    Yes.

    And three things that might be worth mentioning:
    -The server works running on Vanilla (minecraft.exe)
    -I use Hamachi to run my server. No I cannot change that.
    -I receive this error in the Minecraft client. The error received in the server is generally just:
    player lost connection: disconnect.endOfstream
     
  6. Offline

    AgentKid

    @ghostsoldier23 Okay, so the error only comes up when players try to connect to the server? Is it just you that connects resulting in that error, or is it everyone? endOfstream just means that the connection was unexpectedly cut.
     
  7. Offline

    anon

    Just for testing purposes, if you stop your hamachi, and start your server, then open the client and put localhost on the ip area, can u connect?
     
  8. Offline

    ghostsoldier23

    I know I receive this odd error when I try to login via the client. Nobody else can connect either but I am not sure whether or not they receive this particular error.

    No. Same "string received less than zero" error.
     
  9. Offline

    anon

    I have seen people get this error by having signs that where created on mc 1.4, and with the update they buged when they see the sign. As you said u tested with a new world, i have no idea of what is the issue. Sorry :(
     
  10. Offline

    ghostsoldier23

    Yes that is what I thought at first as well. But the new world still gives me the error. It truly is bizarre.
     
  11. Offline

    EvilSeph

    Try not using Hamachi. And yes, I read your post.
     
  12. Offline

    anon

    he already did.
     
  13. Offline

    EvilSeph

    I meant run a Bukkit server without Hamachi, in online mode.
     
  14. Offline

    ghostsoldier23

    No same error occurs.
     
  15. Offline

    EvilSeph

    Please post a log of your attempts (server.log will do just fine) as we need more information.
     
  16. Offline

    ghostsoldier23

    I hate to sound like a noob... but I can't get the server logs to show up in the upload browser... erm. Um. Help?
     
  17. Offline

    ghostsoldier23

    Should I just give up and blame Windows Vista?
     
  18. Offline

    ghostsoldier23

    The usual screen in the server command window when this error occurs.
    Code:
    [Lnet.minecraft.server.Statistic;@37fb1e
    146 recipes
    [Lnet.minecraft.server.Statistic;@37fb1e
    16 achievements
    19:23:28 [INFO] Starting minecraft server version Beta 1.5_02
    19:23:28 [INFO] Loading properties
    19:23:28 [INFO] Starting Minecraft server on *:25566
    19:23:28 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-719-
    ga475842-b755jnks (MC: 1.5_02)
    19:23:28 [INFO] Preparing level "world2"
    19:23:28 [INFO] Preparing start region
    19:23:29 [INFO] Done (0.056s)! For help, type "help" or "?"
    19:23:46 [INFO] ghostsoldier23 [/5.90.157.214:58039] logged in with entity id 1
    19:23:46 [INFO] ghostsoldier23 lost connection: disconnect.endOfStream
    >
    
    Another one of the errors the server command windows says when this error occurs.
    Code:
    [Lnet.minecraft.server.Statistic;@1479feb
    146 recipes
    [Lnet.minecraft.server.Statistic;@1479feb
    16 achievements
    19:17:54 [INFO] Starting minecraft server version Beta 1.5_02
    19:17:54 [INFO] Loading properties
    19:17:54 [INFO] Starting Minecraft server on *:25566
    19:17:54 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-719-
    ga475842-b755jnks (MC: 1.5_02)
    19:17:54 [INFO] Preparing level "world2"
    19:17:54 [INFO] Preparing start region
    19:17:55 [INFO] Done (0.055s)! For help, type "help" or "?"
    19:18:11 [INFO] ghostsoldier23 [/5.90.157.214:57874] logged in with entity id 1
    19:18:11 [SEVERE] java.net.SocketException: Connection reset by peer: socket wri
    te error
    19:18:11 [INFO] Connection reset
    19:18:11 [SEVERE]       at java.net.SocketOutputStream.socketWrite0(Native Metho
    d)
    19:18:11 [SEVERE]       at java.net.SocketOutputStream.socketWrite(Unknown Sourc
    e)
    19:18:11 [SEVERE]       at java.net.SocketOutputStream.write(Unknown Source)
    19:18:11 [SEVERE]       at java.io.DataOutputStream.write(Unknown Source)
    19:18:11 [SEVERE]       at net.minecraft.server.Packet.a(Packet.java:120)
    19:18:11 [SEVERE]       at net.minecraft.server.NetworkManager.e(NetworkManager.
    java:96)
    19:18:11 [SEVERE]       at net.minecraft.server.NetworkManager.d(NetworkManager.
    java:230)
    19:18:11 [SEVERE]       at net.minecraft.server.NetworkWriterThread.run(SourceFi
    le:90)
    19:18:11 [INFO] ghostsoldier23 lost connection: disconnect.endOfStream
    >
     
  19. Offline

    EvilSeph

  20. Offline

    ghostsoldier23

    None. I have never been able to log into Bukkit since I first got it.
     
  21. Offline

    EvilSeph

    @ghostsoldier23 Setup a server online and give us an IP and we'll try and connect. Do you have a modified client?
     
  22. Offline

    ghostsoldier23

    Ok. It will be up shortly.

    And my client does have modloader v3 with a portal gun mod for singleplayer but this error connecting to Bukkit occured before I ever installed that.

    5.90.157.214:25566
    (I am using port 25566 currently because my 24/7 vanilla server is running on port 25565)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
  23. Offline

    EvilSeph

  24. Offline

    ghostsoldier23

    That's strange... your attempt isn't even showing up on the server window.

    Try now.
     
  25. Offline

    ghostsoldier23

    So... is nobody able to help me?
     
  26. Offline

    EvilSeph

    Uh sorry... posts get buried quickly. What are you running alongside your server? List ALL programs please. I'm mainly looking for firewalls, antivirus programs or things that touch the network connection.
     
  27. Offline

    ghostsoldier23

    LogMeIn Hamachi v2 (remember this error still occurs without Hamachi running)
    ZoneAlarm Antivirus (Hamachi, Minecraft and the vanilla server all given FULL permissions)
    Windows Defender (UDP/TCP port 25565 opened and Hamachi given permissions)
    Steam (uh... does that matter?)

    I think that is pretty much it as for constants running on the network. Do internet browsers and such count? I think I also have a few old IM programs I never use.
     
  28. Offline

    EvilSeph

    Disable Zone Alarm, it causes a lot of problems with a lot of games, and get a better, non-intrusive firewall/antivirus.

    That should fix your issue, but report back please!
     
  29. Offline

    ghostsoldier23

    That worked! Thank you!

    My Zone Alarm subscription is almost up anyways. Have any suggestions for a good anti-virus software that's better?

    I hated it anyway. Too many stupid popups. "Suspicious behavior! Firefox is trying to access the internet!" Really??? Shocker!!
     
  30. Offline

    nonox97

    Hello, I have the same problem but, I can connect on my server but when I kill a monster, the server disconnect me, and, the message:"
    String Length Received is less than zero! Weird String!

    " show, it returns the impossible game has to play!
    Can help me?
    Sorry for my bad english!
     
Thread Status:
Not open for further replies.

Share This Page