From: Erik V. <eri...@hc...> - 2007-06-17 11:34:07
|
BTW I remember having seen a similar thing fairly recently. Not sure if it was following the switch to Java 1.5, but if so, one theory could be that the 1.5 version of getResourceAsStream() has problems with Windows-style file paths. > -----Original Message----- > From: rai...@li... > [mailto:rai...@li...] On Behalf > Of Erik Vos > Sent: Saturday 16 June 2007 22:31 > To: 'Development list for Rails: an 18xx game' > Subject: Re: [Rails-devel] Generics etc. > > Don't know. Perhaps a classpath problem? > > I'm running it from Eclipse with VM-option -Dconfigfile=my.properties, > with a classpath that includes the directory where the configfile is > located. > > Erik. > > > -----Original Message----- > > From: rai...@li... > > [mailto:rai...@li...] On Behalf > > Of brett lentz > > Sent: Saturday 16 June 2007 21:04 > > To: Development list for Rails: an 18xx game > > Subject: Re: [Rails-devel] Generics etc. > > > > I've finally gotten some free time to check out the changes. > > Unfortunately, it looks like I can't even start up a game now... > > > > > > Cmdline configfile setting = C:\Documents and > > Settings\Brett\workspace\18xx\my.properties > > Configuration file = C:\Documents and > > Settings\Brett\workspace\18xx\my.properties > > log4j:WARN No appenders could be found for logger (rails.util). > > log4j:WARN Please initialize the log4j system properly. > > Exception whilst loading properties file C:\Documents and > > Settings\Brett\workspace\18xx\my.properties > > java.lang.NullPointerException > > at java.util.Properties$LineReader.readLine(Unknown Source) > > at java.util.Properties.load(Unknown Source) > > at rails.util.Config.load(Config.java:59) > > at rails.util.Config.get(Config.java:40) > > at rails.ui.swing.Options.initialize(Options.java:102) > > at rails.ui.swing.Options.<init>(Options.java:214) > > at rails.ui.swing.GameUILoader.<init>(GameUILoader.java:18) > > at rails.test.GameTest.main(GameTest.java:34) > > > > > > Any ideas on why getResourceAsStream() is returning null? > > > > > > ---Brett > > > > > > On 6/3/07, Erik Vos <eri...@hc...> wrote: > > > In the past week I have parametrised most Collections > > > and applied quite a number of for/in loops. > > > Most of the Java 5 'Type Safety' warnings are gone now. > > > Not all of them; generics have some limitations. > > > > > > Erik Vos > > > > > > > > > > > -------------------------------------------------------------- > > ----------- > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > > > Rails-devel mailing list > > > Rai...@li... > > > https://lists.sourceforge.net/lists/listinfo/rails-devel > > > > > > > -------------------------------------------------------------- > > ----------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Rails-devel mailing list > > Rai...@li... > > https://lists.sourceforge.net/lists/listinfo/rails-devel > > > > > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > |