Java.lang.NoSuchFieldError: NONE

1 resposta
I

Olá amigos, sou novo no forum e tenho uma dúvida:

alguem já recebeu esse erro com o createQuery ao tentar retornar oq foi persistido no banco?

“java.lang.NoSuchFieldError: NONE” procurei no google, nos forums e sabe-se la mais onde e não consegui encontrar a solução
\ =

detalhe que o “.persist” funciona direitinho na aplicação.

Alguma ideia?

Estou usando o Hibernate como provider, tenho uma entidade “Pessoa” e a Query que tento é “SELECT p FROM Pessoa p WHERE p.fim = ‘Joao’” mas tambem ja tentei
coisas como:

List<Pessoa> list = manager.createQuery("FROM Pessoa p").getResultList(); e nada
\ =

De cara… valeu a força ae.

Abs.

1 Resposta

I

Ah sim! o Log do processo em modo debug (pra se alguem tiver paciencia) eu juro que não faço ideia do que esta havendo.

15:39:10,110  INFO Version:43 - Hibernate Annotations 3.5.1-Final

15:39:10,126  INFO Environment:564 - Hibernate 3.5.1-Final

15:39:10,141  INFO Environment:597 - hibernate.properties not found

15:39:10,141  INFO Environment:775 - Bytecode provider name : javassist

15:39:10,141  INFO Environment:656 - using JDK 1.4 java.sql.Timestamp handling

15:39:10,298 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [uuid] -> [class org.hibernate.id.UUIDHexGenerator]

15:39:10,298 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [hilo] -> [class org.hibernate.id.TableHiLoGenerator]

15:39:10,298 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [assigned] -> [class org.hibernate.id.Assigned]

15:39:10,313 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [identity] -> [class org.hibernate.id.IdentityGenerator]

15:39:10,313 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [select] -> [class org.hibernate.id.SelectGenerator]

15:39:10,313 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [sequence] -> [class org.hibernate.id.SequenceGenerator]

15:39:10,313 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [seqhilo] -> [class org.hibernate.id.SequenceHiLoGenerator]

15:39:10,313 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [increment] -> [class org.hibernate.id.IncrementGenerator]

15:39:10,313 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [foreign] -> [class org.hibernate.id.ForeignGenerator]

15:39:10,313 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [guid] -> [class org.hibernate.id.GUIDGenerator]

15:39:10,313 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [uuid.hex] -> [class org.hibernate.id.UUIDHexGenerator]

15:39:10,329 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [sequence-identity] -> [class org.hibernate.id.SequenceIdentityGenerator]

15:39:10,329 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [enhanced-sequence] -> [class org.hibernate.id.enhanced.SequenceStyleGenerator]

15:39:10,329 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [enhanced-table] -> [class org.hibernate.id.enhanced.TableGenerator]

15:39:10,329  INFO Version:37 - Hibernate Commons Annotations 3.2.0.Final

15:39:10,344  INFO Version:42 - Hibernate EntityManager 3.5.1-Final

15:39:10,344 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [uuid] -> [class org.hibernate.id.UUIDHexGenerator]

15:39:10,344 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [hilo] -> [class org.hibernate.id.TableHiLoGenerator]

15:39:10,344 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [assigned] -> [class org.hibernate.id.Assigned]

15:39:10,344 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [identity] -> [class org.hibernate.id.IdentityGenerator]

15:39:10,344 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [select] -> [class org.hibernate.id.SelectGenerator]

15:39:10,344 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [sequence] -> [class org.hibernate.id.SequenceGenerator]

15:39:10,344 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [seqhilo] -> [class org.hibernate.id.SequenceHiLoGenerator]

15:39:10,344 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [increment] -> [class org.hibernate.id.IncrementGenerator]

15:39:10,344 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [foreign] -> [class org.hibernate.id.ForeignGenerator]

15:39:10,344 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [guid] -> [class org.hibernate.id.GUIDGenerator]

15:39:10,344 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [uuid.hex] -> [class org.hibernate.id.UUIDHexGenerator]

15:39:10,344 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [sequence-identity] -> [class org.hibernate.id.SequenceIdentityGenerator]

15:39:10,344 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [enhanced-sequence] -> [class org.hibernate.id.enhanced.SequenceStyleGenerator]

15:39:10,344 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [enhanced-table] -> [class org.hibernate.id.enhanced.TableGenerator]

15:39:10,376 DEBUG Ejb3Configuration:297 - Look up for persistence unit: testepersistencia

15:39:10,501 DEBUG Ejb3Configuration:818 - Detect class: true; detect hbm: true

15:39:10,516 DEBUG AbstractJarVisitor:123 - Searching mapped entities in jar/par: file:/K:/workspaces/ExemploJPA/bin/

15:39:10,516 DEBUG AbstractJarVisitor:169 - Filtering: com.teste.Main

15:39:10,548 DEBUG AbstractJarVisitor:169 - Filtering: com.teste.Pessoa

15:39:10,563 DEBUG AbstractJarVisitor:220 - Java element filter matched for com.teste.Pessoa

15:39:10,563 DEBUG Ejb3Configuration:818 - Detect class: true; detect hbm: true

15:39:10,563 DEBUG Ejb3Configuration:187 - Creating Factory: testepersistencia

15:39:10,579 DEBUG AnnotationConfiguration:318 - Execute first pass mapping processing

15:39:10,626 DEBUG AnnotationConfiguration:617 - Process hbm files

15:39:10,626 DEBUG AnnotationConfiguration:625 - Process annotated classes

15:39:10,626  INFO AnnotationBinder:522 - Binding entity from annotated class: com.teste.Pessoa

15:39:10,657 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnNameDTYPE, discriminatorTypeName=string}

15:39:10,657 DEBUG AnnotationBinder:977 - no value specified for javax.persistence.sharedCache.mode; using UNSPECIFIED

15:39:10,673 DEBUG EntityBinder:338 - Import with entity name Pessoa

15:39:10,673  INFO EntityBinder:501 - Bind entity com.teste.Pessoa on table Pessoa

15:39:10,704 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Pessoa), mappingColumn=id, insertable=true, updatable=true, unique=false}

15:39:10,704 DEBUG PropertyBinder:175 - binding property id with lazy=false

15:39:10,719 DEBUG SimpleValueBinder:294 - building SimpleValue for id

15:39:10,719 DEBUG PropertyBinder:254 - Building property id

15:39:10,719 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id

15:39:10,719 DEBUG AnnotationConfiguration:486 - processing fk mappings (*ToOne and JoinedSubclass)

15:39:10,719 DEBUG Configuration:1211 - processing extends queue

15:39:10,719 DEBUG Configuration:1215 - processing collection mappings

15:39:10,719 DEBUG Configuration:1226 - processing native query and ResultSetMapping mappings

15:39:10,719 DEBUG Configuration:1234 - processing association property references

15:39:10,719 DEBUG Configuration:1256 - processing foreign key constraints

15:39:10,719  INFO AnnotationConfiguration:450 - Hibernate Validator not found: ignoring

15:39:10,735 DEBUG NamingHelper:53 - No JNDI name configured for binding Ejb3Configuration

15:39:10,735 DEBUG AnnotationConfiguration:973 - Legacy Validator not present in classpath, ignoring event listener registration

15:39:10,751 DEBUG HibernateSearchEventListenerRegister:231 - Search not present in classpath, ignoring event listener registration.

15:39:10,751  INFO HibernateSearchEventListenerRegister:75 - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.

15:39:10,751 DEBUG Configuration:1376 - Preparing to build session factory with filters : {}

15:39:10,751 DEBUG AnnotationConfiguration:318 - Execute first pass mapping processing

15:39:10,751 DEBUG AnnotationConfiguration:617 - Process hbm files

15:39:10,751 DEBUG AnnotationConfiguration:625 - Process annotated classes

15:39:10,751 DEBUG AnnotationConfiguration:486 - processing fk mappings (*ToOne and JoinedSubclass)

15:39:10,751 DEBUG Configuration:1211 - processing extends queue

15:39:10,751 DEBUG Configuration:1215 - processing collection mappings

15:39:10,751 DEBUG Configuration:1226 - processing native query and ResultSetMapping mappings

15:39:10,751 DEBUG Configuration:1234 - processing association property references

15:39:10,751 DEBUG Configuration:1256 - processing foreign key constraints

15:39:10,813  INFO DriverManagerConnectionProvider:64 - Using Hibernate built-in connection pool (not for production use!)

15:39:10,813  INFO DriverManagerConnectionProvider:65 - Hibernate connection pool size: 20

15:39:10,813  INFO DriverManagerConnectionProvider:68 - autocommit mode: true

15:39:10,813  INFO DriverManagerConnectionProvider:103 - using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost:3306/agenda

15:39:10,813  INFO DriverManagerConnectionProvider:106 - connection properties: {user=root, password=, autocommit=true, release_mode=auto}

15:39:10,813 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection

15:39:11,110 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:mysql://localhost:3306/agenda, Isolation Level: 4

15:39:11,110  INFO SettingsFactory:117 - RDBMS: MySQL, version: 5.1.41

15:39:11,110  INFO SettingsFactory:118 - JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.12 ( Revision: ${bzr.revision-id} )

15:39:11,126  INFO Dialect:222 - Using dialect: org.hibernate.dialect.MySQLDialect

15:39:11,141  INFO JdbcSupportLoader:79 - Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4

15:39:11,141  INFO TransactionFactoryFactory:62 - Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory

15:39:11,141  INFO TransactionManagerLookupFactory:80 - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)

15:39:11,141  INFO SettingsFactory:169 - Automatic flush during beforeCompletion(): disabled

15:39:11,141  INFO SettingsFactory:173 - Automatic session close at end of transaction: disabled

15:39:11,141  INFO SettingsFactory:180 - JDBC batch size: 15

15:39:11,141  INFO SettingsFactory:183 - JDBC batch updates for versioned data: disabled

15:39:11,141  INFO SettingsFactory:188 - Scrollable result sets: enabled

15:39:11,141 DEBUG SettingsFactory:192 - Wrap result sets: disabled

15:39:11,141  INFO SettingsFactory:196 - JDBC3 getGeneratedKeys(): enabled

15:39:11,141  INFO SettingsFactory:204 - Connection release mode: auto

15:39:11,141  INFO SettingsFactory:228 - Maximum outer join fetch depth: 2

15:39:11,141  INFO SettingsFactory:231 - Default batch fetch size: 1

15:39:11,141  INFO SettingsFactory:235 - Generate SQL with comments: disabled

15:39:11,141  INFO SettingsFactory:239 - Order SQL updates by primary key: disabled

15:39:11,141  INFO SettingsFactory:243 - Order SQL inserts for batching: disabled

15:39:11,141  INFO SettingsFactory:410 - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory

15:39:11,141  INFO ASTQueryTranslatorFactory:47 - Using ASTQueryTranslatorFactory

15:39:11,141  INFO SettingsFactory:251 - Query language substitutions: {}

15:39:11,141  INFO SettingsFactory:256 - JPA-QL strict compliance: enabled

15:39:11,141  INFO SettingsFactory:261 - Second-level cache: enabled

15:39:11,141  INFO SettingsFactory:265 - Query cache: disabled

15:39:11,141  INFO SettingsFactory:395 - Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory

15:39:11,141  INFO SettingsFactory:275 - Optimize cache for minimal puts: disabled

15:39:11,141  INFO SettingsFactory:284 - Structured second-level cache entries: disabled

15:39:11,157  INFO SettingsFactory:313 - Statistics: disabled

15:39:11,157  INFO SettingsFactory:317 - Deleted entity synthetic identifier rollback: disabled

15:39:11,157  INFO SettingsFactory:332 - Default entity-mode: pojo

15:39:11,157  INFO SettingsFactory:336 - Named query checking : enabled

15:39:11,157  INFO SettingsFactory:340 - Check Nullability in Core (should be disabled when Bean Validation is on): enabled

15:39:11,173  INFO SessionFactoryImpl:199 - building session factory

15:39:11,188 DEBUG SessionFactoryImpl:238 - Session factory constructed with filter configurations : {}

15:39:11,188 DEBUG SessionFactoryImpl:242 - instantiating session factory with properties: {java.runtime.name=Java SE Runtime Environment, hibernate.connection.password=, sun.boot.library.path=K:\bea103\jdk160_05\jre\bin, java.vm.version=10.0-b19, hibernate.connection.username=root, java.vm.vendor=Sun Microsystems Inc., java.vendor.url=http://java.sun.com/, path.separator=;, java.vm.name=Java HotSpot™ Client VM, <a href="http://file.encoding.pkg=sun.io">file.encoding.pkg=sun.io</a>, user.country=BR, sun.java.launcher=SUN_STANDARD, sun.os.patch.level=Service Pack 3, java.vm.specification.name=Java Virtual Machine Specification, user.dir=K:\workspaces\ExemploJPA, java.runtime.version=1.6.0_05-b13, hibernate.ejb.discard_pc_on_close=false, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=K:\bea103\jdk160_05\jre\lib\endorsed, os.arch=x86, hibernate.connection.autocommit=true, java.io.tmpdir=D:\DOCUME~1\A7J1\CONFIG~1\Temp, line.separator=

, java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, os.name=Windows XP, sun.jnu.encoding=Cp1252, java.library.path=K:\bea103\jdk160_05\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Arquivos de programas\Java\jdk1.5.0_08\bin;D:\oracle\ora92\bin;C:\Arquivos de programas\Oracle\jre\1.3.1\bin;C:\Arquivos de programas\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Arquivos de programas\Arquivos comuns\Autodesk Shared;C:\Arquivos de programas\Autodesk\DWG TrueView;C:\Program Files\Rational\common;C:\Arquivos de programas\Java\jdk1.5.0_08\bin;C:\Program Files\Rational\ClearCase\bin;C:\Arquivos de programas\GnuWin32\bin;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Arquivos de programas\Java\jdk1.5.0_08\bin;D:\oracle\ora92\bin;C:\Arquivos de programas\Oracle\jre\1.3.1\bin;C:\Arquivos de programas\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Arquivos de programas\Arquivos comuns\Autodesk Shared;C:\Arquivos de programas\Autodesk\DWG TrueView;C:\Program Files\Rational\common;C:\Arquivos de programas\Java\jdk1.5.0_08\bin;C:\Program Files\Rational\ClearCase\bin;C:\Arquivos de programas\GnuWin32\bin;C:\WINDOWS\system32\WindowsPowerShell\v1.0;K:\apache-ant-1.8.0\bin , java.specification.name=Java Platform API Specification, java.class.version=50.0, sun.management.compiler=HotSpot Client Compiler, hibernate.transaction.factory_class=org.hibernate.transaction.JDBCTransactionFactory, os.version=5.1, user.home=D:\Documents and Settings\A7J1, user.timezone=America/Rio_Branco, java.awt.printerjob=sun.awt.windows.WPrinterJob, hibernate.connection.release_mode=auto, java.specification.version=1.6, file.encoding=Cp1252, hibernate.connection.driver_class=com.mysql.jdbc.Driver, java.class.path=K:\workspaces\ExemploJPA\bin;K:\workspaces\ExemploJPA\lib\ejb3-persistence.jar;K:\workspaces\ExemploJPA\lib\hibernate3.jar;K:\workspaces\ExemploJPA\lib\hibernate-jpa-2.0-api-1.0.0.Final.jar;K:\workspaces\ExemploJPA\lib\antlr-2.7.6.jar;K:\workspaces\ExemploJPA\lib\commons-collections-3.1.jar;K:\workspaces\ExemploJPA\lib\dom4j-1.6.1.jar;K:\workspaces\ExemploJPA\lib\javassist-3.9.0.GA.jar;K:\workspaces\ExemploJPA\lib\jta-1.1.jar;K:\workspaces\ExemploJPA\lib\mysql-connector-java-5.1.12-bin.jar;K:\workspaces\ExemploJPA\lib\slf4j-api-1.5.8.jar;K:\workspaces\ExemploJPA\lib\slf4j-log4j12-1.5.8-sources.jar;K:\workspaces\ExemploJPA\lib\log4j-1.2.16.jar;K:\workspaces\ExemploJPA\lib\log4j-over-slf4j-1.5.11-sources.jar;K:\workspaces\ExemploJPA\lib\log4j-over-slf4j-1.5.8.jar;K:\workspaces\ExemploJPA\lib\slf4j-log4j12-1.5.8.jar;K:\workspaces\ExemploJPA\lib\slf4j-log4j12-1.5.11-sources.jar, user.name=A7J1, hibernate.bytecode.use_reflection_optimizer=false, hibernate.use_identifier_rollback=false, java.vm.specification.version=1.0, sun.arch.data.model=32, java.home=K:\bea103\jdk160_05\jre, hibernate.connection.url=jdbc:mysql://localhost:3306/agenda, hibernate.dialect=org.hibernate.dialect.MySQLDialect, java.specification.vendor=Sun Microsystems Inc., user.language=pt, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, java.version=1.6.0_05, hibernate.transaction.flush_before_completion=false, java.ext.dirs=K:\bea103\jdk160_05\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext, sun.boot.class.path=K:\bea103\jdk160_05\jre\lib\resources.jar;K:\bea103\jdk160_05\jre\lib\rt.jar;K:\bea103\jdk160_05\jre\lib\sunrsasign.jar;K:\bea103\jdk160_05\jre\lib\jsse.jar;K:\bea103\jdk160_05\jre\lib\jce.jar;K:\bea103\jdk160_05\jre\lib\charsets.jar;K:\bea103\jdk160_05\jre\classes, java.vendor=Sun Microsystems Inc., file.separator=, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, sun.cpu.endian=little, sun.io.unicode.encoding=UnicodeLittle, hibernate.query.jpaql_strict_compliance=true, sun.desktop=windows, sun.cpu.isalist=}

15:39:11,188 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.MySQLDialect]

15:39:11,329 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: com.teste.Pessoa

15:39:11,329 DEBUG AbstractEntityPersister:2941 -  Version select: select id from Pessoa where id =?

15:39:11,329 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select pessoa_.id from Pessoa pessoa_ where pessoa_.id=?

15:39:11,329 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into Pessoa (id) values (?)

15:39:11,329 DEBUG AbstractEntityPersister:2948 -  Update 0: null

15:39:11,329 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from Pessoa where id=?

15:39:11,329 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into Pessoa values ( )

15:39:11,345 DEBUG EntityLoader:124 - Static select for entity com.teste.Pessoa [NONE]: select pessoa0_.id as id0_0_ from Pessoa pessoa0_ where pessoa0_.id=?

15:39:11,360 DEBUG EntityLoader:124 - Static select for entity com.teste.Pessoa [READ]: select pessoa0_.id as id0_0_ from Pessoa pessoa0_ where pessoa0_.id=?

15:39:11,360 DEBUG EntityLoader:124 - Static select for entity com.teste.Pessoa [UPGRADE]: select pessoa0_.id as id0_0_ from Pessoa pessoa0_ where pessoa0_.id=? for update

15:39:11,360 DEBUG EntityLoader:124 - Static select for entity com.teste.Pessoa [UPGRADE_NOWAIT]: select pessoa0_.id as id0_0_ from Pessoa pessoa0_ where pessoa0_.id=? for update

15:39:11,360 DEBUG EntityLoader:124 - Static select for entity com.teste.Pessoa [FORCE]: select pessoa0_.id as id0_0_ from Pessoa pessoa0_ where pessoa0_.id=? for update

15:39:11,360 DEBUG EntityLoader:124 - Static select for entity com.teste.Pessoa [PESSIMISTIC_READ]: select pessoa0_.id as id0_0_ from Pessoa pessoa0_ where pessoa0_.id=? lock in share mode

15:39:11,360 DEBUG EntityLoader:124 - Static select for entity com.teste.Pessoa [PESSIMISTIC_WRITE]: select pessoa0_.id as id0_0_ from Pessoa pessoa0_ where pessoa0_.id=? for update

15:39:11,360 DEBUG EntityLoader:124 - Static select for entity com.teste.Pessoa [PESSIMISTIC_FORCE_INCREMENT]: select pessoa0_.id as id0_0_ from Pessoa pessoa0_ where pessoa0_.id=? for update

15:39:11,360 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity com.teste.Pessoa: select pessoa0_.id as id0_0_ from Pessoa pessoa0_ where pessoa0_.id=?

15:39:11,360 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity com.teste.Pessoa: select pessoa0_.id as id0_0_ from Pessoa pessoa0_ where pessoa0_.id=?

15:39:11,360 DEBUG SessionFactoryObjectFactory:62 - initializing class SessionFactoryObjectFactory

15:39:11,360 DEBUG SessionFactoryObjectFactory:99 - registered: 8a0ee88b288e3e0a01288e3e0f000000 (unnamed)

15:39:11,360  INFO SessionFactoryObjectFactory:105 - Not binding factory to JNDI, no JNDI name configured

15:39:11,360 DEBUG SessionFactoryImpl:378 - instantiated session factory

15:39:11,360 DEBUG SessionFactoryImpl:547 - Checking 0 named HQL queries

15:39:11,360 DEBUG SessionFactoryImpl:567 - Checking 0 named SQL queries

15:39:11,454 DEBUG SessionImpl:257 - opened session at timestamp: [telefone removido]

15:39:11,470 DEBUG JDBCTransaction:82 - begin

15:39:11,470 DEBUG ConnectionManager:444 - opening JDBC connection

15:39:11,470 DEBUG JDBCTransaction:87 - current autocommit status: true

15:39:11,470 DEBUG JDBCTransaction:90 - disabling autocommit

15:39:11,470 DEBUG JDBCTransaction:134 - commit

15:39:11,470 DEBUG JDBCTransaction:227 - re-enabling autocommit

15:39:11,470 DEBUG JDBCTransaction:147 - committed JDBC Connection

15:39:11,470 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection

15:39:11,470 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]

15:39:11,548 DEBUG QueryTranslatorImpl:272 - parse() - HQL: FROM com.teste.Pessoa p

15:39:11,548 DEBUG AST:291 -  HQL AST 

-[QUERY] Node: query

-[SELECT_FROM] Node: SELECT_FROM

-[FROM] Node: FROM

-[RANGE] Node: 'RANGE

±[DOT] Node: .

|  ±[DOT] Node: .

|  |  ±[IDENT] Node: com

|  |  -[IDENT] Node: teste

|  -[IDENT] Node: Pessoa

-[ALIAS] Node: p
15:39:11,548 DEBUG ErrorCounter:91 - throwQueryException() : no errors

15:39:11,595 DEBUG HqlSqlBaseWalker:111 - select << begin [level=1, statement=select]

[color=red]Exception in thread main java.lang.NoSuchFieldError: NONE

[color=red]at org.hibernate.ejb.QueryImpl.<a>/color</a>

[color=red]at org.hibernate.ejb.QueryImpl.<a>/color</a>

[color=red]at org.hibernate.ejb.AbstractEntityManagerImpl.createQuery<a>/color</a>

[color=red]at com.teste.Main.search<a>/color</a>

[color=red]at com.teste.Main.main<a>/color</a>

15:39:11,610 DEBUG FromElement:157 - FromClause{level=1} :  com.teste.Pessoa § -> pessoa0_

15:39:11,626 DEBUG HqlSqlBaseWalker:117 - select : finishing up [level=1, statement=select]

15:39:11,626 DEBUG HqlSqlWalker:611 - processQuery() :  ( SELECT ( FromClause{level=1} Pessoa pessoa0_ ) )

15:39:11,626 DEBUG HqlSqlWalker:854 - Derived SELECT clause created.

15:39:11,626 DEBUG JoinProcessor:179 - Using FROM fragment [Pessoa pessoa0_]

15:39:11,626 DEBUG HqlSqlBaseWalker:123 - select >> end [level=1, statement=select]

15:39:11,626 DEBUG AST:258 -  SQL AST 

-[SELECT] QueryNode: SELECT  querySpaces (Pessoa)

±[SELECT_CLAUSE] SelectClause: {derived select clause}

|  -[SELECT_EXPR] SelectExpressionImpl: pessoa0_.id as id0_ {FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=p,role=null,tableName=Pessoa,tableAlias=pessoa0_,origin=null,columns={,className=com.teste.Pessoa}}}

-[FROM] FromClause: FROM FromClause{level=1, fromElementCounter=1, fromElements=1, fromElementByClassAlias=[p], fromElementByTableAlias=[pessoa0_], fromElementsByPath=[], collectionJoinFromElementsByPath=[], impliedElements=[]}

-[FROM_FRAGMENT] FromElement: Pessoa pessoa0_ FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=p,role=null,tableName=Pessoa,tableAlias=pessoa0_,origin=null,columns={,className=com.teste.Pessoa}}

15:39:11,641 DEBUG ErrorCounter:91 - throwQueryException() : no errors
15:39:11,657 DEBUG QueryTranslatorImpl:241 - HQL: FROM com.teste.Pessoa p
15:39:11,657 DEBUG QueryTranslatorImpl:242 - SQL: select pessoa0_.id as id0_ from Pessoa pessoa0_
15:39:11,657 DEBUG ErrorCounter:91 - throwQueryException() : no errors

Criado 11 de maio de 2010
Ultima resposta 12 de mai. de 2010
Respostas 1
Participantes 1