Re: Question about telnet component of SmartFrog

Александр Поляков <[email protected]> Wed, 19 Jan 2011 04:20:04 +0500
Newsgroups gmane.comp.java.smartfrog.user
Message-ID <[email protected]>
--===============9046178623764077718==
Content-Type: multipart/alternative; boundary=0016e644cc1af70d63049a2723cd

--0016e644cc1af70d63049a2723cd
Content-Type: text/plain; charset=KOI8-R
Content-Transfer-Encoding: quoted-printable

Hi,
Now, I use new version of TelnetImpl.java "with more meaningful messages an=
d
logs what is going on at debug level".

Code:

#include "org/smartfrog/components.sf"
#include "org/smartfrog/services/net/telnet.sf"
sfConfig extends TelnetSessionInlinePassword {
Telnet:ostype "windows";
Telnet:host "192.168.56.101";
Telnet:username "qwerty";
password "1";
shellPrompt ">";
Telnet:commands ["mkdir c:\\1"];
}

Output:

[ProcessName(127.0.0.1)] 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
\""ProcessName\"":DEPLOY:\""org/smartfrog/examples/MyProjects/test1.sf\""::
127.0.0.1: -e
[ProcessName(127.0.0.1)] OUT >
[ProcessName(127.0.0.1)] OUT > SmartFrog 3.17.014 (2009-07-27 16:11:39 BST)
[ProcessName(127.0.0.1)] OUT > (C) Copyright 1998-2009 Hewlett-Packard
Development Company, LP
[ProcessName(127.0.0.1)] OUT >
[ProcessName(127.0.0.1)] OUT > 2011/01/19 04:14:27:937 YEKT [WARN ][main]
SFCORE_LOG - SmartFrog security is NOT active
[sfDaemon] OUT > 2011/01/19 04:14:31:781 YEKT [ERROR][RMI TCP
Connection(2)-192.168.56.1] SFCORE_LOG - caught on start (HOST
"192.168.56.1":rootProcess:ProcessName) <SmartFrogLifecycleException::
Unable to login in remote machine 192.168.56.101:23 cause: Password was not
accepted
[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
"192.168.56.1":rootProcess:ProcessName:Telnet
[sfDaemon] OUT > primContext: included
[sfDaemon] OUT > reference: HOST
"192.168.56.1":rootProcess:ProcessName:Telnet
[sfDaemon] OUT > primContext: included>
[sfDaemon] OUT > SmartFrogLifecycleException:: Unable to login in remote
machine 192.168.56.101:23 cause: Password was not accepted, SmartFrog
3.17.014 (2009-07-27 16:11:39 BST), data: Failed object class:
org.smartfrog.services.net.TelnetImpl, primSFCompleteName: HOST
"192.168.56.1":rootProcess:ProcessName:Telnet, primContext: included,
reference: HOST "192.168.56.1":rootProcess:ProcessName:Telnet, primContext:
included
[sfDaemon] OUT > at
org.smartfrog.services.net.TelnetImpl.sfStart(TelnetImpl.java:182)
[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 >
[ProcessName(127.0.0.1)] OUT > - FAILED when trying DEPLOY of 'ProcessName'=
,
[org/smartfrog/examples/MyProjects/test1.sf], host:127.0.0.1
[ProcessName(127.0.0.1)] OUT > Result:
[ProcessName(127.0.0.1)] OUT > * Exception: 'SmartFrogLifecycleException::
Unable to login in remote machine 192.168.56.101:23 cause: Password was not
accepted
[ProcessName(127.0.0.1)] OUT > SmartFrog 3.17.014 (2009-07-27 16:11:39 BST)
[ProcessName(127.0.0.1)] OUT > data: Failed object class:
org.smartfrog.services.net.TelnetImpl
[ProcessName(127.0.0.1)] OUT > primSFCompleteName: HOST
"192.168.56.1":rootProcess:ProcessName:Telnet
[ProcessName(127.0.0.1)] OUT > primContext: included
[ProcessName(127.0.0.1)] OUT > reference: HOST
"192.168.56.1":rootProcess:ProcessName:Telnet
[ProcessName(127.0.0.1)] OUT > primContext: included'


I hope, that you will fix it in new release, thanks.

--=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*

--0016e644cc1af70d63049a2723cd
Content-Type: text/html; charset=KOI8-R
Content-Transfer-Encoding: quoted-printable

<div>Hi,</div><div>Now, I use new version of TelnetImpl.java &quot;with mor=
e meaningful messages and logs what is going on at debug level&quot;.</div>=
<div><br></div><div>Code:</div><div><br></div><div>#include &quot;org/smart=
frog/components.sf&quot;=9A<br>
</div>#include &quot;org/smartfrog/services/net/telnet.sf&quot; <br>sfConfi=
g extends TelnetSessionInlinePassword { <br>Telnet:ostype &quot;windows&quo=
t;; <br>Telnet:host &quot;192.168.56.101&quot;; <br>Telnet:username &quot;q=
werty&quot;; <br>
password &quot;1&quot;; <br>shellPrompt &quot;&gt;&quot;;<br>Telnet:command=
s [&quot;mkdir c:\\1&quot;]; <br><div>}<br></div><div><br></div><div>Output=
:</div><div><br></div><div>[ProcessName(127.0.0.1)] OUT &gt; java.exe  -Dor=
g.smartfrog.iniFile=3D&quot;C:\smartfrog\bin\default.ini&quot; -Djava.secur=
ity.policy=3D=3D&quot;C:\smartfrog\private\sf.no.security.policy&quot; -Dja=
va.security.manager -Dorg.smartfrog.iniFile=3D&quot;C:\smartfrog\bin\defaul=
t.ini&quot; -Djava.security.policy=3D=3D&quot;C:\smartfrog\private\sf.no.se=
curity.policy&quot; -Djava.security.manager org.smartfrog.SFSystem  -a \&qu=
ot;&quot;ProcessName\&quot;&quot;:DEPLOY:\&quot;&quot;org/smartfrog/example=
s/MyProjects/test1.sf\&quot;&quot;::<a href=3D"http://127.0.0.1">127.0.0.1<=
/a>: -e<br>
[ProcessName(127.0.0.1)] OUT &gt; <br>[ProcessName(127.0.0.1)] OUT &gt; Sma=
rtFrog 3.17.014 (2009-07-27 16:11:39 BST)<br>[ProcessName(127.0.0.1)] OUT &=
gt; (C) Copyright 1998-2009 Hewlett-Packard Development Company, LP<br>
[ProcessName(127.0.0.1)] OUT &gt; <br>[ProcessName(127.0.0.1)] OUT &gt; 201=
1/01/19 04:14:27:937 YEKT [WARN ][main] SFCORE_LOG - SmartFrog security is =
NOT active<br>[sfDaemon] OUT &gt; 2011/01/19 04:14:31:781 YEKT [ERROR][RMI =
TCP Connection(2)-192.168.56.1] SFCORE_LOG - caught on start (HOST &quot;19=
2.168.56.1&quot;:rootProcess:ProcessName) &lt;SmartFrogLifecycleException::=
 Unable to login in remote machine <a href=3D"http://192.168.56.101:23">192=
.168.56.101:23</a> cause: Password was not accepted<br>
[sfDaemon] OUT &gt;     SmartFrog 3.17.014 (2009-07-27 16:11:39 BST)<br>[sf=
Daemon] OUT &gt;     data: Failed object class: org.smartfrog.services.net.=
TelnetImpl<br>[sfDaemon] OUT &gt;     primSFCompleteName: HOST &quot;192.16=
8.56.1&quot;:rootProcess:ProcessName:Telnet<br>
[sfDaemon] OUT &gt;     primContext: included<br>[sfDaemon] OUT &gt;     re=
ference: HOST &quot;192.168.56.1&quot;:rootProcess:ProcessName:Telnet<br>[s=
fDaemon] OUT &gt;     primContext: included&gt;<br>[sfDaemon] OUT &gt;     =
    SmartFrogLifecycleException:: Unable to login in remote machine <a href=
=3D"http://192.168.56.101:23">192.168.56.101:23</a> cause: Password was not=
 accepted, SmartFrog 3.17.014 (2009-07-27 16:11:39 BST), data: Failed objec=
t class: org.smartfrog.services.net.TelnetImpl, primSFCompleteName: HOST &q=
uot;192.168.56.1&quot;:rootProcess:ProcessName:Telnet, primContext: include=
d, reference: HOST &quot;192.168.56.1&quot;:rootProcess:ProcessName:Telnet,=
 primContext: included<br>
[sfDaemon] OUT &gt; 	at org.smartfrog.services.net.TelnetImpl.sfStart(Telne=
tImpl.java:182)<br>[sfDaemon] OUT &gt; 	at org.smartfrog.sfcore.compound.Co=
mpoundImpl.sfStartChildren(CompoundImpl.java:661)<br>[sfDaemon] OUT &gt; 	a=
t org.smartfrog.sfcore.compound.CompoundImpl.sfStart(CompoundImpl.java:634)=
<br>
[sfDaemon] OUT &gt; 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native=
 Method)<br>[sfDaemon] OUT &gt; 	at sun.reflect.NativeMethodAccessorImpl.in=
voke(NativeMethodAccessorImpl.java:39)<br>[sfDaemon] OUT &gt; 	at sun.refle=
ct.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25=
)<br>
[sfDaemon] OUT &gt; 	at java.lang.reflect.Method.invoke(Method.java:597)<br=
>[sfDaemon] OUT &gt; 	at sun.rmi.server.UnicastServerRef.dispatch(UnicastSe=
rverRef.java:305)<br>[sfDaemon] OUT &gt; 	at sun.rmi.transport.Transport$1.=
run(Transport.java:159)<br>
[sfDaemon] OUT &gt; 	at java.security.AccessController.doPrivileged(Native =
Method)<br>[sfDaemon] OUT &gt; 	at sun.rmi.transport.Transport.serviceCall(=
Transport.java:155)<br>[sfDaemon] OUT &gt; 	at sun.rmi.transport.tcp.TCPTra=
nsport.handleMessages(TCPTransport.java:535)<br>
[sfDaemon] OUT &gt; 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandle=
r.run0(TCPTransport.java:790)<br>[sfDaemon] OUT &gt; 	at sun.rmi.transport.=
tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)<br>[sfDaemon]=
 OUT &gt; 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Thread=
PoolExecutor.java:886)<br>
[sfDaemon] OUT &gt; 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(=
ThreadPoolExecutor.java:908)<br>[sfDaemon] OUT &gt; 	at java.lang.Thread.ru=
n(Thread.java:619)<br>[sfDaemon] OUT &gt; <br>[ProcessName(127.0.0.1)] OUT =
&gt;  - FAILED when trying DEPLOY of &#39;ProcessName&#39;,  [org/smartfrog=
/examples/MyProjects/test1.sf],  host:127.0.0.1<br>
[ProcessName(127.0.0.1)] OUT &gt;     Result:<br>[ProcessName(127.0.0.1)] O=
UT &gt;       * Exception: &#39;SmartFrogLifecycleException:: Unable to log=
in in remote machine <a href=3D"http://192.168.56.101:23">192.168.56.101:23=
</a> cause: Password was not accepted<br>
[ProcessName(127.0.0.1)] OUT &gt;         SmartFrog 3.17.014 (2009-07-27 16=
:11:39 BST)<br>[ProcessName(127.0.0.1)] OUT &gt;         data: Failed objec=
t class: org.smartfrog.services.net.TelnetImpl<br>[ProcessName(127.0.0.1)] =
OUT &gt;         primSFCompleteName: HOST &quot;192.168.56.1&quot;:rootProc=
ess:ProcessName:Telnet<br>
[ProcessName(127.0.0.1)] OUT &gt;         primContext: included<br>[Process=
Name(127.0.0.1)] OUT &gt;         reference: HOST &quot;192.168.56.1&quot;:=
rootProcess:ProcessName:Telnet<br>[ProcessName(127.0.0.1)] OUT &gt;        =
 primContext: included&#39;<br>
<br></div><div><br></div><div>I hope, that you will fix it in new release, =
thanks.</div><div><br></div><div>--=9A<br></div><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>


--0016e644cc1af70d63049a2723cd--


--===============9046178623764077718==
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
--===============9046178623764077718==
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

--===============9046178623764077718==--