Re: tn5250j on linux with java 1.5.0

Kenneth Pouncey <[email protected]> Wed, 26 Oct 2005 06:52:05 +0200
Newsgroups gmane.comp.java.tn5250j.general
Message-ID <[email protected]>
Patrick

Patrick Bielen wrote:

> Hi guys,
>
> Recently i installed Ubuntu Linux (which is the best distro i've seen
> in the last 7 years imho) and that is where the troubles began.
>
> Running java 1.5.0_05 on my linux box gives the next troubles...
>
> 1) Splashscreen stays on top and the connection window is below
>      it, there is not way to remove it until you actually make the
>     connection to the iseries.

This should be fixed in CVS.  Richard had that problem.

>
> 2) Keymapping does nothing... no matter which key you press,
>     nothing happens and  you have to manually edit the keymap file.
>     xdev gives other values then the values used in the keymap file,
>    which makes it hard to find out which value you actually need.

Not sure about this.  Jump into the code and see what the problem is.  
Am sure it will be a java 1.5 on linux problem or someone would have 
already posted the problem.

>
> No need to say this is very frustrating, cause you loose a lot of
> functionality in the first place.

Yes but then again being a programmer yourself that frustration level 
can be reduced by figuring out the problem and making the change to fix 
it :-P

>
> The second thing... a dutch user contacted me about the jython
> commands that can be used in tn5250j. A few years ago i was
> using this functionality a lot, 

Yeah had thought about changing it to use IBM's scripting package so 
other languages could be incorporated but that meant having to put 
another package constraint to run.  Never moved further than that 
afterwards.

> but since i became SCJP i lost the

Which again begs the question of why you are frustrated with problems.

> attention to the scripting feature in tn5250j. So there is a lot
> changed in meanwhile, and commands changed also. The
> website was never made up-to-date so it's damned hard to
> actually find out what the exact commands are. Anybody that
> knows what actually was changed ? _session.getscreen() seems
> not to work anymore cause things are changed.

Looking at the code base should help with that.

>
> So i think after almost one year of inactivity, that it becomes time
> we pickup the project again and do the very last bugfixes, and
> also remove the 1.3 code crap, to become some more up-to-dated.

Well actually there really is not any 1.3 being used anymore unless a 
1.3 JVM is used.  Between Christian, Wim and myself using the interfaces 
it is dynamically loaded.  In the code you should be able to find all 
references to them and remove the code from there.  There are I think 5 
touchpoints for this.  Unfortunatel on the first two releases of 1.4 
some of the newer stuff does not work correctly so had to bandage that 
the best way I could.

As far as anything else being 1.3 the hardest most intense part would be 
using the NIO but after I did the test case by changing the code I got 
no increase whatsoever so to me it was not worth the effort of changing 
this all out.  Wim and I discussed this at one time through the list.  I 
might still have the code laying around if anybody wants to have a go at it.

> I know the most of you guys are working on the browser version
> of tn5250j, but that is not that interesting for the most users, cause
> tn5250j standalone just does what it needs to do. So maybe we
> can focus back on the program itself and make it bugfree on
> windows and linux (and mac) for once and for all.

I would love to see the browser version get off it's feet.  What needs 
to be done here besides the HTML parsing part Pete?  I do not remember 
where we left off.  The last thing I remember is the change I made so 
that you could use encrypted  parameters to pass user and password.  Was 
that used in your version?  You had gotten swamped with work so could 
not test it at that time.

>
> Ofcourse i'm not the project leader, but seems he lost his interests
> in the project cause we haven't heard him anymore for a very long
> time. 

This was answered in the other post I made.  Although Patrick, me not 
being around does not mean anybody could not update CVS with changes and 
bug fixes.

I think I remember Christian made a change a while back which was the last.

> As i'm one of the people that joined the project in the very
> first beginning it should be nice if we could make a deal, that i will
> try to lead the team until Kenneth returns.


>
> What do you guys think ?

:-) 

Not exactly sure if the project lacks "leadership" per se but more hands 
digging in the code and updating CVS with bug fixes.

>
> Well maybe my java skills do not go that far as most of you, but
> i will try to lead the project into the right directions. 

Not a lot of java skills needed to fix the problems you reported so now 
all that is left to do is dig in.  The keymapping problem could probably 
be fixed in 30 minutes.  Let me know and I can tell you where to look.

I will send you some code fixes that other people have sent my way so 
you can put them in and coordinate the changes with the rest of the people.

> The most
> important goal is to make it stable now, so we actually can
> release a FINAL (stable) version. I'm into Linux now, so i can
> heavily test the program on that platform now.


I hope the project gets going again and am more than happy with the 
suggestions.  Any questions please let me know and I will do my best to 
answer them with the limited resources on my end.

Regards

Kenneth

>
> Best Regards,
>
> Patrick Bielen
>
>
> <http://msgtag.com/?source=ffooter> has notified the sender that this 
> message has been received.
>