judovana / java-runtime-decompiler

GNU General Public License v3.0
68 stars 14 forks source link

Clue to why overwrite test passes - agent does not halt in previous CLI run #204

Open AurumTheEnd opened 2 years ago

AurumTheEnd commented 2 years ago

@judovana

[ohrdlicka@ohrdlicka java-runtime-decompiler]$ ./start.sh --verbose --decompile 8729 Cfr .*\$Gson\$Preconditions.*
Interpreting '8729' as PID. To use numbers as filenames, try './8729'.
Processing request. VM ID: 8729, PID: 8729, action: CLASSES, port: -1
Attaching agent to VM '8729'
Attempting to attach decompiler agent for VM '8729' on port '10900'
Agent successfully returned class names or overrides
Exception in thread "main" java.lang.RuntimeException: No class found to save.
        at org.jrd.backend.data.Cli.returnNonzero(Cli.java:566)
        at org.jrd.backend.data.Cli.decompile(Cli.java:561)
        at org.jrd.backend.data.Cli.consumeCli(Cli.java:202)
        at org.jrd.backend.data.Main.main(Main.java:20)

[ohrdlicka@ohrdlicka java-runtime-decompiler]$ ./start.sh --verbose --listclasses 8729  .*\$Gson\$Preconditions.*
Interpreting '8729' as PID. To use numbers as filenames, try './8729'.
Processing request. VM ID: 8729, PID: 8729, action: CLASSES, port: -1
Attaching agent to VM '8729'
java.lang.RuntimeException: Could not open socket on port 10900. Trying again.
        at org.jrd.backend.core.AgentLoader.findPort(AgentLoader.java:68)
        at org.jrd.backend.core.AgentLoader.attach(AgentLoader.java:35)
        at org.jrd.backend.core.AgentAttachManager.attachAgentToVm(AgentAttachManager.java:23)
        at org.jrd.backend.core.DecompilerRequestReceiver.checkIfAgentIsLoaded(DecompilerRequestReceiver.java:247)
        at org.jrd.backend.core.DecompilerRequestReceiver.getPort(DecompilerRequestReceiver.java:110)
        at org.jrd.backend.core.DecompilerRequestReceiver.getResponse(DecompilerRequestReceiver.java:138)
        at org.jrd.backend.core.DecompilerRequestReceiver.getListAction(DecompilerRequestReceiver.java:213)
        at org.jrd.backend.core.DecompilerRequestReceiver.processRequest(DecompilerRequestReceiver.java:82)
        at org.jrd.frontend.frame.main.DecompilationController.submitRequest(DecompilationController.java:570)
        at org.jrd.backend.data.Cli.obtainClasses(Cli.java:783)
        at org.jrd.backend.data.Cli.obtainFilteredClasses(Cli.java:668)
        at org.jrd.backend.data.Cli.listClassesFromVmInfo(Cli.java:681)
        at org.jrd.backend.data.Cli.listClasses(Cli.java:662)
        at org.jrd.backend.data.Cli.consumeCli(Cli.java:194)
        at org.jrd.backend.data.Main.main(Main.java:20)
Caused by: java.net.BindException: Address already in use (Bind failed)
        at java.base/java.net.PlainSocketImpl.socketBind(Native Method)
        at java.base/java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:436)
        at java.base/java.net.ServerSocket.bind(ServerSocket.java:395)
        at java.base/java.net.ServerSocket.<init>(ServerSocket.java:257)
        at java.base/java.net.ServerSocket.<init>(ServerSocket.java:149)
        at org.jrd.backend.core.AgentLoader.findPort(AgentLoader.java:63)
        ... 14 more
Attempting to attach decompiler agent for VM '8729' on port '10901'
Agent successfully returned class names or overrides

[ohrdlicka@ohrdlicka java-runtime-decompiler]$
judovana commented 2 years ago

Excelnt clue. MAkesense. Thanx!

-- Mgr. Jiri Vanek @.***

---------- Původní e-mail ---------- Od: Prokop Tunel @.> Komu: pmikova/java-runtime-decompiler @. github.com> Datum: 20. 10. 2021 14:57:17 Předmět: [pmikova/java-runtime-decompiler] Clue to why overwrite test passes

@judovana(https://github.com/judovana)

@.** java-runtime-decompiler]$ ./start.sh --verbose --decompile 8729 Cfr .\$Gson\$Preconditions.* Interpreting '8729' as PID. To use numbers as filenames, try './8729'. Processing request. VM ID: 8729, PID: 8729, action: CLASSES, port: -1 Attaching agent to VM '8729' Attempting to attach decompiler agent for VM '8729' on port '10900' Agent successfully returned class names or overrides Exception in thread "main" java.lang.RuntimeException: No class found to save. at org.jrd.backend.data.Cli.returnNonzero(Cli.java:566) at org.jrd.backend.data.Cli.decompile(Cli.java:561) at org.jrd.backend.data.Cli.consumeCli(Cli.java:202) at org.jrd.backend.data.Main.main(Main.java:20)

@.** java-runtime-decompiler]$ ./start.sh --verbose --listclasses 8729 .\$Gson\$Preconditions.* Interpreting '8729' as PID. To use numbers as filenames, try './8729'. Processing request. VM ID: 8729, PID: 8729, action: CLASSES, port: -1 Attaching agent to VM '8729' java.lang.RuntimeException: Could not open socket on port 10900. Trying again. at org.jrd.backend.core.AgentLoader.findPort(AgentLoader.java:68) at org.jrd.backend.core.AgentLoader.attach(AgentLoader.java:35) at org.jrd.backend.core.AgentAttachManager.attachAgentToVm(AgentAttachManager.java:23) at org.jrd.backend.core.DecompilerRequestReceiver.checkIfAgentIsLoaded(DecompilerRequestReceiver.java:247) at org.jrd.backend.core.DecompilerRequestReceiver.getPort(DecompilerRequestReceiver.java:110) at org.jrd.backend.core.DecompilerRequestReceiver.getResponse(DecompilerRequestReceiver.java:138) at org.jrd.backend.core.DecompilerRequestReceiver.getListAction(DecompilerRequestReceiver.java:213) at org.jrd.backend.core.DecompilerRequestReceiver.processRequest(DecompilerRequestReceiver.java:82) at org.jrd.frontend.frame.main.DecompilationController.submitRequest(DecompilationController.java:570) at org.jrd.backend.data.Cli.obtainClasses(Cli.java:783) at org.jrd.backend.data.Cli.obtainFilteredClasses(Cli.java:668) at org.jrd.backend.data.Cli.listClassesFromVmInfo(Cli.java:681) at org.jrd.backend.data.Cli.listClasses(Cli.java:662) at org.jrd.backend.data.Cli.consumeCli(Cli.java:194) at org.jrd.backend.data.Main.main(Main.java:20) Caused by: java.net.BindException: Address already in use (Bind failed) at java.base/java.net.PlainSocketImpl.socketBind(Native Method) at java.base/java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:436) at java.base/java.net.ServerSocket.bind(ServerSocket.java:395) at java.base/java.net.ServerSocket.<init>(ServerSocket.java:257) at java.base/java.net.ServerSocket.<init>(ServerSocket.java:149) at org.jrd.backend.core.AgentLoader.findPort(AgentLoader.java:63) ... 14 more Attempting to attach decompiler agent for VM '8729' on port '10901' Agent successfully returned class names or overrides

@.*** java-runtime-decompiler]$

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub (https://github.com/pmikova/java-runtime-decompiler/issues/204), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AAWFCSY4FPHVOHGBKUKR3G3UH24CFANCNFSM5GLSPUSA) . Triage notifications on the go with GitHub Mobile for iOS (https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675) or Android (https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub) . "