While opening the Asset Null pointer exception is throwing?
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 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
On 8/13/2010 9:23 AM, iraadminJazz wrote:
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
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