Re: [Tn5250j-general] Release

2005-06-17 Thread Kenneth Pouncey
Oh and great about the external browser problem.  I just hope it works for 95%
of the cases.

Regards

Kenneth
Quoting Kenneth Pouncey <[EMAIL PROTECTED]>:

> Richard
> 
> I have heard that before but have never gotten that.  Maybe a 1.5 
> problem but without testing can not be sure.  Anyway this should be 
> fixed in CVS now.  Update and give it a try.
> 
> Richard Houston wrote:
> 
> >One small thing. I seem to have an issue when starting th5250j. Once the
> >connection screen pops up it is behind the tn5250j splash screen. If I
> >click on the connection screen the connection screen will not pop above
> >the splash screen.
> >
> >The splash screen seems frozen and will not move and no window will pop
> >above it. Once I connect the splash screen goes away and all is good
> >again.
> >
> >Any ideas?
> >
> >I am testing with sun jdk 1.5.0_3 complied with the same version on Linux.
> >
> >Also the spawn issue with firefox work now!
> >
> >
> >
> >
> >Regards,
> >+--+
> >| Richard Houston  .^. |
> >| R.L.H.  Consulting   /V\ |
> >| E-Mail  <[EMAIL PROTECTED]>/(   )\   |
> >| WWW   ^^-^^|
> >+--+
> >
> >Kenneth Pouncey said:
> >  
> >
> >>Hello all
> >>
> >>What is in CVS will be frozen as of tomorrow my time unless there are some
> >>show
> >>stoppers.  I will put out a release tomorrow or saturday.
> >>
> >>The release number will be 0.6.0.  If anybody has any opinions on this let
> >>me know.
> >>
> >>Regards
> >>
> >>Kenneth
> >>
> >>
> >>
> >>---
> >>SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> >>from IBM. Find simple to follow Roadmaps, straightforward articles,
> >>informative Webcasts and more! Get everything you need to get up to
> >>speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> >>___
> >>Tn5250j-general mailing list
> >>Tn5250j-general@lists.sourceforge.net
> >>https://lists.sourceforge.net/lists/listinfo/tn5250j-general
> >>
> >>
> >>
> >>
> >
> >
> >
> >---
> >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> >from IBM. Find simple to follow Roadmaps, straightforward articles,
> >informative Webcasts and more! Get everything you need to get up to
> >speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> >___
> >Tn5250j-general mailing list
> >Tn5250j-general@lists.sourceforge.net
> >https://lists.sourceforge.net/lists/listinfo/tn5250j-general
> >
> >.
> >
> >  
> >
> 






---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


[Tn5250j-general] Samples/Examples

2005-06-17 Thread Kenneth Pouncey

Good Morning Wim and all

My example will be using the Applet version and a servlet.  The next was going
to be a sample for SessionBean and attaching to a custom JFrame as we mentioned
in the portal thread.  If you will be doing something like this I can go on to
something else.

Does anybody out there have any ideas/suggestions for sample code they would
like to see?

So far we have the following:

1) Applet with servlet interface to obtain user signon information.
2) Applet with use of scanner() interface.
3) Applet with use of scanner() interface and SessionListener.

In progress for myself:
1) A basic example of using headless to control a session and send keys.  The
Web5250 interface is a great example of this but is a little complicated for an
example.

Any others please update here so we do not step on each other.

1) ...

Suggestions:

1) ...

Regards

Kenneth



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


[Tn5250j-general] STRPCCMD - STRPCO uses?

2005-06-17 Thread Kenneth Pouncey


Hello all

I have seen a couple of people now trying to use this command.  Does anybody
have any ideas on it's use or do they use it?  If so then how?

The reason I ask is that I do beleive we can do this within the emulator as
well.   That would work for linux environments as well :-))

If there is enough interest in this I will give it a try for the next release?

Also if anybody has any technical documentation on this and would share it with
me that would be great.

Regards

Kenneth



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] STRPCCMD - STRPCO uses?

2005-06-17 Thread Wim . Van . Leuven

Hello Kenneth,

I've been looking on this issue also,
because STRPCCMD is used by almost all of our customers. So, I think we
should implement it next to the scanning solution. I was wondering though
if the streamdetection should do a callback to an interface, or should
immediately run the command as it is so basic/standard functionality that
a callback would be overhead. 

Not sure though what to scan for.

Wim.








Kenneth Pouncey <[EMAIL PROTECTED]>

Sent by: [EMAIL PROTECTED]
17/06/2005 09:36



Please respond to
tn5250j-general@lists.sourceforge.net





To
tn5250j-general@lists.sourceforge.net


cc



Subject
[Tn5250j-general] STRPCCMD
- STRPCO uses?










Hello all

I have seen a couple of people now trying to use this command.  Does
anybody
have any ideas on it's use or do they use it?  If so then how?

The reason I ask is that I do beleive we can do this within the emulator
as
well.   That would work for linux environments as well :-))

If there is enough interest in this I will give it a try for the next release?

Also if anybody has any technical documentation on this and would share
it with
me that would be great.

Regards

Kenneth



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general



Re: [Tn5250j-general] STRPCCMD - STRPCO uses?

2005-06-17 Thread Kenneth Pouncey

Wim

I have been thinking about this ever since Ignacio posted to the list.  My idea
was to implement our own STRPCCMD command maybe called STRPCCMDJ or something
stupid like that.  Here we just attach a scan listener like you do in one of the
modules maybe My5250 and take care of it that way.  When we get the command we
can parse it and anything that has #!STRPCCMD x in it we just execut it.
 Was going to be one of my sample/examples :-)

Technical question?  Is there a special stream passed back for this type of
call?  If there is would it be the -128 code that Ignacio posted?  If it is
where did he get the information from?

Also what do they use it for?  Sorry but can not really think of a use.  Am just
a lowly programmer and not into the solutions that you and the others out there 
do.

Cool!!!  Let's make this sucker jump through some hoops now that the code base
is stable.  This could turn out to be a lot more flexible that what CA provides
as well.  We could also allow a custom implementation to be loaded from the
command line so the clients can load their own modules to handle this in their
own way.

Regards

Kenneth

Quoting [EMAIL PROTECTED]:

> Hello Kenneth,
> 
> I've been looking on this issue also, because STRPCCMD is used by almost 
> all of our customers. So, I think we should implement it next to the 
> scanning solution. I was wondering though if the streamdetection should do 
> a callback to an interface, or should immediately run the command as it is 
> so basic/standard functionality that a callback would be overhead. 
> 
> Not sure though what to scan for.
> 
> Wim.
> 
> 
> 
> 
> 
> 
> Kenneth Pouncey <[EMAIL PROTECTED]> 
> Sent by: [EMAIL PROTECTED]
> 17/06/2005 09:36
> Please respond to
> tn5250j-general@lists.sourceforge.net
> 
> 
> To
> tn5250j-general@lists.sourceforge.net
> cc
> 
> Subject
> [Tn5250j-general] STRPCCMD - STRPCO uses?
> 
> 
> 
> 
> 
> 
> 
> 
> Hello all
> 
> I have seen a couple of people now trying to use this command.  Does 
> anybody
> have any ideas on it's use or do they use it?  If so then how?
> 
> The reason I ask is that I do beleive we can do this within the emulator 
> as
> well.   That would work for linux environments as well :-))
> 
> If there is enough interest in this I will give it a try for the next 
> release?
> 
> Also if anybody has any technical documentation on this and would share it 
> with
> me that would be great.
> 
> Regards
> 
> Kenneth
> 
> 
> 
> ---
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> ___
> Tn5250j-general mailing list
> Tn5250j-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tn5250j-general
> 
> 






---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] STRPCCMD - STRPCO uses?

2005-06-17 Thread Kenneth Pouncey

Wim

Well first off that test screen you have is pretty cool :-)  

Second it looks sort of like what we did for the scanner.  So basically what it
does is this.  

1)  Sends the screen with a special command modeled after our scanner stuff.
2)  if it does receive this and PCO is active then it will read the screen and
not display it.  Even sending an Enter key afterwards could be.  Would actually
need to sniff the interaction but I think that is what it does.

3)  If it is not active just display the screen like it says.  Basically turning
on and off the scanner by a 5250 screen command.  This stops other emulators
from continuing.  

Very simple indeed.  The solution was elegant.

Like I said in one of the previous messages to Pete.  It is not the 5250 data
streams themselves but how the client interprets and manipulates what is there.

Now that is cool!!!

Regards

Kenneth



Quoting [EMAIL PROTECTED]:

> Kenneth,
> 
> I'm completely with your proposal about the STRPCCMDJ as it will allow for 
> so much more than STRPCCMD. The problem being however you application has 
> to run on TN5250j. 
> 
> Most of the customers use e.g. third party software where the STRPCCMD is 
> programmed in the application. so they can not change it. The call is used 
> for the most stupiest stuff you can imagine. e.g. open an image or a word 
> document; Whatever. You imagine it they do it somewhere; 
> 
> That is the main reason I think we need to implement standard STRPCCMD 
> behaviour. As a matter a fact the STRPCCMD functionality is implemented so 
> simple it is even stupid. Look at the screenshots below
> 
> Wim.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Kenneth Pouncey <[EMAIL PROTECTED]> 
> Sent by: [EMAIL PROTECTED]
> 17/06/2005 10:00
> Please respond to
> tn5250j-general@lists.sourceforge.net
> 
> 
> To
> tn5250j-general@lists.sourceforge.net
> cc
> 
> Subject
> Re: [Tn5250j-general] STRPCCMD - STRPCO uses?
> 
> 
> 
> 
> 
> 
> 
> Wim
> 
> I have been thinking about this ever since Ignacio posted to the list.  My 
> idea
> was to implement our own STRPCCMD command maybe called STRPCCMDJ or 
> something
> stupid like that.  Here we just attach a scan listener like you do in one 
> of the
> modules maybe My5250 and take care of it that way.  When we get the 
> command we
> can parse it and anything that has #!STRPCCMD x in it we just 
> execut it.
>  Was going to be one of my sample/examples :-)
> 
> Technical question?  Is there a special stream passed back for this type 
> of
> call?  If there is would it be the -128 code that Ignacio posted?  If it 
> is
> where did he get the information from?
> 
> Also what do they use it for?  Sorry but can not really think of a use. Am 
> just
> a lowly programmer and not into the solutions that you and the others out 
> there do.
> 
> Cool!!!  Let's make this sucker jump through some hoops now that the code 
> base
> is stable.  This could turn out to be a lot more flexible that what CA 
> provides
> as well.  We could also allow a custom implementation to be loaded from 
> the
> command line so the clients can load their own modules to handle this in 
> their
> own way.
> 
> Regards
> 
> Kenneth
> 
> Quoting [EMAIL PROTECTED]:
> 
> > Hello Kenneth,
> > 
> > I've been looking on this issue also, because STRPCCMD is used by almost 
> 
> > all of our customers. So, I think we should implement it next to the 
> > scanning solution. I was wondering though if the streamdetection should 
> do 
> > a callback to an interface, or should immediately run the command as it 
> is 
> > so basic/standard functionality that a callback would be overhead. 
> > 
> > Not sure though what to scan for.
> > 
> > Wim.
> > 
> > 
> > 
> > 
> > 
> > 
> > Kenneth Pouncey <[EMAIL PROTECTED]> 
> > Sent by: [EMAIL PROTECTED]
> > 17/06/2005 09:36
> > Please respond to
> > tn5250j-general@lists.sourceforge.net
> > 
> > 
> > To
> > tn5250j-general@lists.sourceforge.net
> > cc
> > 
> > Subject
> > [Tn5250j-general] STRPCCMD - STRPCO uses?
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Hello all
> > 
> > I have seen a couple of people now trying to use this command.  Does 
> > anybody
> > have any ideas on it's use or do they use it?  If so then how?
> > 
> > The reason I ask is that I do beleive we can do this within the emulator 
> 
> > as
> > well.   That would work for linux environments as well :-))
> > 
> > If there is enough interest in this I will give it a try for the next 
> > release?
> > 
> > Also if anybody has any technical documentation on this and would share 
> it 
> > with
> > me that would be great.
> > 
> > Regards
> > 
> > Kenneth
> > 
> > 
> > 
> > ---
> > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> > from IBM. Find simple to follow Roadmaps, straightforward articles,
> > informative Webcasts and more! Get everything you need to get up to
> > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click

[Tn5250j-general] What about to move to 1.4 and drop 1.3 ?

2005-06-17 Thread Patrick Bielen



Hi 
Guys,
 
Since 5.0 is already 
official released and they're already
working on 6.0 
(which you can already beta-test) don't
you think it's time 
to move to 1.4 and drop the old 1.3
code 
?
 
The reason i ask is 
because i get a bunch of deprecated
CharToByte 
convertors which should be replaced by
the java.nio.charset 
class instead of using those old
sun.io 
classes.
 
That way we can also 
cleanup some code and maybe
that even makes some 
sence to the performance of
the overal tn5250j 
program ?
 
What do you guys 
think ?
 
Met vriendelijke groeten,Best 
Regards,
 
Patrick Bielen
 
System-Administrator Stafa Holland 
BVMicrosoft Certified ProfessionalSun Certified Java 
Programmer
 


Re: [Tn5250j-general] What about to move to 1.4 and drop 1.3 ?

2005-06-17 Thread Wim . Van . Leuven

Sounds good to me!

Wim.







"Patrick Bielen"
<[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
17/06/2005 14:13



Please respond to
tn5250j-general@lists.sourceforge.net





To



cc



Subject
[Tn5250j-general] What about
to move to 1.4 and drop 1.3 ?








Hi Guys,
 
Since 5.0 is already official released and
they're already
working on 6.0 (which you can already beta-test)
don't
you think it's time to move to 1.4 and drop
the old 1.3
code ?
 
The reason i ask is because i get a bunch
of deprecated
CharToByte convertors which should be replaced
by
the java.nio.charset class instead of using
those old
sun.io classes.
 
That way we can also cleanup some code and
maybe
that even makes some sence to the performance
of
the overal tn5250j program ?
 
What do you guys think ?
 
Met vriendelijke groeten,
Best Regards,
 
Patrick Bielen
 
System-Administrator Stafa Holland BV
Microsoft Certified Professional
Sun Certified Java Programmer
 


Re: [Tn5250j-general] Release

2005-06-17 Thread Richard Houston
Will let you know! Thanks!




Regards,
+--+
| Richard Houston  .^. |
| R.L.H.  Consulting   /V\ |
| E-Mail  <[EMAIL PROTECTED]>/(   )\   |
| WWW   ^^-^^|
+--+

Kenneth Pouncey said:
> Richard
>
> I have heard that before but have never gotten that.  Maybe a 1.5
> problem but without testing can not be sure.  Anyway this should be
> fixed in CVS now.  Update and give it a try.
>
> Richard Houston wrote:
>
>>One small thing. I seem to have an issue when starting th5250j. Once the
>>connection screen pops up it is behind the tn5250j splash screen. If I
>>click on the connection screen the connection screen will not pop above
>>the splash screen.
>>
>>The splash screen seems frozen and will not move and no window will pop
>>above it. Once I connect the splash screen goes away and all is good
>>again.
>>
>>Any ideas?
>>
>>I am testing with sun jdk 1.5.0_3 complied with the same version on
>> Linux.
>>
>>Also the spawn issue with firefox work now!
>>
>>
>>
>>
>>Regards,
>>+--+
>>| Richard Houston  .^. |
>>| R.L.H.  Consulting   /V\ |
>>| E-Mail  <[EMAIL PROTECTED]>/(   )\   |
>>| WWW   ^^-^^|
>>+--+
>>
>>Kenneth Pouncey said:
>>
>>
>>>Hello all
>>>
>>>What is in CVS will be frozen as of tomorrow my time unless there are
>>> some
>>>show
>>>stoppers.  I will put out a release tomorrow or saturday.
>>>
>>>The release number will be 0.6.0.  If anybody has any opinions on this
>>> let
>>>me know.
>>>
>>>Regards
>>>
>>>Kenneth
>>>
>>>
>>>
>>>---
>>>SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
>>>from IBM. Find simple to follow Roadmaps, straightforward articles,
>>>informative Webcasts and more! Get everything you need to get up to
>>>speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
>>>___
>>>Tn5250j-general mailing list
>>>Tn5250j-general@lists.sourceforge.net
>>>https://lists.sourceforge.net/lists/listinfo/tn5250j-general
>>>
>>>
>>>
>>>
>>
>>
>>
>>---
>>SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
>>from IBM. Find simple to follow Roadmaps, straightforward articles,
>>informative Webcasts and more! Get everything you need to get up to
>>speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
>>___
>>Tn5250j-general mailing list
>>Tn5250j-general@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/tn5250j-general
>>
>>.
>>
>>
>>
>



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] STRPCCMD - STRPCO uses?

2005-06-17 Thread Wim . Van . Leuven

Actually Kenneth, it is even simpler
I think. The STRPCO command actually doesn't do anything (anymore). Just
the STRPCCMD fails if you have not issued a STRPCO in advance. It is just
client access that scans for what is in the stream on STRPCCMD and indeed
scrapes the command and runs it and does an enter. As such it seems the
screen has never been displayed.

HTH,
wim







Kenneth Pouncey <[EMAIL PROTECTED]>

Sent by: [EMAIL PROTECTED]
17/06/2005 10:52



Please respond to
tn5250j-general@lists.sourceforge.net





To
tn5250j-general@lists.sourceforge.net


cc



Subject
Re: [Tn5250j-general] STRPCCMD
- STRPCO uses?









Wim

Well first off that test screen you have is pretty cool :-)  

Second it looks sort of like what we did for the scanner.  So basically
what it
does is this.  

1)  Sends the screen with a special command modeled after our scanner
stuff.
2)  if it does receive this and PCO is active then it will read the
screen and
not display it.  Even sending an Enter key afterwards could be.  Would
actually
need to sniff the interaction but I think that is what it does.

3)  If it is not active just display the screen like it says.  Basically
turning
on and off the scanner by a 5250 screen command.  This stops other
emulators
from continuing.  

Very simple indeed.  The solution was elegant.

Like I said in one of the previous messages to Pete.  It is not the
5250 data
streams themselves but how the client interprets and manipulates what is
there.

Now that is cool!!!

Regards

Kenneth



Quoting [EMAIL PROTECTED]:

> Kenneth,
> 
> I'm completely with your proposal about the STRPCCMDJ as it will allow
for 
> so much more than STRPCCMD. The problem being however you application
has 
> to run on TN5250j. 
> 
> Most of the customers use e.g. third party software where the STRPCCMD
is 
> programmed in the application. so they can not change it. The call
is used 
> for the most stupiest stuff you can imagine. e.g. open an image or
a word 
> document; Whatever. You imagine it they do it somewhere; 
> 
> That is the main reason I think we need to implement standard STRPCCMD

> behaviour. As a matter a fact the STRPCCMD functionality is implemented
so 
> simple it is even stupid. Look at the screenshots below
> 
> Wim.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Kenneth Pouncey <[EMAIL PROTECTED]> 
> Sent by: [EMAIL PROTECTED]
> 17/06/2005 10:00
> Please respond to
> tn5250j-general@lists.sourceforge.net
> 
> 
> To
> tn5250j-general@lists.sourceforge.net
> cc
> 
> Subject
> Re: [Tn5250j-general] STRPCCMD - STRPCO uses?
> 
> 
> 
> 
> 
> 
> 
> Wim
> 
> I have been thinking about this ever since Ignacio posted to the list.
 My 
> idea
> was to implement our own STRPCCMD command maybe called STRPCCMDJ or

> something
> stupid like that.  Here we just attach a scan listener like you
do in one 
> of the
> modules maybe My5250 and take care of it that way.  When we get
the 
> command we
> can parse it and anything that has #!STRPCCMD x in it we just

> execut it.
>  Was going to be one of my sample/examples :-)
> 
> Technical question?  Is there a special stream passed back for
this type 
> of
> call?  If there is would it be the -128 code that Ignacio posted?
 If it 
> is
> where did he get the information from?
> 
> Also what do they use it for?  Sorry but can not really think
of a use. Am 
> just
> a lowly programmer and not into the solutions that you and the others
out 
> there do.
> 
> Cool!!!  Let's make this sucker jump through some hoops now that
the code 
> base
> is stable.  This could turn out to be a lot more flexible that
what CA 
> provides
> as well.  We could also allow a custom implementation to be loaded
from 
> the
> command line so the clients can load their own modules to handle this
in 
> their
> own way.
> 
> Regards
> 
> Kenneth
> 
> Quoting [EMAIL PROTECTED]:
> 
> > Hello Kenneth,
> > 
> > I've been looking on this issue also, because STRPCCMD is used
by almost 
> 
> > all of our customers. So, I think we should implement it next
to the 
> > scanning solution. I was wondering though if the streamdetection
should 
> do 
> > a callback to an interface, or should immediately run the command
as it 
> is 
> > so basic/standard functionality that a callback would be overhead.

> > 
> > Not sure though what to scan for.
> > 
> > Wim.
> > 
> > 
> > 
> > 
> > 
> > 
> > Kenneth Pouncey <[EMAIL PROTECTED]> 
> > Sent by: [EMAIL PROTECTED]
> > 17/06/2005 09:36
> > Please respond to
> > tn5250j-general@lists.sourceforge.net
> > 
> > 
> > To
> > tn5250j-general@lists.sourceforge.net
> > cc
> > 
> > Subject
> > [Tn5250j-general] STRPCCMD - STRPCO uses?
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Hello all
> > 
> > I have seen a couple of people now trying to use this command.
 Does 
> > anybody
> > have any ideas on it's use or do they use it?  If so then
how?
> > 
> > The reason I ask is that I do beleive we can do this within the
emulator 
> 
> > as
> > well.   That would work for linux environ

Re: [Tn5250j-general] STRPCCMD - STRPCO uses?

2005-06-17 Thread Kenneth Pouncey

Wim

Yes I found that out after running a sniffer on CA.  I will bet it used to
though because it always says to run the PCO.EXE command on the PC side.  I
thought at first that was what was happening.  Really did not need to but wanted
to know for sure.

Here are the codes that are specified in the data stream:

-128 - Ø
-4 - Ü
-41 - P
-61 - C
-42 - O
64 -  
-125 - c
-128 - Ø
-95 - ~
-128 - Ø
-128 - Ø  <--- This says to wait for process to finish a value of -127 says not
to wait.

Here is the code I added to writeToDisplay:

case -128: // strpccmd
if (screen52.getCurrentPos() == 2) {
   
   System.out.println("got a -128 
command for strpccmd" +
screen52.getCurrentPos());
   int[] crap = new int[15];
   for (int i=1;i<11;i++) {
  crap[i-1]+=bk.getNextByte();
  System.out.println(crap[i-1] + " - " +
codePage.ebcdic2uni(crap[i-1]));
   }
   for (int i=1;i<11;i++)
  bk.setPrevByte();
   //sendAidKey(AID_ENTER);
}

There is no break; after this command so it continues processing as normal with
the default:

This dumps it all out.  I did not parse the command from the screen yet though.

Have kind of been thinking the best way to do this.  I did not want to parse the
command text directly from the datastream but will wait to build the full screen
and set a variable to say we are in command mode.  

At the end of the code right before we do the update of the screen I will check
for this variable of whether true or false and if true will call the routine to
parse the command from the already translated screen.  

This will also skip the call to update the screen so we see no flash.  Also with
the aid of this you will not get that last screen while doing a signoff.

I was parsing from the screen and checking for the codes but what I was thinking
was that with different languages those codes might be different because of the
translation from ebcdic to ascii.  Thus the reason for parsing it in
WriteToDisplay and not the place of scan method.

What do you think?


Regards

Kenneth


Quoting [EMAIL PROTECTED]:

> Actually Kenneth, it is even simpler I think. The STRPCO command actually 
> doesn't do anything (anymore). Just the STRPCCMD fails if you have not 
> issued a STRPCO in advance. It is just client access that scans for what 
> is in the stream on STRPCCMD and indeed scrapes the command and runs it 
> and does an enter. As such it seems the screen has never been displayed.
> 
> HTH,
> wim
> 
> 
> 
> 
> 
> Kenneth Pouncey <[EMAIL PROTECTED]> 
> Sent by: [EMAIL PROTECTED]
> 17/06/2005 10:52
> Please respond to
> tn5250j-general@lists.sourceforge.net
> 
> 
> To
> tn5250j-general@lists.sourceforge.net
> cc
> 
> Subject
> Re: [Tn5250j-general] STRPCCMD - STRPCO uses?
> 
> 
> 
> 
> 
> 
> 
> Wim
> 
> Well first off that test screen you have is pretty cool :-) 
> 
> Second it looks sort of like what we did for the scanner.  So basically 
> what it
> does is this. 
> 
> 1)  Sends the screen with a special command modeled after our scanner 
> stuff.
> 2)  if it does receive this and PCO is active then it will read the screen 
> and
> not display it.  Even sending an Enter key afterwards could be.  Would 
> actually
> need to sniff the interaction but I think that is what it does.
> 
> 3)  If it is not active just display the screen like it says.  Basically 
> turning
> on and off the scanner by a 5250 screen command.  This stops other 
> emulators
> from continuing. 
> 
> Very simple indeed.  The solution was elegant.
> 
> Like I said in one of the previous messages to Pete.  It is not the 5250 
> data
> streams themselves but how the client interprets and manipulates what is 
> there.
> 
> Now that is cool!!!
> 
> Regards
> 
> Kenneth
> 
> 
> 
> Quoting [EMAIL PROTECTED]:
> 
> > Kenneth,
> > 
> > I'm completely with your proposal about the STRPCCMDJ as it will allow 
> for 
> > so much more than STRPCCMD. The problem being however you application 
> has 
> > to run on TN5250j. 
> > 
> > Most of the customers use e.g. third party software where the STRPCCMD 
> is 
> > programmed in the application. so they can not change it. The call is 
> used 
> > for the most stupiest stuff you can imagine. e.g. open an image or a 
> word 
> > document; Whatever. You imagine it they do it somewhere; 
> > 
> > That is the main reason I think we need to implement standard STRPCCMD 
> > behaviour. As a matter a fact the STRPCCMD functionality is implemented 
> so 
> > simple it is even stupid. Look at the screenshots below
> > 
> > Wim.
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >

Re: [Tn5250j-general] STRPCCMD - STRPCO uses?

2005-06-17 Thread Wim . Van . Leuven

Hello Kenneth,

this all sounds logical to me. So I
think it will do. Do you know how to to launch the command and possibly
wait for it to finish? I'd suggest the Runtime.exec() and Process calls?

Wim.







Kenneth Pouncey <[EMAIL PROTECTED]>

Sent by: [EMAIL PROTECTED]
17/06/2005 16:04



Please respond to
tn5250j-general@lists.sourceforge.net





To
tn5250j-general@lists.sourceforge.net


cc



Subject
Re: [Tn5250j-general] STRPCCMD
- STRPCO uses?









Wim

Yes I found that out after running a sniffer on CA.  I will bet it
used to
though because it always says to run the PCO.EXE command on the PC side.
 I
thought at first that was what was happening.  Really did not need
to but wanted
to know for sure.

Here are the codes that are specified in the data stream:

-128 - Ø
-4 - Ü
-41 - P
-61 - C
-42 - O
64 -  
-125 - c
-128 - Ø
-95 - ~
-128 - Ø
-128 - Ø  <--- This says to wait for process to finish a value
of -127 says not
to wait.

Here is the code I added to writeToDisplay:

                
                 
               
                 case
-128: // strpccmd
                
                 
               
                 
               
if (screen52.getCurrentPos() == 2) {
                
                 
               
                 
               
   
                
                 
               
                 
               
   System.out.println("got a -128 command for strpccmd"
+
screen52.getCurrentPos());
                
                 
               
                 
               
   int[] crap = new int[15];
                
                 
               
                 
               
   for (int i=1;i<11;i++) {
                    
     crap[i-1]+=bk.getNextByte();
                    
     System.out.println(crap[i-1] + " - " +
codePage.ebcdic2uni(crap[i-1]));
                
                 
               
                 
               
   }
                
                 
               
                 
               
   for (int i=1;i<11;i++)
                    
     bk.setPrevByte();
                
                 
               
                 
               
   //sendAidKey(AID_ENTER);
                
                 
               
                 
               
}

There is no break; after this command so it continues processing as normal
with
the default:

This dumps it all out.  I did not parse the command from the screen
yet though.

Have kind of been thinking the best way to do this.  I did not want
to parse the
command text directly from the datastream but will wait to build the full
screen
and set a variable to say we are in command mode.  

At the end of the code right before we do the update of the screen I will
check
for this variable of whether true or false and if true will call the routine
to
parse the command from the already translated screen.  

This will also skip the call to update the screen so we see no flash.  Also
with
the aid of this you will not get that last screen while doing a signoff.

I was parsing from the screen and checking for the codes but what I was
thinking
was that with different languages those codes might be different because
of the
translation from ebcdic to ascii.  Thus the reason for parsing it
in
WriteToDisplay and not the place of scan method.

What do you think?


Regards

Kenneth


Quoting [EMAIL PROTECTED]:

> Actually Kenneth, it is even simpler I think. The STRPCO command actually

> doesn't do anything (anymore). Just the STRPCCMD fails if you have
not 
> issued a STRPCO in advance. It is just client access that scans for
what 
> is in the stream on STRPCCMD and indeed scrapes the command and runs
it 
> and does an enter. As such it seems the screen has never been displayed.
> 
> HTH,
> wim
> 
> 
> 
> 
> 
> Kenneth Pouncey <[EMAIL PROTECTED]> 
> Sent by: [EMAIL PROTECTED]
> 17/06/2005 10:52
> Please respond to
> tn5250j-general@lists.sourceforge.net
> 
> 
> To
> tn5250j-general@lists.sourceforge.net
> cc
> 
> Subject
> Re: [Tn5250j-general] STRPCCMD - STRPCO uses?
> 
> 
> 
> 
> 
> 
> 
> Wim
> 
> Well first off that test screen you have is pretty cool :-) 
> 
> Second it looks sort of like what we did for the scanner.  So
basically 
> what it
> does is this. 
> 
> 1)  Sends the screen with a special command modeled after our
scanner 
> stuff.
> 2)  if it does receive this and PCO is active then it will read
the screen 
> and
> not display it.  Even sending an Enter key afterwards could be.
 Would 
> actually
> need to sniff the interaction but I think that is what it does.
> 
> 3)  If it is not active just display the screen like it says.
 Basically 
> turning
> on and off the scanner by a 5250 screen command.  This stops
other 
> emulators
> from continuing. 
> 
> Very simple indeed.  The solution was elegant.
> 
> Like I said in one of the previous messages to Pete.  It is not
the 5250 
> data
> streams themselves but how the client interprets and manipulates what

Re: [Tn5250j-general] STRPCCMD - STRPCO uses?

2005-06-17 Thread Kenneth Pouncey

Wim

Yep sure do.  That is how I do the hotspots for http/https and the such for
launching the different browsers.

Is there anyway for you to give it a go and finish up parsing the command?  I
have to get studying and put out a release tomorrow.  Next week is for my exams
as I have put them off long enough.

I wrote routines in the OperatingSystem module to do the calls for execute.  It
will need to be changed to do a wait though but that is not a problem the code
is still there just commented out.

On thing is for windows and others for linux and such.  You could always call
the command.exe like CA does and it will pull up a dos window.  If not then it
will just execute the code.  Either one is fine with me.

Regards


Kenneth




Quoting [EMAIL PROTECTED]:

> Hello Kenneth,
> 
> this all sounds logical to me. So I think it will do. Do you know how to 
> to launch the command and possibly wait for it to finish? I'd suggest the 
> Runtime.exec() and Process calls?
> 
> Wim.
> 
> 
> 
> 
> 
> Kenneth Pouncey <[EMAIL PROTECTED]> 
> Sent by: [EMAIL PROTECTED]
> 17/06/2005 16:04
> Please respond to
> tn5250j-general@lists.sourceforge.net
> 
> 
> To
> tn5250j-general@lists.sourceforge.net
> cc
> 
> Subject
> Re: [Tn5250j-general] STRPCCMD - STRPCO uses?
> 
> 
> 
> 
> 
> 
> 
> Wim
> 
> Yes I found that out after running a sniffer on CA.  I will bet it used to
> though because it always says to run the PCO.EXE command on the PC side. I
> thought at first that was what was happening.  Really did not need to but 
> wanted
> to know for sure.
> 
> Here are the codes that are specified in the data stream:
> 
> -128 - Ø
> -4 - Ü
> -41 - P
> -61 - C
> -42 - O
> 64 - 
> -125 - c
> -128 - Ø
> -95 - ~
> -128 - Ø
> -128 - Ø  <--- This says to wait for process to finish a value of -127 
> says not
> to wait.
> 
> Here is the code I added to writeToDisplay:
> 
>  case 
> -128: // strpccmd
>   if (screen52.getCurrentPos() == 2) {
>   
>  System.out.println("got a -128 command for strpccmd" +
> screen52.getCurrentPos());
>  int[] crap = new int[15];
>  for (int i=1;i<11;i++) {
>   crap[i-1]+=bk.getNextByte();
>   System.out.println(crap[i-1] + " - " +
> codePage.ebcdic2uni(crap[i-1]));
>  }
>  for (int i=1;i<11;i++)
>   bk.setPrevByte();
>  //sendAidKey(AID_ENTER);
>   }
> 
> There is no break; after this command so it continues processing as normal 
> with
> the default:
> 
> This dumps it all out.  I did not parse the command from the screen yet 
> though.
> 
> Have kind of been thinking the best way to do this.  I did not want to 
> parse the
> command text directly from the datastream but will wait to build the full 
> screen
> and set a variable to say we are in command mode. 
> 
> At the end of the code right before we do the update of the screen I will 
> check
> for this variable of whether true or false and if true will call the 
> routine to
> parse the command from the already translated screen. 
> 
> This will also skip the call to update the screen so we see no flash. Also 
> with
> the aid of this you will not get that last screen while doing a signoff.
> 
> I was parsing from the screen and checking for the codes but what I was 
> thinking
> was that with different languages those codes might be different because 
> of the
> translation from ebcdic to ascii.  Thus the reason for parsing it in
> WriteToDisplay and not the place of scan method.
> 
> What do you think?
> 
> 
> Regards
> 
> Kenneth
> 
> 
> Quoting [EMAIL PROTECTED]:
> 
> > Actually Kenneth, it is even simpler I think. The STRPCO command 
> actually 
> > doesn't do anything (anymore). Just the STRPCCMD fails if you have not 
> > issued a STRPCO in advance. It is just client access that scans for what 
> 
> > is in the stream on STRPCCMD and indeed scrapes the command and runs it 
> > and does an enter. As such it seems the screen has never been displayed.
> > 
> > HTH,
> > wim
> > 
> > 
> > 
> > 
> > 
> > Kenneth Pouncey <[EMAIL PROTECTED]> 
> > Sent by: [EMAIL PROTECTED]
> > 17/06/2005 10:52
> > Please respond to
> > tn5250j-general@lists.sourceforge.net
> > 
> > 
> > To
> > tn5250j-general@lists.sourceforge.net
> > cc
> > 
> > Subject
> > Re: [Tn5250j-general] STRPCCMD - STRPCO uses?
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Wim
> > 
> > Well first off that test screen you have is pretty cool :-) 
> > 
> > Second it looks sort of like what we did for the scanner.  So basically 
> > what it
> > does is this. 
> > 
> > 1)  Sends the screen with a special command modeled after our scanner 
> > stuff.
> > 2)  if it does receive this and PCO is active then it will read the 
> screen 
> > and
> > not display it.  Even sending an Enter key afterwards could be.  Would 
> > actually
> > need to sniff the interaction but I think that is what it does.
> > 
> > 3)  If it is not active just display the scr

[Tn5250j-general] Crash on first time connect

2005-06-17 Thread Richard Houston
I know this is not a big issue but I figured I would pass it on.

If I set up a new tn5250J install and I add a new connection, if I click
connect, right after creating the new connection, I get the following
exception.

[Java] 0[main] INFO  org.tn5250j.framework.common.SessionManager  -
New session Manager initialized
 [java] 8[main] INFO  org.tn5250j.framework.Tn5250jController  -
plugin directory is:
/usr/src/tn5250j/dist/tn5250j-0.5.8Alpha5-run/ext
 [java] 9[main] INFO  org.tn5250j.framework.Tn5250jController  -
Tn5250j plugin manager created
 [java] 106  [Thread-1] INFO  org.tn5250j.framework.Tn5250jController 
- Tn5250j plugin manager started
 [java] Exception occurred during event dispatching:
 [java] java.lang.ArrayIndexOutOfBoundsException: -1
 [java] at java.util.Vector.get(Vector.java:712)
 [java] at
org.tn5250j.Connect$ConfigureTableModel.getPropValue(Unknown Source)
 [java] at
org.tn5250j.Connect$ConfigureTableModel.getValueAt(Unknown Source)
 [java] at org.tn5250j.Connect.doActionConnect(Unknown Source)
 [java] at org.tn5250j.Connect.actionPerformed(Unknown Source)
 [java] at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
 [java] at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
 [java] at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
 [java] at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
 [java] at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
 [java] at java.awt.Component.processMouseEvent(Component.java:5488)
 [java] at
javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
 [java] at java.awt.Component.processEvent(Component.java:5253)
 [java] at java.awt.Container.processEvent(Container.java:1966)
 [java] at java.awt.Component.dispatchEventImpl(Component.java:3955)
 [java] at java.awt.Container.dispatchEventImpl(Container.java:2024)
 [java] at java.awt.Component.dispatchEvent(Component.java:3803)
 [java] at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
 [java] at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
 [java] at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
 [java] at java.awt.Container.dispatchEventImpl(Container.java:2010)
 [java] at java.awt.Window.dispatchEventImpl(Window.java:1774)
 [java] at java.awt.Component.dispatchEvent(Component.java:3803)
 [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
 [java] at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
 [java] at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
 [java] at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
 [java] at java.awt.Dialog$1.run(Dialog.java:515)
 [java] at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
 [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
 [java] at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
 [java] at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
 [java] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
 [java] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
 [java] at
java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Then the hour glass just spins and spins. Now if I close the program down,
open it up again and connect to the new connection i just created it works
fine. Also if i open tn5250j again and create a new new connection, then
click connect it works fine.

I know it an issue that does not happen often put figured I would pass it
on. I am sure someone in user land will complain about it. ;)

Thanks


Regards,
+--+
| Richard Houston  .^. |
| R.L.H.  Consulting   /V\ |
| E-Mail  <[EMAIL PROTECTED]>/(   )\   |
| WWW   ^^-^^|
+--+




---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] STRPCCMD - STRPCO uses?

2005-06-17 Thread Wim . Van . Leuven

And from what do I start? 

Can I  also do it at the beginning
of next week?









Kenneth Pouncey <[EMAIL PROTECTED]>

Sent by: [EMAIL PROTECTED]
17/06/2005 16:34



Please respond to
tn5250j-general@lists.sourceforge.net





To
tn5250j-general@lists.sourceforge.net


cc



Subject
Re: [Tn5250j-general] STRPCCMD
- STRPCO uses?









Wim

Yep sure do.  That is how I do the hotspots for http/https and the
such for
launching the different browsers.

Is there anyway for you to give it a go and finish up parsing the command?
 I
have to get studying and put out a release tomorrow.  Next week is
for my exams
as I have put them off long enough.

I wrote routines in the OperatingSystem module to do the calls for execute.
 It
will need to be changed to do a wait though but that is not a problem the
code
is still there just commented out.

On thing is for windows and others for linux and such.  You could
always call
the command.exe like CA does and it will pull up a dos window.  If
not then it
will just execute the code.  Either one is fine with me.

Regards


Kenneth




Quoting [EMAIL PROTECTED]:

> Hello Kenneth,
> 
> this all sounds logical to me. So I think it will do. Do you know
how to 
> to launch the command and possibly wait for it to finish? I'd suggest
the 
> Runtime.exec() and Process calls?
> 
> Wim.
> 
> 
> 
> 
> 
> Kenneth Pouncey <[EMAIL PROTECTED]> 
> Sent by: [EMAIL PROTECTED]
> 17/06/2005 16:04
> Please respond to
> tn5250j-general@lists.sourceforge.net
> 
> 
> To
> tn5250j-general@lists.sourceforge.net
> cc
> 
> Subject
> Re: [Tn5250j-general] STRPCCMD - STRPCO uses?
> 
> 
> 
> 
> 
> 
> 
> Wim
> 
> Yes I found that out after running a sniffer on CA.  I will bet
it used to
> though because it always says to run the PCO.EXE command on the PC
side. I
> thought at first that was what was happening.  Really did not
need to but 
> wanted
> to know for sure.
> 
> Here are the codes that are specified in the data stream:
> 
> -128 - Ø
> -4 - Ü
> -41 - P
> -61 - C
> -42 - O
> 64 - 
> -125 - c
> -128 - Ø
> -95 - ~
> -128 - Ø
> -128 - Ø  <--- This says to wait for process to finish a value
of -127 
> says not
> to wait.
> 
> Here is the code I added to writeToDisplay:
> 
>                    
                     
                     
 case 
> -128: // strpccmd
>   if (screen52.getCurrentPos() == 2) {
>   
>      System.out.println("got a -128 command for
strpccmd" +
> screen52.getCurrentPos());
>      int[] crap = new int[15];
>      for (int i=1;i<11;i++) {
>                    
      crap[i-1]+=bk.getNextByte();
>                    
      System.out.println(crap[i-1] + " - " +
> codePage.ebcdic2uni(crap[i-1]));
>      }
>      for (int i=1;i<11;i++)
>                    
      bk.setPrevByte();
>      //sendAidKey(AID_ENTER);
>   }
> 
> There is no break; after this command so it continues processing as
normal 
> with
> the default:
> 
> This dumps it all out.  I did not parse the command from the
screen yet 
> though.
> 
> Have kind of been thinking the best way to do this.  I did not
want to 
> parse the
> command text directly from the datastream but will wait to build the
full 
> screen
> and set a variable to say we are in command mode. 
> 
> At the end of the code right before we do the update of the screen
I will 
> check
> for this variable of whether true or false and if true will call the

> routine to
> parse the command from the already translated screen. 
> 
> This will also skip the call to update the screen so we see no flash.
Also 
> with
> the aid of this you will not get that last screen while doing a signoff.
> 
> I was parsing from the screen and checking for the codes but what
I was 
> thinking
> was that with different languages those codes might be different because

> of the
> translation from ebcdic to ascii.  Thus the reason for parsing
it in
> WriteToDisplay and not the place of scan method.
> 
> What do you think?
> 
> 
> Regards
> 
> Kenneth
> 
> 
> Quoting [EMAIL PROTECTED]:
> 
> > Actually Kenneth, it is even simpler I think. The STRPCO command

> actually 
> > doesn't do anything (anymore). Just the STRPCCMD fails if you
have not 
> > issued a STRPCO in advance. It is just client access that scans
for what 
> 
> > is in the stream on STRPCCMD and indeed scrapes the command and
runs it 
> > and does an enter. As such it seems the screen has never been
displayed.
> > 
> > HTH,
> > wim
> > 
> > 
> > 
> > 
> > 
> > Kenneth Pouncey <[EMAIL PROTECTED]> 
> > Sent by: [EMAIL PROTECTED]
> > 17/06/2005 10:52
> > Please respond to
> > tn5250j-general@lists.sourceforge.net
> > 
> > 
> > To
> > tn5250j-general@lists.sourceforge.net
> > cc
> > 
> > Subject
> > Re: [Tn5250j-general] STRPCCMD - STRPCO uses?
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Wim
> > 
> > Well first off that test screen you have is pretty cool :-) 
> > 
> > Second it looks sort of like what we did for the scanner.  So
basically 
> > what it
> > does is this. 
> > 
> > 1)  Sends the screen with a special comm

Re: [Tn5250j-general] Crash on first time connect

2005-06-17 Thread Kenneth Pouncey

Richard

Well crap.  That is what I call a show stopper Richard.  Am pretty sure everyone
will get it on first connection and that is not good.

Thanks for letting me know before I put it out there like that.

Will have do a fresh install as all of mine are already there and sessions
exist.  Never even thought about trying with a new install.

Regards

Kenneth


Quoting Richard Houston <[EMAIL PROTECTED]>:

> I know this is not a big issue but I figured I would pass it on.
> 
> If I set up a new tn5250J install and I add a new connection, if I click
> connect, right after creating the new connection, I get the following
> exception.
> 
> [Java] 0[main] INFO  org.tn5250j.framework.common.SessionManager  -
> New session Manager initialized
>  [java] 8[main] INFO  org.tn5250j.framework.Tn5250jController  -
> plugin directory is:
> /usr/src/tn5250j/dist/tn5250j-0.5.8Alpha5-run/ext
>  [java] 9[main] INFO  org.tn5250j.framework.Tn5250jController  -
> Tn5250j plugin manager created
>  [java] 106  [Thread-1] INFO  org.tn5250j.framework.Tn5250jController 
> - Tn5250j plugin manager started
>  [java] Exception occurred during event dispatching:
>  [java] java.lang.ArrayIndexOutOfBoundsException: -1
>  [java] at java.util.Vector.get(Vector.java:712)
>  [java] at
> org.tn5250j.Connect$ConfigureTableModel.getPropValue(Unknown Source)
>  [java] at
> org.tn5250j.Connect$ConfigureTableModel.getValueAt(Unknown Source)
>  [java] at org.tn5250j.Connect.doActionConnect(Unknown Source)
>  [java] at org.tn5250j.Connect.actionPerformed(Unknown Source)
>  [java] at
> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
>  [java] at
> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
>  [java] at
> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
>  [java] at
> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
>  [java] at
>
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
>  [java] at java.awt.Component.processMouseEvent(Component.java:5488)
>  [java] at
> javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
>  [java] at java.awt.Component.processEvent(Component.java:5253)
>  [java] at java.awt.Container.processEvent(Container.java:1966)
>  [java] at java.awt.Component.dispatchEventImpl(Component.java:3955)
>  [java] at java.awt.Container.dispatchEventImpl(Container.java:2024)
>  [java] at java.awt.Component.dispatchEvent(Component.java:3803)
>  [java] at
> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
>  [java] at
> java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
>  [java] at
> java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
>  [java] at java.awt.Container.dispatchEventImpl(Container.java:2010)
>  [java] at java.awt.Window.dispatchEventImpl(Window.java:1774)
>  [java] at java.awt.Component.dispatchEvent(Component.java:3803)
>  [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
>  [java] at
>
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
>  [java] at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
>  [java] at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
>  [java] at java.awt.Dialog$1.run(Dialog.java:515)
>  [java] at
> java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
>  [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
>  [java] at
>
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
>  [java] at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
>  [java] at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
>  [java] at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
>  [java] at
> java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
> 
> Then the hour glass just spins and spins. Now if I close the program down,
> open it up again and connect to the new connection i just created it works
> fine. Also if i open tn5250j again and create a new new connection, then
> click connect it works fine.
> 
> I know it an issue that does not happen often put figured I would pass it
> on. I am sure someone in user land will complain about it. ;)
> 
> Thanks
> 
> 
> Regards,
> +--+
> | Richard Houston  .^. |
> | R.L.H.  Consulting   /V\ |
> | E-Mail  <[EMAIL PROTECTED]>/(   )\   |
> | WWW   ^^-^^|
> +--+
> 
> 
> 
> 
> 

Re: [Tn5250j-general] STRPCCMD - STRPCO uses?

2005-06-17 Thread Kenneth Pouncey

Wim

> And from what do I start? 

Woops I thought it was just putting the code in writeToDisplay() that I copied
in the other message.  That is all I changed so far to see what the codes that
are passed just to get started and actually capturing the point.

> Can I  also do it at the beginning of next week?
:-(  Wim sorry it was just a question.  As you said you were thinking about
looking into it for your clients.  By no means was it a command as I do not do
that on the project as you well know.  I thought if you were going to do it
anyway there was really no sense in both working on it.  I may not get to it for
more than a few weeks so thought maybe you would go from there.  If not no
probs, when I get back to coding after exams.

Regards

Kenneth


Quoting [EMAIL PROTECTED]:

> And from what do I start? 
> 
> Can I  also do it at the beginning of next week?
> 
> 
> 
> 
> 
> 
> 
> Kenneth Pouncey <[EMAIL PROTECTED]> 
> Sent by: [EMAIL PROTECTED]
> 17/06/2005 16:34
> Please respond to
> tn5250j-general@lists.sourceforge.net
> 
> 
> To
> tn5250j-general@lists.sourceforge.net
> cc
> 
> Subject
> Re: [Tn5250j-general] STRPCCMD - STRPCO uses?
> 
> 
> 
> 
> 
> 
> 
> Wim
> 
> Yep sure do.  That is how I do the hotspots for http/https and the such 
> for
> launching the different browsers.
> 
> Is there anyway for you to give it a go and finish up parsing the command? 
>  I
> have to get studying and put out a release tomorrow.  Next week is for my 
> exams
> as I have put them off long enough.
> 
> I wrote routines in the OperatingSystem module to do the calls for 
> execute.  It
> will need to be changed to do a wait though but that is not a problem the 
> code
> is still there just commented out.
> 
> On thing is for windows and others for linux and such.  You could always 
> call
> the command.exe like CA does and it will pull up a dos window.  If not 
> then it
> will just execute the code.  Either one is fine with me.
> 
> Regards
> 
> 
> Kenneth
> 
> 
> 
> 
> Quoting [EMAIL PROTECTED]:
> 
> > Hello Kenneth,
> > 
> > this all sounds logical to me. So I think it will do. Do you know how to 
> 
> > to launch the command and possibly wait for it to finish? I'd suggest 
> the 
> > Runtime.exec() and Process calls?
> > 
> > Wim.
> > 
> > 
> > 
> > 
> > 
> > Kenneth Pouncey <[EMAIL PROTECTED]> 
> > Sent by: [EMAIL PROTECTED]
> > 17/06/2005 16:04
> > Please respond to
> > tn5250j-general@lists.sourceforge.net
> > 
> > 
> > To
> > tn5250j-general@lists.sourceforge.net
> > cc
> > 
> > Subject
> > Re: [Tn5250j-general] STRPCCMD - STRPCO uses?
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Wim
> > 
> > Yes I found that out after running a sniffer on CA.  I will bet it used 
> to
> > though because it always says to run the PCO.EXE command on the PC side. 
> I
> > thought at first that was what was happening.  Really did not need to 
> but 
> > wanted
> > to know for sure.
> > 
> > Here are the codes that are specified in the data stream:
> > 
> > -128 - Ø
> > -4 - Ü
> > -41 - P
> > -61 - C
> > -42 - O
> > 64 - 
> > -125 - c
> > -128 - Ø
> > -95 - ~
> > -128 - Ø
> > -128 - Ø  <--- This says to wait for process to finish a value of -127 
> > says not
> > to wait.
> > 
> > Here is the code I added to writeToDisplay:
> > 
> >  case 
> > -128: // strpccmd
> >   if (screen52.getCurrentPos() == 2) {
> > 
> >  System.out.println("got a -128 command for strpccmd" +
> > screen52.getCurrentPos());
> >  int[] crap = new int[15];
> >  for (int i=1;i<11;i++) {
> >   crap[i-1]+=bk.getNextByte();
> >   System.out.println(crap[i-1] + " - " +
> > codePage.ebcdic2uni(crap[i-1]));
> >  }
> >  for (int i=1;i<11;i++)
> >   bk.setPrevByte();
> >  //sendAidKey(AID_ENTER);
> >   }
> > 
> > There is no break; after this command so it continues processing as 
> normal 
> > with
> > the default:
> > 
> > This dumps it all out.  I did not parse the command from the screen yet 
> > though.
> > 
> > Have kind of been thinking the best way to do this.  I did not want to 
> > parse the
> > command text directly from the datastream but will wait to build the 
> full 
> > screen
> > and set a variable to say we are in command mode. 
> > 
> > At the end of the code right before we do the update of the screen I 
> will 
> > check
> > for this variable of whether true or false and if true will call the 
> > routine to
> > parse the command from the already translated screen. 
> > 
> > This will also skip the call to update the screen so we see no flash. 
> Also 
> > with
> > the aid of this you will not get that last screen while doing a signoff.
> > 
> > I was parsing from the screen and checking for the codes but what I was 
> > thinking
> > was that with different languages those codes might be different because 
> 
> > of the
> > translation from ebcdic to ascii.  Thus the reason for parsing it in
>

Re: [Tn5250j-general] Crash on first time connect

2005-06-17 Thread Richard Houston
Sorry Dude,

FYI, this has been there for a long time. I believe this has happened
since I started using TN5250J. We have just sort of lived with it.



Regards,
+--+
| Richard Houston  .^. |
| R.L.H.  Consulting   /V\ |
| E-Mail  <[EMAIL PROTECTED]>/(   )\   |
| WWW   ^^-^^|
+--+

Kenneth Pouncey said:
>
> Richard
>
> Well crap.  That is what I call a show stopper Richard.  Am pretty sure
> everyone
> will get it on first connection and that is not good.
>
> Thanks for letting me know before I put it out there like that.
>
> Will have do a fresh install as all of mine are already there and sessions
> exist.  Never even thought about trying with a new install.
>
> Regards
>
> Kenneth
>
>
> Quoting Richard Houston <[EMAIL PROTECTED]>:
>
>> I know this is not a big issue but I figured I would pass it on.
>>
>> If I set up a new tn5250J install and I add a new connection, if I click
>> connect, right after creating the new connection, I get the following
>> exception.
>>
>> [Java] [main] INFO  org.tn5250j.framework.common.SessionManager  -
>> New session Manager initialized
>>  [java] 8[main] INFO  org.tn5250j.framework.Tn5250jController  -
>> plugin directory is:
>> /usr/src/tn5250j/dist/tn5250j-0.5.8Alpha5-run/ext
>>  [java] 9[main] INFO  org.tn5250j.framework.Tn5250jController  -
>> Tn5250j plugin manager created
>>  [java] 106  [Thread-1] INFO
>> org.tn5250j.framework.Tn5250jController
>> - Tn5250j plugin manager started
>>  [java] Exception occurred during event dispatching:
>>  [java] java.lang.ArrayIndexOutOfBoundsException: -1
>>  [java] at java.util.Vector.get(Vector.java:712)
>>  [java] at
>> org.tn5250j.Connect$ConfigureTableModel.getPropValue(Unknown Source)
>>  [java] at
>> org.tn5250j.Connect$ConfigureTableModel.getValueAt(Unknown Source)
>>  [java] at org.tn5250j.Connect.doActionConnect(Unknown Source)
>>  [java] at org.tn5250j.Connect.actionPerformed(Unknown Source)
>>  [java] at
>> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
>>  [java] at
>> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
>>  [java] at
>> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
>>  [java] at
>> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
>>  [java] at
>>
> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
>>  [java] at
>> java.awt.Component.processMouseEvent(Component.java:5488)
>>  [java] at
>> javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
>>  [java] at java.awt.Component.processEvent(Component.java:5253)
>>  [java] at java.awt.Container.processEvent(Container.java:1966)
>>  [java] at
>> java.awt.Component.dispatchEventImpl(Component.java:3955)
>>  [java] at
>> java.awt.Container.dispatchEventImpl(Container.java:2024)
>>  [java] at java.awt.Component.dispatchEvent(Component.java:3803)
>>  [java] at
>> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
>>  [java] at
>> java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
>>  [java] at
>> java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
>>  [java] at
>> java.awt.Container.dispatchEventImpl(Container.java:2010)
>>  [java] at java.awt.Window.dispatchEventImpl(Window.java:1774)
>>  [java] at java.awt.Component.dispatchEvent(Component.java:3803)
>>  [java] at
>> java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
>>  [java] at
>>
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
>>  [java] at
>> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
>>  [java] at
>> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
>>  [java] at java.awt.Dialog$1.run(Dialog.java:515)
>>  [java] at
>> java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
>>  [java] at
>> java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
>>  [java] at
>>
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
>>  [java] at
>> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
>>  [java] at
>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
>>  [java] at
>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
>>  [java] at
>> java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
>>
>> Then the hour glass just spins and spins. Now if I close the program
>> down,
>> open it up again and connect to the new connection i just created 

Re: [Tn5250j-general] Crash on first time connect

2005-06-17 Thread Kenneth Pouncey
hahahaha now isn't that funny.  I bet the emulator is getting trashed on all the
 mail lists out there then.

"Ahhh Piece of crap it will not even connect.  Delete that crap!!!"

hahahaha.  Well that will be solved tomorrow.  Thanks for letting me know.

By the way, for those that are members of other lists, what is the feedback on
some of the other lists?  I never look at them so thought it might be
interesting to know.

Regards

Kenneth



Quoting Richard Houston <[EMAIL PROTECTED]>:

> Sorry Dude,
> 
> FYI, this has been there for a long time. I believe this has happened
> since I started using TN5250J. We have just sort of lived with it.
> 
> 
> 
> Regards,
> +--+
> | Richard Houston  .^. |
> | R.L.H.  Consulting   /V\ |
> | E-Mail  <[EMAIL PROTECTED]>/(   )\   |
> | WWW   ^^-^^|
> +--+
> 
> Kenneth Pouncey said:
> >
> > Richard
> >
> > Well crap.  That is what I call a show stopper Richard.  Am pretty sure
> > everyone
> > will get it on first connection and that is not good.
> >
> > Thanks for letting me know before I put it out there like that.
> >
> > Will have do a fresh install as all of mine are already there and sessions
> > exist.  Never even thought about trying with a new install.
> >
> > Regards
> >
> > Kenneth
> >
> >
> > Quoting Richard Houston <[EMAIL PROTECTED]>:
> >
> >> I know this is not a big issue but I figured I would pass it on.
> >>
> >> If I set up a new tn5250J install and I add a new connection, if I click
> >> connect, right after creating the new connection, I get the following
> >> exception.
> >>
> >> [Java] [main] INFO  org.tn5250j.framework.common.SessionManager  -
> >> New session Manager initialized
> >>  [java] 8[main] INFO  org.tn5250j.framework.Tn5250jController  -
> >> plugin directory is:
> >> /usr/src/tn5250j/dist/tn5250j-0.5.8Alpha5-run/ext
> >>  [java] 9[main] INFO  org.tn5250j.framework.Tn5250jController  -
> >> Tn5250j plugin manager created
> >>  [java] 106  [Thread-1] INFO
> >> org.tn5250j.framework.Tn5250jController
> >> - Tn5250j plugin manager started
> >>  [java] Exception occurred during event dispatching:
> >>  [java] java.lang.ArrayIndexOutOfBoundsException: -1
> >>  [java] at java.util.Vector.get(Vector.java:712)
> >>  [java] at
> >> org.tn5250j.Connect$ConfigureTableModel.getPropValue(Unknown Source)
> >>  [java] at
> >> org.tn5250j.Connect$ConfigureTableModel.getValueAt(Unknown Source)
> >>  [java] at org.tn5250j.Connect.doActionConnect(Unknown Source)
> >>  [java] at org.tn5250j.Connect.actionPerformed(Unknown Source)
> >>  [java] at
> >> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
> >>  [java] at
> >>
> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
> >>  [java] at
> >>
> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
> >>  [java] at
> >> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
> >>  [java] at
> >>
> >
>
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
> >>  [java] at
> >> java.awt.Component.processMouseEvent(Component.java:5488)
> >>  [java] at
> >> javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
> >>  [java] at java.awt.Component.processEvent(Component.java:5253)
> >>  [java] at java.awt.Container.processEvent(Container.java:1966)
> >>  [java] at
> >> java.awt.Component.dispatchEventImpl(Component.java:3955)
> >>  [java] at
> >> java.awt.Container.dispatchEventImpl(Container.java:2024)
> >>  [java] at java.awt.Component.dispatchEvent(Component.java:3803)
> >>  [java] at
> >> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
> >>  [java] at
> >> java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
> >>  [java] at
> >> java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
> >>  [java] at
> >> java.awt.Container.dispatchEventImpl(Container.java:2010)
> >>  [java] at java.awt.Window.dispatchEventImpl(Window.java:1774)
> >>  [java] at java.awt.Component.dispatchEvent(Component.java:3803)
> >>  [java] at
> >> java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
> >>  [java] at
> >>
> >
>
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
> >>  [java] at
> >>
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
> >>  [java] at
> >>
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
> >>  [java] at java.awt.Dialog$1.run(Dialog.java:515)
> >>  [java] at
> >> java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
> >>  [java]