Dear All,
i have been tugging my hair out for 3 days and i cant find the problem !!! im writing a code in Aglets, i have to classes, Master and SayItAglet
Master.Java
package simple;
import com.ibm.aglet.*;
import java.net.*;
public class Master extends Aglet
{
private AgletContext thisContext = null;
private AgletProxy sayItAgletRemoteProxy = null;
private AgletProxy sayItAgletLocalProxy = null;
private AgletProxy hearItAgletLocalProxy = null;
public void onCreation(Object init)
{
try
{
thisContext = getAgletContext();
sayItAgletLocalProxy = thisContext.createAglet(null,"simple.SayItAglet",null);
sayItAgletRemoteProxy = sayItAgletLocalProxy.dispatch(newURL("atp://Y430:2000"));
}
catch (Exception e)
{
System.err.println("various possible exceptions");
}
} // end creation
}// end class
SayItAglet.Java
package simple;
import com.ibm.aglet.*;
import com.ibm.aglet.event.*;
public class SayItAglet extends Aglet implements MobilityListener
{
[B] // private String [] msg = new String[2] ;[/B]
private AgletContext remoteContext;
private String StringProxy;
private AgletProxy aHomeProxy;
public void onCreation(Object init)
{
try{addMobilityListener(this);}
catch (Exception e)
{
System.err.println("various possible exceptions");
}
}
public void onArrival (MobilityEvent mev)
{
System.out.println("I have arrivedddddddddddddddddddddddddddddddddddddddddd safely");
}
public void onDispatching(MobilityEvent mev) {}
public void onReverting(MobilityEvent mev) {}
}// end class
this runs very well, and the child gets dispatched to the specified server, HOWEVER, when i DE-COMMENT the "private String [] msg = new String[2] " line, it compiles normally but the child DOES NOT get dispatched and i get the following error :
Dispatch: fail to dispatch simple.SayItAglet to atp://Y430:2000, integrity = DIGEST, Confidentiality=SHORTSECRETKEY, timeout=0
when i comment that line, things go very well, but when i leave it, things get messed up, PLEASE HELP !!!!!!