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.
This bug was originally marked as duplicate of bug 168637, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE 6.8 Beta (Build 200910212001) VM: Java HotSpot(TM) Client VM, 14.3-b01, Java(TM) SE Runtime Environment, 1.6.0_17-b04 OS: Windows XP, 5.1, x86 User Comments: jrhall3: Trying to generate an "Entity bean from database" for a table in a SQLSERVER database jimbojimbo23: When attempting to create an Enterprise Entity from database recieved the error.Tried the same process with 6.7 Netbeans and it worked. Stacktrace: java.lang.IllegalArgumentException: aType == null at org.netbeans.modules.j2ee.persistence.entitygenerator.EntityMember.setMemberType(EntityMember.java:249) at org.netbeans.modules.j2ee.persistence.entitygenerator.DbSchemaEntityMember.setPrimaryKey(DbSchemaEntityMember.java:124) at org.netbeans.modules.j2ee.persistence.entitygenerator.DbSchemaEjbGenerator.generatePkField(DbSchemaEjbGenerator.java:412) at org.netbeans.modules.j2ee.persistence.entitygenerator.DbSchemaEjbGenerator.buildCMPSet(DbSchemaEjbGenerator.java:501) at org.netbeans.modules.j2ee.persistence.entitygenerator.DbSchemaEjbGenerator.<init>(DbSchemaEjbGenerator.java:100) at org.netbeans.modules.j2ee.persistence.wizard.fromdb.RelatedCMPHelper.buildBeans(RelatedCMPHelper.java:310)
Created attachment 93007 [details] stacktrace
As it's a duplicate of closed issue, in my opinion it may have the same reason or it's not an issue if database isn't supported in 6.8. Not sure if there was any changes in supplied jdbc drivers between 6.7 and 6.8 but if any it may affect this one too. can anybody provide db name/version, db schema and jdbc driver version if it's not bundled with nb?
(In reply to comment #2) > As it's a duplicate of closed issue, in my opinion it may have the same reason > or it's not an issue if database isn't supported in 6.8. Not sure if there was > any changes in supplied jdbc drivers between 6.7 and 6.8 but if any it may > affect this one too. > can anybody provide db name/version, db schema and jdbc driver version if it's > not bundled with nb? I am using PostgreSQL 8.4. It is most likely not an issue with Netbeans. After upgrading from beta to 6.8 and shutting down anti-virus software I was able to successfully create the Entity Class from Database. I consider this closed.