Skip to content

Serving express.js sample is broken #1558

@sgammon

Description

@sgammon

Expected Behavior

elide serve ./tools/scripts/express.js should give you an express server

Actual Behaviour

Instead, it crashes

Stacktrace

╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ NullPointerException: Stack trace is imprecise, the top frames are missing and/or have wrong line numbers. To  ...         ║
╟────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╢
║ Stacktrace:                                                                                                                ║
║                                                                                                                            ║
║ NullPointerException: Stack trace is imprecise, the top frames are missing and/or have wrong line numbers. To  ...         ║
║     at org.graalvm.truffle/com.oracle.truffle.polyglot.PolyglotContextImpl.getCurrentThreadInfo(PolyglotContextIm ...      ║
║     at org.graalvm.truffle/com.oracle.truffle.polyglot.PolyglotContextImpl.enterThreadChanged(PolyglotContextImpl ...      ║
║     at org.graalvm.truffle/com.oracle.truffle.polyglot.PolyglotContextImpl.finishClose(PolyglotContextImpl.java:2937)      ║
║     at org.graalvm.truffle/com.oracle.truffle.polyglot.PolyglotContextImpl.closeImpl(PolyglotContextImpl.java:2883)        ║
║     at org.graalvm.truffle/com.oracle.truffle.polyglot.PolyglotEngineImpl.loadPreinitializedContext(PolyglotEngin ...      ║
║     at org.graalvm.truffle/com.oracle.truffle.polyglot.PolyglotEngineImpl.createContext(PolyglotEngineImpl.java:1850)      ║
║     at org.graalvm.truffle/com.oracle.truffle.polyglot.PolyglotEngineDispatch.createContext(PolyglotEngineDispatc ...      ║
║     at elide.runtime.core.internals.graalvm.GraalVMEngine.createContext$lambda$0(GraalVMEngine.kt:79)                      ║
║     at e.r.c.i.g.GraalVMEngine.createContext(GraalVMEngine.kt:107)                                                         ║
║     at elide.runtime.core.internals.graalvm.GraalVMEngine.createContext$default(GraalVMEngine.kt:76)                       ║
║     at e.r.c.i.g.GraalVMEngine.acquire(GraalVMEngine.kt:153)                                                               ║
║     at e.r.i.s.h.HttpServerAgent.run(HttpServerAgent.kt:131)                                                               ║
║     at java.base/invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)                                          ║
║                                                                                                                            ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝

Steps To Reproduce

elide run ./tools/scripts/express.js

Environment Information

  • Operating System: Linux
  • Architecture: x86-64

Runtime

Native

Language

JavaScript

Example Application

No response

Version

1.0.0-beta8-rc3

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinglang:javascriptIssues relating to JavaScript

Type

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions