Re: [mdr-users] getExtent fails when repository is passed to another class

Martin Matula <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.mdr.user
Message-ID <[email protected]>
That's really weird. Aren't you using a static field for storing the 
extent name? If so, have you changed the value of the constant recently? 
If so, you probably did not rebuild your "new" class (the class where 
getExtent() does not work). That could be the problem, since values of 
static constants are compiled into the classfile of each class that uses 
that constant, so, your class may possibly be looking for an extent of a 
different name.
That is the only idea I have...
Martin

SainTiss wrote:

>Hi,
>
>Is there a reason why getExtent(String) would return null if the repository is passed to a different class than where it was initialized?
>
>if I list all extent names in the new class, the extent is indeed listed, but when I try to get it, I get null.
>
>If I put the same code in the same class where the repository was initialized, everything works.
>If I pass the result from getExtent to a different class, I can handle it as expected. Just the getExtent() method does not seem to work correctly there...
>
>I tried all combinations of transactions, including no transaction usage, but to no avail...
>
>Thanks,
>
>Hans
>  
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.