java.lang.ClassCastException: [I cannot be cast to java.lang.Iterable

GitHub | TheRealMarnes | 3 months ago
  1. 0

    GitHub comment 474#245100676

    GitHub | 3 months ago | TheRealMarnes
    java.lang.ClassCastException: [I cannot be cast to java.lang.Iterable
  2. 0

    examples/mllib/ranking_metrics_example.js throws exception

    GitHub | 8 months ago | billreed63
    java.lang.ClassCastException: [I cannot be cast to java.lang.Iterable
  3. 0

    EntityPlayerMP cannot be cast to java.lang.Iterable in GenericArguments.player

    GitHub | 9 months ago | viveleroi
    java.lang.ClassCastException: net.minecraft.entity.player.EntityPlayerMP cannot be cast to java.lang.Iterable
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    The following exception is thrown whenever AvailableSettings.HBM2DDL_AUTO property is set to "update" (or "validate") but not when left unset. {quote}Caused by: javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceException(EntityManagerFactoryBuilderImpl.java:874) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:802) at org.hibernate.jpa.HibernatePersistenceProvider.createContainerEntityManagerFactory(HibernatePersistenceProvider.java:152) at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:343) at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:318) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1633) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570) ... 41 more Caused by: java.lang.ClassCastException: java.util.Collections$EmptyIterator cannot be cast to java.lang.Iterable at org.hibernate.tool.schema.extract.internal.SequenceInformationExtractorNoOpImpl.extractMetadata(SequenceInformationExtractorNoOpImpl.java:45) at org.hibernate.tool.schema.extract.internal.legacy.DatabaseInformationImpl.initializeSequences(DatabaseInformationImpl.java:89) at org.hibernate.tool.schema.extract.internal.legacy.DatabaseInformationImpl.<init>(DatabaseInformationImpl.java:85) at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:136) at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:114) at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:461) at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:462) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:799) ... 46 more {quote}

    Hibernate JIRA | 2 years ago | Trong Dinh
    javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory
  6. 0

    When I create a query on document {{_id}} with {{$in}} operator and reuse that query to do another search i get {{ClassCastException}}. Query creation: {code:java} query.addCriteria(Criteria.where("_id").in(signedPetitionIds)); {code} Reusing query (as a filterQuery argument): {code:java} private Page<PetitionHeader> findPetitionHeaders(Pageable pageable, Query filterQuery, Sort sort) { long count = mongoOp.count(filterQuery, PetitionHeader.class); filterQuery.with(pageable); filterQuery.with(sort); List<PetitionHeader> headers = mongoOp.find(filterQuery, PetitionHeader.class); return new PageImpl<PetitionHeader>(headers, pageable, count); } {code} Stacktrace: {noformat} java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to java.lang.Iterable at org.springframework.data.mongodb.core.convert.QueryMapper.getMappedValue(QueryMapper.java:159) ~[spring-data-mongodb-1.2.1.RELEASE.jar:na] at org.springframework.data.mongodb.core.convert.QueryMapper.getMappedObject(QueryMapper.java:90) ~[spring-data-mongodb-1.2.1.RELEASE.jar:na] at org.springframework.data.mongodb.core.convert.QueryMapper.getMappedKeyword(QueryMapper.java:112) ~[spring-data-mongodb-1.2.1.RELEASE.jar:na] at org.springframework.data.mongodb.core.convert.QueryMapper.getMappedObject(QueryMapper.java:79) ~[spring-data-mongodb-1.2.1.RELEASE.jar:na] at org.springframework.data.mongodb.core.MongoTemplate.doFind(MongoTemplate.java:1337) ~[spring-data-mongodb-1.2.1.RELEASE.jar:na] at org.springframework.data.mongodb.core.MongoTemplate.doFind(MongoTemplate.java:1323) ~[spring-data-mongodb-1.2.1.RELEASE.jar:na] at org.springframework.data.mongodb.core.MongoTemplate.find(MongoTemplate.java:495) ~[spring-data-mongodb-1.2.1.RELEASE.jar:na] at org.springframework.data.mongodb.core.MongoTemplate.find(MongoTemplate.java:486) ~[spring-data-mongodb-1.2.1.RELEASE.jar:na] {noformat} Object returned by {{valueDbo.get(inKey)}} (in line 159) is of type {{Object[]}}.

    Spring JIRA | 4 years ago | PaweĊ‚ Mendelski
    java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to java.lang.Iterable

    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.ClassCastException

      [I cannot be cast to java.lang.Iterable

      at org.skife.jdbi.v2.unstable.BindIn$BindingFactory$1.bind()
    2. jDBI
      BindIn$BindingFactory$1.bind
      1. org.skife.jdbi.v2.unstable.BindIn$BindingFactory$1.bind(BindIn.java:98)
      1 frame