ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | proactive List | August 2007 Index

<--  Date Index  --> <--  Thread Index  -->

Other questions about N-Queen example


 hi,
     I am the student who have turned to you for the N-queen example
     exception in a previous letter titled "Problems about N-Queen examples" .and I have just solved the former exception.
     Unfortunately,but another Exception raised, I have attached it. The sorce code of the Nqueen example which I downloaded from "http://proactive.inria.fr/nqueen.htm" has not been changed ,and I have attached the nqueen.xml.
     I'am very sure that the rmiregistry has been started in the remote machine. What does the "Notbound Exception" mean? How Can I confirm   that the Node I want to creat in the remote machine is registered? Is there any error in the souce code provided by http://proactive.inria.fr/nqueen.htm
 
Thanks                                                           
                                                                    Zhu Jiangjun
 
-> This ClassFileServer is reading resources from classpath 2010
Created a new registry on port 1099
//localhost/Node-1226343081 successfully bound in registry at //localhost/Node-1226343081
Generating class : pa.stub.manager._StubNQueenManager
Server initialized
************* Reading deployment descriptor: file:descriptor/nqueen.xml ********************
created VirtualNode name=nqueenWorker
**** Starting jvm on localhost
 --> This ClassFileServer is reading resources from classpath 2012
Detected an existing RMI Registry on port 1099
//localhost/nqueenWorker200281659 successfully bound in registry at //localhost/nqueenWorker200281659
**** Mapping VirtualNode nqueenWorker with Node: //localhost/nqueenWorker200281659 done
**** Starting jvm on Localhost
 --> This ClassFileServer is reading resources from classpath 2010
org.objectweb.proactive.core.ProActiveException: NotBound
 at org.objectweb.proactive.core.runtime.rmi.RmiRuntimeFactory.getRemoteRuntimeImpl(RmiRuntimeFactory.java:125)
 at org.objectweb.proactive.core.runtime.RuntimeFactory.getRuntime(RuntimeFactory.java:200)
 at org.objectweb.proactive.core.runtime.StartRuntime.run(StartRuntime.java:144)
 at org.objectweb.proactive.core.runtime.StartRuntime.main(StartRuntime.java:129)
Caused by: java.rmi.NotBoundException: PA_JVM-497846730_localhost
 at sun.rmi.registry.RegistryImpl.lookup(RegistryImpl.java:106)
 at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
 at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:375)
 at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
 at sun.rmi.transport.Transport$1.run(Transport.java:153)
 at java.security.AccessController.doPrivileged(Native Method)
 at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
 at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
 at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
 at java.lang.Thread.run(Thread.java:595)
 at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
 at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
 at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
 at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
 at java.rmi.Naming.lookup(Naming.java:84)
 at org.objectweb.proactive.core.runtime.rmi.RmiRuntimeFactory.getRemoteRuntimeImpl(RmiRuntimeFactory.java:119)
 ... 3 more
Process finished Thread=ERR -> ssh test /home/houyi
Process finished Thread=IN -> ssh test /home/houyi
After many retries, only 1 nodes are created on 2 expected for Virtual Node "nqueenWorker" in descriptor "file:descriptor/nqueen.xml".
Generating class : pa.stub.worker._StubWorker
//localhost/nqueenWorker200281659 unbound in registry
node nqueenWorker200281659 is being killed, terminating body -6612ba53:11478080f96:-7ff1 11d1def534ea1be0:-6612ba53:11478080f96:-8000
Process finished Thread=IN -> /home/houyi/jdk1.5.0
 Virtual Machine 11d1def534ea1be0:-6612ba53:11478080f96:-8000 on host localhost terminated!!!
Process finished Thread=ERR -> /home/houyi/jd
                    
 



2007 年 最 受 期 待 大 型 网 游 《大 话 西 游 3》震 撼 公 测! 点 此 抢 先 免 费 体 验 >>


2007 年 最 受 期 待 大 型 网 游 《大 话 西 游 3》震 撼 公 测! 点 此 抢 先 免 费 体 验 >>
<?xml version="1.0" encoding="UTF-8"?>
<ProActiveDescriptor xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation="DescriptorSchema.xsd">
	<componentDefinition>
		<virtualNodesDefinition>
			<virtualNode name="nqueenWorker" property="multiple"/>
		</virtualNodesDefinition>
	</componentDefinition>
	<deployment>
		<mapping>
			<map virtualNode="nqueenWorker">
				<jvmSet>
				 <vmName value="Jvm1"/>
					<!--<vmName value="Jvm2"/>-->
					<!--<vmName value="Jvm3"/>-->
					<!--<vmName value="Jvm4"/>-->
					<!--<vmName value="rsh_Jvm"/>-->
					<vmName value="ssh_Jvm"/>
				</jvmSet>
			</map>
		</mapping>
		<jvms>
			<jvm name="Jvm1">
				<creation>
					<processReference refid="localJVM"/>
				</creation>
			</jvm>
			<!--<jvm name="Jvm2">
				<creation>
					<processReference refid="localJVM"/>
				</creation>
			</jvm>-->
			<!--<jvm name="Jvm3">
				<creation>
					<processReference refid="localJVM"/>
				</creation>
			</jvm>-->
			<!--<jvm name="Jvm4">
				<creation>
					<processReference refid="localJVM"/>
				</creation>
			</jvm>-->
			<!--Example to use rsh  -->
			<!--<jvm name="rsh_Jvm">
				<creation>
					<processReference refid="rshProcess"/>
				</creation>
			</jvm>-->
			<!--Example to use ssh  -->
			<jvm name="ssh_Jvm">
				<creation>
					<processReference refid="sshProcess"/>
				</creation>
			</jvm>
		</jvms>
	</deployment>
	<infrastructure>
		<processes>
			<processDefinition id="localJVM">
				<jvmProcess class="org.objectweb.proactive.core.process.JVMNodeProcess">
				<!-- We might need to redefine classpathand other variables if files are not shared 
				<classpath>
						<absolutePath value="/net/home/rquilici/ProActive/classes"/>
						<absolutePath value="/net/home/rquilici/ProActive/lib/asm.jar"/>
						<absolutePath value="/net/home/rquilici/ProActive/lib/log4j-core.jar"/>
						<absolutePath value="/net/home/rquilici/ProActive/lib/fractal.jar"/>
						<absolutePath value="/net/home/rquilici/ProActive/lib/xercesImpl.jar"/>
						<absolutePath value="/net/home/rquilici/ProActive/lib/bouncycastle.jar"/>
					</classpath>
					<javaPath>
						<absolutePath value="/usr/local/jdk1.4.0/bin/java"/>
					</javaPath>
					<policyFile>
						<absolutePath value="/net/home/rquilici/ProActive/scripts/unix/proactive.java.policy"/>
					</policyFile>
					<log4jpropertiesFile>
						<absolutePath value="/net/home/rquilici/ProActive/scripts/unix/proactive-log4j"/>
					</log4jpropertiesFile> -->
				</jvmProcess>
				</processDefinition>
				<!-- Example to show how to use rsh. This process reference the one above, it means that once log on the remote machine with rsh
				the java process is started. If files are not shared, the local process might need to redefine some variables.-->
				<!--<processDefinition id="rshProcess">
				<rshProcess class="org.objectweb.proactive.core.process.rsh.RSHProcess" hostname="wxplugtest">
					<processReference refid="localJVM"/>
				</rshProcess>
			</processDefinition>-->
			<!-- Example to show how to use ssh. This process reference the one above, it means that once log on the remote machine with ssh
				the java process is started. If files are not shared, the local process might need to redefine some variables.-->
			<processDefinition id="sshProcess">
				<sshProcess class="org.objectweb.proactive.core.process.ssh.SSHProcess" hostname="test">
					<processReference refid="localJVM"/>
				</sshProcess>
			</processDefinition>
		</processes>
	</infrastructure>
</ProActiveDescriptor>


<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.