September 09, 2010, 06:18:35 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: enjoy the front page random images , random like dice on fibs! ethereal not material, and try and name them ..
Home
Forum
Chat
links
PLAY NOW!
Help
Search
Calendar
Login
Register
FIBS Board backgammon forum
>
Forum
>
FIBS Client software
>
JavaFibs
(Moderators:
cthulhu
,
Tom
) >
Null Pointer Exception
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Null Pointer Exception (Read 3328 times)
0 Members and 1 Guest are viewing this topic.
inim
This space is available for rent by advertisers.
Fibsboarder plus
Offline
Posts: 199
This space is available for rent by advertisers
Null Pointer Exception
«
on:
January 07, 2005, 03:04:39 AM »
Here's an NPE that happened tonight. It showed immediately after I finished (resigned) a game which lost me a 3pt match. The resign itself worked fine, but immediately after I got this beauty and was frozen.
Code:
c:\>java -showversion -server -jar JavaFIBS.jar
java version "1.4.2_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
Java HotSpot(TM) Server VM (build 1.4.2_06-b03, mixed mode)
java.lang.NullPointerException
at r.b(r.java)
at r.a(r.java)
at ca.a(ca.java)
at z.a(z.java)
at s.y(s.java)
at s.z(s.java)
at s.d(s.java)
at ba.run(ba.java)
at java.lang.Thread.run(Thread.java:534)
inim
Logged
This space is available for rent by advertisers. Call
0900-INIMITE
today, and see your sales skyrocketing in no time! New customers receive free Vl@9rå and a penis enlargement set as a bonus! We support banners, flash banners, and scrollers. Discrete handling by our HQ on the Dutch Antilles.
Shades
Fibsboarder plus
Offline
Posts: 190
Null Pointer Exception
«
Reply #1 on:
January 07, 2005, 12:45:43 PM »
... same happened to me two days ago...
Logged
Never stand between a fire hydrant and a dog.
FIBS Board backgammon forum
Null Pointer Exception
«
Reply #1 on:
January 07, 2005, 12:45:43 PM »
Logged
Noah
Fibsboarder +
Offline
Posts: 60
Null Pointer Exception
«
Reply #2 on:
January 07, 2005, 04:10:08 PM »
Have to say i work on a Mac with OS X
I noticed this problem after the java update 1.4.1 to 1.4.2 time ago.
Then downgraded java back to 1.4.1 and didn't have bugs on javafibs anymore.
Logged
" If you're not living on the edge, you take too much space"
Deurdonderen
inim
This space is available for rent by advertisers.
Fibsboarder plus
Offline
Posts: 199
This space is available for rent by advertisers
Null Pointer Exception
«
Reply #3 on:
January 09, 2005, 05:59:41 AM »
It happened again, and it rarely happened in the past. A decompiler reveals that
r.java
is the class responsible for saving games (implements FilenameFilter). I have a large number of them in my "internal" folder, namely 2108. It takes several seconds to do a "ls" or "dir" in that directory. I think i observed the exception more frequently after a fresh start of javafibs, i.e. before the file system has buffered the folder.
Windows NTFS file locking is a b.i.t.c.h., I had some trouble with it in my own work. So my guess would be, that we have a race condition here caused by lengthy operating system level file operation. In my work, I noticed that windows returns immediately from file operations with a null pointer if they take long. If you recheck shortly after, you get expected, non null results. In my work, the solution options were either to use methods from JDK 1.5 or to be very passive, i.e. put a loop around file operations, which extensively checks for null pointers and retries for a while until a timeout is reached.
Hope that this contribues to a fix.
«
Last Edit: January 09, 2005, 06:05:27 AM by inim
»
Logged
This space is available for rent by advertisers. Call
0900-INIMITE
today, and see your sales skyrocketing in no time! New customers receive free Vl@9rå and a penis enlargement set as a bonus! We support banners, flash banners, and scrollers. Discrete handling by our HQ on the Dutch Antilles.
inim
This space is available for rent by advertisers.
Fibsboarder plus
Offline
Posts: 199
This space is available for rent by advertisers
Null Pointer Exception
«
Reply #4 on:
January 19, 2005, 11:39:01 AM »
A new Exception showed today, non critical it seems.
Code:
java.util.NoSuchElementException
at java.util.StringTokenizer.nextToken(StringTokenizer.java:259)
at s.r(s.java)
at s.d(s.java)
at ba.run(ba.java)
at java.lang.Thread.run(Thread.java:534)
I run javafibs 1.007 in Windows XP SP2 using
Code:
java version "1.4.2_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
inim
Logged
This space is available for rent by advertisers. Call
0900-INIMITE
today, and see your sales skyrocketing in no time! New customers receive free Vl@9rå and a penis enlargement set as a bonus! We support banners, flash banners, and scrollers. Discrete handling by our HQ on the Dutch Antilles.
socksey
Global Moderator
Advanced
Offline
Gender:
Posts: 1,922
Null Pointer Exception
«
Reply #5 on:
January 20, 2005, 01:20:41 AM »
I wish I knew what all that meant! Can someone put this in ordinary layman terms?
socksey
Q What is the name of the movie in which a cannibal ate his
mother-in-law? A “The Gladiatorâ€Â
Logged
cthulhu
Moderator
Fibsboarder +
Offline
Posts: 99
Null Pointer Exception
«
Reply #6 on:
January 31, 2005, 04:59:19 PM »
Inim, I always get reports from ppl using beta versions of Java which never appear in non beta versions. Could you use a non beta version and see if the exceptions still happen?
Logged
cthulhu
Moderator
Fibsboarder +
Offline
Posts: 99
Null Pointer Exception
«
Reply #7 on:
January 31, 2005, 08:24:55 PM »
Never mind. I read wrong.
Logged
diane
Fibsboard Executive VIP Donor 09/10
Advanced
Offline
Gender:
Posts: 2,266
Null Pointer Exception
«
Reply #8 on:
February 01, 2005, 12:35:38 AM »
Quote
I wish I knew what all that meant! Can someone put this in ordinary layman terms?
What I think this is about - to you and me - is that you will observe after some matches you cannot do anything - shout, tell, invite etc. Your autoThx wont go through - no commands are sent or recieved, nothing happens. I fix it by logging out and in - then all is well again. There is no predicting when and where it will happen - though it does seem to happen more often with certain players - I have no idea why. The rest of the stuff they are talking is programming magic to explain what is happening behind the scenes - with the hope it can be fixed! I am not trying to follow that - but waiting for someone to say it is ok now
Leastways I hope so
«
Last Edit: February 01, 2005, 12:40:15 AM by diane
»
Logged
Never give up on the things that make you smile
socksey
Global Moderator
Advanced
Offline
Gender:
Posts: 1,922
Null Pointer Exception
«
Reply #9 on:
February 01, 2005, 07:21:23 PM »
I have a pc, not mac, but same thing has happened to me while using javafibs.
I recently had my own private techy on premises who told me i needed more memory. Seems all that I was running was using up all my memory to operate and becoming sluggish or stopped all together. I would periodically shut down and reboot to fix the immediate problem previously.
After adding memory, a miracle happened. Gwaaaa laaaaaaa, everything was running fast again with no problems.
Did I mention, anti-spyware was also added?
Ermmm......maybe this wasn't what you were talking about, inim. Let us know. ^_^
socksey
The battle, sir, is not to the strong alone; it is to the vigilant, the active, the brave... - Patrick Henry
«
Last Edit: February 01, 2005, 07:25:28 PM by socksey
»
Logged
diane
Fibsboard Executive VIP Donor 09/10
Advanced
Offline
Gender:
Posts: 2,266
Null Pointer Exception
«
Reply #10 on:
February 01, 2005, 07:54:43 PM »
The sluggish / slowing thing is different I think - and it hasnt happened to me at all since I got this new puter. The problem discussed here is a complete stop - fixed by simply logging out and in - to fix the slowing you need to shut down java and reopen it, to clear the stored stuff (I think)
They are two distinct and different problems.
Logged
Never give up on the things that make you smile
lewscannon
Fibsboarder plus
Offline
Posts: 303
Null Pointer Exception
«
Reply #11 on:
February 01, 2005, 10:54:32 PM »
Quote
I have a pc, not mac, but same thing has happened to me while using javafibs.
I recently had my own private techy on premises who told me i needed more memory. Seems all that I was running was using up all my memory to operate and becoming sluggish or stopped all together. I would periodically shut down and reboot to fix the immediate problem previously.
After adding memory, a miracle happened. Gwaaaa laaaaaaa, everything was running fast again with no problems.
Did I mention, anti-spyware was also added?
Ermmm......maybe this wasn't what you were talking about, inim. Let us know. ^_^
socksey
The battle, sir, is not to the strong alone; it is to the vigilant, the active, the brave... - Patrick Henry
He probably simply removed a wad of melted chocolate from your cd player.
Logged
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
FIBSBoard general
-----------------------------
=> Announcements
===> Recent News
=> General Chit Chat
===> Ideas Science and Philosophy
===> Recipes & Food
=> Pictures & Links
=> Feedback & Questions
-----------------------------
Backgammon
-----------------------------
=> News & events
=> Backgammon
=> Backgammon problems
=> Fibsboard Forum Matches
===> FFM1
===> FFM2
===> FFM3
===> FFM4
===> FFM 5
===> Fibsboard Forum Match 6
=> Instructions & Discussions
=> Improving your backgammon skills
=> Using backgammon software
=> Money play
-----------------------------
First Internet Backgammon Server
-----------------------------
=> F.I.B.S. general support
=> Droppers
=> Gathering of Fibsters
=> Apologies
-----------------------------
FIBS Client software
-----------------------------
=> 3DFibs
=> JavaFibs
=> DelFibs
=> CocoaFibs
=> Mobile Fibs clients
=> RealFibs
=> C4 Fibs
=> Other Fibsclients
-----------------------------
Leagues and tournaments
-----------------------------
=> Fibsleagammon
=> Team Leagues
=> Fibs-O-Nacci
=> Inter-Nation Tournament
=> FIBS postcard tournaments.
=> Other Tournaments
-----------------------------
Bots & other tech stuff
-----------------------------
=> TourneyBot
=> TourneyStatsBot
=> RepBot
=> Other bots & tech stuff.
-----------------------------
Other BG servers
-----------------------------
=> General
=> BGroom
=> Gammon Empire
=> Play65
-----------------------------
Other Online Games
-----------------------------
=> Poker
=> Chess
=> GO
=> Scrabble
=> other games
-----------------------------
Management
-----------------------------
=> Front Page
TinyPortal 1.0 beta 5-1
Please Donate just a wee amount by clicking here or we will have to stick more bloody small ads here again...thx :)
Fresh Air
Terms & Conditions
|
Privacy policy
Loading...