This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 191936 - sometimes happen this error The type [null] is not the expected [EntityType] for the key class [my class].
Summary: sometimes happen this error The type [null] is not the expected [EntityType] ...
Status: NEW
Alias: None
Product: third-party
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@third-party
URL: http://wiki.eclipse.org/EclipseLink/D...
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-14 14:17 UTC by daniel.gomes
Modified: 2011-11-16 16:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description daniel.gomes 2010-11-14 14:17:26 UTC
Product Version = NetBeans IDE 7.0 M2 (Build 201010151251)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.6.0_22
Runtime = Java HotSpot(TM) Client VM 17.1-b03

branding:
files-init:
release:
Hidden modules: [.diff File Editor Support, .manifest file Editor Support, Abstract XML Instance Object Model (AXIOM), Ant, Ant Code Completion, Ant Debugger, Auto Update Services, Auto Update UI, Bean Patterns, Beans Binding integration, Bugzilla, Bugzilla Libraries, CSS Editor, CSS Visual Editor, CVS, CVS Client Library, Classfile Reader, Code Coverage Support, Code Generation Library Integration, Common Scripting Language API, Common Scripting Language API (new), Common Scripting Language Platform Support, Common Scripting Language Support, Common Server, Common Test Runner API, Commons Codec Integration, Commons Logging Integration, Commons Net Integration, Compatibility APIs, Core - IDE, Database, Database APIs, Database Core, Database DataView, Database Drivers, Database Explorer, Database Metadata Model, Database Schema (JDBC Implementation), Debugger Core - UI, Directory Chooser, Eclipse J2SE Project Importer, Eclipse Project Importer, EclipseLink(JPA 2.0), Editing Files, Editor Bookmarks, Editor Braces Matching, Editor Code Completion, Editor Code Templates, Editor Hints, Editor Macros, Editor Settings Prior 6.1 Separation, Embedded Browser, Extensible Abstract Model (XAM), External Execution Process Destroy Support, External Execution Support, External HTML Browser, Flying Saucer XHTML Renderer, Form Editor, Freeform Ant Projects, GUI Builder, General Online Help, Generic Languages Framework, GlassFish Server 3 - Common, HTML, HTML Editor, HTML Editor Library, HTML Lexer, HTTP Server, Hibernate, Hibernate 3.2.5 Library, Hudson, Hudson Ant Project Support, Hudson Kenai Integration, Hudson Maven Bridge, Hudson Mercurial Bindings, Hudson Subversion Bindings, IDE Defaults, IDE Platform, Image, Internationalization, Internationalization of Form, Issue Tracking, Issue Tracking Bridge Module, Issue Tracking Kenai Integration, Issue Tracking Libraries, J2EE Support for Form Editor, JAX-WS 2.2 Library, JAX-WS API, JAXB 2.2 Library, JAXB API, JAXB Wizard, JPA Refactoring, JPA Verification, JPDA Debugger, JPDA Debugger API, JPDA Debugger Ant Task, JPDA Debugger Projects Integration, JRuby ByteList, JUnit 4, JUnit Tests, Jakarta ORO Integration, Java, Java - Navigation, Java Common Project API, Java DB Database Support, Java Debugger, Java EE Core Utilities, Java EE Metadata, Java EE Metadata Model Support, Java Editor, Java Editor Library, Java Freeform Project Support, Java Guarded Sections, Java Hints, Java Hints Annotation Processor, Java Persistence, Java Persistence API Support, Java Persistence API Support API, Java Project Support, Java Refactoring, Java SE Platforms and Libraries, Java SE Projects, Java SE Samples, Java Secure Channel integration, Java Source, Java Source Debug, Java Source UI, Java Source to Ant Bindings, Java Support Documentation, Java Web Start, Java zlib integration, JavaScript, JavaScript Editing, JavaScript Hints, JavaScript Refactoring, Javadoc, Jelly Tools, Jelly Tools IDE, Jelly Tools Java, Kenai Framework API, Kenai Maven Interaction, Kenai UI, Lexer to NetBeans Bridge, Local History, Maven, Maven Dependency Graphs, Maven Editor Support, Maven Embedder library, Maven Hints, Maven JUnit Window Integration, Maven Local/Remote Repository Browser, Maven OSGI module, Maven Persistence bridge, Maven Project Support, Maven Quick Search Bridge, Maven Repository Indexing, Maven Spring bridge, Maven XAM-based Editor Model, Mercurial, MySQL Database Support, Native Execution Support Module, Native Terminal, Navigate To Test, Old Enumeration API, Plain Editor, Plain Editor Library, Preprocessor Bridge, Print Editor, Project UI Build Menu, Projects Searching, RCP Platform, Resource Bundle Syntax Coloring, Rhino IDE JavaScript Handler, SQL Editor, SaaS Services Code Generation for Java, Schema Aware Code Completion, Schema-to-Beans Library, Scripting API Integration, Servlet 2.2 API, Settings Options API, Smack API, Spellchecker, Spellchecker API, Spellchecker Core, Spellchecker English Dictionaries, Spellchecker HTML XML Bindings, Spellchecker Java Language Bindings, Spellchecker Properties Bindings, Spring Beans, Spring Framework Library, Subversion, Subversion Client Library, Swing Application Framework Support, Swing Simple Validation API, SwingX, TAX Library, Tags Based Editors Library, Target Chooser Panel, Task List, Task List - Project Integration, Task List UI, Team, Terminal, Terminal Emulator, ToDo Task Scanner, TopLink Essentials, User Utilities, Versioning, Versioning Kenai Integration, Versioning Support Utilities, Versioning-Indexing Bridge, Visual Query Editor, Web Client Tools API, Web Common, XML Core, XML Document Model (XDM), XML Lexer, XML Multiview Editor, XML Productivity Tools, XML Retriever, XML Schema API, XML Support, XML Text Editor, XML Tools Java Ext, XML WSDL API, XSL Support, YAML Editor Support, YAML Parser Library (jvyamlb), ini4j]
build:
br.com.think.util.taskdefs:
br.com.think.util.common-init:
br.com.think.util.projectized-common.basic-init:
br.com.think.util.basic-init:
br.com.think.util.files-init:
br.com.think.util.nbm-license-init:
br.com.think.util.build-init:
Scanning for modules in D:\NetBeans 6.9.1\ide
Scanning for modules in D:\NetBeans 6.9.1\java
Scanning for modules in D:\NetBeans 6.9.1\platform
Scanning for modules in suite D:\projetos\FarDesktop
br.com.think.util.init:
br.com.think.util.up-to-date:
br.com.think.util.compile:
br.com.think.util.jar-prep:
br.com.think.util.jar:
br.com.think.util.netbeans-extra:
br.com.think.util.module-xml-regular:
br.com.think.util.module-xml-autoload:
br.com.think.util.module-xml-eager:
br.com.think.util.javahelp:
br.com.think.util.module-auto-deps:
br.com.think.util.release:
Copying 2 files to D:\projetos\FarDesktop\build\cluster
br.com.think.util.chmod-executables:
br.com.think.util.verify-class-linkage:
0 file(s) have been successfully validated.
br.com.think.util.netbeans:
Generating information for Auto Update...
libraryDao.taskdefs:
libraryDao.common-init:
libraryDao.projectized-common.basic-init:
libraryDao.basic-init:
libraryDao.files-init:
libraryDao.nbm-license-init:
libraryDao.build-init:
Scanning for modules in D:\NetBeans 6.9.1\ide
Scanning for modules in D:\NetBeans 6.9.1\java
Scanning for modules in D:\NetBeans 6.9.1\platform
Scanning for modules in suite D:\projetos\FarDesktop
libraryDao.init:
libraryDao.up-to-date:
libraryDao.compile:
libraryDao.jar-prep:
libraryDao.jar:
libraryDao.netbeans-extra:
libraryDao.module-xml-regular:
libraryDao.module-xml-autoload:
libraryDao.module-xml-eager:
libraryDao.javahelp:
libraryDao.module-auto-deps:
libraryDao.release:
Copying 1 file to D:\projetos\FarDesktop\build\cluster
libraryDao.chmod-executables:
libraryDao.verify-class-linkage:
0 file(s) have been successfully validated.
libraryDao.netbeans:
Generating information for Auto Update...
libraryOracle.taskdefs:
libraryOracle.common-init:
libraryOracle.projectized-common.basic-init:
libraryOracle.basic-init:
libraryOracle.files-init:
libraryOracle.nbm-license-init:
libraryOracle.build-init:
Scanning for modules in D:\NetBeans 6.9.1\ide
Scanning for modules in D:\NetBeans 6.9.1\java
Scanning for modules in D:\NetBeans 6.9.1\platform
Scanning for modules in suite D:\projetos\FarDesktop
libraryOracle.init:
libraryOracle.up-to-date:
libraryOracle.compile:
libraryOracle.jar-prep:
libraryOracle.jar:
libraryOracle.netbeans-extra:
libraryOracle.module-xml-regular:
libraryOracle.module-xml-autoload:
libraryOracle.module-xml-eager:
libraryOracle.javahelp:
libraryOracle.module-auto-deps:
libraryOracle.release:
Copying 2 files to D:\projetos\FarDesktop\build\cluster
libraryOracle.chmod-executables:
libraryOracle.verify-class-linkage:
Warning: oracle.jdbc.connector.OracleConnectionManager cannot access javax.resource.ResourceException
Warning: oracle.jdbc.connector.OracleConnectionManager cannot access javax.resource.spi.ConnectionManager
Warning: oracle.jdbc.connector.OracleConnectionManager cannot access javax.resource.spi.ConnectionRequestInfo
Warning: oracle.jdbc.connector.OracleConnectionManager cannot access javax.resource.spi.ManagedConnection
Warning: oracle.jdbc.connector.OracleConnectionManager cannot access javax.resource.spi.ManagedConnectionFactory
Warning: oracle.jdbc.connector.OracleConnectionRequestInfo cannot access javax.resource.spi.ConnectionRequestInfo
Warning: oracle.jdbc.connector.OracleLocalTransaction cannot access javax.resource.ResourceException
Warning: oracle.jdbc.connector.OracleLocalTransaction cannot access javax.resource.spi.EISSystemException
Warning: oracle.jdbc.connector.OracleLocalTransaction cannot access javax.resource.spi.IllegalStateException
Warning: oracle.jdbc.connector.OracleLocalTransaction cannot access javax.resource.spi.LocalTransaction
(additional warnings not reported)
0 file(s) have been successfully validated.
libraryOracle.netbeans:
Generating information for Auto Update...
javax.persistence.taskdefs:
javax.persistence.common-init:
javax.persistence.projectized-common.basic-init:
javax.persistence.basic-init:
javax.persistence.files-init:
javax.persistence.nbm-license-init:
javax.persistence.build-init:
Scanning for modules in D:\NetBeans 6.9.1\ide
Scanning for modules in D:\NetBeans 6.9.1\java
Scanning for modules in D:\NetBeans 6.9.1\platform
Scanning for modules in suite D:\projetos\FarDesktop
javax.persistence.init:
javax.persistence.up-to-date:
javax.persistence.compile:
javax.persistence.jar-prep:
javax.persistence.jar:
javax.persistence.netbeans-extra:
javax.persistence.module-xml-regular:
javax.persistence.module-xml-autoload:
javax.persistence.module-xml-eager:
javax.persistence.javahelp:
javax.persistence.module-auto-deps:
javax.persistence.release:
Copying 5 files to D:\projetos\FarDesktop\build\cluster
javax.persistence.chmod-executables:
javax.persistence.verify-class-linkage:
Warning: commonj.sdo.impl.HelperProviderImpl cannot access commonj.sdo.helper.HelperContext
Warning: commonj.sdo.impl.HelperProviderImpl cannot access commonj.sdo.impl.ExternalizableDelegator
Warning: commonj.sdo.impl.HelperProviderImpl cannot access commonj.sdo.impl.ExternalizableDelegator$Resolvable
Warning: commonj.sdo.impl.HelperProviderImpl cannot access commonj.sdo.impl.HelperProvider
Warning: org.eclipse.persistence.eis.DOMRecord cannot access javax.resource.cci.Record
Warning: org.eclipse.persistence.eis.EISAccessor cannot access javax.resource.ResourceException
Warning: org.eclipse.persistence.eis.EISAccessor cannot access javax.resource.cci.Connection
Warning: org.eclipse.persistence.eis.EISAccessor cannot access javax.resource.cci.ConnectionMetaData
Warning: org.eclipse.persistence.eis.EISAccessor cannot access javax.resource.cci.Interaction
Warning: org.eclipse.persistence.eis.EISAccessor cannot access javax.resource.cci.InteractionSpec
(additional warnings not reported)
0 file(s) have been successfully validated.
javax.persistence.netbeans:
Generating information for Auto Update...
br.com.think.setup.taskdefs:
br.com.think.setup.common-init:
br.com.think.setup.projectized-common.basic-init:
br.com.think.setup.basic-init:
br.com.think.setup.files-init:
br.com.think.setup.nbm-license-init:
br.com.think.setup.build-init:
Scanning for modules in D:\NetBeans 6.9.1\ide
Scanning for modules in D:\NetBeans 6.9.1\java
Scanning for modules in D:\NetBeans 6.9.1\platform
Scanning for modules in suite D:\projetos\FarDesktop
Warning: br.com.think.setup lacks a unit test dependency on org.netbeans.libs.junit4; using default dependencies for compatibility
br.com.think.setup.init:
br.com.think.setup.up-to-date:
br.com.think.setup.compile:
br.com.think.setup.jar-prep:
br.com.think.setup.jar:
br.com.think.setup.netbeans-extra:
br.com.think.setup.module-xml-regular:
br.com.think.setup.module-xml-autoload:
br.com.think.setup.module-xml-eager:
br.com.think.setup.javahelp:
br.com.think.setup.module-auto-deps:
br.com.think.setup.release:
br.com.think.setup.chmod-executables:
br.com.think.setup.verify-class-linkage:
1 file(s) have been successfully validated.
br.com.think.setup.netbeans:
Generating information for Auto Update...
br.com.thinkit.taskdefs:
br.com.thinkit.common-init:
br.com.thinkit.projectized-common.basic-init:
br.com.thinkit.basic-init:
br.com.thinkit.files-init:
br.com.thinkit.nbm-license-init:
br.com.thinkit.build-init:
Scanning for modules in D:\NetBeans 6.9.1\ide
Scanning for modules in D:\NetBeans 6.9.1\java
Scanning for modules in D:\NetBeans 6.9.1\platform
Scanning for modules in suite D:\projetos\FarDesktop
Warning: br.com.thinkit lacks a unit test dependency on org.netbeans.libs.junit4; using default dependencies for compatibility
br.com.thinkit.init:
br.com.thinkit.up-to-date:
br.com.thinkit.compile:
br.com.thinkit.jar-prep:
br.com.thinkit.jar:
br.com.thinkit.netbeans-extra:
br.com.thinkit.module-xml-regular:
br.com.thinkit.module-xml-autoload:
br.com.thinkit.module-xml-eager:
br.com.thinkit.javahelp:
br.com.thinkit.module-auto-deps:
br.com.thinkit.release:
Copying 1 file to D:\projetos\FarDesktop\build\cluster
br.com.thinkit.chmod-executables:
br.com.thinkit.verify-class-linkage:
0 file(s) have been successfully validated.
br.com.thinkit.netbeans:
Generating information for Auto Update...
br.com.thinkit.admin.taskdefs:
br.com.thinkit.admin.common-init:
br.com.thinkit.admin.projectized-common.basic-init:
br.com.thinkit.admin.basic-init:
br.com.thinkit.admin.files-init:
br.com.thinkit.admin.nbm-license-init:
br.com.thinkit.admin.build-init:
Scanning for modules in D:\NetBeans 6.9.1\ide
Scanning for modules in D:\NetBeans 6.9.1\java
Scanning for modules in D:\NetBeans 6.9.1\platform
Scanning for modules in suite D:\projetos\FarDesktop
Warning: br.com.thinkit.admin lacks a unit test dependency on org.netbeans.libs.junit4; using default dependencies for compatibility
br.com.thinkit.admin.init:
br.com.thinkit.admin.up-to-date:
br.com.thinkit.admin.compile:
br.com.thinkit.admin.jar-prep:
br.com.thinkit.admin.jar:
br.com.thinkit.admin.netbeans-extra:
br.com.thinkit.admin.module-xml-regular:
br.com.thinkit.admin.module-xml-autoload:
br.com.thinkit.admin.module-xml-eager:
br.com.thinkit.admin.javahelp:
br.com.thinkit.admin.module-auto-deps:
br.com.thinkit.admin.release:
br.com.thinkit.admin.chmod-executables:
br.com.thinkit.admin.verify-class-linkage:
1 file(s) have been successfully validated.
br.com.thinkit.admin.netbeans:
Generating information for Auto Update...
br.com.thinkit.viewer.taskdefs:
br.com.thinkit.viewer.common-init:
br.com.thinkit.viewer.projectized-common.basic-init:
br.com.thinkit.viewer.basic-init:
br.com.thinkit.viewer.files-init:
br.com.thinkit.viewer.nbm-license-init:
br.com.thinkit.viewer.build-init:
Scanning for modules in D:\NetBeans 6.9.1\ide
Scanning for modules in D:\NetBeans 6.9.1\java
Scanning for modules in D:\NetBeans 6.9.1\platform
Scanning for modules in suite D:\projetos\FarDesktop
Warning: br.com.thinkit.viewer lacks a unit test dependency on org.netbeans.libs.junit4; using default dependencies for compatibility
br.com.thinkit.viewer.init:
br.com.thinkit.viewer.up-to-date:
br.com.thinkit.viewer.compile:
br.com.thinkit.viewer.jar-prep:
br.com.thinkit.viewer.jar:
br.com.thinkit.viewer.netbeans-extra:
br.com.thinkit.viewer.module-xml-regular:
br.com.thinkit.viewer.module-xml-autoload:
br.com.thinkit.viewer.module-xml-eager:
br.com.thinkit.viewer.javahelp:
br.com.thinkit.viewer.module-auto-deps:
br.com.thinkit.viewer.release:
br.com.thinkit.viewer.chmod-executables:
br.com.thinkit.viewer.verify-class-linkage:
1 file(s) have been successfully validated.
br.com.thinkit.viewer.netbeans:
Generating information for Auto Update...
org.jdesktop.taskdefs:
org.jdesktop.common-init:
org.jdesktop.projectized-common.basic-init:
org.jdesktop.basic-init:
org.jdesktop.files-init:
org.jdesktop.nbm-license-init:
org.jdesktop.build-init:
Scanning for modules in D:\NetBeans 6.9.1\ide
Scanning for modules in D:\NetBeans 6.9.1\java
Scanning for modules in D:\NetBeans 6.9.1\platform
Scanning for modules in suite D:\projetos\FarDesktop
Warning: org.jdesktop lacks a unit test dependency on org.netbeans.libs.junit4; using default dependencies for compatibility
org.jdesktop.init:
org.jdesktop.up-to-date:
org.jdesktop.compile:
org.jdesktop.jar-prep:
org.jdesktop.jar:
org.jdesktop.netbeans-extra:
org.jdesktop.module-xml-regular:
org.jdesktop.module-xml-autoload:
org.jdesktop.module-xml-eager:
org.jdesktop.javahelp:
org.jdesktop.module-auto-deps:
org.jdesktop.release:
Copying 1 file to D:\projetos\FarDesktop\build\cluster
org.jdesktop.chmod-executables:
org.jdesktop.verify-class-linkage:
0 file(s) have been successfully validated.
org.jdesktop.netbeans:
Generating information for Auto Update...
br.com.thinkit.editor.taskdefs:
br.com.thinkit.editor.common-init:
br.com.thinkit.editor.projectized-common.basic-init:
br.com.thinkit.editor.basic-init:
br.com.thinkit.editor.files-init:
br.com.thinkit.editor.nbm-license-init:
br.com.thinkit.editor.build-init:
Scanning for modules in D:\NetBeans 6.9.1\ide
Scanning for modules in D:\NetBeans 6.9.1\java
Scanning for modules in D:\NetBeans 6.9.1\platform
Scanning for modules in suite D:\projetos\FarDesktop
Warning: br.com.thinkit.editor lacks a unit test dependency on org.netbeans.libs.junit4; using default dependencies for compatibility
br.com.thinkit.editor.init:
br.com.thinkit.editor.up-to-date:
br.com.thinkit.editor.compile:
br.com.thinkit.editor.jar-prep:
br.com.thinkit.editor.jar:
br.com.thinkit.editor.netbeans-extra:
br.com.thinkit.editor.module-xml-regular:
br.com.thinkit.editor.module-xml-autoload:
br.com.thinkit.editor.module-xml-eager:
br.com.thinkit.editor.javahelp:
br.com.thinkit.editor.module-auto-deps:
br.com.thinkit.editor.release:
br.com.thinkit.editor.chmod-executables:
br.com.thinkit.editor.verify-class-linkage:
1 file(s) have been successfully validated.
br.com.thinkit.editor.netbeans:
Generating information for Auto Update...
run:
run.run:
-------------------------------------------------------------------------------
>Log Session: Sunday, November 14, 2010 12:10:56 PM BRST
>System Info: 
  Product Version         = FarDesktop 201007282301
  Operating System        = Windows 7 version 6.1 running on x86
  Java; VM; Vendor        = 1.6.0_22; Java HotSpot(TM) Server VM 17.1-b03; Sun Microsystems Inc.
  Runtime                 = Java(TM) SE Runtime Environment 1.6.0_22-b04
  Java Home               = C:\Program Files\Java\jdk1.6.0_22\jre
  System Locale; Encoding = en_US (fardesktop); Cp1252
  Home Directory          = C:\Users\dgomes
  Current Directory       = D:\projetos\FarDesktop
  User Directory          = D:\projetos\FarDesktop\build\testuserdir
  Installation            = D:\projetos\FarDesktop\build\cluster
                            D:\NetBeans 6.9.1\ide
                            D:\NetBeans 6.9.1\java
                            D:\NetBeans 6.9.1\platform
                            D:\NetBeans 6.9.1\platform
  Boot & Ext. Classpath   = C:\Program Files\Java\jdk1.6.0_22\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_22\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_22\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.6.0_22\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_22\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_22\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_22\jre\classes;C:\Program Files\Java\jdk1.6.0_22\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.6.0_22\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.6.0_22\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.6.0_22\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.6.0_22\jre\lib\ext\sunpkcs11.jar
  Application Classpath   = D:\NetBeans 6.9.1\platform\lib\boot.jar;D:\NetBeans 6.9.1\platform\lib\org-openide-modules.jar;D:\NetBeans 6.9.1\platform\lib\org-openide-util-lookup.jar;D:\NetBeans 6.9.1\platform\lib\org-openide-util.jar;D:\NetBeans 6.9.1\platform\lib\locale\boot_ja.jar;D:\NetBeans 6.9.1\platform\lib\locale\boot_pt_BR.jar;D:\NetBeans 6.9.1\platform\lib\locale\boot_zh_CN.jar;D:\NetBeans 6.9.1\platform\lib\locale\org-openide-modules_ja.jar;D:\NetBeans 6.9.1\platform\lib\locale\org-openide-modules_pt_BR.jar;D:\NetBeans 6.9.1\platform\lib\locale\org-openide-modules_zh_CN.jar;D:\NetBeans 6.9.1\platform\lib\locale\org-openide-util-lookup_ja.jar;D:\NetBeans 6.9.1\platform\lib\locale\org-openide-util-lookup_pt_BR.jar;D:\NetBeans 6.9.1\platform\lib\locale\org-openide-util-lookup_zh_CN.jar;D:\NetBeans 6.9.1\platform\lib\locale\org-openide-util_ja.jar;D:\NetBeans 6.9.1\platform\lib\locale\org-openide-util_pt_BR.jar;D:\NetBeans 6.9.1\platform\lib\locale\org-openide-util_zh_CN.jar;C:\Program Files\Java\jdk1.6.0_22\lib\dt.jar;C:\Program Files\Java\jdk1.6.0_22\lib\tools.jar
  Startup Classpath       = D:\NetBeans 6.9.1\platform\core\core.jar;D:\NetBeans 6.9.1\platform\core\org-openide-filesystems.jar;D:\NetBeans 6.9.1\platform\core\locale\core_ja.jar;D:\NetBeans 6.9.1\platform\core\locale\core_pt_BR.jar;D:\NetBeans 6.9.1\platform\core\locale\core_zh_CN.jar;D:\NetBeans 6.9.1\platform\core\locale\org-openide-filesystems_ja.jar;D:\NetBeans 6.9.1\platform\core\locale\org-openide-filesystems_pt_BR.jar;D:\NetBeans 6.9.1\platform\core\locale\org-openide-filesystems_zh_CN.jar;D:\projetos\FarDesktop\build\cluster\core\locale\core_fardesktop.jar
-------------------------------------------------------------------------------
WARNING [org.netbeans.core.modules]: the modules [org.netbeans.modules.diff, org.netbeans.modules.editor.indent.project, org.netbeans.modules.jumpto, org.netbeans.modules.options.editor, org.netbeans.modules.properties, org.netbeans.modules.refactoring.api] use org.jdesktop.layout which is deprecated: Use javax.swing.GroupLayout instead. (In form editor: select Form ... in Inspector; change Layout Generation Style to Standard Java 6 code.)
WARNING [org.netbeans.core.projects.cache]: Inefficient to include an empty layer in a module: jar:file:/D:/projetos/FarDesktop/build/cluster/modules/br-com-think-setup.jar!/br/com/think/setup/layer.xml
Configuração de Banco ok 
[EL Info]: 2010-11-14 12:11:02.993--ServerSession(32386728)--EclipseLink, version: Eclipse Persistence Services - 2.1.1.v20100817-r8050
[EL Info]: 2010-11-14 12:11:04.41--ServerSession(32386728)--file:/D:/projetos/FarDesktop/build/cluster/modules/libraryDao.jar_suportePU_url=jdbc:oracle:thin:@srv-hora01:1521:hora1_user=bffar login successful
SEVERE [org.netbeans.core.modules]
java.lang.IllegalArgumentException: The type [null] is not the expected [EntityType] for the key class [class br.com.thinkit.db.Ativos].
        at org.eclipse.persistence.internal.jpa.metamodel.MetamodelImpl.entity(MetamodelImpl.java:152)
        at br.com.thinkit.ConsultaAtivoImpl.<init>(ConsultaAtivoImpl.java:50)
        at br.com.thinkit.Installer.restored(Installer.java:38)
        at org.netbeans.core.startup.NbInstaller.loadCode(NbInstaller.java:426)
        at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:366)
        at org.netbeans.ModuleManager.enable(ModuleManager.java:944)
        at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:318)
        at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:254)
        at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:286)
        at org.netbeans.core.startup.Main.getModuleSystem(Main.java:172)
        at org.netbeans.core.startup.Main.start(Main.java:302)
        at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:114)
[catch] at java.lang.Thread.run(Thread.java:662)
Conectado
INFO [org.netbeans.core.startup.NbEvents]: Turning on modules:
        org.openide.util.lookup [8.3.1 201007282301]
        org.openide.util [8.6.1 201007282301]
        org.openide.modules [7.17.1 201007282301]
        org.openide.filesystems [7.38.2 201007282301]
        org.netbeans.modules.editor.mimelookup/1 [1.16.1 201007282301]
        org.openide.awt [7.23.1 201007282301]
        org.netbeans.api.progress/1 [1.20.2 201007282301]
        org.openide.dialogs [7.15.1 201007282301]
        org.openide.nodes [7.16.1 201007282301]
        org.openide.windows [6.33.1 201007282301]
        org.netbeans.swing.tabcontrol [1.21.1 201007282301]
        org.netbeans.swing.outline [1.9.1 201007282301]
        org.openide.explorer [6.28.2 201007282301]
        org.openide.text [6.30.1 201007282301]
        org.openide.actions [6.16.1 201007282301]
        org.netbeans.modules.queries/1 [1.19.1 201007282301]
        org.openide.loaders [7.16.1 201007282301]
        org.netbeans.modules.editor.mimelookup.impl/1 [1.9.1 201007282301]
        org.netbeans.bootstrap/1 [2.33.1 201007282301]
        org.netbeans.core.startup/1 [1.25.1 201007282301]
        org.netbeans.spi.quicksearch [1.6.1 201007282301]
        org.netbeans.modules.keyring [1.1.2 201007282301]
        org.openide.io [1.23.1 201007282301]
        org.netbeans.swing.plaf [1.16.1 201007282301]
        org.netbeans.core/2 [3.20.2 201007282301]
        org.netbeans.modules.options.api/1 [1.18.1 201007282301]
        org.netbeans.modules.settings/1 [1.26.1 201007282301]
        org.netbeans.core.windows/2 [2.21.1 201007282301]
        org.apache.xml.resolver [1.11.1.12 12 201007282301]
        org.netbeans.modules.favorites/1 [1.20.1 201007282301]
        org.netbeans.libs.jna/1 [1.7.2 201007282301]
        org.netbeans.modules.keyring.impl [1.0.1 201007282301]
        org.netbeans.modules.editor.settings/1 [1.31.1 201007282301]
        org.netbeans.modules.editor.util/1 [1.36.1 201007282301]
        org.netbeans.modules.lexer/2 [1.35.1.1 1 201007282301]
        org.netbeans.modules.editor.lib2/1 [1.28.1.2 2 201007282301]
        org.netbeans.modules.editor.fold/1 [1.18.1.2 201007282301]
        org.netbeans.modules.editor.lib/2 [2.10.2.10.2 10 201007282301]
        org.netbeans.modules.editor.actions/1 [1.5.1.2 201007282301]
        org.netbeans.libs.osgi [1.1.1 201007282301]
        org.netbeans.modules.javahelp/1 [2.17.1 201007282301]
        libraryOracle [1.0 101114]
        org.openidex.util/3 [3.25.1 201007282301]
        org.netbeans.core.io.ui/1 [1.8.1 201007282301]
        org.jdesktop [1.0 101114]
        org.netbeans.modules.editor.indent/2 [1.19.1.10 201007282301]
        org.jdesktop.layout/1 [1.13.1 201007282301]
        org.netbeans.core.netigso [1.4.2 201007282301]
        org.netbeans.modules.projectapi/1 [1.31.1 201007282301]
        javax.persistence [1.0 101114]
        br.com.think.util [1.0 101114]
        br.com.think.setup [1.0 101114]
        libraryDao [1.0 101114]
        br.com.thinkit [1.0 101114]
        org.netbeans.modules.editor.errorstripe.api/1 [2.11.1.1 1 201007282301]
        org.netbeans.modules.editor.errorstripe/2 [2.12.1.1.1 1 201007282301]
        org.netbeans.modules.editor.settings.storage/1 [1.25.1 201007282301]
        org.netbeans.modules.editor/3 [1.50.1.3.10.2 3 201007282301]
        org.netbeans.modules.options.keymap [1.10.1 201007282301]
        org.netbeans.modules.options.editor/1 [1.21.1 201007282301]
        org.netbeans.modules.diff/1 [1.28.2.42.1 42 201007282301]
        org.netbeans.modules.projectuiapi/1 [1.47.2.8 8 201007282301]
        org.netbeans.modules.editor.indent.project/0 [1.1.1 201007282301]
        org.netbeans.modules.masterfs/2 [2.25.2 201007282301]
        org.openide.execution [1.18.1 201007282301]
        org.netbeans.core.execution/1 [1.20.1 201007282301]
        org.netbeans.modules.editor.guards/1 [1.8.1 201007282301]
        br.com.thinkit.editor [1.0 101114]
        br.com.thinkit.viewer [1.0 101114]
        org.netbeans.api.xml/1 [1.22.1 201007282301]
        org.netbeans.api.java.classpath/1 [1.25.1 201007282301]
        org.netbeans.libs.lucene/1 [2.10.1.232 232 201007282301]
        org.netbeans.modules.properties/1 [1.32.2 201007282301]
        org.netbeans.modules.progress.ui [1.12.1 201007282301]
        org.netbeans.core.ui/1 [1.22.1 201007282301]
        org.netbeans.modules.projectui [1.21.2.8 201007282301]
        org.netbeans.spi.navigator/1 [1.13.1 201007282301]
        org.netbeans.core.nativeaccess/1 [1.7.1 201007282301]
        org.apache.tools.ant.module/3 [3.41.2.2 2 201007282301]
        org.netbeans.libs.felix [1.1.1 201007282301]
        org.netbeans.core.output2/1 [1.18.2 201007282301]
        org.netbeans.modules.print [7.5.1 201007282301]
        org.netbeans.api.annotations.common/1 [1.5.1 201007282301]
        org.netbeans.modules.refactoring.api [1.11.1 201007282301]
        br.com.thinkit.admin [1.0 101114]
        org.netbeans.spi.tasklist/1 [1.11.1.1 1 201007282301]
        org.netbeans.modules.parsing.api/1 [1.33.2.4 4 201007282301]
        org.netbeans.modules.jumpto/1 [1.17.1 201007282301]
        org.netbeans.modules.project.libraries/1 [1.25.1 201007282301]
        org.netbeans.modules.xml.catalog/2 [1.20.1.4 4 201007282301]
        org.netbeans.modules.ant.browsetask [1.20.1 201007282301]
WARNING [org.openide.filesystems.Ordering]: Found same position 300 for both Toolbars/File/br-com-thinkit-viewer-LoginAction.shadow and Toolbars/File/org-netbeans-modules-project-ui-OpenProject.shadow
Diagnostic information
Input arguments:
        -Dnetbeans.logger.console=true
        -ea
        -Duser.language=en
        -Duser.region=US
        -Djdk.home=C:\Program
        Files\Java\jdk1.6.0_22
        -splash:D:\projetos\FarDesktop\build\testuserdir\var\cache\splash.png
        -Dnetbeans.home=D:\NetBeans
        6.9.1\platform
        -Dnetbeans.user=D:\projetos\FarDesktop\build\testuserdir
        -XX:+HeapDumpOnOutOfMemoryError
        -XX:HeapDumpPath=D:\projetos\FarDesktop\build\testuserdir\var\log\heapdump.hprof
        -Dnetbeans.system_http_proxy=DIRECT
        -Dsun.awt.keepWorkingSetOnMinimize=true
        -Dnetbeans.dirs=D:\projetos\FarDesktop\build\cluster;D:\NetBeans
        6.9.1\ide;D:\NetBeans
        6.9.1\java;D:\NetBeans
        6.9.1\platform
Compiler: HotSpot Tiered Compilers
Heap memory usage: initial 39.9MB maximum 567.1MB
Non heap memory usage: initial 18.2MB maximum 112.0MB
Garbage collector: PS Scavenge (Collections=6 Total time spent=0s)
Garbage collector: PS MarkSweep (Collections=0 Total time spent=0s)
Classes: loaded=5002 total loaded=5002 unloaded 0
INFO [org.netbeans.core.ui.warmup.DiagnosticTask]: Total memory 2,147,483,647
INFO [null]: Total physical memory 2,147,483,647
WARNING [org.openide.filesystems.Ordering]: Found same position 1,300 for both Menu/File/br-com-thinkit-viewer-LoginAction.shadow and Menu/File/org-netbeans-modules-project-ui-CustomizeProject.shadow
WARNING [org.openide.filesystems.Ordering]: Not all children in Menu/Window/ marked with the position attribute: [ExpLoginsAction.shadow, ExplorerAppAction.shadow, PainelAction.shadow], but some are: [org-netbeans-modules-project-ui-logical-tab-action.shadow, org-netbeans-modules-project-ui-physical-tab-action.shadow, ViewFavoritesTabAction.shadow, org-netbeans-core-windows-actions-GlobalPropertiesAction.shadow, Output, Navigator, SwitchToRecentDocumentAction.shadow, ProgressListAction.shadow, Separator3.instance, CloseWindowAction.shadow, MaximizeWindowAction.shadow, org-netbeans-core-windows-actions-UndockAction.shadow, Separator4.instance, CloneDocumentAction.shadow, CloseAllDocumentsAction.shadow, CloseAllButThisAction.shadow, DocumentsAction.shadow, Separator5.instance, org-netbeans-core-windows-actions-ResetWindowsAction.shadow]
WARNING [org.openide.filesystems.Ordering]: Not all children in Menu/Help/ marked with the position attribute: [master-help.xml], but some are: [Separator1.instance, org-netbeans-core-actions-AboutAction.shadow]
WARNING [org.openide.util.lookup.MetaInfServicesLookup]: Cannot create class br.com.thinkit.ConsultaAtivoImpl
java.lang.IllegalArgumentException: The type [null] is not the expected [EntityType] for the key class [class br.com.thinkit.db.Ativos].
        at org.eclipse.persistence.internal.jpa.metamodel.MetamodelImpl.entity(MetamodelImpl.java:152)
        at br.com.thinkit.ConsultaAtivoImpl.<init>(ConsultaAtivoImpl.java:50)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at org.openide.util.lookup.implspi.SharedClassObjectBridge.newInstance(SharedClassObjectBridge.java:64)
        at org.openide.util.lookup.MetaInfServicesLookup$P.getInstance(MetaInfServicesLookup.java:472)
        at org.openide.util.lookup.AbstractLookup.lookup(AbstractLookup.java:412)
        at org.openide.util.lookup.ProxyLookup.lookup(ProxyLookup.java:208)
        at br.com.thinkit.editor.PainelTopComponent.<init>(PainelTopComponent.java:36)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.openide.windows.TopComponent$Replacer.readObject(TopComponent.java:1595)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1848)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
        at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.readSerial(XMLSettingsSupport.java:547)
        at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.instanceCreate(XMLSettingsSupport.java:579)
        at org.netbeans.modules.settings.convertors.SerialDataConvertor$SettingsInstance.instanceCreate(SerialDataConvertor.java:423)
        at org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentPersistentForID(PersistenceManager.java:533)
        at org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentForID(PersistenceManager.java:643)
        at org.netbeans.core.windows.PersistenceHandler.getTopComponentForID(PersistenceHandler.java:460)
        at org.netbeans.core.windows.WindowManagerImpl.getTopComponentForID(WindowManagerImpl.java:816)
        at org.netbeans.core.windows.WindowManagerImpl.findTopComponent(WindowManagerImpl.java:255)
        at br.com.thinkit.editor.PainelTopComponent.findInstance(PainelTopComponent.java:255)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.netbeans.core.startup.layers.BinaryFS$AttrImpl$MethodAndParams.invoke(BinaryFS.java:607)
        at org.netbeans.core.startup.layers.BinaryFS$AttrImpl.getValue(BinaryFS.java:540)
        at org.netbeans.core.startup.layers.BinaryFS$BFSBase.getAttribute(BinaryFS.java:386)
        at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:907)
        at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:844)
        at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:903)
        at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:844)
        at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:772)
        at org.netbeans.core.startup.layers.BinaryFS$FileMap.get(BinaryFS.java:955)
        at org.openide.windows.OpenComponentAction.getTopComponent(OpenComponentAction.java:74)
        at org.openide.windows.OpenComponentAction.actionPerformed(OpenComponentAction.java:80)
        at org.openide.awt.AlwaysEnabledAction$1.run(AlwaysEnabledAction.java:137)
        at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:95)
        at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116)
        at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99)
        at org.openide.awt.AlwaysEnabledAction.actionPerformed(AlwaysEnabledAction.java:140)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
        at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1223)
        at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1264)
        at java.awt.Component.processMouseEvent(Component.java:6267)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
        at java.awt.Component.processEvent(Component.java:6032)
        at java.awt.Container.processEvent(Container.java:2041)
        at java.awt.Component.dispatchEventImpl(Component.java:4630)
        at java.awt.Container.dispatchEventImpl(Container.java:2099)
        at java.awt.Component.dispatchEvent(Component.java:4460)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
        at java.awt.Container.dispatchEventImpl(Container.java:2085)
        at java.awt.Window.dispatchEventImpl(Window.java:2478)
        at java.awt.Component.dispatchEvent(Component.java:4460)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:137)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
[catch] at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
INFO [org.netbeans.core.windows.persistence]: [PersistenceManager.getTopComponentForID] Problem when deserializing TopComponent for tcID:'PainelTopComponent'. Reason: java.lang.NullPointerException

msg
msg
msg
Caused: java.lang.NullPointerException
        at br.com.thinkit.editor.PainelTopComponent.<init>(PainelTopComponent.java:37)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.openide.windows.TopComponent$Replacer.readObject(TopComponent.java:1595)
Caused: java.io.IOException
        at org.openide.windows.TopComponent$Replacer.readObject(TopComponent.java:1647)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1848)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
        at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.readSerial(XMLSettingsSupport.java:547)
        at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.instanceCreate(XMLSettingsSupport.java:579)
        at org.netbeans.modules.settings.convertors.SerialDataConvertor$SettingsInstance.instanceCreate(SerialDataConvertor.java:423)
        at org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentPersistentForID(PersistenceManager.java:533)
        at org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentForID(PersistenceManager.java:643)
        at org.netbeans.core.windows.PersistenceHandler.getTopComponentForID(PersistenceHandler.java:460)
        at org.netbeans.core.windows.WindowManagerImpl.getTopComponentForID(WindowManagerImpl.java:816)
        at org.netbeans.core.windows.WindowManagerImpl.findTopComponent(WindowManagerImpl.java:255)
        at br.com.thinkit.editor.PainelTopComponent.findInstance(PainelTopComponent.java:255)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.netbeans.core.startup.layers.BinaryFS$AttrImpl$MethodAndParams.invoke(BinaryFS.java:607)
        at org.netbeans.core.startup.layers.BinaryFS$AttrImpl.getValue(BinaryFS.java:540)
        at org.netbeans.core.startup.layers.BinaryFS$BFSBase.getAttribute(BinaryFS.java:386)
        at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:907)
        at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:844)
        at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:903)
        at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:844)
        at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:772)
        at org.netbeans.core.startup.layers.BinaryFS$FileMap.get(BinaryFS.java:955)
        at org.openide.windows.OpenComponentAction.getTopComponent(OpenComponentAction.java:74)
        at org.openide.windows.OpenComponentAction.actionPerformed(OpenComponentAction.java:80)
        at org.openide.awt.AlwaysEnabledAction$1.run(AlwaysEnabledAction.java:137)
        at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:95)
        at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116)
        at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99)
        at org.openide.awt.AlwaysEnabledAction.actionPerformed(AlwaysEnabledAction.java:140)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
        at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1223)
        at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1264)
        at java.awt.Component.processMouseEvent(Component.java:6267)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
        at java.awt.Component.processEvent(Component.java:6032)
        at java.awt.Container.processEvent(Container.java:2041)
        at java.awt.Component.dispatchEventImpl(Component.java:4630)
        at java.awt.Container.dispatchEventImpl(Container.java:2099)
        at java.awt.Component.dispatchEvent(Component.java:4460)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
        at java.awt.Container.dispatchEventImpl(Container.java:2085)
        at java.awt.Window.dispatchEventImpl(Window.java:2478)
        at java.awt.Component.dispatchEvent(Component.java:4460)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:137)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
[catch] at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Content: 
<?xml version="1.0"?>
<!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session settings 1.0//EN" "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd">
<settings version="1.0">
    <module name="br.com.thinkit.editor" spec="1.0"/>
    <instanceof class="br.com.thinkit.editor.PainelTopComponent"/>
    <instanceof class="java.awt.Component"/>
    <instanceof class="java.awt.Container"/>
    <instanceof class="java.awt.MenuContainer"/>
    <instanceof class="java.awt.image.ImageObserver"/>
    <instanceof class="java.io.Externalizable"/>
    <instanceof class="java.io.Serializable"/>
    <instanceof class="java.lang.Object"/>
    <instanceof class="javax.accessibility.Accessible"/>
    <instanceof class="javax.swing.JComponent"/>
    <instanceof class="javax.swing.TransferHandler$HasGetTransferHandler"/>
    <instanceof class="org.openide.util.HelpCtx$Provider"/>
    <instanceof class="org.openide.util.Lookup$Provider"/>
    <instanceof class="org.openide.windows.TopComponent"/>
    <serialdata class="br.com.thinkit.editor.PainelTopComponent">
        ACED0005737200296F72672E6F70656E6964652E77696E646F77732E546F70436F6D706F6E656E74245265706C6163657284
        874494BDDF6D64030000787074002862722E636F6D2E7468696E6B69742E656469746F722E5061696E656C546F70436F6D70
        6F6E656E747372000F6A6176612E6C616E672E53686F7274684D37133460DA5202000153000576616C7565787200106A6176
        612E6C616E672E4E756D62657286AC951D0B94E08B0200007870000177040000000174000D5061696E656C2057696E646F77
        740017546869732069732061205061696E656C2077696E646F777078
    </serialdata>
</settings>
ALL [null]: Source: MultiFileObject@12e0415[Windows2Local/Components/PainelTopComponent.settings]
ALL [null]: Cannot read class: br.com.thinkit.editor.PainelTopComponent
WARNING [br.com.thinkit.editor.PainelTopComponent]: Cannot find PainelTopComponent component. It will not be located properly in the window system.
INFO [org.netbeans.core.startup.layers.BinaryFS]: value = br.com.thinkit.editor.PainelTopComponent.findInstance from Actions/Window/br-com-thinkit-editor-PainelAction.instance
java.lang.NullPointerException
        at br.com.thinkit.editor.PainelTopComponent.<init>(PainelTopComponent.java:37)
        at br.com.thinkit.editor.PainelTopComponent.getDefault(PainelTopComponent.java:244)
        at br.com.thinkit.editor.PainelTopComponent.findInstance(PainelTopComponent.java:260)
Caused: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.netbeans.core.startup.layers.BinaryFS$AttrImpl$MethodAndParams.invoke(BinaryFS.java:607)
        at org.netbeans.core.startup.layers.BinaryFS$AttrImpl.getValue(BinaryFS.java:540)
        at org.netbeans.core.startup.layers.BinaryFS$BFSBase.getAttribute(BinaryFS.java:386)
        at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:907)
        at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:844)
        at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:903)
        at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:844)
        at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:772)
        at org.netbeans.core.startup.layers.BinaryFS$FileMap.get(BinaryFS.java:955)
        at org.openide.windows.OpenComponentAction.getTopComponent(OpenComponentAction.java:74)
        at org.openide.windows.OpenComponentAction.actionPerformed(OpenComponentAction.java:80)
        at org.openide.awt.AlwaysEnabledAction$1.run(AlwaysEnabledAction.java:137)
        at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:95)
        at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116)
        at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99)
        at org.openide.awt.AlwaysEnabledAction.actionPerformed(AlwaysEnabledAction.java:140)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
        at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1223)
        at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1264)
        at java.awt.Component.processMouseEvent(Component.java:6267)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
        at java.awt.Component.processEvent(Component.java:6032)
        at java.awt.Container.processEvent(Container.java:2041)
        at java.awt.Component.dispatchEventImpl(Component.java:4630)
        at java.awt.Container.dispatchEventImpl(Container.java:2099)
        at java.awt.Component.dispatchEvent(Component.java:4460)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
        at java.awt.Container.dispatchEventImpl(Container.java:2085)
        at java.awt.Window.dispatchEventImpl(Window.java:2478)
        at java.awt.Component.dispatchEvent(Component.java:4460)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:137)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
[catch] at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
WARNING [br.com.thinkit.editor.PainelTopComponent]: Cannot find PainelTopComponent component. It will not be located properly in the window system.
INFO [org.netbeans.core.startup.layers.BinaryFS]: value = br.com.thinkit.editor.PainelTopComponent.findInstance from Actions/Window/br-com-thinkit-editor-PainelAction.instance
java.lang.NullPointerException
        at br.com.thinkit.editor.PainelTopComponent.<init>(PainelTopComponent.java:37)
        at br.com.thinkit.editor.PainelTopComponent.getDefault(PainelTopComponent.java:244)
        at br.com.thinkit.editor.PainelTopComponent.findInstance(PainelTopComponent.java:260)
Caused: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.netbeans.core.startup.layers.BinaryFS$AttrImpl$MethodAndParams.invoke(BinaryFS.java:607)
        at org.netbeans.core.startup.layers.BinaryFS$AttrImpl.getValue(BinaryFS.java:540)
        at org.netbeans.core.startup.layers.BinaryFS$BFSBase.getAttribute(BinaryFS.java:386)
        at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:907)
        at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:844)
        at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:903)
        at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:844)
        at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:772)
        at org.netbeans.core.startup.layers.BinaryFS$FOEntry.getValue(BinaryFS.java:1041)
        at java.util.AbstractMap.toString(AbstractMap.java:487)
        at java.lang.String.valueOf(String.java:2826)
        at java.lang.StringBuilder.append(StringBuilder.java:115)
        at org.openide.windows.OpenComponentAction.getTopComponent(OpenComponentAction.java:75)
        at org.openide.windows.OpenComponentAction.actionPerformed(OpenComponentAction.java:80)
        at org.openide.awt.AlwaysEnabledAction$1.run(AlwaysEnabledAction.java:137)
        at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:95)
        at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116)
        at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99)
        at org.openide.awt.AlwaysEnabledAction.actionPerformed(AlwaysEnabledAction.java:140)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
        at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1223)
        at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1264)
        at java.awt.Component.processMouseEvent(Component.java:6267)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
        at java.awt.Component.processEvent(Component.java:6032)
        at java.awt.Container.processEvent(Container.java:2041)
        at java.awt.Component.dispatchEventImpl(Component.java:4630)
        at java.awt.Container.dispatchEventImpl(Container.java:2099)
        at java.awt.Component.dispatchEvent(Component.java:4460)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
        at java.awt.Container.dispatchEventImpl(Container.java:2085)
        at java.awt.Window.dispatchEventImpl(Window.java:2478)
        at java.awt.Component.dispatchEvent(Component.java:4460)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:137)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
[catch] at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
SEVERE [global]
java.lang.AssertionError: Component cannot be created for {component=null, displayName=Painel, instanceCreate=AlwaysEnabledAction[Painel]}
        at org.openide.windows.OpenComponentAction.getTopComponent(OpenComponentAction.java:75)
        at org.openide.windows.OpenComponentAction.actionPerformed(OpenComponentAction.java:80)
        at org.openide.awt.AlwaysEnabledAction$1.run(AlwaysEnabledAction.java:137)
        at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:95)
        at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116)
        at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99)
        at org.openide.awt.AlwaysEnabledAction.actionPerformed(AlwaysEnabledAction.java:140)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
        at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1223)
        at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1264)
        at java.awt.Component.processMouseEvent(Component.java:6267)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
        at java.awt.Component.processEvent(Component.java:6032)
        at java.awt.Container.processEvent(Container.java:2041)
        at java.awt.Component.dispatchEventImpl(Component.java:4630)
        at java.awt.Container.dispatchEventImpl(Container.java:2099)
        at java.awt.Component.dispatchEvent(Component.java:4460)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
        at java.awt.Container.dispatchEventImpl(Container.java:2085)
        at java.awt.Window.dispatchEventImpl(Window.java:2478)
        at java.awt.Component.dispatchEvent(Component.java:4460)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:137)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
[catch] at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Conectado
BUILD SUCCESSFUL (total time: 40 seconds)
Comment 1 daniel.gomes 2010-11-14 14:20:19 UTC
this is my code:
public class ConsultaAtivoImpl implements ConsultaAtivo {
    private String qfundo=null ;
    private String qativo=null ;
    private String qop=null ;
    private String qdata=null ;
    private Dbconn conn ;
    private EntityManager em ;
    private SimpleDateFormat format=new SimpleDateFormat( "dd/MM/yyyy");
    //Query query ;
    private String strq="select a from Ativos a ";
    private CriteriaBuilder qb ;
    private CriteriaQuery<Ativos> query ;
    private Root<Ativos> ativos;
    
    public ConsultaAtivoImpl(){
        //conn = DbconnImpl.getInstance();
        conn = Installer.getEm();        
        em = conn.getConn();        
        qb = em.getCriteriaBuilder();
        query = qb.createQuery(Ativos.class);
        ativos = query.from(em.getMetamodel().entity(Ativos.class)); // <==== here is the point happen the problem 
        
    }
Comment 2 Marian Mirilovic 2010-11-19 13:01:20 UTC
This is not a NetBeans code : 

java.lang.NullPointerException
        at
br.com.thinkit.editor.PainelTopComponent.<init>(PainelTopComponent.java:37)
Comment 3 obrienmi 2011-03-03 19:27:07 UTC
The workaround for DI 101 and bug# 338837 to fix the IAE issue for Criteria/Metamodel users attempting to use an EntityType that is not found is to specify the location of the classes (usually not required for Java EE environments)
This environment will exist in Java SE, Spring and certain implementations of Java EE 6 Web Profile.

Exception in thread "main" java.lang.IllegalArgumentException: The type [null] is not the expected [EntityType] for the key class [class org.eclipse.persistence.example.distributed.collatz.model.UnitOfWork].

http://wiki.eclipse.org/EclipseLink/Development/JPA_2.0/metamodel_api#DI_101:_20100218:_Descriptor.javaClass_is_null_on_a_container_EM_for_a_specific_case

workaround is
https://bugs.eclipse.org/bugs/show_bug.cgi?id=338837

Global to all classes
<exclude-unlisted-classes>false</exclude-unlisted-classes>
or specific to a single class
<class>org.eclipse.persistence.example.distributed.collatz.model.UnitOfWork</class>

20110303: We have reproduced this issue in bug# 338837 in a Java SE environment. We have two workarounds and will be modifying the code to warn about the actual cause - which is a not fully specified data model in persistence.xml. 

The following specification mandated JPA 2.0 IllegalArgumentException occurs because entity classes were not processed because they are missing from the search path or not specified. 
This usually occurs in Java SE environments only. 
This is the result of an incomplete specification of the entities in persistence.xml for Java SE RESOURCE_LOCAL environments and possibly Java EE 6 Web Profile JTA environments. 
Occurs when running JPA 2.0 Criteria or Metamodel code where we require an EntityType like the following 
EntityType unitOfWork_ = getEntityManager().getMetamodel().entity(UnitOfWork.class);
        Root<UnitOfWork> root =  getEntityManager().getCriteriaBuilder().createQuery().from(UnitOfWork.class);DDLGenerationClient [Java Application]    
    org.eclipse.persistence.example.jpa.server.common.DDLGenerationClient at
localhost:4353    
        Thread [main] (Suspended)    
            MetamodelImpl.entity(Class<X>) line: 160    
            CriteriaQueryImpl<T>(AbstractQueryImpl<T>).from(Class<X>) line: 97  
            DDLGenerationClient.checkMetamodel() line: 436    
            DDLGenerationClient.doQuery() line: 460    
            DDLGenerationClient.main(String[]) line: 445    
in 
public <X> EntityType<X> entity(Class<X> clazz) {
        Object aType = this.entities.get(clazz);
        if(aType instanceof EntityType) {
            return (EntityType<X>) aType;
        } else {
-->         throw new IllegalArgumentException(ExceptionLocalization.buildMessage(We see the following exception - which is not very descriptive of the actual issue of missing metadata because of missing entity classes found during EntityManager predeploy 
[EL Finest]: 2011-03-03
12:14:36.141--ServerSession(11582167)--Thread(Thread[main,5,main])--End deploying Persistence Unit dao.create.tables.derby.client; session file:/C:/view_w36a/examples/org.eclipse.persistence.example.jpa.server.common.ddlgen/bin/_dao.create.tables.derby.client;state Deployed; factoryCount 1
Exception in thread "main" java.lang.IllegalArgumentException: 
The type [null] is not the expected [EntityType] for the key class [class org.eclipse.persistence.example.distributed.collatz.model.UnitOfWork].
    at
org.eclipse.persistence.internal.jpa.metamodel.MetamodelImpl.entity(MetamodelImpl.java:160)
    at
org.eclipse.persistence.example.jpa.server.common.DDLGenerationClient.checkMetamodel(DDLGenerationClient.java:435)
    at
org.eclipse.persistence.example.jpa.server.common.DDLGenerationClient.doQuery(DDLGenerationClient.java:459)
    at
org.eclipse.persistence.example.jpa.server.common.DDLGenerationClient.main(DDLGenerationClient.java:444)
using 
<persistence-unit name="dao.create.tables.derby.client"
transaction-type="RESOURCE_LOCAL">
        <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
        <!-- exclude-unlisted-classes>
false</exclude-unlisted-classes-->
       <!-- class>
org.eclipse.persistence.example.distributed.collatz.model.UnitOfWork</class-->
        <properties>
            <property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.ClientDriver"/>
            <property name="eclipselink.target-database" value="Derby"/>        
            <property name="javax.persistence.jdbc.url" value="jdbc:derby://127.0.0.1:1527/dataparallel;create=true"/>
            <property name="javax.persistence.jdbc.user" value="APP"/>
            <property name="javax.persistence.jdbc.password" value="APP"/>
            <property name="eclipselink.logging.level" value="ALL"/>            
            <!-- property name="eclipselink.ddl-generation" value="drop-and-create-tables"/>

            <property name="eclipselink.ddl-generation.output-mode" value="both"/-->
        </properties>
    </persistence-unit>workaround is 
<exclude-unlisted-classes>false</exclude-unlisted-classes>
or 
<class>org.eclipse.persistence.example.distributed.collatz.model.UnitOfWork</class>
Result is OK with either fix 
unitOfWork_ EntityType: EntityTypeImpl@672904:UnitOfWork [ javaType: class org.eclipse.persistence.example.distributed.collatz.model.UnitOfWork descriptor: RelationalDescriptor(org.eclipse.persistence.example.distributed.collatz.model.UnitOfWork--> [DatabaseTable(EL_UNITOFWORK)]), mappings: 7]
Solution: 
There are two ways into this problem. 
1) We specify no entities at all and also do not specify 
<exclude-unlisted-classes>false</exclude-unlisted-classes> 
- the result of this is a completely empty metamodel 
2) We specify only part of the entities via <class> properties 
- the result of this is selective IllegalArgumentException errors thrown when we attempt to use the missing EntityType classes - likely in a Criteria API query 
We need to warn both for no (0) entities found and later that a specific type was not found - possibly as a result of a missing class reference 
1) warn the user that no entities were found during the predeploy so the deploy iterates nothing during metamodel.initialize - actually nothing is done during initialize 
MetamodelImpl@21350241 [ 0 Types: , 0 ManagedTypes: , 0 EntityTypes: , 0 MappedSuperclassTypes: , 0 EmbeddableTypes: ] 
or in 
protected void initializeCanonicalMetamodel(Metamodel model) 
DDLGenerationClient [Java Application]    
    org.eclipse.persistence.example.jpa.server.common.DDLGenerationClient at
localhost:3057    
        Thread [main] (Suspended)    
            MetamodelImpl.initialize() line: 363    
            MetamodelImpl.<init>(DatabaseSession) line: 109    
            MetamodelImpl.<init>(EntityManagerSetupImpl) line: 128    
            EntityManagerSetupImpl.getMetamodel() line: 2209    
            EntityManagerSetupImpl.deploy(ClassLoader, Map) line: 413    
            EntityManagerFactoryImpl.getServerSession() line: 185    
            EntityManagerFactoryImpl.getMetamodel() line: 531    
            DDLGenerationClient.initialize(String) line: 137    
            DDLGenerationClient.doQuery() line: 453    
            DDLGenerationClient.main(String[]) line: 444    
Descriptors map is empty - we need to warn the user about this 
this    MetamodelImpl  (id=37)    
    session    ServerSession  (id=40)    
        descriptors    HashMap<K,V>  (id=61)    
            size    0    
2) Change the IAE for a single missing entity to suggest that the entity class may not have been found or specified (it may be on purpose) 
Security note: A search for a non-existent entity class may come through a user-generated query and may be a way of testing the system for hidden classes 
- we may want to not print the name 
The error message needs to change from 
The type [null] is not the expected [EntityType] for the key class [class org.eclipse.persistence.example.jpa.server.business.Cell].
to something like 
No [EntityType] was found for the key class [class org.eclipse.persistence.example.distributed.collatz.model.UnitOfWork] in the Metamodel 
- please verify that the Entity class was referenced in persistence.xml using a specific
<class>org.eclipse.persistence.example.distributed.collatz.model.UnitOfWork</class>
property or a global <exclude-unlisted-classes>false</exclude-unlisted-classes> element.


Just a note that the fix for 338837 will be to help the user figure out why they are missing entity classes during deployment (they were not found) - by adding more warnings only.  The search path for entities will still be user or EJB-container (in the case of Java EE 5) controlled.
The user may wish to split entities among persistence units - this is why control is at the user level and where we do not want the API to pick up everything (unless specified) - however it is the cause of this unfortunate situation where you attempt to use something that is not known.
In the words of a certain public figure "it is unfortunate that we don't know what we don't know"

see related
http://www.netbeans.com/projects/javaee/lists/issues/archive/2010-02/message/627
http://netbeans.org/bugzilla/show_bug.cgi?id=181068
http://stackoverflow.com/questions/3559691/jsf-crud-application-and-entities/5185057#5185057
http://netbeans.org/bugzilla/show_bug.cgi?id=180810
http://old.nabble.com/Re%3A-problem-with-criteria-The-type--null--is-not-the-expected--EntityType--for-the-key-class--class-br.com.thinkit.db.Ativos----try-upgrade-past-8141.-p30219742.html
http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg05508.html
http://forums.devshed.com/java-help-9/jpa-controller-not-work-in-ejb-706551.html
not http://forum.springsource.org/archive/index.php/t-32323.html
http://comments.gmane.org/gmane.comp.java.tynamo.user/173
http://forums.netbeans.org/post-90076.html
http://netbeans.org/bugzilla/show_bug.cgi?id=191936

Michael O'Brien
http://www.eclipselink.org