Skip to content

NoSuchFileException when trying to get page #696

Description

@owochle

I get a NoSuchFileException when trying to query a page. The only guess i have would be that it is unable to write in /tmp, which is weird. Here is the traceback

17:55:00 WARN org.htmlunit.WebResponse | /tmp/htmlunit15014647045775338636.tmp
java.nio.file.NoSuchFileException: /tmp/htmlunit15014647045775338636.tmp
	at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92) ~[?:?]
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106) ~[?:?]
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) ~[?:?]
	at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:218) ~[?:?]
	at java.base/java.nio.file.Files.newByteChannel(Files.java:380) ~[?:?]
	at java.base/java.nio.file.Files.newByteChannel(Files.java:432) ~[?:?]
	at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:422) ~[?:?]
	at java.base/java.nio.file.Files.newInputStream(Files.java:160) ~[?:?]
	at org.htmlunit.DownloadedContent$OnFile.getInputStream(DownloadedContent.java:89) ~[htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.WebResponseData.getStream(WebResponseData.java:97) ~[htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.WebResponseData.getInputStreamWithBomIfApplicable(WebResponseData.java:218) ~[htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.WebResponse.getContentAsString(WebResponse.java:265) [htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.util.WebResponseWrapper.getContentAsString(WebResponseWrapper.java:96) [htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:1146) [htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1023) [htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.html.ScriptElementSupport.executeScriptIfNeeded(ScriptElementSupport.java:194) [htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.html.ScriptElementSupport$1.execute(ScriptElementSupport.java:118) [htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.html.ScriptElementSupport.onAllChildrenAddedToPage(ScriptElementSupport.java:141) [htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:192) [htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.html.parser.neko.HtmlUnitNekoDOMBuilder.endElement(HtmlUnitNekoDOMBuilder.java:599) [htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.cyberneko.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:412) [neko-htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.html.parser.neko.HtmlUnitNekoDOMBuilder.endElement(HtmlUnitNekoDOMBuilder.java:548) [htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.cyberneko.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1270) [neko-htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.cyberneko.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1198) [neko-htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.cyberneko.filters.DefaultFilter.endElement(DefaultFilter.java:201) [neko-htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.cyberneko.filters.NamespaceBinder.endElement(NamespaceBinder.java:269) [neko-htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.cyberneko.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:2938) [neko-htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.cyberneko.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1923) [neko-htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.cyberneko.HTMLScanner.scanDocument(HTMLScanner.java:813) [neko-htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:319) [neko-htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:277) [neko-htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.cyberneko.xerces.parsers.XMLParser.parse(XMLParser.java:73) [neko-htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.html.parser.neko.HtmlUnitNekoDOMBuilder.parse(HtmlUnitNekoDOMBuilder.java:842) [htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.html.parser.neko.HtmlUnitNekoHtmlParser.parse(HtmlUnitNekoHtmlParser.java:202) [htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:301) [htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:220) [htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.WebClient.loadWebResponseInto(WebClient.java:665) [htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.WebClient.loadWebResponseInto(WebClient.java:567) [htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.WebClient.getPage(WebClient.java:485) [htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.WebClient.getPage(WebClient.java:392) [htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.WebClient.getPage(WebClient.java:530) [htmlunit-3.6.0.jar:3.6.0]
	at org.htmlunit.WebClient.getPage(WebClient.java:512) [htmlunit-3.6.0.jar:3.6.0]
	at session.LoginKt.login(Login.kt:30) [main/:?]
	at views.TenantsKt$Tenants$1$1.invokeSuspend(Tenants.kt:34) [main/:?]
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) [kotlin-stdlib-1.9.21.jar:1.9.21-release-633]
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108) [kotlinx-coroutines-core-jvm-1.8.0-RC.jar:?]
	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115) [kotlinx-coroutines-core-jvm-1.8.0-RC.jar:?]
	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103) [kotlinx-coroutines-core-jvm-1.8.0-RC.jar:?]
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584) [kotlinx-coroutines-core-jvm-1.8.0-RC.jar:?]
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:800) [kotlinx-coroutines-core-jvm-1.8.0-RC.jar:?]
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:704) [kotlinx-coroutines-core-jvm-1.8.0-RC.jar:?]
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:691) [kotlinx-coroutines-core-jvm-1.8.0-RC.jar:?]

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions