Connection Lost



  • I tried option one. I will try the other one next.


  • Admin

    @RoiEX I'm cleaning up my fork. Do you still need the spike/topic-1104-connection-lost-debugging branch? If you don't need it now but think you'll need it again in the future, it's pretty simple to re-create.


  • Admin

    Not anymore. We have all the debug information we can get for now, so we should be fine


  • Admin

    @RoiEX said in Connection Lost:

    I finally found the post where I proposed the original solution.
    I modified the properties file to be

    handlers=games.strategy.debug.ConsoleHandler
    
    games.strategy.net.nio.NioWriter.level=FINEST
    games.strategy.net.nio.NioReader.level=FINEST
    

    but unfortunately I got a

    Can't load log handler "games.strategy.debug.ConsoleHandler"
    java.lang.InstantiationException: games.strategy.debug.ConsoleHandler
    

    Because the ConsoleHandler class no longer has a default constructor.
    So we need a code change either way unfortunately, adding a default constructor might be the fastest way nevertheless though.

    I was playing around with the logging system recently. I discovered that specifying the games.strategy.debug.ConsoleHandler in the configuration file appears to be unnecessary since it is registered in code during application startup. That means you can remove the handlers property to avoid the InstantiationException, but the logger level configuration lines continue to be processed as expected.

    In summary, even though our ConsoleHandler doesn't provide a default constructor, the approach you proposed above should continue to be a viable solution if we ever need to provide a custom logger configuration (at least with respect to log levels).



  • Hi,
    Sorry I have not updated on what happened while playing but I got so fed up that I just said "Forget it!". I find myself still wanting to play at times however and now wonder if their has been any progress with a fix for my problem. What else can I do to make this work?
    VanB.........


  • Admin

    @VanBattlesick You wanted to try option 2



  • This post is deleted!

Log in to reply
 

22816
1304
1499
Who's Online
Visitors Today