{"action":"created","issue":{"url":"https://api.github.com/repos/lukehutch/fast-classpath-scanner/issues/171","repository_url":"https://api.github.com/repos/lukehutch/fast-classpath-scanner","labels_url":"https://api.github.com/repos/lukehutch/fast-classpath-scanner/issues/171/labels{/name}","comments_url":"https://api.github.com/repos/lukehutch/fast-classpath-scanner/issues/171/comments","events_url":"https://api.github.com/repos/lukehutch/fast-classpath-scanner/issues/171/events","html_url":"https://github.com/lukehutch/fast-classpath-scanner/issues/171","id":290961732,"number":171,"title":"Scanning on LinuxKit doesn't work when scan root is not root directory of a jarfile","user":{"login":"ncoe","id":3222421,"avatar_url":"https://avatars0.githubusercontent.com/u/3222421?v=4","gravatar_id":"","url":"https://api.github.com/users/ncoe","html_url":"https://github.com/ncoe","followers_url":"https://api.github.com/users/ncoe/followers","following_url":"https://api.github.com/users/ncoe/following{/other_user}","gists_url":"https://api.github.com/users/ncoe/gists{/gist_id}","starred_url":"https://api.github.com/users/ncoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncoe/subscriptions","organizations_url":"https://api.github.com/users/ncoe/orgs","repos_url":"https://api.github.com/users/ncoe/repos","events_url":"https://api.github.com/users/ncoe/events{/privacy}","received_events_url":"https://api.github.com/users/ncoe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":41,"created_at":"2018-01-23T19:21:55Z","updated_at":"2018-04-13T14:48:01Z","closed_at":"2018-04-13T14:48:01Z","author_association":"NONE","body":"https://github.com/lukehutch/fast-classpath-scanner/blob/c07698e2b7dea93b102b35f04f369bf5e911b789/src/main/java/io/github/lukehutch/fastclasspathscanner/scanner/RelativePath.java#L224\r\n\r\nThe line indicated is getting null from nestedJarHandler, when then is wrapped and throw as an IOException. This is preventing matching classes from being processed for a jar.\r\n\r\n```\r\n2018-01-23T18:52:34.862+0000    FastClasspathScanner    -- Searching for \"Class-Path:\" entries within manifest files\r\n2018-01-23T18:52:34.874+0000    FastClasspathScanner    ---- Ignoring JRE jar: /usr/java/jdk1.8.0_131/jre/lib/ext/localedata.jar\r\n2018-01-23T18:52:34.874+0000    FastClasspathScanner    ---- Ignoring JRE jar: /usr/java/jdk1.8.0_131/jre/lib/ext/sunjce_provider.jar\r\n2018-01-23T18:52:34.877+0000    FastClasspathScanner    ---- Ignoring JRE jar: /usr/java/jdk1.8.0_131/jre/lib/ext/sunpkcs11.jar\r\n2018-01-23T18:52:34.877+0000    FastClasspathScanner    ---- Ignoring JRE jar: /usr/java/jdk1.8.0_131/jre/lib/ext/cldrdata.jar\r\n2018-01-23T18:52:34.877+0000    FastClasspathScanner    ---- Ignoring JRE jar: /usr/java/jdk1.8.0_131/jre/lib/ext/zipfs.jar\r\n2018-01-23T18:52:34.877+0000    FastClasspathScanner    ---- Ignoring JRE jar: /usr/java/jdk1.8.0_131/jre/lib/ext/sunec.jar\r\n2018-01-23T18:52:34.877+0000    FastClasspathScanner    ---- Ignoring JRE jar: /usr/java/jdk1.8.0_131/jre/lib/ext/jfxrt.jar\r\n2018-01-23T18:52:34.877+0000    FastClasspathScanner    ---- Ignoring JRE jar: /usr/java/jdk1.8.0_131/jre/lib/ext/nashorn.jar\r\n2018-01-23T18:52:34.877+0000    FastClasspathScanner    ---- Ignoring JRE jar: /usr/java/jdk1.8.0_131/jre/lib/ext/jaccess.jar\r\n2018-01-23T18:52:34.878+0000    FastClasspathScanner    ---- Ignoring JRE jar: /usr/java/jdk1.8.0_131/jre/lib/ext/dnsns.jar\r\n2018-01-23T18:52:34.880+0000    FastClasspathScanner    ---- Could not canonicalize path: /acceptance-1.22-SNAPSHOT.jar!/BOOT-INF/classes\r\n2018-01-23T18:52:34.880+0000    FastClasspathScanner    ------ java.io.IOException: Exception while getting jarfile jar:file:/acceptance-1.22-SNAPSHOT.jar!/BOOT-INF/classes\r\n2018-01-23T18:52:34.880+0000    FastClasspathScanner    ------  at io.github.lukehutch.fastclasspathscanner.scanner.RelativePath.getFile(RelativePath.java:223)\r\n2018-01-23T18:52:34.880+0000    FastClasspathScanner    ------  at io.github.lukehutch.fastclasspathscanner.scanner.RelativePath.exists(RelativePath.java:290)\r\n2018-01-23T18:52:34.880+0000    FastClasspathScanner    ------  at io.github.lukehutch.fastclasspathscanner.scanner.RelativePath.isValidClasspathElement(RelativePath.java:313)\r\n2018-01-23T18:52:34.880+0000    FastClasspathScanner    ------  at io.github.lukehutch.fastclasspathscanner.scanner.Scanner$1.processWorkUnit(Scanner.java:235)\r\n2018-01-23T18:52:34.880+0000    FastClasspathScanner    ------  at io.github.lukehutch.fastclasspathscanner.scanner.Scanner$1.processWorkUnit(Scanner.java:224)\r\n2018-01-23T18:52:34.880+0000    FastClasspathScanner    ------  at io.github.lukehutch.fastclasspathscanner.utils.WorkQueue.runWorkLoop(WorkQueue.java:182)\r\n2018-01-23T18:52:34.880+0000    FastClasspathScanner    ------  at io.github.lukehutch.fastclasspathscanner.utils.WorkQueue$1.call(WorkQueue.java:147)\r\n2018-01-23T18:52:34.880+0000    FastClasspathScanner    ------  at io.github.lukehutch.fastclasspathscanner.utils.WorkQueue$1.call(WorkQueue.java:144)\r\n2018-01-23T18:52:34.880+0000    FastClasspathScanner    ------  at java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n2018-01-23T18:52:34.880+0000    FastClasspathScanner    ------  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n2018-01-23T18:52:34.880+0000    FastClasspathScanner    ------  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n2018-01-23T18:52:34.880+0000    FastClasspathScanner    ------  at java.lang.Thread.run(Thread.java:748)\r\n2018-01-23T18:52:34.880+0000    FastClasspathScanner    ------ Caused by: java.lang.NullPointerException\r\n2018-01-23T18:52:34.880+0000    FastClasspathScanner    ------  at io.github.lukehutch.fastclasspathscanner.scanner.RelativePath.getFile(RelativePath.java:208)\r\n2018-01-23T18:52:34.880+0000    FastClasspathScanner    ------  ... 11 more\r\n```\r\n\r\nThis has been seen using 2.9.5 or later releases. 2.9.4 is a version that does not have this problem."},"comment":{"url":"https://api.github.com/repos/lukehutch/fast-classpath-scanner/issues/comments/381159346","html_url":"https://github.com/lukehutch/fast-classpath-scanner/issues/171#issuecomment-381159346","issue_url":"https://api.github.com/repos/lukehutch/fast-classpath-scanner/issues/171","id":381159346,"user":{"login":"ncoe","id":3222421,"avatar_url":"https://avatars0.githubusercontent.com/u/3222421?v=4","gravatar_id":"","url":"https://api.github.com/users/ncoe","html_url":"https://github.com/ncoe","followers_url":"https://api.github.com/users/ncoe/followers","following_url":"https://api.github.com/users/ncoe/following{/other_user}","gists_url":"https://api.github.com/users/ncoe/gists{/gist_id}","starred_url":"https://api.github.com/users/ncoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncoe/subscriptions","organizations_url":"https://api.github.com/users/ncoe/orgs","repos_url":"https://api.github.com/users/ncoe/repos","events_url":"https://api.github.com/users/ncoe/events{/privacy}","received_events_url":"https://api.github.com/users/ncoe/received_events","type":"User","site_admin":false},"created_at":"2018-04-13T14:48:01Z","updated_at":"2018-04-13T14:48:01Z","author_association":"NONE","body":"Likewise, thanks."}}
{"actor":{"display_login":"ncoe"}}