Community
Participate
Working Groups
Build Identifier: 3.6.0.v20100427 With the Installed JRE's VM arg set to "-ae" and running in debug, I received consistent errors connecting to DTP database connections and trying to open the DB and view catalogs and other details. Reproducible: Always Steps to Reproduce: 1. Set Installed JRE's VM arg set to "-ae" 2. Create DTP connection 3. Try expanding DB connection tree
Created attachment 175987 [details] stack trace
Quick correction - it's actually "-ea" not "-ae"
Discovered some weird stuff while trying to help Barry with this... With that flag on, it chokes big time on asserts. The one that it's barfing on here is: assert (catalogObject instanceof Catalog); And in the case of many of the loader overrides, we're passing a null through to the constructor - and that in turn is causing the breakage. If I change the assert to: assert (catalogObject != null && catalogObject instanceof Catalog); I get the same thing. So the best I can figure, we'd need to add an if: if (catalogObject != null) { assert (catalogObject instanceof Catalog); } When I do that, the assert error cascades to... the Ingres Table loader... So I'm guessing we'd need to search for any/all overrides to see where we're passing the null object and secure it.
Created attachment 175990 [details] Patch This patch seems to do the trick - basically it inserts a "check for null" in before it asserts that the object is an ICatalogObject. It seems to happen in every overloadable catalog loader, so the patch addresses it in each loader.
Brian P and/or Linda, can you guys check to make sure that this works ok? Seems to work fine with Derby, but I don't have any other databases available here at RH...
Hi Fitz, I applied the patch and connected to DB2 for LUW, DB2 for zOS, and Oracle databases, and I didn't see any problems when I expanded the DSE tree for those DBs.
Thanks Brian P! I'll go ahead and deliver the fix for the next go-round of 1.8.1 builds.
Delivered to o.e.d.c.sqm.core as tag v201008120113