Giter Club home page Giter Club logo

Comments (6)

PH0lder avatar PH0lder commented on July 29, 2024 1

Attempting the hello world example from Jtwig.org on Java 10 yields:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.parboiled.transform.AsmUtils (file:/C:/Users/foo/.m2/repository/org/parboiled/parboiled-java/1.1.7/parboiled-java-1.1.7.jar) to method java.lang.ClassLoader.findLoadedClass(java.lang.String)
WARNING: Please consider reporting this to the maintainers of org.parboiled.transform.AsmUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Hello World

In poking around a bit, it seems the code has a copy of a fairly common approach for finding if a class is already loaded (that used to work pre Java 9) that no longer works since Jigsaw was added in Java 9. My Googling didn't find an obvious suggested approach for doing this now, and since I don't know the code or why it works this way, I have nothing new to offer :-(

from parboiled.

sleroy avatar sleroy commented on July 29, 2024 1

from parboiled.

sirthias avatar sirthias commented on July 29, 2024 1

Just released parboiled 1.4.0 which includes a fix to this.

from parboiled.

eabase avatar eabase commented on July 29, 2024

Hi,
I'm getting this very error when trying to use textricator.
Here's a -verbose log:

# java -verbose -cp "./lib/*" io.mfj.textricator.cli.TextricatorCli form --config=xx.yml --pages=1 --output-format=csv xx.pdf
...
[1.209s][info][class,load] java.lang.ClassFormatError source: jrt:/java.base
[1.210s][info][class,load] java.lang.reflect.AccessibleObject$$Lambda$52/0x0000000800b9b0e8 source: java.lang.reflect.AccessibleObject
[1.210s][info][class,load] jdk.internal.module.IllegalAccessLogger$$Lambda$53/0x0000000800b9b308 source: jdk.internal.module.IllegalAccessLogger
[1.211s][info][class,load] jdk.internal.module.IllegalAccessLogger$$Lambda$54/0x0000000800b9b528 source: jdk.internal.module.IllegalAccessLogger
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.parboiled.transform.AsmUtils (file:/F:/xxx/pdf_scrape/lib/parboiled-java-1.3.1.jar) to method java.lang.ClassLoader.findLoadedClass(java.lang.String)
WARNING: Please consider reporting this to the maintainers of org.parboiled.transform.AsmUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[1.212s][info][class,load] org.objectweb.asm.tree.ClassNode source: file:/F:/xxx/pdf_scrape/lib/asm-tree-7.1.jar
...

with java version:

# java.exe --version
java 15.0.1 2020-10-20
Java(TM) SE Runtime Environment (build 15.0.1+9-18)
Java HotSpot(TM) 64-Bit Server VM (build 15.0.1+9-18, mixed mode, sharing)

from parboiled.

eabase avatar eabase commented on July 29, 2024

@sleroy
You mentioned you like to continue using this in issue #147. Maybe you could have a look at the issue here above? It's a complete show stopper for that other very cool project I mentioned above, but unfortunately also seem to have been abandoned...

from parboiled.

eabase avatar eabase commented on July 29, 2024

Possibly related to #103

from parboiled.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.