{"action":"created","issue":{"url":"https://api.github.com/repos/BenoitDuffez/AndroidCupsPrint/issues/14","repository_url":"https://api.github.com/repos/BenoitDuffez/AndroidCupsPrint","labels_url":"https://api.github.com/repos/BenoitDuffez/AndroidCupsPrint/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/BenoitDuffez/AndroidCupsPrint/issues/14/comments","events_url":"https://api.github.com/repos/BenoitDuffez/AndroidCupsPrint/issues/14/events","html_url":"https://github.com/BenoitDuffez/AndroidCupsPrint/issues/14","id":137710953,"number":14,"title":"86acef4 seems to make application crash on mdns query","user":{"login":"Gemba","id":418292,"avatar_url":"https://avatars.githubusercontent.com/u/418292?v=3","gravatar_id":"","url":"https://api.github.com/users/Gemba","html_url":"https://github.com/Gemba","followers_url":"https://api.github.com/users/Gemba/followers","following_url":"https://api.github.com/users/Gemba/following{/other_user}","gists_url":"https://api.github.com/users/Gemba/gists{/gist_id}","starred_url":"https://api.github.com/users/Gemba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gemba/subscriptions","organizations_url":"https://api.github.com/users/Gemba/orgs","repos_url":"https://api.github.com/users/Gemba/repos","events_url":"https://api.github.com/users/Gemba/events{/privacy}","received_events_url":"https://api.github.com/users/Gemba/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/BenoitDuffez/AndroidCupsPrint/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-03-01T22:51:05Z","updated_at":"2016-10-25T22:46:25Z","closed_at":null,"body":"Building/assembling works but when querying for printers the app crashes.\r\n\r\nWorkaround: Resurrect JfSSLScheme.java class and add\r\n```\r\nandroid {\r\n    useLibrary 'org.apache.http.legacy'\r\n    ...\r\n```\r\n\r\nin app/build.gradle.\r\n\r\nBut I guess the workaround is not the outcome you were aiming at...\r\n\r\n\r\n```\r\nV/WindowManager(10292): not Base app: Adding window Window{38b0d0bc u0 com.android.settings/com.android.settings.SubSettings} at 7 of 13\r\nD/mali_winsys(14025): new_window_surface returns 0x3000\r\nI/ActivityManager(10292): Start proc 14212:io.github.benoitduffez.cupsprint/u0a123 for service io.github.benoitduffez.cupsprint/.printservice.CupsService\r\nW/InputMethodManagerService(10292): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@8284afd attribute=null, token = android.os.BinderProxy@34f08124\r\nE/AndroidRuntime(14212): FATAL EXCEPTION: AsyncTask #1\r\nE/AndroidRuntime(14212): Process: io.github.benoitduffez.cupsprint, PID: 14212\r\nE/AndroidRuntime(14212): java.lang.RuntimeException: An error occured while executing doInBackground()\r\nE/AndroidRuntime(14212): \tat android.os.AsyncTask$3.done(AsyncTask.java:304)\r\nE/AndroidRuntime(14212): \tat java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)\r\nE/AndroidRuntime(14212): \tat java.util.concurrent.FutureTask.setException(FutureTask.java:222)\r\nE/AndroidRuntime(14212): \tat java.util.concurrent.FutureTask.run(FutureTask.java:242)\r\nE/AndroidRuntime(14212): \tat android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)\r\nE/AndroidRuntime(14212): \tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)\r\nE/AndroidRuntime(14212): \tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)\r\nE/AndroidRuntime(14212): \tat java.lang.Thread.run(Thread.java:818)\r\nE/AndroidRuntime(14212): Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/jonbanjo/ssl/JfSSLScheme;\r\nE/AndroidRuntime(14212): \tat org.cups4j.operations.IppOperation.sendRequest(IppOperation.java:212)\r\nE/AndroidRuntime(14212): \tat org.cups4j.operations.IppOperation.sendRequest(IppOperation.java:140)\r\nE/AndroidRuntime(14212): \tat org.cups4j.operations.IppOperation.request(IppOperation.java:75)\r\nE/AndroidRuntime(14212): \tat org.cups4j.operations.cups.CupsGetPrintersOperation.getPrinters(CupsGetPrintersOperation.java:51)\r\nE/AndroidRuntime(14212): \tat org.cups4j.CupsClient.getPrinters(CupsClient.java:76)\r\nE/AndroidRuntime(14212): \tat org.cups4j.CupsClient.getPrinter(CupsClient.java:96)\r\nE/AndroidRuntime(14212): \tat com.jonbanjo.detect.MdnsServices.scan(MdnsServices.java:236)\r\nE/AndroidRuntime(14212): \tat io.github.benoitduffez.cupsprint.printservice.CupsPrinterDiscoverySession.scanPrinters(CupsPrinterDiscoverySession.java:250)\r\nE/AndroidRuntime(14212): \tat io.github.benoitduffez.cupsprint.printservice.CupsPrinterDiscoverySession.access$000(CupsPrinterDiscoverySession.java:63)\r\nE/AndroidRuntime(14212): \tat io.github.benoitduffez.cupsprint.printservice.CupsPrinterDiscoverySession$1.doInBackground(CupsPrinterDiscoverySession.java:83)\r\nE/AndroidRuntime(14212): \tat io.github.benoitduffez.cupsprint.printservice.CupsPrinterDiscoverySession$1.doInBackground(CupsPrinterDiscoverySession.java:80)\r\nE/AndroidRuntime(14212): \tat android.os.AsyncTask$2.call(AsyncTask.java:292)\r\nE/AndroidRuntime(14212): \tat java.util.concurrent.FutureTask.run(FutureTask.java:237)\r\nE/AndroidRuntime(14212): \t... 4 more\r\nE/AndroidRuntime(14212): Caused by: java.lang.ClassNotFoundException: Didn't find class \"com.jonbanjo.ssl.JfSSLScheme\" on path: DexPathList[[zip file \"/data/app/io.github.benoitduffez.cupsprint-1/base.apk\"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]\r\nE/AndroidRuntime(14212): \tat dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)\r\nE/AndroidRuntime(14212): \tat java.lang.ClassLoader.loadClass(ClassLoader.java:511)\r\nE/AndroidRuntime(14212): \tat java.lang.ClassLoader.loadClass(ClassLoader.java:469)\r\nE/AndroidRuntime(14212): \t... 17 more\r\nE/AndroidRuntime(14212): \tSuppressed: java.lang.ClassNotFoundException: com.jonbanjo.ssl.JfSSLScheme\r\nE/AndroidRuntime(14212): \t\tat java.lang.Class.classForName(Native Method)\r\nE/AndroidRuntime(14212): \t\tat java.lang.BootClassLoader.findClass(ClassLoader.java:781)\r\nE/AndroidRuntime(14212): \t\tat java.lang.BootClassLoader.loadClass(ClassLoader.java:841)\r\nE/AndroidRuntime(14212): \t\tat java.lang.ClassLoader.loadClass(ClassLoader.java:504)\r\nE/AndroidRuntime(14212): \t\t... 18 more\r\nE/AndroidRuntime(14212): \tCaused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/BenoitDuffez/AndroidCupsPrint/issues/comments/256200415","html_url":"https://github.com/BenoitDuffez/AndroidCupsPrint/issues/14#issuecomment-256200415","issue_url":"https://api.github.com/repos/BenoitDuffez/AndroidCupsPrint/issues/14","id":256200415,"user":{"login":"BenoitDuffez","id":802209,"avatar_url":"https://avatars.githubusercontent.com/u/802209?v=3","gravatar_id":"","url":"https://api.github.com/users/BenoitDuffez","html_url":"https://github.com/BenoitDuffez","followers_url":"https://api.github.com/users/BenoitDuffez/followers","following_url":"https://api.github.com/users/BenoitDuffez/following{/other_user}","gists_url":"https://api.github.com/users/BenoitDuffez/gists{/gist_id}","starred_url":"https://api.github.com/users/BenoitDuffez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenoitDuffez/subscriptions","organizations_url":"https://api.github.com/users/BenoitDuffez/orgs","repos_url":"https://api.github.com/users/BenoitDuffez/repos","events_url":"https://api.github.com/users/BenoitDuffez/events{/privacy}","received_events_url":"https://api.github.com/users/BenoitDuffez/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T22:46:25Z","updated_at":"2016-10-25T22:46:25Z","body":"OK I have fixed bugs. I didn't know Android remembered the printers for so long, so I did my tests over HTTP :(\r\n\r\nNow I have forced my CUPS daemon to use SSL, and I am more careful when testing. It now works as expected.\r\nIf you want to test, use at least 669ec7e. You have to accept two prompts (at least on my setup): untrusted certificate, then untrusted host.\r\n\r\nThanks!"}}
{"actor":{"display_login":"BenoitDuffez"}}