News:

Thx to our VIP donor/subscribers in 2009 cheers! .....webrunner, stog, spielberg, dickbalaska, b8factor, jackdaddy, anonymouse, diane, dropper, zorba, papillon, fiftythree, ramses, adrian, FrankBerger, krakan and ah_clem

Main Menu

pre-alpha release

Started by burper, May 08, 2004, 05:46:20 PM

Previous topic - Next topic

burper

The pre-alpha version of Fibs Companion has been released, along with it's API documentation. There are some known issues, which is why this is pre-alpha, but I don't think it's a long way from being stable. Note that the minimal testing that it has had has only occurred with telnet and javafibs on only Windows ME and Solaris 8.

If you try it and notice anything weird with it, feel free to post it in this thread. Experiences from other platforms especially valuable.

To get the release, go to its' development site: http://sourceforge.net/projects/fibscompanion

and scroll down to the "Latest File Releases" section, in which you will see the "fibscompanion" package. Click on that and you will see a page that contains both the companion itself, and the api doc as a zip file.

Have fun with it, and let me know what issues you have with the installation and/or running of it, by posting HERE.

klic

Ok, just started it and connected JavaFIBS via the Companion to FIBS. Will see what happens :-)

BTW, you might to add a script for *nix based machines (I'm running it right now on Linux)

fc.sh:
----vvvvv
#!/bin/sh
java -jar -Djava.security.manager -Djava.security.policy=security.policy ./fibscompanion.jar
----^^^^^^

Which is two lines, really.

MadMatt

#2
Alright, I played with it a bit, nice start there burper.

A couple of glitches:

1. If you want to get it running on Windows, change the fc.bat file to the following line:
java -jar -Djava.security.manager -Djava.security.policy=security.policy fibscompanion.jar

2. If there is no logs folder in the folder you unpacked the companion to, create one yourself. This is a glitch with WinZip and other Windows zip archivers, they ignore empty directories.

3.  After you do that, run (double-click) on the fc.bat file and wait for the companion to load.

4. Configure your client to connect to localhost, port 4321 instead of fibs.com 4321. For example, in JavaFIBS, select Server from the Preferences menu and enter localhost under host and 4321 under Port.

5. Have your client connect.

6. The only working plugin so far is RepAlert . It shows the reputations of inviting players. To bring it up, right-click (on Windows) on the FIBS Companion graphic and select Connection->RepAlert. There's a minor bug with it that shows a redundant RepBot timeout line after the reputation.

7. The entire thing seems to hang after a couple of minutes. This is possibly due to some Thread dead-lock. (see below)

8. The menu doesn't appear in the right position if you move the Companion window (it still keeps appearing at the Companion window's default position).
MadMatt
----------

TourneyBot Website

MadMatt

These exceptions occure after the thing hangs:

java.lang.Error: Interrupted attempt to aquire write lock
   at javax.swing.text.AbstractDocument.writeLock(Unknown Source)
   at javax.swing.text.AbstractDocument.insertString(Unknown Source)
   at javax.swing.text.PlainDocument.insertString(Unknown Source)
   at javax.swing.JTextArea.append(Unknown Source)
   at net.sf.fibscompanion.Config.log(Config.java:296)
   at net.sf.fibscompanion.Config$GUIHandler.publish(Config.java:1765)
   at java.util.logging.Logger.log(Unknown Source)
   at java.util.logging.Logger.doLog(Unknown Source)
   at java.util.logging.Logger.log(Unknown Source)
   at java.util.logging.Logger.info(Unknown Source)
   at net.sf.fibscompanion.StreamController.run(StreamController.java:130)
java.net.SocketException: Socket operation on nonsocket: recv failed
   at java.net.SocketInputStream.socketRead0(Native Method)
   at java.net.SocketInputStream.read(Unknown Source)
   at java.io.DataInputStream.read(Unknown Source)
   at net.sf.fibscompanion.StreamController$StreamReader.run(StreamController.java:449)
   at java.lang.Thread.run(Unknown Source)
java.net.SocketException: Socket operation on nonsocket: recv failed
   at java.net.SocketInputStream.socketRead0(Native Method)
   at java.net.SocketInputStream.read(Unknown Source)
   at java.io.FilterInputStream.read(Unknown Source)
   at java.io.PushbackInputStream.read(Unknown Source)
   at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(Unknown Source)
   at sun.nio.cs.StreamDecoder$CharsetSD.implRead(Unknown Source)
   at sun.nio.cs.StreamDecoder.read(Unknown Source)
   at java.io.InputStreamReader.read(Unknown Source)
   at java.io.BufferedReader.fill(Unknown Source)
   at java.io.BufferedReader.readLine(Unknown Source)
   at java.io.BufferedReader.readLine(Unknown Source)
   at net.sf.fibscompanion.StreamController$StreamReader.run(StreamController.java:457)
   at java.lang.Thread.run(Unknown Source)
java.lang.Error: Interrupted attempt to aquire write lock
   at javax.swing.text.AbstractDocument.writeLock(Unknown Source)
   at javax.swing.text.AbstractDocument.insertString(Unknown Source)
   at javax.swing.text.PlainDocument.insertString(Unknown Source)
   at javax.swing.JTextArea.append(Unknown Source)
   at net.sf.fibscompanion.Config.log(Config.java:296)
   at net.sf.fibscompanion.Config$GUIHandler.publish(Config.java:1765)
   at java.util.logging.Logger.log(Unknown Source)
   at java.util.logging.Logger.doLog(Unknown Source)
   at java.util.logging.Logger.log(Unknown Source)
   at java.util.logging.Logger.info(Unknown Source)
   at net.sf.fibscompanion.StreamController.run(StreamController.java:233)
java.net.SocketException: Socket operation on nonsocket: recv failed
   at java.net.SocketInputStream.socketRead0(Native Method)
   at java.net.SocketInputStream.read(Unknown Source)
   at java.io.FilterInputStream.read(Unknown Source)
   at java.io.PushbackInputStream.read(Unknown Source)
   at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(Unknown Source)
   at sun.nio.cs.StreamDecoder$CharsetSD.implRead(Unknown Source)
   at sun.nio.cs.StreamDecoder.read(Unknown Source)
   at java.io.InputStreamReader.read(Unknown Source)
   at java.io.BufferedReader.fill(Unknown Source)
   at java.io.BufferedReader.readLine(Unknown Source)
   at java.io.BufferedReader.readLine(Unknown Source)
   at net.sf.fibscompanion.StreamController$StreamReader.run(StreamController.java:457)
   at java.lang.Thread.run(Unknown Source)
java.net.SocketException: Socket operation on nonsocket: recv failed
   at java.net.SocketInputStream.socketRead0(Native Method)
   at java.net.SocketInputStream.read(Unknown Source)
   at java.io.DataInputStream.read(Unknown Source)
   at net.sf.fibscompanion.StreamController$StreamReader.run(StreamController.java:449)
   at java.lang.Thread.run(Unknown Source)
MadMatt
----------

TourneyBot Website

klic

Here it's still running, but when I click on Choose for the logfile location, I get a (abbreviated)

java.security.AccessControlException: access denied (java.util.PropertyPermission user.home read)
       at java.security.AccessControlContext.checkPermission(Unknown Source)
       at java.security.AccessController.checkPermission(Unknown Source)
       at java.lang.SecurityManager.checkPermission(Unknown Source)
       at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
       at java.lang.System.getProperty(Unknown Source)
       at javax.swing.filechooser.FileSystemView.getHomeDirectory(Unknown Source)
       at javax.swing.plaf.metal.MetalFileChooserUI.installComponents(Unknown Source)
       at javax.swing.plaf.basic.BasicFileChooserUI.installUI(Unknown Source)
       at javax.swing.plaf.metal.MetalFileChooserUI.installUI(Unknown Source)
       at javax.swing.JComponent.setUI(Unknown Source)
       at javax.swing.JFileChooser.updateUI(Unknown Source)
       at javax.swing.JFileChooser.setup(Unknown Source)
       at javax.swing.JFileChooser.<init>(Unknown Source)
       at javax.swing.JFileChooser.<init>(Unknown Source)
       at net.sf.fibscompanion.Config.logDirChoose(Config.java:1461)

MadMatt

QuoteHere it's still running, but when I click on Choose for the logfile location, I get a (abbreviated)

java.security.AccessControlException: access denied (java.util.PropertyPermission user.home read)
       at java.security.AccessControlContext.checkPermission(Unknown Source)
       at java.security.AccessController.checkPermission(Unknown Source)
       at java.lang.SecurityManager.checkPermission(Unknown Source)
       at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
       at java.lang.System.getProperty(Unknown Source)
       at javax.swing.filechooser.FileSystemView.getHomeDirectory(Unknown Source)
       at javax.swing.plaf.metal.MetalFileChooserUI.installComponents(Unknown Source)
       at javax.swing.plaf.basic.BasicFileChooserUI.installUI(Unknown Source)
       at javax.swing.plaf.metal.MetalFileChooserUI.installUI(Unknown Source)
       at javax.swing.JComponent.setUI(Unknown Source)
       at javax.swing.JFileChooser.updateUI(Unknown Source)
       at javax.swing.JFileChooser.setup(Unknown Source)
       at javax.swing.JFileChooser.<init>(Unknown Source)
       at javax.swing.JFileChooser.<init>(Unknown Source)
       at net.sf.fibscompanion.Config.logDirChoose(Config.java:1461)
Are you sure you didn't choose a location where you don't have write privileges to?
MadMatt
----------

TourneyBot Website

burper

QuoteOk, just started it and connected JavaFIBS via the Companion to FIBS. Will see what happens :-)

BTW, you might to add a script for *nix based machines (I'm running it right now on Linux)

fc.sh:
----vvvvv
#!/bin/sh
java -jar -Djava.security.manager -Djava.security.policy=security.policy ./fibscompanion.jar
----^^^^^^

Which is two lines, really.
Thanks, done. it will appear in next release

burper

Quote
QuoteHere it's still running, but when I click on Choose for the logfile location, I get a (abbreviated)

java.security.AccessControlException: access denied (java.util.PropertyPermission user.home read)
        at java.security.AccessControlContext.checkPermission(Unknown Source)
        at java.security.AccessController.checkPermission(Unknown Source)
        at java.lang.SecurityManager.checkPermission(Unknown Source)
        at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
        at java.lang.System.getProperty(Unknown Source)
        at javax.swing.filechooser.FileSystemView.getHomeDirectory(Unknown Source)
        at javax.swing.plaf.metal.MetalFileChooserUI.installComponents(Unknown Source)
        at javax.swing.plaf.basic.BasicFileChooserUI.installUI(Unknown Source)
        at javax.swing.plaf.metal.MetalFileChooserUI.installUI(Unknown Source)
        at javax.swing.JComponent.setUI(Unknown Source)
        at javax.swing.JFileChooser.updateUI(Unknown Source)
        at javax.swing.JFileChooser.setup(Unknown Source)
        at javax.swing.JFileChooser.<init>(Unknown Source)
        at javax.swing.JFileChooser.<init>(Unknown Source)
        at net.sf.fibscompanion.Config.logDirChoose(Config.java:1461)
Are you sure you didn't choose a location where you don't have write privileges to?
I think this one is fixed also. some unzippers don't unpack empty directories, like the log dir is. i put a placeholder file in there to get around the problem. Thanks for the report and the compliment Mat!

klic

Quote
Quote
java.security.AccessControlException: access denied (java.util.PropertyPermission user.home read)
        at java.security.AccessControlContext.checkPermission(Unknown Source)

...

Are you sure you didn't choose a location where you don't have write privileges to?
Not in the beginning. But note it says "user.home read", which is my $HOME-dir and definitely readable/writeable by me. I did some further testing, as I noticed it's saying .../log (3 dots). Tried it with ./log and even /tmp, but it always gives me this error. Probably some problem with the security.manager. It does create and fill logfiles, though.

And it is still running, half an hour now.
:yes:  

Tomawaky

Tested but Introduce many lag for me  :(  
Tomawaky "I feel good da da da da da da da.........i knew that i would now........."

burper

#10
It would be helpful if you could include the kind of machine you are running it on Tomawaky. Are there any clues at all why it is so laggy? How laggy is it? What version of java are you running on?

Did it start off okay and get worst over time, or was it slow right away?
Were you using the repalert plugin at all?

Tomawaky

W2K SP4
Pentium3
128Mo
Java 1.3.0_02

Clues : I think my PC is at the edge for Java Application which need ressource. Maybe JavaFibs + Companion is too much.
I will try with another client

It's slow right away and have got 3 deconnections yesterday !
Tomawaky "I feel good da da da da da da da.........i knew that i would now........."

burper

You should have got a popup at startup time informing you that 1.4 is required, and then be prevented from starting up. Hmmmm.
Try upgrading to 1.4+ and see what happens.
Another thing I have seen is that the connection loop starts spinning, creating one new bufferedReader after another. Look for repeated occurances of this in the system log.. That would account for lag, but usually doesn't happen right away.