[Tn5250j-general] tn5250j patch

2005-10-26 Thread Kenneth Pouncey




Patrick another 

Mitch Blevins [EMAIL PROTECTED]
There
appears to be a bug where if a ScreenListener removes itself during an
onScreenChanged() call, the firing code will continue to loop through
the now-structurally changed Vector. This causes indeterminate
behavior and has resulted in several crashes on my side. Fixes in the
patch below for you review.
Mitch
Blevins
IT
Manager
International
Environmental
http://www.iec-okc.com/
Index:
C:/eclipse/workspace/Jumper2/src/org/tn5250j/framework/tn5250/Screen5250.java
===
---
C:/eclipse/workspace/Jumper2/src/org/tn5250j/framework/tn5250/Screen5250.java
(revision 1499)
+++
C:/eclipse/workspace/Jumper2/src/org/tn5250j/framework/tn5250/Screen5250.java
(revision 1500)
@@
-3897,12 +3897,12 @@
 */

private void fireScreenChanged(int which, int startRow, int startCol,

int endRow, int endCol) {
-

if (listeners != null) {
-
int size = listeners.size();
+ 
Vector lc = new Vector(listeners);
+
int size = lc.size();

for (int i = 0; i  size; i++) {

ScreenListener target =
-
(ScreenListener)listeners.elementAt(i);
+
(ScreenListener)lc.elementAt(i);

target.onScreenChanged(1,startRow,startCol,endRow,endCol);

}
 }
@@
-3933,10 +3933,11 @@

int startCol = getCol(lastPos);


if (listeners != null) {
-
int size = listeners.size();
+ 
Vector lc = new Vector(listeners);
+
int size = lc.size();

for (int i = 0; i  size; i++) {

ScreenListener target =
-
(ScreenListener)listeners.elementAt(i);
+
(ScreenListener)lc.elementAt(i);

target.onScreenChanged(update,startRow,startCol,startRow,startCol);

}
 }
@@
-3949,10 +3950,11 @@

private void fireScreenSizeChanged() {


if (listeners != null) {
-
int size = listeners.size();
+ 
Vector lc = new Vector(listeners);
+
int size = lc.size();

for (int i = 0; i  size; i++) {

ScreenListener target =
-
(ScreenListener)listeners.elementAt(i);
+
(ScreenListener)lc.elementAt(i);

target.onScreenSizeChanged(numRows,numCols);

}
 }




[Tn5250j-general] tn5250j applet session file

2005-10-26 Thread Kenneth Pouncey





Jean-Eric JEG [EMAIL PROTECTED]



Hi,


I'm trying to setup the session file.


1) it's OK when I try on my pc (client)


java -jar tn5250j.jar -s my00107


one 5250 session is openned on as400 "my00107"


in my applet, with keyword "host" and ip adress it works fine



2) some problem with session file (when applet is stored on as400) ,
it doesn't work


= window is grey and in "console java" :


java.lang.NullPointerException

at java.util.Hashtable.put(Unknown Source)

at org.tn5250j.My5250App.jbInit(Unknown Source)

at org.tn5250j.My5250App.init(Unknown Source)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)



below my session file and my source applet



Thanks for your help


Eric


___

sessions file




#-- Session Information 

#Wed Jul 27 12:24:11 CEST 2005

emul.frame0=0,0,1024,768

emul.logLevel=1

emul.default=my00101

emul.width=1024

emul.height=768

emul.restricted=

my00107=142.XXX.YY.30 -f my00107 -e





__



 CODEBASE = "" CODE = "org.tn5250j.My5250App.class" NAME =
"tn5250 - Java tn5250 Client " WIDTH = 985 HEIGHT = 540 HSPACE = 0
VSPACE = 0 ALIGN = top ARCHIVE = stn5250j.jar




  

  
  
  
  
  

  

PARAM NAME ="-s" VALUE="my00107" /


/APPLET

/BODY

/HTML





[Tn5250j-general] can't build

2005-10-26 Thread Kenneth Pouncey




Boris Breslav [EMAIL PROTECTED]

Hi all
I tried to run ant and got the
following message:

C:\TN5250J\build.xml:401: taskdef
class com.loomcom.ant.tasks.jarbundler.JarBund
ler cannot be found

Is there something I'm missing?





[Tn5250j-general] tn5250j langauge assistant

2005-10-26 Thread Kenneth Pouncey

Mabundit [EMAIL PROTECTED]

Dear K JP,

Let me introduce myself, my name is Mabundit Muangkhum.
I am an AS/400 System engineer and have a plan to implement client Linux in
my company.
Our company use AS/400 for backend application like Acc, Billing,..etc, and
use CA/400 for display emulator.
And also using Thai font for Thai language that made by IBM Thailand.
But now we need to implement in linux environment so I try for searching in
tn5250 on linux and found your.
I would like to ask you for using your great thing.
When I read your document for quick start and found that I need to ask you
for the code page.
The Thai code is 838(EBCDIC) and 874(ASCII).
Would you please add this code page to your tn5250 and suggest me to using
it ?
Thank you very much and hope you do the great job for our world.

Regards;
Mabundit M.



---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] tn5250j on linux with java 1.5.0

2005-10-26 Thread Kenneth Pouncey




Patrick and all

The previous are messages that I had copy pasted in my todo list
because they were sent to my private e-mail. Thought I would throw
them out there to see if they need to be worked on or have already been
fixed.

Regards

Kenneth

Kenneth Pouncey wrote:

  
Patrick
  
Here is a problem just reported a couple of days ago with a code fix
attached:
  
  Bugs item #1333978, was opened at 2005-10-21 12:02
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=376973aid=1333978group_id=22923

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: User Interface
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: manote (manote)
Assigned to: Kenneth J. Pouncey (kjp1)
Summary: Key mapping

Initial Comment:
OS = linux 2.6.5 Suse 9.1
System = pIV 512MB
JDK version = 1.5.0_05

In the dialog for get the key, the label never get the
focus and  can't set the key.
Changing to the following piece of code, int the
KeyConfigure class: 		

JOptionPane opain = new JOptionPane(

message,

JOptionPane.PLAIN_MESSAGE,

JOptionPane.DEFAULT_OPTION, // option type

null,

options,

options[0]);

by this other:

JOptionPane opain = new JOptionPane(

message,

JOptionPane.PLAIN_MESSAGE,

JOptionPane.DEFAULT_OPTION, // option type

null,

options,

null);


 the label can obtain the focus and can set the key.
Regards
  
Kenneth
  
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.

2) Keymapping does nothing... no matter which key you press,
nothing happens andyou 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.

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

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, but since i became SCJP i lost the
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.

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.
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.

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. 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 ?

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. 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.

Best Regards,

Patrick Bielen




  

   has notified the sender that this message has been
received.

  


  





[Tn5250j-general] Project priorities and future development

2005-10-26 Thread Pete Helgren
(Duplicate post...I used the wrong e-mail address to send the original 
with and it now waits for moderator approval)


Kenneth,

YIKES! I thought I was suddenly inheriting the bug list! Glad to know
that it is your to-do and not mine.

Good to see you on the list again! The HTML stuff hasn't changed and I
promised Richard that I would post the code and perhaps set up a demo
site. I haven't done either, yet. Things continue to be pretty busy
around here and since the Web5250 application hasn't come front and
center for the company (yet) I haven't had much time to devote to it. I
will get it going in the next day or so.

We have discussed where to put it on a couple of occasions. I can:

1. Set up a new SourceForge project and maintain the distro there.
2. Set up a CVS entry for the project on my CVS server.
3. We could (you could) create a sub project or branch on the tn5250j
project and we could store it there (although I am not familiar with the
SF CVS)

I am not that CVS savvy so I don't know what the pro's and con's would
be to each approach. My aim for setting up the web site was to do a
brief project overview with screen shots and then have a live login link
to my iSeries so folks could try it.

I had not implemented the changes you sent in my version, so I'll have
to revisit that (I think you had a servlet that processed the login
request). I any case, most of the issues I have come across were of two
types. 1. The function keys failed to work as I wanted to and 2. The
translation of 5250 field types wasn't complete so that I was unable to
access some types of field data. Also, cursor movement is a problem
(using the cursor keys to move on the screen). I just haven't had the
chance to fully investigate it.

Richard has developers that have tweaked the code as well. We should
probably decide (soon) how we are going to manage the changes so we can
get one code base established.

Pete




---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general