javax.script.ScriptException: ReferenceError: "HttpResponseStatus" is not defined in <eval> at line number 1


Solutions on the web

Solution icon of github
ReferenceError: "HttpResponseStatus" is not defined in <eval> at line number 1

Solution icon of stackoverflow
ReferenceError: "_" is not defined in <eval> at line number 1

Solution icon of github
ReferenceError: "monitorUpdate" is not defined in <eval> at line number 1

Solution icon of github
ReferenceError: "retVal" is not defined in <eval> at line number 1

Solution icon of stackoverflow
ReferenceError: "require" is not defined in <eval> at line number 1

Solution icon of web
via imagej.net by Unknown author, 1 year ago
ReferenceError: "importPackage" is not defined in <eval> at line number 1

Solution icon of openjdk
via JDK Bug System by Nelson Dcosta, 11 months ago
ReferenceError: "importClass" is not defined in <eval> at line number 1

Solution icon of openjdk
via JDK Bug System by Nelson Dcosta, 1 year ago
ReferenceError: "importClass" is not defined in <eval> at line number 1

Solution icon of stackoverflow
ReferenceError: "readFully" is not defined in <eval> at line number 1

Solution icon of stackoverflow
via Stack Overflow by Nigel
, 1 year ago
ReferenceError: "Output" is not defined in <eval> at line number 1

Stack trace

javax.script.ScriptException: ReferenceError: "HttpResponseStatus" is not defined in <eval> at line number 1
	at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:467)[nashorn.jar:?]
	at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:423)[nashorn.jar:?]
	at jdk.nashorn.api.scripting.NashornScriptEngine.access$300(NashornScriptEngine.java:73)[nashorn.jar:?]
	at jdk.nashorn.api.scripting.NashornScriptEngine$3.eval(NashornScriptEngine.java:511)[nashorn.jar:?]
	at javax.script.CompiledScript.eval(CompiledScript.java:92)[?:1.8.0_111]
	at net.lightbody.bmp.filters.JavascriptRequestResponseFilter.filterResponse(JavascriptRequestResponseFilter.java:86)[browsermob-dist-2.1.2.jar:?]
	at net.lightbody.bmp.filters.ResponseFilterAdapter.serverToProxyResponse(ResponseFilterAdapter.java:49)[browsermob-dist-2.1.2.jar:?]
	at net.lightbody.bmp.filters.BrowserMobHttpFilterChain.serverToProxyResponse(BrowserMobHttpFilterChain.java:123)[browsermob-dist-2.1.2.jar:?]
	at org.littleshoot.proxy.impl.ClientToProxyConnection.respond(ClientToProxyConnection.java:419)[browsermob-dist-2.1.2.jar:?]
	at org.littleshoot.proxy.impl.ProxyToServerConnection.respondWith(ProxyToServerConnection.java:536)[browsermob-dist-2.1.2.jar:?]
	at org.littleshoot.proxy.impl.ProxyToServerConnection.readHTTPInitial(ProxyToServerConnection.java:229)[browsermob-dist-2.1.2.jar:?]
	at org.littleshoot.proxy.impl.ProxyToServerConnection.readHTTPInitial(ProxyToServerConnection.java:75)[browsermob-dist-2.1.2.jar:?]
	at org.littleshoot.proxy.impl.ProxyConnection.readHTTP(ProxyConnection.java:135)[browsermob-dist-2.1.2.jar:?]
	at org.littleshoot.proxy.impl.ProxyConnection.read(ProxyConnection.java:120)[browsermob-dist-2.1.2.jar:?]
	at org.littleshoot.proxy.impl.ProxyToServerConnection.read(ProxyToServerConnection.java:218)[browsermob-dist-2.1.2.jar:?]
	at org.littleshoot.proxy.impl.ProxyConnection.channelRead0(ProxyConnection.java:587)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:350)[browsermob-dist-2.1.2.jar:?]
	at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:266)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:350)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)[browsermob-dist-2.1.2.jar:?]
	at org.littleshoot.proxy.impl.ProxyConnection$ResponseReadMonitor.channelRead(ProxyConnection.java:738)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:350)[browsermob-dist-2.1.2.jar:?]
	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:350)[browsermob-dist-2.1.2.jar:?]
	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:350)[browsermob-dist-2.1.2.jar:?]
	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)[browsermob-dist-2.1.2.jar:?]
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:350)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)[browsermob-dist-2.1.2.jar:?]
	at org.littleshoot.proxy.impl.ProxyConnection$BytesReadMonitor.channelRead(ProxyConnection.java:692)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:350)[browsermob-dist-2.1.2.jar:?]
	at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1066)[browsermob-dist-2.1.2.jar:?]
	at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:900)[browsermob-dist-2.1.2.jar:?]
	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:411)[browsermob-dist-2.1.2.jar:?]
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:350)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:123)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:571)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:512)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:426)[browsermob-dist-2.1.2.jar:?]
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:398)[browsermob-dist-2.1.2.jar:?]
	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:877)[browsermob-dist-2.1.2.jar:?]
	at java.lang.Thread.run(Thread.java:745)[?:1.8.0_111]
Caused by: jdk.nashorn.internal.runtime.ECMAException: ReferenceError: "HttpResponseStatus" is not defined
	at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:57)[nashorn.jar:?]
	at jdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:319)[nashorn.jar:?]
	at jdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:291)[nashorn.jar:?]
	at jdk.nashorn.internal.objects.Global.__noSuchProperty__(Global.java:1426)[nashorn.jar:?]

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Once, 8 months ago
Once, 3 months ago