Question about telnet component of SmartFrog
Александр Поляков <[email protected]> Thu, 13 Jan 2011 01:47:35 +0500
| Newsgroups | gmane.comp.java.smartfrog.user |
|---|---|
| Message-ID | <[email protected]> |
--===============3495796531603816657==
Content-Type: multipart/alternative; boundary=0016e644defe9e157b0499ac4f4a
--0016e644defe9e157b0499ac4f4a
Content-Type: text/plain; charset=KOI8-R
Content-Transfer-Encoding: quoted-printable
Hi all =3D)
I have question about telnet component of SmartFrog. I want execute some
commands through telnet session.
This is example of code that i tried to do, but it doesn't work:
#include "org/smartfrog/components.sf"
#include "org/smartfrog/services/net/telnet.sf"
sfConfig extends TelnetSessionInlinePassword {
Telnet:ostype "windows";
Telnet:host "localhost";
Telnet:username "Spec_1";
password "123";
Telnet:commands ["mkdir c:\\1"];
}
*SmartFrog's output: *
[Telnet1(localhost)] OUT > java.exe
-Dorg.smartfrog.iniFile=3D"C:\smartfrog\bin\default.ini"
-Djava.security.policy=3D=3D"C:\smartfrog\private\sf.no.security.policy"
-Djava.security.manager
-Dorg.smartfrog.iniFile=3D"C:\smartfrog\bin\default.ini"
-Djava.security.policy=3D=3D"C:\smartfrog\private\sf.no.security.policy"
-Djava.security.manager org.smartfrog.SFSystem -a
\""Telnet1\"":DEPLOY:\""org/smartfrog/examples/MyProjects/test1.sf\""::loca=
lhost:
-e
[Telnet1(localhost)] OUT >
[Telnet1(localhost)] OUT > SmartFrog 3.17.014 (2009-07-27 16:11:39 BST)
[Telnet1(localhost)] OUT > (C) Copyright 1998-2009 Hewlett-Packard
Development Company, LP
[Telnet1(localhost)] OUT >
[Telnet1(localhost)] OUT > 2011/01/13 01:33:09:592 YEKT [WARN ][main]
SFCORE_LOG - SmartFrog security is NOT active
[sfDaemon] OUT > 2011/01/13 01:33:13:297 YEKT [ERROR][RMI TCP
Connection(5)-192.168.56.101] SFCORE_LOG - caught on start (HOST
PSU-346E4E8A88D:rootProcess:Telnet1) <SmartFrogLifecycleException:: Unable
to login in remote machine
[sfDaemon] OUT > SmartFrog 3.17.014 (2009-07-27 16:11:39 BST)
[sfDaemon] OUT > data: Failed object class:
org.smartfrog.services.net.TelnetImpl
[sfDaemon] OUT > primSFCompleteName: HOST
PSU-346E4E8A88D:rootProcess:Telnet1
[sfDaemon] OUT > primContext: included
[sfDaemon] OUT > reference: HOST PSU-346E4E8A88D:rootProcess:Telnet1
[sfDaemon] OUT > primContext: included>
[sfDaemon] OUT > SmartFrogLifecycleException:: Unable to login in remote
machine, SmartFrog 3.17.014 (2009-07-27 16:11:39 BST), data: Failed object
class: org.smartfrog.services.net.TelnetImpl, primSFCompleteName: HOST
PSU-346E4E8A88D:rootProcess:Telnet1, primContext: included, reference: HOST
PSU-346E4E8A88D:rootProcess:Telnet1, primContext: included
[sfDaemon] OUT > at
org.smartfrog.services.net.TelnetImpl.sfStart(TelnetImpl.java:152)
[sfDaemon] OUT > at
org.smartfrog.sfcore.compound.CompoundImpl.sfStartChildren(CompoundImpl.jav=
a:661)
[sfDaemon] OUT > at
org.smartfrog.sfcore.compound.CompoundImpl.sfStart(CompoundImpl.java:634)
[sfDaemon] OUT > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[sfDaemon] OUT > at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3=
9)
[sfDaemon] OUT > at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp=
l.java:25)
[sfDaemon] OUT > at java.lang.reflect.Method.invoke(Method.java:597)
[sfDaemon] OUT > at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
[sfDaemon] OUT > at sun.rmi.transport.Transport$1.run(Transport.java:159)
[sfDaemon] OUT > at java.security.AccessController.doPrivileged(Native
Method)
[sfDaemon] OUT > at
sun.rmi.transport.Transport.serviceCall(Transport.java:155)
[sfDaemon] OUT > at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
[sfDaemon] OUT > at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java=
:790)
[sfDaemon] OUT > at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:=
649)
[sfDaemon] OUT > at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.j=
ava:886)
[sfDaemon] OUT > at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:=
908)
[sfDaemon] OUT > at java.lang.Thread.run(Thread.java:619)
[sfDaemon] OUT >
[Telnet1(localhost)] OUT > - FAILED when trying DEPLOY of 'Telnet1',
[org/smartfrog/examples/MyProjects/test1.sf], host:localhost
[Telnet1(localhost)] OUT > Result:
[Telnet1(localhost)] OUT > * Exception: 'SmartFrogLifecycleException::
Unable to login in remote machine
[Telnet1(localhost)] OUT > SmartFrog 3.17.014 (2009-07-27 16:11:39 BST)
[Telnet1(localhost)] OUT > data: Failed object class:
org.smartfrog.services.net.TelnetImpl
[Telnet1(localhost)] OUT > primSFCompleteName: HOST
PSU-346E4E8A88D:rootProcess:Telnet1
[Telnet1(localhost)] OUT > primContext: included
[Telnet1(localhost)] OUT > reference: HOST
PSU-346E4E8A88D:rootProcess:Telnet1
[Telnet1(localhost)] OUT > primContext: included'
[Telnet1(localhost)] OUT >
*Say please what I do wrong?*
(Of course, telnet server was running when I tried this code)
--=20
*=F0=CF=CC=D1=CB=CF=D7 =E1=CC=C5=CB=D3=C1=CE=C4=D2 =F7=CC=C1=C4=C9=CD=C9=D2=
=CF=D7=C9=DE,**
*
*
*
--=20
*=F0=CF=CC=D1=CB=CF=D7 =E1=CC=C5=CB=D3=C1=CE=C4=D2 =F7=CC=C1=C4=C9=CD=C9=D2=
=CF=D7=C9=DE,**
*
*=D4=C5=CC. 8-902-79-77-152*
--0016e644defe9e157b0499ac4f4a
Content-Type: text/html; charset=KOI8-R
Content-Transfer-Encoding: quoted-printable
<div>Hi all =3D)</div><div>I have question about telnet component of SmartF=
rog. I want execute some commands through telnet session.<br></div>This is =
example of code that i tried to do, but it doesn't work:<br><br>#includ=
e "org/smartfrog/components.sf"<br>
#include "org/smartfrog/services/net/telnet.sf"<br>sfConfig exten=
ds TelnetSessionInlinePassword {<br> Telnet:ostype "windows";<br>=
Telnet:host "localhost";<br>Telnet:username "Spec_1";<=
br>
password "123";<br> Telnet:commands ["mkdir c:\\1"];<b=
r>}<br><br><b>SmartFrog's output:=9A</b><br><br>[Telnet1(localhost)] OU=
T > java.exe -Dorg.smartfrog.iniFile=3D"C:\smartfrog\bin\default.i=
ni" -Djava.security.policy=3D=3D"C:\smartfrog\private\sf.no.secur=
ity.policy" -Djava.security.manager -Dorg.smartfrog.iniFile=3D"C:=
\smartfrog\bin\default.ini" -Djava.security.policy=3D=3D"C:\smart=
frog\private\sf.no.security.policy" -Djava.security.manager org.smartf=
rog.SFSystem -a \""Telnet1\"":DEPLOY:\""org/=
smartfrog/examples/MyProjects/test1.sf\""::localhost: -e<br>
[Telnet1(localhost)] OUT > <br>[Telnet1(localhost)] OUT > SmartFrog 3=
.17.014 (2009-07-27 16:11:39 BST)<br>[Telnet1(localhost)] OUT > (C) Copy=
right 1998-2009 Hewlett-Packard Development Company, LP<br>[Telnet1(localho=
st)] OUT > <br>
[Telnet1(localhost)] OUT > 2011/01/13 01:33:09:592 YEKT [WARN ][main] SF=
CORE_LOG - SmartFrog security is NOT active<br>[sfDaemon] OUT > 2011/01/=
13 01:33:13:297 YEKT [ERROR][RMI TCP Connection(5)-192.168.56.101] SFCORE_L=
OG - caught on start (HOST PSU-346E4E8A88D:rootProcess:Telnet1) <SmartFr=
ogLifecycleException:: Unable to login in remote machine<br>
[sfDaemon] OUT > SmartFrog 3.17.014 (2009-07-27 16:11:39 BST)<br>[sf=
Daemon] OUT > data: Failed object class: org.smartfrog.services.net.=
TelnetImpl<br>[sfDaemon] OUT > primSFCompleteName: HOST PSU-346E4E8A=
88D:rootProcess:Telnet1<br>
[sfDaemon] OUT > primContext: included<br>[sfDaemon] OUT > re=
ference: HOST PSU-346E4E8A88D:rootProcess:Telnet1<br>[sfDaemon] OUT > =
primContext: included><br>[sfDaemon] OUT > SmartFrogLifecyc=
leException:: Unable to login in remote machine, SmartFrog 3.17.014 (2009-0=
7-27 16:11:39 BST), data: Failed object class: org.smartfrog.services.net.T=
elnetImpl, primSFCompleteName: HOST PSU-346E4E8A88D:rootProcess:Telnet1, pr=
imContext: included, reference: HOST PSU-346E4E8A88D:rootProcess:Telnet1, p=
rimContext: included<br>
[sfDaemon] OUT > at org.smartfrog.services.net.TelnetImpl.sfStart(Telne=
tImpl.java:152)<br>[sfDaemon] OUT > at org.smartfrog.sfcore.compound.Co=
mpoundImpl.sfStartChildren(CompoundImpl.java:661)<br>[sfDaemon] OUT > a=
t org.smartfrog.sfcore.compound.CompoundImpl.sfStart(CompoundImpl.java:634)=
<br>
[sfDaemon] OUT > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native=
Method)<br>[sfDaemon] OUT > at sun.reflect.NativeMethodAccessorImpl.in=
voke(NativeMethodAccessorImpl.java:39)<br>[sfDaemon] OUT > at sun.refle=
ct.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25=
)<br>
[sfDaemon] OUT > at java.lang.reflect.Method.invoke(Method.java:597)<br=
>[sfDaemon] OUT > at sun.rmi.server.UnicastServerRef.dispatch(UnicastSe=
rverRef.java:305)<br>[sfDaemon] OUT > at sun.rmi.transport.Transport$1.=
run(Transport.java:159)<br>
[sfDaemon] OUT > at java.security.AccessController.doPrivileged(Native =
Method)<br>[sfDaemon] OUT > at sun.rmi.transport.Transport.serviceCall(=
Transport.java:155)<br>[sfDaemon] OUT > at sun.rmi.transport.tcp.TCPTra=
nsport.handleMessages(TCPTransport.java:535)<br>
[sfDaemon] OUT > at sun.rmi.transport.tcp.TCPTransport$ConnectionHandle=
r.run0(TCPTransport.java:790)<br>[sfDaemon] OUT > at sun.rmi.transport.=
tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)<br>[sfDaemon]=
OUT > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Thread=
PoolExecutor.java:886)<br>
[sfDaemon] OUT > at java.util.concurrent.ThreadPoolExecutor$Worker.run(=
ThreadPoolExecutor.java:908)<br>[sfDaemon] OUT > at java.lang.Thread.ru=
n(Thread.java:619)<br>[sfDaemon] OUT > <br>[Telnet1(localhost)] OUT >=
- FAILED when trying DEPLOY of 'Telnet1', [org/smartfrog/example=
s/MyProjects/test1.sf], host:localhost<br>
[Telnet1(localhost)] OUT > Result:<br>[Telnet1(localhost)] OUT > =
* Exception: 'SmartFrogLifecycleException:: Unable to login in re=
mote machine<br>[Telnet1(localhost)] OUT > SmartFrog 3.17.014 (2=
009-07-27 16:11:39 BST)<br>
[Telnet1(localhost)] OUT > data: Failed object class: org.smartf=
rog.services.net.TelnetImpl<br>[Telnet1(localhost)] OUT > primSF=
CompleteName: HOST PSU-346E4E8A88D:rootProcess:Telnet1<br>[Telnet1(localhos=
t)] OUT > primContext: included<br>
[Telnet1(localhost)] OUT > reference: HOST PSU-346E4E8A88D:rootP=
rocess:Telnet1<br>[Telnet1(localhost)] OUT > primContext: includ=
ed'<br>[Telnet1(localhost)] OUT > <br><br><br><br><br><b>Say please =
what I do wrong?</b><br>
<br>(Of course, telnet server was running when I tried this code)<br><font =
color=3D"#888888"><br>-- <br><div><i>=F0=CF=CC=D1=CB=CF=D7 =E1=CC=C5=CB=D3=
=C1=CE=C4=D2 =F7=CC=C1=C4=C9=CD=C9=D2=CF=D7=C9=DE,</i><i><br></i></div><div=
><i><br></i></div><br>
</font><br><br clear=3D"all"><br>-- <br><div><i>=F0=CF=CC=D1=CB=CF=D7 =E1=
=CC=C5=CB=D3=C1=CE=C4=D2 =F7=CC=C1=C4=C9=CD=C9=D2=CF=D7=C9=DE,</i><i><br></=
i></div><div><i>=D4=C5=CC. 8-902-79-77-152</i></div><br>
--0016e644defe9e157b0499ac4f4a--
--===============3495796531603816657==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
--===============3495796531603816657==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Smartfrog-users mailing list
Smartfrog-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/smartfrog-users
--===============3495796531603816657==--