[Date Prev][Date Next][Thread Prev][Thread Next][Author Index][Date Index][Thread Index]

Exception at startup



Sometimes when the client starts with a new space, the startup code
throws an exception (NumberFormatException).
Here's a log of one such session:

Starting gZigZag client, build: Custom CVS Build 2000-07-26T06:44:41Z by ajk@musti
Clientspace version used by program is 1.
CONTENT: false
REHASH!
CREATEDIM: d.2 ex: false
REHASH!
CREATEDIM: d.masterdim ex: false
REHASH!
CREATEDIM: d.clone ex: false
REHASH!
RMCC: null
CREATEDIM: d.1 ex: false
REHASH!
CREATEDIM: d.3 ex: false
REHASH!
CREATEDIM: d.view ex: false
REHASH!
CREATEDIM: d.ctrlview ex: false
REHASH!
CREATEDIM: d.cursor-cargo ex: false
REHASH!
CREATEDIM: d.cursor ex: false
REHASH!
CREATEDIM: d.dims ex: false
REHASH!
CREATEDIM: d.color ex: false
REHASH!
CREATEDIM: d.bounds ex: false
REHASH!
getS: reading cell 375
getS: 0
getS: reading cell 377
getS: 0
getS: reading cell 378
getS: 512
getS: reading cell 379
getS: 700
GetI: 0
GetI: 0
GetI: 512
GetI: 700
Creating Ctrl
CREATEDIM: d.mark-set ex: false
REHASH!
ComponentResized: java.awt.Rectangle[x=0,y=0,width=512,height=700]
getS: reading cell 387
getS: 512
getS: reading cell 389
getS: 0
getS: reading cell 390
getS: 512
getS: reading cell 391
getS: 700
GetI: 512
GetI: 0
GetI: 512
GetI: 700
Creating Data
getS: reading cell 383
getS: 0
getS: reading cell 384
getS: 0
getS: reading cell 385
getS: 512
getS: reading cell 388
getS: 700
GetI: 0
GetI: 0
GetI: 512
GetI: 700
Creating Ctrl
CREATEDIM: d.gzz-space-version ex: false
REHASH!
ComponentResized: java.awt.Rectangle[x=512,y=0,width=512,height=700]
Dimensions: (14)
d.1
d.2
d.3
d.bounds
d.color
d.ctrlview
d.cursor
d.cursor-cargo
d.dims
d.gzz-space-version
d.mark-set
d.masterdim
d.clone
d.view
getS: reading cell 394
getS: 
getS: reading cell 387
getS: 512
getS: reading cell 389
getS: 0
getS: reading cell 390
getS: 512
GetI: 
java.lang.NumberFormatException: 
	at java.lang.Integer.parseInt(Integer.java)
	at java.lang.Integer.parseInt(Integer.java)
	at fi.iki.lukka.ZZUtil.getInts(ZZUtil.java:89)
	at fi.iki.lukka.ZZWindows.bounds(ZZWindows.java:70)
	at fi.iki.lukka.ZZWindows.create(ZZWindows.java:129)
	at fi.iki.lukka.ZZWindows.update(ZZWindows.java:79)
	at foo.Main.main(Main.java:303)
java.lang.NumberFormatException: 
ComponentMoved: java.awt.Rectangle[x=0,y=0,width=512,height=700]
ComponentMoved: java.awt.Rectangle[x=0,y=0,width=512,height=700]
fi.iki.lukka.ZZViewComponent$1@8071689 focusgained
fi.iki.lukka.ZZViewComponent$1@8071689 focuslost
fi.iki.lukka.ZZViewComponent$1@8071689 focusgained
[...]

The log was produced by a current CVS build with the following change:

RCS file: /cvsroot/gzigzag/gzigzag/Java/ZZUtil.java,v
retrieving revision 1.4
diff -u -r1.4 ZZUtil.java
--- ZZUtil.java 2000/07/24 01:55:18     1.4
+++ ZZUtil.java 2000/07/26 06:55:00
@@ -70,7 +70,9 @@
                    throw new ZZError("Not enough strings: "+i);
                }
            }
+           p("getS: reading cell " + start.getID());
            r[i] = start.getText();
+           p("getS: "+r[i]);
        }
        if(i == nmax) return r;
        String[] r2 = new String[i];


The problem occurs frequently but not consistently.  It has at least
once caused the space building to fail (starting the client with the
same space afterwards made the client think the space was old-format and
suggested conversion; however, I've not been able to reproduce this.)

(I'm giving bug reports instead of investigating these myself since I'll
be away (teaching:-) for two weeks starting tomorrow, and I need to tidy
up TreeRaster before I leave.)
-- 
%%% Antti-Juhani Kaijanaho % gaia@xxxxxx % http://www.iki.fi/gaia/ %%%