on 08-13-2008 9:43 AM
Hi All,
I am desperate. I keep receiving the following error message:
java.lang.IllegalArgumentException: Must not add role listener with role null
at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.registerRoleListener(DynamicRFCModelClass.java:1395)
at com.sap.tc.webdynpro.progmodel.context.RelationElementList.<init>(ElementList.java:1871)
at com.sap.tc.webdynpro.progmodel.context.DataNode.createRelationElementList(DataNode.java:201)
at com.sap.tc.webdynpro.progmodel.context.DataNode.doSetElements(DataNode.java:180)
at com.sap.tc.webdynpro.progmodel.context.Node.setElements(Node.java:318)
... 127 more
I have done 2 things since then:
1. I reimported the model
2. I refactor->renamed some methods
I guess it is the following line of code that causes the exception:
wdContext.currentZ_Read_Infoobject_InputElement().modelObject().execute();
Anyway, I have no clue where the comes from.
Any anybody give me a hint??
THANKS, Johannes
Hi Johannes Schnatz ,
Don't rename the methods which are defined by system. If the methods created by are renamed , then no problem. I think there might be some methods changes in Component Controler which reflects the cause.
Since the View Controler is accessing the same method which was there before , it is unable to find that method and giving execption.
Thanks
Suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I did not make changes to the Component Controller (actually I am using a Custom Controller). It appears that the exception is thown executing this line of code:
wdContext.currentZ_Read_Infoobject_InputElement().modelObject().execute();
So, I guess its a problem related to the model reimport...
Any ideas?
Thanks, Johannes
Hi Johannes Schnatz,
I think you might be addes some more classes ( BABI's) when u reimport the model. In that case u need to add the corresponding model in the Componenent Controler.
Just add that class in wDinit() Method. There might be alrady one model class available. u need to add the the one that u have added when u reimport time.
points if useful
Thanks
Suresh
Hi All,
It may have something to do with AdaptiveRFC Model Metadata not being refreshed after the re-import. Server restart obviously causes the metadata to be re-read anew and thus resolves the issue.
If that is correct then the Metadata Cache has to be invalidated. The procedure for NWCE is described here:
[http://help.sap.com/saphelp_nwce10/helpdata/en/46/a81a68e0933ef0e10000000a1553f7/frameset.htm|http://help.sap.com/saphelp_nwce10/helpdata/en/46/a81a68e0933ef0e10000000a1553f7/frameset.htm]
Cheers!
Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am having the same issue. Restarting the J2ee server fixes the issue everytime, but can anyone explain why this is happening. I would prefer not to restart the j2ee server as there are other teams and applications running in the environment. It seems like this might be a cache issue. Is there are way to clear the cache that would resolve this with out boucning the server?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.