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 255190

Summary: IllegalArgumentException: aType == null
Product: javaee Reporter: Exceptions Reporter <exceptions_reporter>
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 219863
Attachments: stacktrace

Description Exceptions Reporter 2015-09-10 16:52:25 UTC
This bug was originally marked as duplicate of bug 192609, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.1 Beta (Build 201508041349)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27
OS: Linux

User Comments:
GUEST: I tried to add a Entity from DB Postgres




Stacktrace: 
java.lang.IllegalArgumentException: aType == null
   at org.netbeans.modules.j2ee.persistence.entitygenerator.EntityMember.setMemberType(EntityMember.java:253)
   at org.netbeans.modules.j2ee.persistence.entitygenerator.DbSchemaEntityMember.setPrimaryKey(DbSchemaEntityMember.java:127)
   at org.netbeans.modules.j2ee.persistence.entitygenerator.DbSchemaEjbGenerator.generatePkField(DbSchemaEjbGenerator.java:485)
   at org.netbeans.modules.j2ee.persistence.entitygenerator.DbSchemaEjbGenerator.buildCMPSet(DbSchemaEjbGenerator.java:591)
   at org.netbeans.modules.j2ee.persistence.entitygenerator.DbSchemaEjbGenerator.<init>(DbSchemaEjbGenerator.java:117)
   at org.netbeans.modules.j2ee.persistence.wizard.fromdb.RelatedCMPHelper.buildBeans(RelatedCMPHelper.java:368)
Comment 1 Exceptions Reporter 2015-09-10 16:52:27 UTC
Created attachment 156068 [details]
stacktrace
Comment 2 Petr Hejl 2015-09-14 09:51:45 UTC
Can you share relevant DB schema or steps to reproduce? What jdbc driver do you use?
Comment 3 golmatt 2017-09-12 14:53:05 UTC
The problem is present in Netbeans version 8.2 also.
My DBMS is Sybase Anywhere 17.
In my case it does when include on wizard a table with Primary Key of type UNIQUEIDENTIFIER (guid).