You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanna obfuscate jar with log4j and https://github.com/bwaldvogel/log4j-systemd-journal-appender dependencies were added but i am getting error while LogManager.getLogger was running. I couldn't say obfuscate jar to not obfuscate log4j library.
If maybe i can say don't obfuscate log4j that can be the solution because i still couldn't figure out how to do that. I am still using default configurations while obfuscating^^
The text was updated successfully, but these errors were encountered:
Bug Report
Expected Behaviour
I wanna obfuscate jar with log4j and https://github.com/bwaldvogel/log4j-systemd-journal-appender dependencies were added but i am getting error while LogManager.getLogger was running. I couldn't say obfuscate jar to not obfuscate log4j library.
Actual Behaviour
Exception in thread "main" java.lang.VerifyError: Expecting a stackmap frame at branch target 165 Exception Details: Location: org/apache/logging/log4j/core/lookup/Interpolator.<init>(Lorg/apache/logging/log4j/core/lookup/StrLookup;Ljava/util/List;)V @165: ifeq Reason: Expected stackmap frame at this location. Bytecode: 0000000: 2ab7 00ef 2abb 00f1 59b7 00f2 b500 862a 0000010: 2bb8 00f6 9900 22bb 00f8 59bb 00f1 59b7 0000020: 00f2 b700 fb12 5ab6 005e 5712 8db6 005e 0000030: 749b 0006 01bf 2bb5 007e bb01 0159 b200 0000040: 90b2 0050 032e 32b7 0104 4e2d 2cb6 0108 0000050: 2db6 010b 3a04 1904 b901 0f01 00b9 0115 0000060: 0100 3a05 1905 b901 1b01 00b8 011f 9900 0000070: 9319 05b9 0123 0100 c000 083a 0619 06b9 0000080: 0126 0100 c001 28b6 012c 12fd b601 323a 0000090: 0719 07b6 0136 b200 90b2 0050 042e 32b6 00000a0: 0139 b801 1f99 0000 0b01 3eb8 011f 9900 00000b0: 0023 b400 8619 06b9 0141 0100 c000 2bb6 00000c0: 0144 1907 b801 4ab9 014e 0300 125a b600 00000d0: 5e58 125a b600 5e57 1260 b600 5e74 9e00 00000e0: 0016 bf3a 072a 1906 b901 4101 00c0 002b 00000f0: 1907 b701 5212 5ab6 005e 5701 c6ff 6801 0000100: bfb1 Exception Handler Table: bci [125, 210] => handler: 227 Stackmap Table: full_frame(@54,{Object[#2],Object[#253],Object[#255]},{Object[#2]}) full_frame(@55,{Object[#2],Object[#253],Object[#255]},{Object[#2],Object[#253]}) append_frame(@100,Object[#257],Object[#10],Object[#279]) append_frame(@177,Object[#8],Object[#302]) chop_frame(@210,1) same_locals_1_stack_item_frame(@227,Object[#238]) chop_frame(@245,1) chop_frame(@257,1) at org.apache.logging.log4j.core.config.AbstractConfiguration.<init>(Unknown Source) at org.apache.logging.log4j.core.config.NullConfiguration.<init>(Unknown Source) at org.apache.logging.log4j.core.LoggerContext.<clinit>(Unknown Source) at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.createContext(Unknown Source) at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.locateContext(Unknown Source) at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.getContext(Unknown Source) at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.getContext(Unknown Source) at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.getContext(Unknown Source) at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Unknown Source) at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Unknown Source) at org.apache.logging.log4j.LogManager.getContext(Unknown Source) at org.apache.logging.log4j.LogManager.getLogger(Unknown Source) at MDI.utils.Log.<clinit>(Unknown Source) at Main.main(Unknown Source)
How to reproduce the behaviour
If u add log4j and https://github.com/bwaldvogel/log4j-systemd-journal-appender this libraries and request LogManager.getLogger function it brokes.
Possible fix
If maybe i can say don't obfuscate log4j that can be the solution because i still couldn't figure out how to do that. I am still using default configurations while obfuscating^^
The text was updated successfully, but these errors were encountered: