IBM Support

IC70425: NULLREFERENCEEXCEPTION RETURNED WITH .NET ENTITY PROVIDER WITH V9.7 FP2

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Entity Data Model (EDM) generation from command line tools such
    as EdmGen.exe may fail with a NullReferenceException: "Object
    reference not set to an instance of an object" if the Entity
    provider is from DB2 v9.7 FP2 (IBM.Data.DB2.Entity).
    The EDM generation from EDM wizard will still work fine with
    this provider.
    
    This can be reproduced using the .NET Framework SDK utility
    called EdmGen.exe using a DB2 Connection string.
    
    The problem does not occur with either the DB2 v9.7 GA or DB2
    v9.7 FP1 .NET Entity providers.
    
    
    
    The full exception call stack will look like this:
    
    -----
    IBM.Data.DB2.Entity.dll!IBM.Data.DB2.Entity.DB2ProviderManifest.
    GetTableType(string
    TableTypesFilter = null,
    IBM.Data.DB2.Entity.DB2ProviderManifest.DbServerType dbs = LUW)
    + 0x87 bytes
    
    IBM.Data.DB2.Entity.dll!IBM.Data.DB2.Entity.DB2ProviderManifest.
    GetXmlResource(string
    resourceName =
    "IBM.Data.DB2.Entity.DB2StoreSchemaDefinitionForLUW.ssdl",
    IBM.Data.DB2.Entity.DB2ProviderManifest.DbServerType dbs = LUW)
    + 0x199 bytes
    
    IBM.Data.DB2.Entity.dll!IBM.Data.DB2.Entity.DB2ProviderManifest.
    a()
    + 0x106 bytes
    
    IBM.Data.DB2.Entity.dll!IBM.Data.DB2.Entity.DB2ProviderManifest.
    GetDbInformation(string
    informationType = "StoreSchemaDefinition") + 0x55 bytes
    
    System.Data.Entity.dll!System.Data.Common.DbProviderManifest.Get
    Information(string
    informationType = "StoreSchemaDefinition") Line 142 + 0x8 bytes
    C#
    
    System.Data.Entity.Design.dll!System.Data.Entity.Design.EntitySt
    oreSchemaGenerator.GetProviderSchemaMetadataWorkspace(System.Dat
    a.Common.DbProviderServices
    providerServices, System.Data.Common.DbConnection
    providerConnection = {IBM.Data.DB2.DB2Connection}) Line 299 +
    0x21 bytes          C#
    
    System.Data.Entity.Design.dll!System.Data.Entity.Design.EntitySt
    oreSchemaGenerator.CreateStoreSchemaConnection(string
    providerInvariantName, string connectionString) Line 277 + 0x9
    bytes    C#
    
    System.Data.Entity.Design.dll!System.Data.Entity.Design.EntitySt
    oreSchemaGenerator.EntityStoreSchemaGenerator(string
    providerInvariantName, string connectionString, string
    namespaceName) Line 63 + 0x1e bytes  C#
    
    EdmGen.exe!System.Data.Entity.Design.EdmExe.EdmGen.GenerateSsdl(
    )
    Line 221 + 0x50 bytes             C#
    
    EdmGen.exe!System.Data.Entity.Design.EdmExe.EdmGen.DoFullGenerat
    ion()
    Line 135 + 0x6 bytes       C#
    
    EdmGen.exe!System.Data.Entity.Design.EdmExe.EdmGen.Main(string[]
    args = {string[4]}) Line 347 + 0x6 bytes                C#
    -----
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Entity Data Model (EDM) generation from command line tools   *
    * such as EdmGen.exe may fail with a NullReferenceException:   *
    * "Object reference not set to an instance of an object" if    *
    * the Entity provider is from DB2 v9.7 FP2                     *
    * (IBM.Data.DB2.Entity).                                       *
    *                                                              *
    * The EDM generation from EDM wizard will still work fine with *
    * this provider.                                               *
    *                                                              *
    * This can be reproduced using the .NET Framework SDK utility  *
    * called EdmGen.exe using a DB2 Connection string.             *
    *                                                              *
    * The problem does not occur with either the DB2 v9.7 GA or    *
    * DB2 v9.7 FP1 .NET Entity providers.                          *
    *                                                              *
    *                                                              *
    * The exception call stack will look like this:                *
    * -----                                                        *
    *                                                              *
    * IBM.Data.DB2.Entity.dll!IBM.Data.DB2.Entity.DB2ProviderManifes
    * TableTypesFilter = null,                                     *
    * IBM.Data.DB2.Entity.DB2ProviderManifest.DbServerType dbs =   *
    * LUW) + 0x87 bytes                                            *
    *                                                              *
    *                                                              *
    * IBM.Data.DB2.Entity.dll!IBM.Data.DB2.Entity.DB2ProviderManifes
    * resourceName =                                               *
    * "IBM.Data.DB2.Entity.DB2StoreSchemaDefinitionForLUW.ssdl",   *
    * IBM.Data.DB2.Entity.DB2ProviderManifest.DbServerType dbs =   *
    * UW) + 0x199 bytes                                            *
    *                                                              *
    * IBM.Data.DB2.Entity.dll!IBM.Data.DB2.Entity.DB2ProviderManifes
    * + 0x106 bytes                                                *
    *                                                              *
    * IBM.Data.DB2.Entity.dll!IBM.Data.DB2.Entity.DB2ProviderManifes
    * informationType = "StoreSchemaDefinition") + 0x55 bytes      *
    *                                                              *
    * System.Data.Entity.dll!System.Data.Common.DbProviderManifest.G
    * informationType = "StoreSchemaDefinition") Line 142 + 0x8    *
    * bytes                                                        *
    * -----                                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 LUW v9.7 Fixpak 3a                            *
    ****************************************************************
    

Problem conclusion

  • Problem was first fixed in Version 9.7 Fix Pack 3a
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC70425

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-08-05

  • Closed date

    2010-11-08

  • Last modified date

    2010-11-08

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSN

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.7

Reference #: IC70425

Modified date: 08 November 2010