It's all about the answers!

Ask a question

While opening the Asset Null pointer exception is throwing?


iRAM Administrator (3152146135) | asked Aug 13 '10, 9:08 a.m.
Team,
One of my user submitted an Asset couple of months back using his intranet id. Again now recently while browsing the iRAM home page he re-registered again so another duplicate entry updated and submitted an another Asset. Now the problem is he is not able to modify his first asset due to that asset must be hold in old id. So I deleted his old id from iRAM DB.

Now the problem is while trying to open that particular Asset Null pointer Exception is throwing due to none other submitter is not mapping into that particular asset. How to retrieve that Asset. Do we have any other alternate way to retrieve using any other data. I had Asset ID.

One answer



permanent link
Rich Kulp (3.6k38) | answered Aug 16 '10, 3:00 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
On 8/13/2010 9:23 AM, iraadminJazz wrote:
Team,
One of my user submitted an Asset couple of months back using his
intranet id. Again now recently while browsing the iRAM home page he
re-registered again so another duplicate entry updated and submitted
an another Asset. Now the problem is he is not able to modify his
first asset due to that asset must be hold in old id. So I deleted
his old id from iRAM DB.

Now the problem is while trying to open that particular Asset Null
pointer Exception is throwing due to none other submitter is not
mapping into that particular asset. How to retrieve that Asset. Do we
have any other alternate way to retrieve using any other data. I had
Asset ID.

Don't EVER, EVER add/update/delete anything directly in the database.

These things are all interconnected. RAM and only RAM itself controls
the database.

The code doesn't expect a user to be just deleted so it doesn't handle
such a situation since it should never occur.

What should of been done is the repo admin should of logged in and just
did a change owner on the asset to the new user id.

I don't have a fix other than to restore the user database record that
was deleted. You need to know the exact database id number of the user
you deleted. Nothing else will work.

Rich

Your answer


Register or to post your answer.