Which version of Radon are you using? (Do not say "latest", if you do, your issue will be immediately closed)
1.0.4
What kind of Jar file did you obfuscate? (Android/Standalone/Plugin)
Standalone
What transformers did you use which caused an error?
Is Radon the issue or the jar Radon obfuscated the issue? (if the obfuscated jar is the issue, make sure to provide the jar)
the jar Radon obfuscated
Jar: https://www.dropbox.com/s/xsnk46n151zoh8u/hello-capsule.jar
What is the error produced? (Copy-and-paste error into PasteBin or HasteBin and link it here)
No error in Radon logs
[12/07/2018-12:52:08] INFO: Loading library "/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/rt.jar".
[12/07/2018-12:52:08] INFO: Loading library "/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/jce.jar".
[12/07/2018-12:52:08] INFO: Loading input "/Users/jatin/Code/gs-spring-boot/initial/hello/target/output/hello.jar".
[12/07/2018-12:52:08] INFO: ------------------------------------------------
[12/07/2018-12:52:08] INFO: Running Light flow obfuscation transformer.
[12/07/2018-12:52:08] INFO: Added 14 fake throw-null sequences
[12/07/2018-12:52:08] INFO: Finished running Light flow obfuscation transformer. [2ms]
[12/07/2018-12:52:08] INFO: ------------------------------------------------
[12/07/2018-12:52:08] INFO: Writing output to "/Users/jatin/Code/gs-spring-boot/initial/hello/target/output/hello.jar".
[12/07/2018-12:52:08] INFO: Output file already exists, renamed to /Users/jatin/Code/gs-spring-boot/initial/hello/target/output/hello.jar.BACKUP-1.
Any other information? (i.e. You combined Radon with other obfuscators)
Steps I took
# unarchive the capsue jar
jar xf hello-capsule.jar
rm hello-capsule.jar
# obfuscate hello.jar using radon-gui
# archive again with obfuscated hello.jar
jar -cvfm hello-capsule-obf.jar META-INF/MANIFEST.MF *;
Expected
When I run the jar
java -jar hello-capsule-obf.jar
and go to localhost:8080
, I see a message.
Actual
I get a 404
Possible Issue?
When I run unobfuscated jar I see this in logs
2018-12-07 12:32:42.532 INFO 15107 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@55a561cf: startup date [Fri Dec 07 12:32:37 IST 2018]; root of context hierarchy
2018-12-07 12:32:42.748 INFO 15107 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/]}" onto public java.lang.String hello.jatin.HelloController.index() throws java.lang.RuntimeException,com.fasterxml.jackson.core.JsonProcessingException
but when I run obfuscated jar, I only see this
2018-12-07 12:52:45.049 INFO 15959 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@61d47554: startup date [Fri Dec 07 12:52:43 IST 2018]; root of context hierarchy
Some issue with locating right annotation?
Update:
Even if I uncheck all obfuscation options in the GUI, it breaks. However, if I just unarchive, and then archive again (skipping the obfuscation step), it works - so seems like something obfuscator is doing.