[U2] UniObjects for Java Unnamed Common Corruption

2004-12-08 Thread Sean W Ferguson
I have recently encountered a very strange UniObjects bug.  I have an 
application that includes a file containing unnamed commons.  The 
application calls a subroutine that also includes that same unnamed 
common.  I also have a command that includes the unnamed comman and 
calls the same subroutine that includes the unnamed common.  When I run 
the command and subroutine sequentially in a loop via UniObjects, the 
UniSession dies.  If I only run the subroutine or the command in a loop, 
it works like a champ.  Adding more unnamed commons to the include file 
only causes the problem to happen less often.

Please look at my sample application to see if you have any insight into 
why this fails consistently.

Attached are the sample applications.

Thanks,

Sean Ferguson

[demime 1.01d removed an attachment of type application/octet-stream which had 
a name of asjava.jar]

[demime 1.01d removed an attachment of type application/octet-stream which had 
a name of asjava_p.jar]
COMMON POS
INCLUDE RMS.BP INPUT.COMMON.POS

CALL TEST.SHARED.SUB
SUBROUTINE TEST.COMMON.SUB
  INCLUDE RMS.BP INPUT.COMMON.POS
  CALL TEST.SHARED.SUB
RETURN
SUBROUTINE TEST.SHARED.SUB
  INCLUDE RMS.BP INPUT.COMMON.POS
  POS = 1
RETURN

[demime 1.01d removed an attachment of type application/octet-stream which had 
a name of TestCommons.jar]
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] UniObjects for Java Unnamed Common Corruption

2004-12-08 Thread Sean W Ferguson
/*
* Created on Dec 6, 2004
*/
package com.docmagic.rd;
import asjava.uniobjects.*;
/**
* @author jay
*/
public class TestCommons
{
 UniSession session = null;
 static String host, username, password, accountPath;
 public static void main(String[] args)
 {
   if(args.length  4)
   {
 System.out.println(Usage: host username password accountPath 
iterations);
 return;
   }
 
   try
   {
 host = args[0];
 username = args[1];
 password = args[2];
 accountPath = args[3];

 int iterations = 100;
 if(args.length == 5)
 {
   iterations = Integer.parseInt(args[4]);
 }
 TestCommons test = new TestCommons();
 for (int index = 0; index  iterations; index++)
 {
   System.out.println(Iteration :  + index);
   test.run();
 }
 System.out.println(Complete);
   }
   catch (Throwable t)
   {
 t.printStackTrace();
   }

 }
 public TestCommons() throws UniSessionException
 {
   this.session = getSession();
 }
 public UniSession getSession() throws UniSessionException
 {
   UniSession session = new UniSession();
  
   session.setHostName(host);
   session.setUserName(username);
   session.setPassword(password);
   session.setAccountPath(accountPath);

   session.connect();
   return session;
 }
 public void run() throws Throwable
 {
   runCMD();
   runSub();
 }
 private void runSub() throws UniSessionException, UniSubroutineException
 {
   System.out.println(Calling Subroutine);
   UniSubroutine sub = session.subroutine(TEST.COMMON.SUB, 0);
   sub.call();
   System.out.println(Finished Subroutine);
 }
 private void runCMD() throws UniSessionException, UniCommandException
 {
   System.out.println(Calling Command);
   UniCommand command = session.command(TEST.COMMON.CMD);
   command.setBlockSize(1024);
   command.exec();
   int responsecode = command.status();// command.getSystemReturnCode();
   StringBuffer block = new StringBuffer();
   if (responsecode == UniObjectsTokens.UVS_MORE || responsecode == 
UniObjectsTokens.UVS_REPLY)
   {

 String response = null;
 String prev_response = null;
 while (responsecode != UniObjectsTokens.UVS_COMPLETE)
 {
   response = command.response();
   if (prev_response == null || !response.equals(prev_response))
   {
 prev_response = response;
 block.append(response);
 command.nextBlock();
 responsecode = command.status();
   }
   else
   {
 break;
   }
 }
   }
   block.append(command.response());
   System.out.println(block.toString());
   System.out.println(Finished Command);
 }
}
Sean W Ferguson wrote:
I have recently encountered a very strange UniObjects bug.  I have an 
application that includes a file containing unnamed commons.  The 
application calls a subroutine that also includes that same unnamed 
common.  I also have a command that includes the unnamed comman and 
calls the same subroutine that includes the unnamed common.  When I run 
the command and subroutine sequentially in a loop via UniObjects, the 
UniSession dies.  If I only run the subroutine or the command in a loop, 
it works like a champ.  Adding more unnamed commons to the include file 
only causes the problem to happen less often.

Please look at my sample application to see if you have any insight into 
why this fails consistently.

Attached are the sample applications.
Thanks,
Sean Ferguson
[demime 1.01d removed an attachment of type application/octet-stream which had 
a name of asjava.jar]
[demime 1.01d removed an attachment of type application/octet-stream which had 
a name of asjava_p.jar]
COMMON POS
INCLUDE RMS.BP INPUT.COMMON.POS
CALL TEST.SHARED.SUB
SUBROUTINE TEST.COMMON.SUB
 INCLUDE RMS.BP INPUT.COMMON.POS
 CALL TEST.SHARED.SUB
RETURN
SUBROUTINE TEST.SHARED.SUB
 INCLUDE RMS.BP INPUT.COMMON.POS
 POS = 1
RETURN
[demime 1.01d removed an attachment of type application/octet-stream which had 
a name of TestCommons.jar]
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


[U2] Common Memory Space Size

2004-12-03 Thread Sean W Ferguson
Is there a maximum size to the global commons memory space?  We've run 
into an issue where we appear to be getting corruption on the global 
commons memory space causing our program to die.

The program is about 40k of source and uses 5560 unamed globals.
Any input would be appreciated,
Thanks!
Sean Ferguson
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] PICK Assembler Language

2004-11-05 Thread Sean W Ferguson
What is Pick Assembler Language?
Burwell, Edward wrote:
Maybe Dave Miller from NJ
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, November 05, 2004 10:09 AM
To: [EMAIL PROTECTED]
Subject: [U2] PICK Assembler Language
Don't laugh at this, but could anybody use a contractor who knows PICK
Assembler
language?
Larry Okeson VP
Software Search Atlanta
800-949-5423
[EMAIL PROTECTED]
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
__
This e-mail has been scanned by MCI Managed Email Content Service, using
Skeptic(tm) technology powered by MessageLabs. For more information on MCI's
Managed Email Content Service, visit http://www.mci.com.
__
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] UV: Array index out of bounds

2004-09-30 Thread Sean W Ferguson
Wait, people actually do all their programming with ED?
Karl L Pearson wrote:
So does this mean the UV ED verb is broken? I'd rather us VIM anyway,
but this isn't an option for our programmers. They are PICK-only guys
who have never even seen vi, let alone used it.
Karl
On Thu, 2004-09-30 at 10:54, Mike Dallaire wrote:
 

Karl,
We have seen this error on a few occassions.  In our case, it is normally
from a FOR/NEXT loop or an IF statement being to large.  We just break it
apart and everything returns to normal.
HTH,
Mike Dallaire
Mortgage Builder Software Inc.
(248) 208-3223 ext. 103
[EMAIL PROTECTED]
www.mortgagebuilder.com

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Karl L Pearson
Sent: Thursday, September 30, 2004 11:11 AM
To: u2-users
Subject: [U2] UV: Array index out of bounds
The error message in ~/uv/errlog is:
Thu Sep 30 08:42:58  66 root Program ED: pc = 4d28, Message[040005]
SYS.MESSAGE 0400051 = Array index out of bounds
This has happened twice. Once yesterday and once today. I wouldn't have
noticed if it hadn't happened to me one of those times.
I was editing a program and the session died with the above error
message printed to my screen which I read briefly before the ON.EXIT
stuff erased it.
Anyone seen this before?
We are on AIX 4.3.3 and UV 10.0.14.
Thanks
--
Karl L. Pearson
Director of IT,
ATS Industrial Supply
Direct: 801-978-4429
Toll-free: 888-972-3182 x29
Fax: 801-972-3888
http://www.atsindustrial.com
[EMAIL PROTECTED]
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Southern California presentation on DesignBais

2004-09-07 Thread Sean W Ferguson
Interesting product.  How does it compare to Visage?  From a quick
glance at the DesignBais website they look very similar in concept and
design.
http://www.staminasoftware.com/Products/Visage/Products_Visage.htm
Tony Gravagno wrote:
In case anyone missed my recent mention of this I thought I'd dedicate a
thread to it.
http://www.cdbma.org
Inquiries welcome about DesignBais for U2 and other MV platforms.  A video
presentation on CD is available, shipped from Nebula RD in the USA or
DesignBais in Australia, depending on where you are.
If you miss the CDBMA presentation you'll have another opportunity at the
London Spectrum and elsewhere.  Please contact me if you'd like a
presentation for your user group in the USA.
Thanks for your time.
Tony
[EMAIL PROTECTED]
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/