I'm in the process of debugging and testing marshalling/unmarshalling of
curnits for ucwise2.

All was well until I tried to execute the following Assignment on a parent
Pod:

        // parentNode's children reference
        String leftName = "importNode" + childIndex;
        PropertyRef pr = new IndexedPropertyRef(parentNode, "children",
childIndex);
        parentPod.bind(leftName, pr, true); // isTransient==true
        PodVarDelegate podIn = new
PodVarDelegate(parentPod.getPodId(),leftName);

        // childNode's reference
        String rightName = "node";
        PodVarDelegate podOut = new PodVarDelegate(childPod.getPodId(),
rightName);
        SimpleContainer sc = new SimpleContainer();
        sc.setValue(childNode);
        childPod.bind(rightName, sc.getPropertyRef(), false); //
isTransient==false

        Assignment assignment = new Assignment(podIn, podOut);


The goal of the Assignment is to use IndexedPropertyRef to be populated with
LearnerSteps after the Assignment is executed.  After running the above,
every variable looked correct through the debugger:
parentPod.resolve(leftName)
gave an empty ArrayList, and childPod.resolve(rightName) returns the
LearnerStep.  However, when I try to call execute() on the assignment, I get
an IndexOutOfBoundsException from PropertyUtils.setIndexedProperty(bean,
name, index, value);  The problem happens when trying to set parentNode's
children property at index 0 to a value on the empty ArrayList.  I looked
back to how PAS handles marshalling of Projects/Activities/Steps, and can't
see that I've done any thing different.

My maven problem is I can't run anything in either sail-core nor PLR.  I
wanted to step through assignment executions, but any attempts to run either
a unittest or a Java main method results in either:

"An internal error occurred during: Launching..." (with no details)

or

"variable references unavailable resource: ${proj_loc: jdic_....}" (I can't
reproduce this error again)

I ran mvn compile and mvn install, in both sail-core and also in PLR.  Jars
were downloaded, but there were many warnings about not reaching some
repositories.

Both the projects compile without errors in the Eclipse workspace, maven
runs and downloads, but there are many warnings.

Jerry

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to