[mdr-users] Lookup problems again

Alexandre Torres <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.mdr.user
Message-ID <[email protected]>
Hi. 
My attempt to run MDR on eclipse was partially successful. I am able
to run a plugin
that reads UML files in the eclipse workbench mode (ie, development
mode), but when I install the plugin in production mode, I get a nasty
lookup problem like that:

java.lang.Error: Unresolved compilation problem: 
	Syntax error on tokens, delete these tokens

	at org.openide.util.lookup.UML13Lookup.<init>(UML13Lookup.java:1)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at java.lang.Class.newInstance0(Unknown Source)
	at java.lang.Class.newInstance(Unknown Source)
	at org.openide.util.Lookup.getDefault(Lookup.java:83)
	at org.netbeans.api.mdr.MDRManager.getDefault(MDRManager.java:53)
	at org.jtri.uml.mdr.xmi1_3.UmlMdrLoader.<clinit>(UmlMdrLoader.java:74)

This is what I done:
- there is a class constructor on UmlMdrLoader that set the class
loader to the UML13Lookup class:

    static 
    {
        // configure MDR to use an in-memory storage implementation
        System.setProperty(
            "org.netbeans.mdr.storagemodel.StorageFactoryClassName",
            "org.netbeans.mdr.persistence.memoryimpl.StorageFactoryImpl");
        // set the logging so output does not go to standard out
        System.setProperty("org.netbeans.lib.jmi.Logger.fileName", "mdr.log");
        // from ATL
        System.setProperty("org.openide.util.Lookup",
"org.openide.util.lookup.UML14Lookup");
        Thread.currentThread().setContextClassLoader(org.openide.util.lookup.UML14Lookup.class.getClassLoader());
        MDRepository rep= MDRManager.getDefault().getDefaultRepository();
        XmiReader r= (XmiReader)Lookup.getDefault().lookup(XmiReader.class);

    }

- The UML13Lookup class is just the same as the ATL's lookup project.
The constructor is inherited
-It's  JDK 1.4.x

What is the token error ?
By the way, is there a zip with mdr's source ?

Thanks!
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.