question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Run netty4.1.58 test case error

See original GitHub issue

Expected behavior

Actual behavior

Run netty4.1.58 test case error

Steps to reproduce

@Test
public void test02(){
        PooledByteBufAllocator allocator = newAllocator(true);
        ByteBuf byteBuf = allocator.ioBuffer(128);
        System.out.println(byteBuf);
    }

run test02 case,report the following error

Unrecognized option: --illegal-access=deny
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Minimal yet complete reproducer code (or URL to code)

Netty version

4.1.58.final

JVM version (e.g. java -version)

1.8

OS version (e.g. uname -a)

macos

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
Phuketycommented, Dec 7, 2021

Commenting it out should not be necessary. Sounds like a Java 9 (or greater) profile is somehow enabled. Could be Maven is running with a mix of Java versions, e.g. java command invoking one version and JAVA_HOME pointing to another version. Or something else is wrong with the environment. So that’s what people need to investigate if they run into this issue.

it’s ok when i uncheck the java11 profile. image

Thank you. I solved it

1reaction
newstarjonescommented, Jul 21, 2021

Commenting it out should not be necessary. Sounds like a Java 9 (or greater) profile is somehow enabled. Could be Maven is running with a mix of Java versions, e.g. java command invoking one version and JAVA_HOME pointing to another version. Or something else is wrong with the environment. So that’s what people need to investigate if they run into this issue.

it’s ok when i uncheck the java11 profile. image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error Compiling Netty latest (Master) version - Unit test error
Can you try to run the compile a few times and let us know if the problem persist ? Also it would be...
Read more >
How to get response error from run Test case step?
Solved: In readyAPI, we have a step called 'Run TestCase" under add step. If I use that to call another testcase, is there...
Read more >
Test execution states - IBM
You can customize the execution states that are shown in test case ... A test produces the Error result when there is a...
Read more >
Java Unit Testing with JUnit and TestNG
To run the test case, right-click on the file ⇒ Run as ⇒ JUnit Test. The test result is shown in the JUnit...
Read more >
mysql-test-run.pl — Run MySQL Test Suite
When running a test case with –extern option, if test database doesn't exist on an already running server, then the test case will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found