I'm trying to convert an OTrunkModel by creating an OTrunkCurnit and first
trying to retrieve the view entries. I'm doing so by performing the code
below

            OTrunkCurnit curnit = new OTrunkCurnit(otrunkURL);
            curnit.setAuthoring(true);
            curnit.initialize();

            OTrunkImpl otrunk = new OTrunkImpl(curnit.getOTDatabase());
            OTSystem otSystem = otrunk.getSystem();
            OTObjectList otObjectList = otSystem.getBundles();
            Vector bundles = otObjectList.getVector();

but the bundles is completely empty which may be caused by the fact that
when I call curnit.initialize() I receive several errors. I was hoping that
you could help me resolve these errors which will allow me to retrieve the
view entries. Here are the errors


Error #1
Can't find local id: model_id_1

I receive this error even though <object refid="${model_id_1}"/> is found
within the otml file



Error #2
No service could be found to handle the
 requirement of: class org.concord.sensor.state.OTInterfaceManager
 for: interface org.concord.framework.text.UserMessageHandler
java.lang.NullPointerException
    at
org.concord.otrunk.OTObjectServiceImpl.loadOTObject(OTObjectServiceImpl.java:201)
    at
org.concord.otrunk.OTObjectServiceImpl.getOTObject(OTObjectServiceImpl.java:163)
    at
org.concord.otrunk.OTObjectInternal.getOTObject(OTObjectInternal.java:248)
    at
org.concord.otrunk.OTObjectListImpl.getVector(OTObjectListImpl.java:104)
    at org.concord.otrunk.OTrunkImpl.<init>(OTrunkImpl.java:178)
    at org.concord.otrunk.OTrunkImpl.<init>(OTrunkImpl.java:111)
    at
org.telscenter.sailotrunk.OTrunkCurnit.initialize(OTrunkCurnit.java:118)

I receive this error which leads to a NullPointerException even though I
have the projects sensor and framework in my classpath.



I have attached the otml file for your reference.

Thanks,
Geoff


On Thu, Apr 3, 2008 at 12:48 PM, Scott Cytacki <[EMAIL PROTECTED]> wrote:

>
> The model views are basically the same as what you've seen in the
> datagraph, drawing.  In addition to the view bundle they have some extra
> bundles that setup the script engine and the sensor device service.
>
> Yes, you could add all these things to your "empty" otml, that is
> probably the most simple way to start.  You just need to look at the
> otml used by one of these model steps and cut and past the views and
> bundles.
>
> It would be a better if you only added them as they are needed.    This
> would require loading in the otml for the model step and then getting
> the views and bundles out of it and merging them into your "empty" otml
> file.
>
> Scott
>
> Anthony Perritano wrote:
> > One of the things we want to do is take some our existing wise
> > projects like Airbags, Global Warming, etc... and convert them to otml
> > so we can edit them in the authoring tool. Geoff and I started work on
> > that today. Our plan is to load in an empty otml file in a new
> > OTrunkProjectConverter(part of the Wise Converter Project) with
> > imports and view definitions defined and add beans to the root as the
> > wise2 converted xml is transversed. then save it.
> >
> > one of the main questions is: what about the models? and the views
> > that are necessary for those. will we beable to put in all definitions
> > for views in our empty otml so that any project with a model with be
> > authorable and runnable? or do we have to hand code those on a case by
> > case bases? how are the model views different than the datagrah,
> > drawing, etc.. views that we have seen so far?
> >
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SAIL-Dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/SAIL-Dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Attachment: model.otml
Description: XML document

Reply via email to