GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Include the "noexec" message in the UnsatisfiedLinkError chain (#15415) · netty/netty@5015f7a

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • common/src/main/java/io/netty/util/internal
    • NativeLibraryLoader.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎common/src/main/java/io/netty/util/internal/NativeLibraryLoader.java‎

Copy file name to clipboardExpand all lines: common/src/main/java/io/netty/util/internal/NativeLibraryLoader.java
+9-5Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,14 @@ public static void load(String originalName, ClassLoader loader) {
224224
// Pass "io.netty.native.workdir" as an argument to allow shading tools to see
225225
// the string. Since this is printed out to users to tell them what to do next,
226226
// we want the value to be correct even when shading.
227-
logger.info("{} exists but cannot be executed even when execute permissions set; " +
228-
"check volume for \"noexec\" flag; use -D{}=[path] " +
229-
"to set native working directory separately.",
230-
tmpFile.getPath(), "io.netty.native.workdir");
227+
String message = String.format(
228+
"%s exists but cannot be executed even when execute permissions set; " +
229+
"check volume for \"noexec\" flag; use -D%s=[path] " +
230+
"to set native working directory separately.",
231+
tmpFile.getPath(), "io.netty.native.workdir");
232+
logger.info(message);
233+
suppressed.add(ThrowableUtil.unknownStackTrace(
234+
new UnsatisfiedLinkError(message), NativeLibraryLoader.class, "load"));
231235
}
232236
} catch (Throwable t) {
233237
suppressed.add(t);
@@ -410,7 +414,7 @@ private static void loadLibraryByHelper(final Class<?> helper, final String name
410414
@Override
411415
public Object run() {
412416
try {
413-
// Invoke the helper to load the native library, if succeed, then the native
417+
// Invoke the helper to load the native library, if it succeeds, then the native
414418
// library belong to the specified ClassLoader.
415419
Method method = helper.getMethod("loadLibrary", String.class, boolean.class);
416420
method.setAccessible(true);

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.