ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | proactive List | May 2005 Index

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

Re: FW: [Fwd: Re: [Fwd: Re: [Fwd: [proactive] P2P question]]]



--- Begin Message ---
Hi Romain,
 Currently I am also trying to run the simulation over two machines through
ssh. Both machines run on XP. I have managed to setup ssh by using OpenSSH,
but now when I try to run the simulation the following errors are generated
(see below).
 So what is this "//130.130.88.119/PA_JVM134
7972791_130.130.88.119 1 ssh_jvm Jvm2 error=2
        at java.lang.Win32Process.create(Native Method)
        at java.lang.Win32Process.<init>(Win32Process.java:66)" referring
to?

Thanks,

Lee

C:\Lee\PhD\Distributed_Java>SET PATH=C:\j2sdk1.4.2_04\bin;

C:\Lee\PhD\Distributed_Java>java
-Djava.security.policy=proactive.java.policy pr
.p_media.p2p.simulation.P2PSimulator
 --> This ClassFileServer is reading resources from classpath
Jini disabled
Ibis disabled
Created a new registry on port 1099
************* Reading deployment descriptor:
file:P2PSimulation_ProActive_Deploy
ment_File.xml ********************
created VirtualNode name=Dispatcher
java.io.IOException: CreateProcess: ssh 130.130.88.216
C:/j2sdk1.4.2_04/bin/java
 -Dproactive.jobid=JOB-1347972791 -cp
C:/Lee/PhD/Distributed_Java/ProActive/ProA
ctive.jar;C:/Lee/PhD/Distributed_Java/ProActive/lib/asm.jar;C:/Lee/PhD/Distr
ibut
ed_Java/ProActive/lib/log4j.jar;C:/Lee/PhD/Distributed_Java/ProActive/lib/xe
rces
Impl.jar;C:/Lee/PhD/Distributed_Java/ProActive/lib/components/fractal.jar;C:
/Lee
/PhD/Distributed_Java/ProActive/lib/bouncycastle.jar
-Djava.security.policy=C:/L
ee/PhD/Distributed_Java/ProActive/scripts/proactive.java.policy
-Dlog4j.configur
ation=file:C:/Lee/PhD/Distributed_Java/ProActive/scripts/proactive-log4j
org.obj
ectweb.proactive.core.runtime.StartRuntime Dispatcher
//130.130.88.119/PA_JVM134
7972791_130.130.88.119 1 ssh_jvm Jvm2 error=2
        at java.lang.Win32Process.create(Native Method)
        at java.lang.Win32Process.<init>(Win32Process.java:66)
        at java.lang.Runtime.execInternal(Native Method)
        at java.lang.Runtime.exec(Runtime.java:566)
        at java.lang.Runtime.exec(Runtime.java:428)
        at java.lang.Runtime.exec(Runtime.java:364)
        at java.lang.Runtime.exec(Runtime.java:326)
        at
org.objectweb.proactive.core.process.AbstractExternalProcess.internal
StartProcess(AbstractExternalProcess.java:156)
        at
org.objectweb.proactive.core.process.AbstractExternalProcessDecorator
.internalStartProcess(AbstractExternalProcessDecorator.java:118)
        at
org.objectweb.proactive.core.process.AbstractUniversalProcess.startPr
ocess(AbstractUniversalProcess.java:112)
        at
org.objectweb.proactive.core.runtime.ProActiveRuntimeImpl.createVM(Pr
oActiveRuntimeImpl.java:304)
        at
org.objectweb.proactive.core.descriptor.data.VirtualNodeImpl.activate
(VirtualNodeImpl.java:280)
        at
pr.p_media.p2p.simulation.P2PSimulator.initializeProActive(P2PSimulat
or.java:43)
        at pr.p_media.p2p.simulation.P2PSimulator.main(P2PSimulator.java:61)
cannot activate virtualNode Dispatcher with the process ssh 130.130.88.216
C:/j2
sdk1.4.2_04/bin/java -Dproactive.jobid=JOB-1347972791  -cp
C:/Lee/PhD/Distribute
d_Java/ProActive/ProActive.jar;C:/Lee/PhD/Distributed_Java/ProActive/lib/asm
.jar
;C:/Lee/PhD/Distributed_Java/ProActive/lib/log4j.jar;C:/Lee/PhD/Distributed_
Java
/ProActive/lib/xercesImpl.jar;C:/Lee/PhD/Distributed_Java/ProActive/lib/comp
onen
ts/fractal.jar;C:/Lee/PhD/Distributed_Java/ProActive/lib/bouncycastle.jar
-Djava
.security.policy=C:/Lee/PhD/Distributed_Java/ProActive/scripts/proactive.jav
a.po
licy
-Dlog4j.configuration=file:C:/Lee/PhD/Distributed_Java/ProActive/scripts/pr
oactive-log4j org.objectweb.proactive.core.runtime.StartRuntime Dispatcher
//130
.130.88.119/PA_JVM1347972791_130.130.88.119 1 ssh_jvm Jvm2
**** Starting jvm on 130.130.88.119
 --> This ClassFileServer is reading resources from classpath
Jini disabled
Ibis disabled
Detected an existing RMI Registry on port 1099
**** Mapping VirtualNode Dispatcher with Node:
//130.130.88.119/Dispatcher-11794
58058 done
//130.130.88.119/Dispatcher-1179458058 successfully bound in registry at
//130.1
30.88.119/Dispatcher-1179458058
//130.130.88.119/Node-1191385274 successfully bound in registry at
//130.130.88.
119/Node-1191385274
Generating class :
pa.stub.pr.p_media.p2p.simulation.Stub_P2PSimulationCommonAcc
essObjects
Generating class :
pa.stub.pr.p_media.p2p.simulation.Stub_P2PSimulationRecords
Generating class : pa.stub.pr.p_media.p2p.simulation.Stub_Resource
Generating class : pa.stub.pr.p_media.p2p.simulation.Stub_SuperPeer
Terminate batch job (Y/N)? y

C:\Lee\PhD\Distributed_Java>

-----Original Message-----
From: Romain Quilici [mailto:Romain.Quilici@xxxxxxxxxxxxxxx] 
Sent: Thursday, 26 May 2005 6:54 PM
To: Lee Rong; Proactive
Subject: Re: FW: [Fwd: Re: [Fwd: Re: [Fwd: [proactive] P2P question]]]

Hi Lee,
after looking at the code, I understand what you mean.
I would say the only reason for this deadlock, is that at some point, 
between the two calls to the resource object returned by 
currEntry.getDownloadResource(), this resource object has received a 
request that causes it to wait for a result, then the second 
request(getHostPeer) is never served, so the deadlock. Indeed it seems 
to be a raise condition, since it happens at different moment, not always,..
Anyway, I will try to take time to get more information, to to see if my 
assumption is correct
Romain
Lee Rong wrote:

>
>
> ------------------------------------------------------------------------
>
> Subject:
> RE: FW: [Fwd: Re: [Fwd: Re: [Fwd: [proactive] P2P question]]]
> From:
> "Lee Rong" <lr98@xxxxxxxxxx>
> Date:
> Thu, 26 May 2005 00:09:04 +1000
> To:
> "'Romain Quilici'" <Romain.Quilici@xxxxxxxxxxxxxxx>, "'Proactive'" 
> <proactive@xxxxxxxxxxxxx>
>
> To:
> "'Romain Quilici'" <Romain.Quilici@xxxxxxxxxxxxxxx>, "'Proactive'" 
> <proactive@xxxxxxxxxxxxx>
>
>
>Hi Romain,
> So why does the program hang at the future object p1; p1 is an instance of
>AO class NormalPeer, shouldn't it just return straight away like
>currEntry.getDownloadResource().getID() which returns an instance of AO
>class Resource and then uses its method getID()?
> At the meanwhile, I will try to change all the primitive return types in
AO
>class to non-primitive as mentioned in the ProActive document. However,
that
>didn't seem to help with this hanging problem.
>
>Thanks,
>
>Lee
>
>  
>
>
>

-- 
Romain Quilici
Software Engineer
OASIS Team - INRIA Sophia-Antipolis
04 92 38 71 65
Romain.Quilici@xxxxxxxxxxxxxxx
http://www.inria.fr/oasis/Romain.Quilici/


<?xml version="1.0" encoding="UTF-8"?>
<ProActiveDescriptor xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation="DescriptorSchema.xsd">
	<!-- <security file="../../descriptors/c3dPolicy.xml"></security> -->
	<componentDefinition>
		<virtualNodesDefinition>
			<virtualNode name="Dispatcher" property="multiple_cyclic"/>
		</virtualNodesDefinition>
	</componentDefinition>
	<deployment>
		<mapping>
			<map virtualNode="Dispatcher">
				<jvmSet>
					<vmName value="Jvm1"/>
					<vmName value="Jvm2"/>
				</jvmSet>
			</map>
		</mapping>
		<jvms>
			<jvm name="Jvm1">
				<creation>
					<processReference refid="localJVM"/>
				</creation>
			</jvm>
			<jvm name="Jvm2">
				<creation>
					<processReference refid="sshProcess"/>
				</creation>
			</jvm>
		</jvms>
	</deployment>
	<infrastructure>
		<processes>
			<processDefinition id="localJVM">
				<jvmProcess class="org.objectweb.proactive.core.process.JVMNodeProcess"></jvmProcess>
			</processDefinition>
			<!--to uncomment if the home dir is not the same on the remote machine, and to replace the directory with the correct value-->
			<processDefinition id="localJVM1">
				<jvmProcess class="org.objectweb.proactive.core.process.JVMNodeProcess">
				<classpath>
						<absolutePath  value="C:\Lee\PhD\Distributed_Java\ProActive\ProActive.jar"/>
						<absolutePath  value="C:\Lee\PhD\Distributed_Java\ProActive\lib\asm.jar"/>
						<absolutePath  value="C:\Lee\PhD\Distributed_Java\ProActive\lib\log4j.jar"/>
						<absolutePath  value="C:\Lee\PhD\Distributed_Java\ProActive\lib\xercesImpl.jar"/>
						<absolutePath  value="C:\Lee\PhD\Distributed_Java\ProActive\lib\components\fractal.jar"/>
						<absolutePath  value="C:\Lee\PhD\Distributed_Java\ProActive\lib\bouncycastle.jar"/>
					</classpath>
					<javaPath>
						<absolutePath value="C:\j2sdk1.4.2_04\bin\java"/>
					</javaPath>
					<policyFile>
						<absolutePath  value="C:\Lee\PhD\Distributed_Java\ProActive\scripts\proactive.java.policy"/>
					</policyFile>
					<log4jpropertiesFile>
						<absolutePath  value="C:\Lee\PhD\Distributed_Java\ProActive\scripts\proactive-log4j"/>
					</log4jpropertiesFile>
				</jvmProcess>
			</processDefinition>
			<processDefinition id="sshProcess">
				<sshProcess class="org.objectweb.proactive.core.process.ssh.SSHProcess" hostname="130.130.88.216">
					<!-- <processReference refid="localJVM"></processReference> -->
					<!-- to uncomment if the home dir is not the same on the remote machine-->
					<processReference refid="localJVM1"></processReference>
				</sshProcess>
			</processDefinition>
		</processes>
	</infrastructure>
</ProActiveDescriptor>

--- End Message ---


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

Reply via email to:

Powered by MHonArc.

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