Knowledge Partner
Knowledge Partner
188 views

Funny error...

Ok, this is an interesting edge case, that takes a bit of work to
trigger, but is pretty funny if you get there.

If you are using Designer 4.02 AU4 that supports the new 4.0.2.3 feature
of two new policy sets for Startup and Shutdown and you never do the
Properties of the IDVault, Server tab, edit the server, click the get
current status, it seems like it will assume it is a 4.0.2.3 engine, and
thus supports the new policy sets.

It will then allow you to deploy settings using those values.

But the engine is NOT amused, and you get this error:

DirXML Log Event -------------------
Driver: \FDU-IDV\fdu\idm\DriverSet\Active Directory Driver
Status: Error
Message: Code(-9010) An exception occurred:
java.lang.ArrayIndexOutOfBoundsException: 15
at
com.novell.nds.dirxml.engine.ConfigAbstraction.loadPolicyList(ConfigAbstraction.java:4281)
at
com.novell.nds.dirxml.engine.ConfigAbstraction.getPolicyList(ConfigAbstraction.java:4248)
at
com.novell.nds.dirxml.engine.Driver.initializeScripting(Driver.java:1828)
at com.novell.nds.dirxml.engine.Driver.startShim(Driver.java:1363)
at com.novell.nds.dirxml.engine.Driver.initialize(Driver.java:264)
at com.novell.nds.dirxml.engine.Driver.<init>(Driver.java:236)
at
com.novell.nds.dirxml.engine.DriverEntry.run(DriverEntry.java:551)
at java.lang.Thread.run(Unknown Source)


java.lang.ArrayIndexOutOfBoundsException: 15

15? Why 15? Well, it turns out that the Startup and shutdown policy
sets got the numbers 15 and 16.

Check out:
https://www.netiq.com/communities/cool-solutions/talking-about-dirxml-policies-attributes/

Turns out DirXML-Policies is a Typed Name attr, which means a DN, then
two integers. (Of course the DN is really an integer under the covers).

The DN is the object to be linked. One of the integers is the numerical
value of the policy set. The second integer is its ordering within the
policy set.

Currently the defined values for the policy set are (from that article):
0 Schema Map
1 Input Transform
2 Output Transform
3 ECMA Script Object
4 Sub Event Transform
5 Pub Event Transform
6 Sub Match
7 Pub Match
8 Sub Create
9 Pub Create
10 Sub Command Transform
11 Pub Command Transform
12 Sub Placement
13 Pub Placement
14 GCV Objects

So that is why 15 is out of bounds.

So this is a pretty funny error, that you have to work pretty hard to
get into...

Now it turns out, I had a package that used these policy sets I was
playing with, and then I triggered the real bug.

I removed the package with the linkages but I had first clicked the
Version update button and now Designer knew this was a 4.0.2 patch 0
system, and just removing the package and deploying did not update the
DirXML-Policies to remove the incorrect values (actually the removed
values).

And then there is no way to fix it in Designer. Because you cannot tell
Designer the IDM version is 4.0.2.3 and it appears they nicely filtered
the option to manage the 15/16 options if the vault is anything less.

(If you need to fix it, use an LDAP browser and edit the DirXML-Policies
attribute, and kill all references that have 15 or 16 in them).

But kind of a funny bug, that takes a fair bit of work to trigger.
Labels (1)
0 Likes
6 Replies
Knowledge Partner
Knowledge Partner

Re: Funny error...

Geoffrey Carman wrote:

> java.lang.ArrayIndexOutOfBoundsException: 15
>
> 15? Why 15? Well, it turns out that the Startup and shutdown policy sets got
> the numbers 15 and 16.


Ran into the same error when deploying package based configs (that include GCV
resources) to 3.6x IDVs. It was 14 then, and I had to rebuild the packages to
use standard driver/driverset GCVs instead...

> And then there is no way to fix it in Designer. Because you cannot tell
> Designer the IDM version is 4.0.2.3 and it appears they nicely filtered the
> option to manage the 15/16 options if the vault is anything less.


Would be nicer if the engine would throw some meaningful error message, or
Designer placed a minimum-required version stamp on each driver object, so the
engine can verify it's up to the job.

But then you're right, it's just

> kind of a funny bug, that takes a fair bit of work to trigger.


--
______________________________________________________________________
http://www.is4it.de/en/solutions/identity-access-management

(If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below...)
______________________________________________
https://www.is4it.de/identity-access-management
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Funny error...

On 11/15/2013 2:41 AM, Lothar Haeger wrote:
> But then you're right, it's just
>
>> >kind of a funny bug, that takes a fair bit of work to trigger.


I believe Geoff just likes poking the bears with sticks to see if they will maul him......

--
-----------------------------------------------------------------------
Will Schneider
Knowledge Associate http://forums.netiq.com

If you find this post helpful, please click on the star below.
0 Likes
Knowledge Partner
Knowledge Partner

Re: Funny error...

On 11/15/2013 12:11 PM, Will Schneider wrote:
> On 11/15/2013 2:41 AM, Lothar Haeger wrote:
>> But then you're right, it's just
>>
>>> >kind of a funny bug, that takes a fair bit of work to trigger.

>
> I believe Geoff just likes poking the bears with sticks to see if they
> will maul him......


I am Canadian. Our bears are a lot bigger than your bears, so no, thank
you.

I like trying stuff to see where it breaks.

0 Likes
Knowledge Partner
Knowledge Partner

Re: Funny error...

On 11/15/2013 1:12 PM, Geoffrey Carman wrote:
> On 11/15/2013 12:11 PM, Will Schneider wrote:
>> On 11/15/2013 2:41 AM, Lothar Haeger wrote:
>>> But then you're right, it's just
>>>
>>>> >kind of a funny bug, that takes a fair bit of work to trigger.

>>
>> I believe Geoff just likes poking the bears with sticks to see if they
>> will maul him......

>
> I am Canadian. Our bears are a lot bigger than your bears, so no, thank
> you.
>
> I like trying stuff to see where it breaks.


On a side note, you ever see "The Great Outdoors" with John Candy?
There is one scene where they drive in their old woody station wagon to
the garbage dump to watch the bears eat garbage.

I watched that, and started saying "I have done that!" We used to do
that when kids at the cottage. Fun times.

But we never poked the bears. We learned to have a healthy fear of
bears. It is a completely rational fear.

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Funny error...

On 11/15/2013 12:20 PM, Geoffrey Carman wrote:
> It is a completely rational fear.


As is the fear of cats apparently.....


--
-----------------------------------------------------------------------
Will Schneider
Knowledge Associate http://forums.netiq.com

If you find this post helpful, please click on the star below.
0 Likes
Knowledge Partner
Knowledge Partner

Re: Funny error...

On 11/15/2013 3:32 PM, Will Schneider wrote:
> On 11/15/2013 12:20 PM, Geoffrey Carman wrote:
>> It is a completely rational fear.

>
> As is the fear of cats apparently.....


Even paranoids are right sometimes. In my case, the homicidal 8 lb ball
of fur is actively plotting my demise.

I fear her wrath.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.