java.lang.ClassNotFoundException: antlr.TokenStream

jetbrains.com | 9 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0

    JPA console Unable to build Hibernate SessionFactory – JetBrains Support

    jetbrains.com | 9 months ago
    java.lang.ClassNotFoundException: antlr.TokenStream
  2. 0

    Cannot run JPA 2 JPQL queries in JPA or Hibernate console

    YouTrack | 4 years ago
    java.lang.ClassNotFoundException: antlr.TokenStream
  3. 0
    samebug tip
    A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.
  6. 0
    samebug tip
    Check if you didn't forget to instantiate your topic in the kafka broker.

  1. Alebey 2 times, last 5 days ago
  2. Unknown User 1 times, last 6 days ago
  3. ivanszkypeter 4 times, last 7 days ago
  4. andyglick 2 times, last 1 week ago
  5. stigkj 4 times, last 2 weeks ago
83 more registered users
12 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    antlr.TokenStream

    at java.net.URLClassLoader.findClass()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    2. java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    3. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    4 frames
  3. Hibernate
    OneToManyPersister.<init>
    1. org.hibernate.sql.Template.translateOrderBy(Template.java:729)
    2. org.hibernate.persister.collection.AbstractCollectionPersister.<init>(AbstractCollectionPersister.java:578)
    3. org.hibernate.persister.collection.OneToManyPersister.<init>(OneToManyPersister.java:89)
    3 frames
  4. Java RT
    Constructor.newInstance
    1. sun.reflect.GeneratedConstructorAccessor35.newInstance(Unknown Source)
    2. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    3. java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    3 frames
  5. Hibernate
    Configuration.buildSessionFactory
    1. org.hibernate.persister.internal.PersisterFactoryImpl.create(PersisterFactoryImpl.java:231)
    2. org.hibernate.persister.internal.PersisterFactoryImpl.createCollectionPersister(PersisterFactoryImpl.java:201)
    3. org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:430)
    4. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1859)
    4 frames
  6. org.hibernate.jpa
    EntityManagerFactoryBuilderImpl$4.perform
    1. org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:857)
    2. org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:850)
    2 frames
  7. org.hibernate.boot
    ClassLoaderServiceImpl.withTccl
    1. org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.withTccl(ClassLoaderServiceImpl.java:425)
    1 frame
  8. org.hibernate.jpa
    HibernatePersistenceProvider.createEntityManagerFactory
    1. org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:849)
    2. org.hibernate.jpa.HibernatePersistenceProvider.createEntityManagerFactory(HibernatePersistenceProvider.java:75)
    2 frames
  9. Hibernate EJB
    HibernatePersistence.createEntityManagerFactory
    1. org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:54)
    1 frame
  10. JavaEE 7
    Persistence.createEntityManagerFactory
    1. javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:55)
    2. javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:39)
    2 frames
  11. com.intellij.jpa
    JpaFacadeImpl.createEntityManagerFactory
    1. com.intellij.jpa.remote.impl.JpaFacadeImpl.createEntityManagerFactory(JpaFacadeImpl.java:16)
    1 frame
  12. Java RT
    Thread.run
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    5. sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:324)
    6. sun.rmi.transport.Transport$1.run(Transport.java:200)
    7. sun.rmi.transport.Transport$1.run(Transport.java:197)
    8. java.security.AccessController.doPrivileged(Native Method)
    9. sun.rmi.transport.Transport.serviceCall(Transport.java:196)
    10. sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
    11. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
    12. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683)
    13. java.security.AccessController.doPrivileged(Native Method)
    14. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
    15. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    16. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    17. java.lang.Thread.run(Thread.java:745)
    17 frames