nicho92 / MtgDesktopCompanion

Cards manager for magic the gathering
Apache License 2.0
165 stars 35 forks source link

Can't start 2.36 MTGLogger NullPointerException #235

Closed shithead closed 2 years ago

shithead commented 2 years ago

Configuration

Describe the bug On start I get this message:

Exception in thread "main" java.lang.NullPointerException: Cannot invoke "org.magic.services.logging.MTGAppender.addObserver(org.utils.patterns.observer.Observer)" because the return value of "org.magic.services.logging.MTGLogger.getMTGAppender()" is null
    at org.magic.api.main.MtgDesktopCompanion.<init>(MtgDesktopCompanion.java:41)
    at org.magic.api.main.MtgDesktopCompanion.main(MtgDesktopCompanion.java:34)
shithead commented 2 years ago

I run the ZIP file in release downloads with this bug. Selfbuild from git master works.

nicho92 commented 2 years ago

can you send me the log4j2.xml file present in /lib/magic-api-2.36.jar ? can you confirm that /lib/magic-api-2.35.jar is not present anymore ?

shithead commented 2 years ago

log4j2.xml.txt

remove txt to get back the xml.

I think I have removed all magic-api-2.35.jar on my pc.

nicho92 commented 2 years ago

can you try to remove all your previous setup file, unzip a fresh one, and run it ? (of course NOT the $HOME/.magicDeskCompanion directory !)

shithead commented 2 years ago

okay i have it, i search for all old jar files and remove it from my .local/lib and than it run. Sry I'm not so familiar with Java and file version resolving.