For time being i found one solution for this problem.
1.I just exit the current workspace.
2.Switch to temp workspace for example E:/temp
3.created a sample portlet factory project.
4.Then switch back to my working workspace and open the model file.then it doesnt show the exception and will open fine.
I dont know the reason for this but this solution may save your time when needed. Thanks