Results 1 to 18 of 18
  1. #1
    nicodvandijk is offline Member
    Join Date
    Jul 2010
    Posts
    8
    Rep Power
    0

    Default Can somebody help me with this?

    Hello everybody,

    I saw that the script wich the subject is of this post also on this site is published.

    I had completely and successvol installed the Bribble Chat script. But i had completely read the source codes from the java files included by the java server, but i still get an errormessage. This errormessage will show up at the command prompt when i try to connect on the url i'd installed the script. (chat.golddreams.nl) see this screenshot:



    I'd done really everything to get this script working! I hope someone here can help me.. i would be very happy if somebody here wants to.

    I'd also ask it to the owner of Chatserv.nl and he told me that there is one bug inside the source code, he wouldn't tell me exactly what i have to do because my website is an chatcommunity and i need an chatbox. On the moment i'm customer by chatserv, but i want to host everything on my own servers, so also the chatserver.

    Best regards!

    Nico van Dijk
    Administrator Golddreams.nl
    Last edited by nicodvandijk; 07-08-2010 at 10:57 AM.

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,397
    Rep Power
    25

    Default

    Do some looking and debugging at line 171 in Connection read() method to see why the substring index is -1.

    If you don't have the source you have to ask the author how to fix the problem.

  3. #3
    Webuser is offline Senior Member
    Join Date
    Dec 2008
    Posts
    526
    Rep Power
    0

    Lightbulb

    according to server common arrays problems... It is probably the getBytes() method problem

    I mean
    Java Code:
    byte [] gogo="gogo".getBytes();
    And still I am not sure because you don't provide us any source file :confused:
    If my answer helped you. Please click my "REP" button and add a comment
    Have a Good Java Coding :)

  4. #4
    nicodvandijk is offline Member
    Join Date
    Jul 2010
    Posts
    8
    Rep Power
    0

    Default

    Oh, i'm sorry about the sourcefiles you can find the source files here:

    http://www.golddreams.nl/source/bribble-1_5_35.zip

    The source files of the java server you can find inside the folder "Server"

  5. #5
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,397
    Rep Power
    25

    Default

    Do some looking and debugging at line 171 in Connection read() method to see why the substring index is -1.

  6. #6
    nicodvandijk is offline Member
    Join Date
    Jul 2010
    Posts
    8
    Rep Power
    0

    Default Debugging

    Quote Originally Posted by Norm View Post
    Do some looking and debugging at line 171 in Connection read() method to see why the substring index is -1.
    At wich file do i have to look?

  7. #7
    nicodvandijk is offline Member
    Join Date
    Jul 2010
    Posts
    8
    Rep Power
    0

    Default

    I think its another problem, if i open the url chat.golddreams.nl on the servers browser it works. But if i open the url from outside i'll get that errormessage. Sombody have an idea?

  8. #8
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,397
    Rep Power
    25

    Default

    servers browser it works. But if i open the url from outside
    Not sure what that means.
    By server's browser do you mean a browser that is executing on the same PC as the server?
    And by outside do you mean a browser on another PC, not the same one as the server is running on?

    What code is at line 171 in the Connection class's read() method? How does the substring index become -1 there?

  9. #9
    nicodvandijk is offline Member
    Join Date
    Jul 2010
    Posts
    8
    Rep Power
    0

    Default Reply

    Yes i mean on the same server where the javaserver is running on. Also tested from LAN to open the chatbox, also giving the errormessage. I can't open the class files i only can open the .java files with an java editor. How do i have to open the classfiles?

    Greetz

  10. #10
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,397
    Rep Power
    25

    Default

    Are you a programmer?
    Do you know about program source, compilers and object files?

    What's a javaserver? Is it an HTTP server? Do you use the same URL or do you use different ones depending on where your browser is executing?

    The .java files are source files. They are compiled into .class files.
    The java.exe command is used to execute the class files. Enter:
    java.exe yourclassfilename (without the .class extension)

  11. #11
    nicodvandijk is offline Member
    Join Date
    Jul 2010
    Posts
    8
    Rep Power
    0

    Default Reply

    Yes, im an scripter. I'd used on all the computers i tried and also on my server the same link ; Golddreams.nl.Betabox and on the server everything will run fine and how it belongs to, and on other computers over LAN/WAN network it won't work and give that errormessage at the java servers command prompt.

    I was thinking about some directory or file wich the server can access because its local access and other clients cant access because that's outside access. I was thinking this way.. but i don't know the possible reasons.

    I'm specialised in webscripting and php mysql with css, but i haven't experiences.

    Best regards,

    Nico van Dijk

  12. #12
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,397
    Rep Power
    25

    Default

    The only part I can comment on is the error in the java program. Because you've posted an image I can't copy and quote the contents of the error message here.

    What code is at line 171 in the Connection class's read() method? How does the substring index become -1 there?

  13. #13
    Webuser is offline Senior Member
    Join Date
    Dec 2008
    Posts
    526
    Rep Power
    0

    Lightbulb

    Quote Originally Posted by Norm View Post
    The only part I can comment on is the error in the java program. Because you've posted an image I can't copy and quote the contents of the error message here.

    What code is at line 171 in the Connection class's read() method? How does the substring index become -1 there?
    I guess index<0 means an empty array. So the read method gets an empty array. That's why I suppose it is a common byte array reading problem.
    The server is probably programmed for client connection running only...
    If my answer helped you. Please click my "REP" button and add a comment
    Have a Good Java Coding :)

  14. #14
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,397
    Rep Power
    25

    Default

    index<0 means
    Or the value returned by indexOf()

  15. #15
    nicodvandijk is offline Member
    Join Date
    Jul 2010
    Posts
    8
    Rep Power
    0

    Default Reply

    Yes oke i understand,

    But what do i have to do or what can i do now?

    I don't know aything about java programming but i really like to have te script working.`

    I have everything running on chat.golddreams.nl but only the java-server gives this error.

    Best regards,

    Nico van Dijk
    Last edited by nicodvandijk; 07-13-2010 at 08:52 PM.

  16. #16
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,397
    Rep Power
    25

    Default

    I don't know aything about java programming
    This forum is about java programming. If you're not having java programming problems, I don't know how we can help.

    only the java-server gives this error
    What is "the java-server"? Is it a program that you execute on you PC?


    Can you put your questions about how to use the site to the site's administrator?

  17. #17
    nicodvandijk is offline Member
    Join Date
    Jul 2010
    Posts
    8
    Rep Power
    0

    Default Reply

    Allright,

    The java-server is the java .jar file that i start in an command prompt on windows server 2003. I will start this file with de command: java -jar -server bribble-1_5_35.jar

    I can't put my questions to the owner of the script because bribble is shutted down a few months ago.

    I got some info from the owner of www.chatserv.nl, wich is hosting the same chatboxes and he know the error but he wouldn't tell me because i can become an concurrent he says.

    Maybe can someone look at the file bribble-1_5_35.jar for me, i provided the file here: http://www.golddreams.nl/chatserver/bribble-1_5_35.jar

  18. #18
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,397
    Rep Power
    25

    Default

    Sorry, You'll have to find someone interested in that site.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •