Re: tn5250j enhancements

"Martin W. Kirst" <[email protected]> Tue, 02 Apr 2013 21:21:27 +0200
Newsgroups gmane.comp.java.tn5250j.devel
Message-ID <[email protected]>
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--===============8920009688755949192==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="----enig2IUGCOWNHHLTKINMDXQGM"

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
------enig2IUGCOWNHHLTKINMDXQGM
Content-Type: multipart/mixed; boundary="------------030701020201000802030005"

This is a multi-part message in MIME format.
--------------030701020201000802030005
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Tim,

thanks for sharing all these interesting ideas.
=46rom what I estimate, I think that Beanshell support should be
an easy task to implement.
The other two, headless and Telnet support, I consider more complex
for implementing in Tn5250j - but not impossible ;-)

Because I don't have access to AS400 anymore (changed my job),
I'm no more active in development.
I would be happy, if you would contribute your work to Tn5250j
(under the GPL). If you're interested you can get have access to the
repository (assuming the other ones are fine with that).
If so, the branch 'tn5250j-new-tabs-jse1.6' is the best starting point.

I've also imported your sources to my Eclipse IDE and hit 'Run...'.
Unluckily I've got an error, which I've attached to this email.
I hope this helps you, tracking down the issue (if there's one).

Regards
Martin

Am 28.03.2013 16:51, schrieb Tim Hurman:
> Dear all,
>=20
> A while back I ran into an interesting use case for tn5250j that I want=
ed
> to explore; however, it would need a few changes to the codebase and I
> wanted to get your opinion to see if they were feasible before I spend
> time coding them up.
>=20
> The use case is this: You may be familiar with Apache Camel
> (http://camel.apache.org/). This is a nice ETL style tool that can stre=
am
> together a number of data sources. I wanted to write a Camel Component
> that could drive a tn5250j terminal through some scripting. This is gre=
at
> for legacy houses that have everything on an AS/400 where it is just to=
o
> expensive to move the business logic out.
>=20
> However, in order to do this, I would need to put in a few changes. The=
se
> are:
>=20
> 1. Introduce BeanShell scripting (http://www.beanshell.org/). I realise=

> that Jython is the current scripting language, but camel has Beanshell
> built in. Basically this would give the user the ability to run a
> Beanshell or Jython script. From what I estimate this is a simple GUI
> change to select the language (or autoselect), a bit of code to set up =
the
> shell variables/launch the script and the inclusion of the Beanshell JA=
R
> into the distribution. Is that okay?
>=20
> 2. The option of a headless (in memory only) terminal. Obviously server=

> environments are unlikely to have X running and therefore trying to ope=
n a
> terminal would fail. Even if it worked, having lots of terminals open a=
nd
> prone to interference is not clean. This would change the architecture =
of
> the software a bit from what I can see.
>=20
> 3. Added Telnet network capability. In order to help with above, and
> support enhancements such as auto login which simplifies the scripting
> process, the networking area would need a bit of work. To that end I ha=
ve
> already re-written the networking part and Telnet negotation. I have se=
t
> this up to transparently provide terminal messages to whichever variant=
 of
> screen is attached. It is included in the attached zip. Is this somethi=
ng
> that the team would like to include?
>=20
> Yours,
> Tim
>=20
>=20
>=20
> -----------------------------------------------------------------------=
-------
> Own the Future-Intel&reg; Level Up Game Demo Contest 2013
> Rise to greatness in Intel's independent game demo contest.
> Compete for recognition, cash, and the chance to get your game=20
> on Steam. $5K grand prize plus 10 genre and skill prizes.=20
> Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
>=20
>=20
>=20
> _______________________________________________
> Tn5250j-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tn5250j-develop
>=20


--------------030701020201000802030005
Content-Type: text/plain; charset=windows-1252;
 name="lib-tn5250j-error.log"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
 filename="lib-tn5250j-error.log"

2013-04-02 21:10:40,780 INFO  [lib5250.net] Attempting to open connection=
 to telnet://pub1.rzkh.de
2013-04-02 21:10:40,781 INFO  [lib5250.net] Using plain socket factory
2013-04-02 21:10:41,288 INFO  [lib5250.net] Connected
2013-04-02 21:10:41,288 DEBUG [lib5250.net] Connection threads starting
2013-04-02 21:10:41,384 DEBUG [lib5250.net] Screen and network threads st=
arted
2013-04-02 21:10:41,390 DEBUG [lib5250.net] Got 6 bytes in the buffer
2013-04-02 21:10:41,402 DEBUG [lib5250.net] Got verb message
2013-04-02 21:10:41,436 DEBUG [lib5250.net] Recv: <IAC> <DO> <NEW_ENVIRON=
>
 < +0003 FF FD 27                                           ..'
2013-04-02 21:10:41,437 DEBUG [lib5250.net] Got verb message
2013-04-02 21:10:41,437 DEBUG [lib5250.net] Recv: <IAC> <DO> <TERMINAL_TY=
PE>
 < +0003 FF FD 18                                           ...
2013-04-02 21:10:41,438 DEBUG [lib5250.net] Send: <IAC> <WILL> <NEW_ENVIR=
ON>
 > +0003 FF FB 27                                           ..'
2013-04-02 21:10:41,438 DEBUG [lib5250.net] Send: <IAC> <WILL> <TERMINAL_=
TYPE>
 > +0003 FF FB 18                                           ...
2013-04-02 21:10:41,541 DEBUG [lib5250.net] Got 25 bytes in the buffer
2013-04-02 21:10:41,541 DEBUG [lib5250.net] Got subnegotiation message
2013-04-02 21:10:41,544 DEBUG [lib5250.net] Recv: <IAC> <SB> <NEW_ENVIRON=
> <0x01> <0x03> <0x49> <0x42> <0x4D> <0x52> <0x53> <0x45> <0x45> <0x44> <=
0xDC> <0x8A> <0x39> <0x2D> <0xC4> <0x66> <0xD7> <0x3C> <0x00> <0x03> <IAC=
> <SE>
 < +0000 FF FA 27 01 03 49 42 4D  52 53 45 45 44 DC 8A 39    ..'..IBM RSE=
ED..9=20
 < +0019 2D C4 66 D7 3C 00 03 FF  F0                         -.f.<... .
2013-04-02 21:10:41,544 DEBUG [org.tn5250j.lib5250.handlers.NewEnvironHan=
dler] Got SEND request
2013-04-02 21:10:41,545 DEBUG [org.tn5250j.lib5250.handlers.NewEnvironHan=
dler] Request for variable: IBMRSEED=EF=BF=BD=EF=BF=BD9-=EF=BF=BDf=EF=BF=BD=
<
2013-04-02 21:10:41,545 DEBUG [org.tn5250j.lib5250.handlers.NewEnvironHan=
dler] Request for all system variables
2013-04-02 21:10:41,545 DEBUG [org.tn5250j.lib5250.handlers.NewEnvironHan=
dler] Request for all user variables
2013-04-02 21:10:41,549 DEBUG [lib5250.net] Got 6 bytes in the buffer
2013-04-02 21:10:41,549 DEBUG [lib5250.net] Got subnegotiation message
2013-04-02 21:10:41,549 DEBUG [lib5250.net] Recv: <IAC> <SB> <TERMINAL_TY=
PE> <0x01> <IAC> <SE>
 < +0006 FF FA 18 01 FF F0                                  ......
2013-04-02 21:10:41,578 DEBUG [lib5250.net] Send: <IAC> <SB> <TERMINAL_TY=
PE> <0x00> <0x49> <0x42> <0x4D> <0x2D> <0x33> <0x31> <0x37> <0x39> <0x2D>=
 <0x32> <IAC> <SE>
 > +0000 FF FA 18 00 49 42 4D 2D  33 31 37 39 2D 32 FF F0    ....IBM- 317=
9-2..=20

2013-04-02 21:10:41,614 DEBUG [lib5250.net] Got 12 bytes in the buffer
2013-04-02 21:10:41,614 DEBUG [lib5250.net] Got verb message
2013-04-02 21:10:41,614 DEBUG [lib5250.net] Recv: <IAC> <DO> <END_OF_RECO=
RD>
 < +0003 FF FD 19                                           ...
2013-04-02 21:10:41,614 DEBUG [lib5250.net] Got verb message
2013-04-02 21:10:41,615 DEBUG [lib5250.net] Recv: <IAC> <WILL> <END_OF_RE=
CORD>
 < +0003 FF FB 19                                           ...
2013-04-02 21:10:41,615 DEBUG [lib5250.net] Got verb message
2013-04-02 21:10:41,615 DEBUG [lib5250.net] Recv: <IAC> <DO> <TRANSMIT_BI=
NARY>
 < +0003 FF FD 00                                           ...
2013-04-02 21:10:41,615 DEBUG [lib5250.net] Got verb message
2013-04-02 21:10:41,616 DEBUG [lib5250.net] Recv: <IAC> <WILL> <TRANSMIT_=
BINARY>
 < +0003 FF FB 00                                           ...
2013-04-02 21:10:41,616 DEBUG [lib5250.net] Send: <IAC> <WILL> <END_OF_RE=
CORD>
 > +0003 FF FB 19                                           ...
2013-04-02 21:10:41,617 DEBUG [lib5250.net] Send: <IAC> <DO> <END_OF_RECO=
RD>
 > +0003 FF FD 19                                           ...
2013-04-02 21:10:41,617 DEBUG [lib5250.net] Send: <IAC> <WILL> <TRANSMIT_=
BINARY>
 > +0003 FF FB 00                                           ...
2013-04-02 21:10:41,618 DEBUG [lib5250.net] Send: <IAC> <DO> <TRANSMIT_BI=
NARY>
 > +0003 FF FD 00                                           ...
2013-04-02 21:10:42,229 DEBUG [lib5250.net] Got 1026 bytes in the buffer
2013-04-02 21:10:42,229 DEBUG [lib5250.net] Expecting binary message of l=
ength: -1
Exception in thread "Thread-0" java.lang.ArrayIndexOutOfBoundsException: =
-1
	at org.tn5250j.lib5250.msg.TelnetMessageFactory.next(TelnetMessageFactor=
y.java:70)
	at org.tn5250j.lib5250.net.TelnetConnection$NetListener.messageParser(Te=
lnetConnection.java:243)
	at org.tn5250j.lib5250.net.TelnetConnection$NetListener.run(TelnetConnec=
tion.java:213)
	at java.lang.Thread.run(Unknown Source)

--------------030701020201000802030005--

------enig2IUGCOWNHHLTKINMDXQGM
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlFbL7cACgkQefmD4St1GNG/LwCfdmtCKuT4fvyahBxQZOSIOTv8
7jYAn3mVaOV7eEdGFAuMh/ukOtLjP7q1
=B9Sd
-----END PGP SIGNATURE-----

------enig2IUGCOWNHHLTKINMDXQGM--


--===============8920009688755949192==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
--===============8920009688755949192==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Tn5250j-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tn5250j-develop

--===============8920009688755949192==--