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 179122 - IllegalArgumentException: aType == null
Summary: IllegalArgumentException: aType == null
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: DB schema (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-30 05:06 UTC by jimbojimbo23
Modified: 2010-01-12 07:33 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 164005


Attachments
stacktrace (1.35 KB, text/plain)
2009-12-30 05:06 UTC, jimbojimbo23
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jimbojimbo23 2009-12-30 05:06:25 UTC
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)
Comment 1 jimbojimbo23 2009-12-30 05:06:29 UTC
Created attachment 93007 [details]
stacktrace
Comment 2 Sergey Petrov 2010-01-11 01:02:52 UTC
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?
Comment 3 jimbojimbo23 2010-01-12 07:33:08 UTC
(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.