{"action":"opened","issue":{"url":"https://api.github.com/repos/mosabua/test/issues/1","repository_url":"https://api.github.com/repos/mosabua/test","labels_url":"https://api.github.com/repos/mosabua/test/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/mosabua/test/issues/1/comments","events_url":"https://api.github.com/repos/mosabua/test/issues/1/events","html_url":"https://github.com/mosabua/test/issues/1","id":194658494,"number":1,"title":"Debug is not working.","user":{"login":"mosabua","id":145658,"avatar_url":"https://avatars.githubusercontent.com/u/145658?v=3","gravatar_id":"","url":"https://api.github.com/users/mosabua","html_url":"https://github.com/mosabua","followers_url":"https://api.github.com/users/mosabua/followers","following_url":"https://api.github.com/users/mosabua/following{/other_user}","gists_url":"https://api.github.com/users/mosabua/gists{/gist_id}","starred_url":"https://api.github.com/users/mosabua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mosabua/subscriptions","organizations_url":"https://api.github.com/users/mosabua/orgs","repos_url":"https://api.github.com/users/mosabua/repos","events_url":"https://api.github.com/users/mosabua/events{/privacy}","received_events_url":"https://api.github.com/users/mosabua/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-09T17:57:38Z","updated_at":"2016-12-09T17:57:38Z","closed_at":null,"body":"<a href=\"https://github.com/zhyi\"><img src=\"https://avatars.githubusercontent.com/u/1118786?v=3\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [zhyi](https://github.com/zhyi)**\n_Sunday Nov 27, 2016 at 12:58 GMT_\n_Originally opened as https://github.com/simpligility/android-maven-plugin/issues/751_\n\n----\n\nI'm using android-maven-plugin 4.4.3 with NetBeans. Below is the debug configuration:\r\n```\r\n<action>\r\n    <actionName>debug</actionName>\r\n    <goals>\r\n        <goal>install</goal>\r\n        <goal>android:deploy</goal>\r\n        <goal>android:run</goal>\r\n    </goals>\r\n    <properties>\r\n        <android.run.debug>${jpda.attach.port}</android.run.debug>\r\n        <jpda.attach>true</jpda.attach>\r\n    </properties>\r\n</action>\r\n```\r\nAfter clicking the IDE's debug button, I see that the JPDA connection is reset:\r\n```\r\n--- android-maven-plugin:4.4.3:run (default-cli) @ my-app ---\r\nandroid.devicesThreads parameter not set, using a thread for each attached device\r\nandroid.devices parameter not set, using all attached devices\r\nDevice 0123456789ABCDEF_alps_ww808_emmc found.\r\n0123456789ABCDEF_alps_ww808_emmc :   Attempting to start com.zhyi/com.zhyi.AppStart\r\n0123456789ABCDEF_alps_ww808_emmc :   Process 63155 launched\r\n0123456789ABCDEF_alps_ww808_emmc :   Debugger listening on 63155\r\n------------------------------------------------------------------------\r\nBUILD SUCCESS\r\n------------------------------------------------------------------------\r\nTotal time: 30.335 s\r\nFinished at: 2016-11-27T20:39:39+08:00\r\nFinal Memory: 36M/323M\r\n------------------------------------------------------------------------\r\norg.netbeans.api.debugger.jpda.DebuggerStartException: Connection reset\r\n\tat org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.waitRunning(JPDADebuggerImpl.java:405)\r\n\tat org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.waitRunning(JPDADebuggerImpl.java:387)\r\n\tat org.netbeans.api.debugger.jpda.JPDADebugger.attach(JPDADebugger.java:324)\r\n\tat org.netbeans.modules.maven.debug.DebuggerChecker.executionResult(DebuggerChecker.java:333)\r\n\tat org.netbeans.modules.maven.execute.MavenCommandLineExecutor.run(MavenCommandLineExecutor.java:315)\r\n\tat org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)\r\nCaused by: java.net.SocketException: Connection reset\r\n\tat java.net.SocketInputStream.read(SocketInputStream.java:209)\r\n\tat java.net.SocketInputStream.read(SocketInputStream.java:141)\r\n\tat com.sun.tools.jdi.SocketTransportService.handshake(SocketTransportService.java:130)\r\n\tat com.sun.tools.jdi.SocketTransportService.attach(SocketTransportService.java:232)\r\n\tat com.sun.tools.jdi.GenericAttachingConnector.attach(GenericAttachingConnector.java:116)\r\n\tat com.sun.tools.jdi.SocketAttachingConnector.attach(SocketAttachingConnector.java:90)\r\n\tat org.netbeans.api.debugger.jpda.AttachingDICookie.getVirtualMachine(AttachingDICookie.java:231)\r\n\tat org.netbeans.modules.debugger.jpda.actions.StartActionProvider.doStartDebugger(StartActionProvider.java:188)\r\n\tat org.netbeans.modules.debugger.jpda.actions.StartActionProvider.access$200(StartActionProvider.java:80)\r\n\tat org.netbeans.modules.debugger.jpda.actions.StartActionProvider$1.run(StartActionProvider.java:165)\r\n\tat org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)\r\n\tat org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)\r\n\tat org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)\r\n\tat org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)\r\n```\r\nHowever, I'm able to attach the debugger by manually forwarding the process to a local port with adb.\n"}}
{"actor":{"display_login":"mosabua"}}