November 23, 2008, 01:36:20 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Add your picture URL in your profile.
 
  Home   Forum   Chat links PLAY NOW! Help Search Calendar Members Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: pre-alpha release  (Read 2223 times)
0 Members and 1 Guest are viewing this topic.
burper
Intermediate
****
Offline Offline

Posts: 836



« on: May 08, 2004, 05:46:20 PM »

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.
Logged
FIBS Board backgammon forum
« on: May 08, 2004, 05:46:20 PM »



 Logged
klic
Gold members
Beginner
*
Offline Offline

Posts: 67



WWW
« Reply #1 on: May 08, 2004, 07:16:32 PM »

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

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.
 
Logged
MadMatt
Casual player
***
Offline Offline

Posts: 266



WWW
« Reply #2 on: May 08, 2004, 07:16:49 PM »

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).
« Last Edit: May 08, 2004, 07:33:59 PM by MadMatt » Logged

MadMatt
----------

TourneyBot Website
MadMatt
Casual player
***
Offline Offline

Posts: 266



WWW
« Reply #3 on: May 08, 2004, 07:18:54 PM »

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)
Logged

MadMatt
----------

TourneyBot Website
klic
Gold members
Beginner
*
Offline Offline

Posts: 67



WWW
« Reply #4 on: May 08, 2004, 07:31:08 PM »

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.checkPermissio n(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.getHomeDir ectory(Unknown Source)
        at javax.swing.plaf.metal.MetalFileChooserUI.install Components(Unknown Source)
        at javax.swing.plaf.basic.BasicFileChooserUI.install UI(Unknown Source)
        at javax.swing.plaf.metal.MetalFileChooserUI.install UI(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)
 
Logged
MadMatt
Casual player
***
Offline Offline

Posts: 266



WWW
« Reply #5 on: May 08, 2004, 07:37:43 PM »

Quote
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.checkPermissio n(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.getHomeDir ectory(Unknown Source)
        at javax.swing.plaf.metal.MetalFileChooserUI.install Components(Unknown Source)
        at javax.swing.plaf.basic.BasicFileChooserUI.install UI(Unknown Source)
        at javax.swing.plaf.metal.MetalFileChooserUI.install UI(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?
Logged

MadMatt
----------

TourneyBot Website
burper
Intermediate
****
Offline Offline

Posts: 836



« Reply #6 on: May 08, 2004, 07:39:28 PM »

Quote
Ok, just started it and connected JavaFIBS via the Companion to FIBS. Will see what happens Smile

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
Logged
burper
Intermediate
****
Offline Offline

Posts: 836



« Reply #7 on: May 08, 2004, 07:41:02 PM »

Quote
Quote
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.checkPermissio n(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.getHomeDir ectory(Unknown Source)
        at javax.swing.plaf.metal.MetalFileChooserUI.install Components(Unknown Source)
        at javax.swing.plaf.basic.BasicFileChooserUI.install UI(Unknown Source)
        at javax.swing.plaf.metal.MetalFileChooserUI.install UI(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!
Logged
klic
Gold members
Beginner
*
Offline Offline

Posts: 67



WWW
« Reply #8 on: May 08, 2004, 07:45:26 PM »

Quote
Quote

java.security.AccessControlException: access denied (java.util.PropertyPermission user.home read)
        at java.security.AccessControlContext.checkPermissio n(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  
Logged
Tomawaky
Intermediate
****
Offline Offline

Gender: Male
Posts: 701



WWW
« Reply #9 on: May 08, 2004, 11:59:12 PM »

Tested but Introduce many lag for me  Sad  
Logged

Tomawaky "I feel good da da da da da da da.........i knew that i would now........."
burper
Intermediate
****
Offline Offline

Posts: 836



« Reply #10 on: May 09, 2004, 01:19:55 AM »

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?
« Last Edit: May 09, 2004, 01:38:56 AM by burper » Logged
Tomawaky
Intermediate
****
Offline Offline

Gender: Male
Posts: 701



WWW
« Reply #11 on: May 09, 2004, 09:10:34 AM »

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 !
Logged

Tomawaky "I feel good da da da da da da da.........i knew that i would now........."
burper
Intermediate
****
Offline Offline

Posts: 836



« Reply #12 on: May 09, 2004, 01:32:54 PM »

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.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  



Debt Consolidation - Credit Cards - Credit Card - Credit Counseling
Terms & Conditions | Privacy policy
Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!