Re: [U2] UniSubroutineException

2011-08-10 Thread Symeon Breen
We pass around 100k up from the DB to the uniobjects layer with no problems.

As for timeouts - there is a parameter in the unirpcservices for timeout -
the default is 3600 but this is an idle timeout so not sure if a unirpc
process doing something is classed as idle or not.

You can also set a timeout property of the uniSession object.

 

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Jeffrey Butera
Sent: 09 August 2011 20:21
To: charles_shaf...@ntn-bower.com
Cc: U2 Users List
Subject: Re: [U2] UniSubroutineException

  On 08/09/11 15:11, charles_shaf...@ntn-bower.com wrote:
>
> >>That's a decent size.  We're doing some work which can return 
> upwards of 200k and haven't had any issues.
>
> Any time out settings?

We don't have any timeouts set (that I know  of).  Perhaps some of those 
on this list more experienced than I can point out how/where this might 
be tweaked.


-- 
Jeff Butera, Ph.D.
Manager of ERP Systems
Hampshire College
jbut...@hampshire.edu
413-559-5556

"...we must choose between what is right and what is easy..."
   Dumbledore

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1392 / Virus Database: 1520/3822 - Release Date: 08/08/11

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] UniSubroutineException

2011-08-09 Thread Jeffrey Butera

 On 08/09/11 15:11, charles_shaf...@ntn-bower.com wrote:


>>That's a decent size.  We're doing some work which can return 
upwards of 200k and haven't had any issues.


Any time out settings?


We don't have any timeouts set (that I know  of).  Perhaps some of those 
on this list more experienced than I can point out how/where this might 
be tweaked.



--
Jeff Butera, Ph.D.
Manager of ERP Systems
Hampshire College
jbut...@hampshire.edu
413-559-5556

"...we must choose between what is right and what is easy..."
  Dumbledore

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] UniSubroutineException

2011-08-09 Thread Charles_Shaffer
>>That's a decent size.  We're doing some work which can return upwards of 
200k and haven't had any issues.

Any time out settings?

Charles Shaffer
Senior Analyst
NTN-Bower Corporation
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] UniSubroutineException

2011-08-09 Thread Jeffrey Butera

 On 08/09/11 14:59, charles_shaf...@ntn-bower.com wrote:
I would guess that the largest string returned is at least 55K.  That 
is a wild guess though.


That's a decent size.  We're doing some work which can return upwards of 
200k and haven't had any issues.



--
Jeff Butera, Ph.D.
Manager of ERP Systems
Hampshire College
jbut...@hampshire.edu
413-559-5556

"...we must choose between what is right and what is easy..."
  Dumbledore

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] UniSubroutineException

2011-08-09 Thread Charles_Shaffer
>>Jeff

>>I too have suspected this, but don't have a definitive answer.  Can you 
>>quantify "a lot"?

I would guess that the largest string returned is at least 55K.  That is a 
wild guess though.

Charles Shaffer
Senior Analyst
NTN-Bower Corporation




Jeffrey Butera 
Sent by: u2-users-boun...@listserver.u2ug.org
08/09/2011 01:29 PM
Please respond to jbutera; Please respond to U2 Users List
 
To: u2-users@listserver.u2ug.org
    cc: 
Subject:    Re: [U2] UniSubroutineException


  On 08/09/11 14:28, charles_shaf...@ntn-bower.com wrote:
> I am calling a UniBasic subroutine that gets a list of account numbers 
and
> returns information about them.  On calls with a few account numbers, it
> works fine.  On calls with a lot of account numbers, I am getting a
> UniSubroutineException.  This makes me suspect that there is a maximum
> string length that can be returned from a subroutine.  Does anyone know 
if
> that is true and what the length might be?

Charles:

I too have suspected this, but don't have a definitive answer.  Can you 
quantify "a lot"?


-- 
Jeff Butera, Ph.D.
Manager of ERP Systems
Hampshire College
jbut...@hampshire.edu
413-559-5556

"...we must choose between what is right and what is easy..."
   Dumbledore

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] UniSubroutineException

2011-08-09 Thread Jeffrey Butera

 On 08/09/11 14:28, charles_shaf...@ntn-bower.com wrote:

I am calling a UniBasic subroutine that gets a list of account numbers and
returns information about them.  On calls with a few account numbers, it
works fine.  On calls with a lot of account numbers, I am getting a
UniSubroutineException.  This makes me suspect that there is a maximum
string length that can be returned from a subroutine.  Does anyone know if
that is true and what the length might be?


Charles:

I too have suspected this, but don't have a definitive answer.  Can you 
quantify "a lot"?



--
Jeff Butera, Ph.D.
Manager of ERP Systems
Hampshire College
jbut...@hampshire.edu
413-559-5556

"...we must choose between what is right and what is easy..."
  Dumbledore

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] UniSubroutineException: Unknown Error [30102] Occurred

2011-02-22 Thread Stephen Jackson
Thanks for your responses everyone, this was very helpful and I can now
retrieve the result with no issue.








On FridayF/18/11 8:15 PM, "Jeff Powell"  wrote:

>Try putting your input data into arg[1].
>
>On 02/18/2011 06:25 PM, Stephen Jackson wrote:
>> My issue is that what ever I use as my input args is what prints out as
>>my return args along with the args number. Can that be caused by the
>>routine not returning anything?
>>
>> Stephen Jackson
>>
>>
>> -Original Message-
>> From: Jeff Powell [j...@powellclan.com]
>> Received: Friday, 18 Feb 2011, 6:43pm
>> To: U2 Users List [u2-users@listserver.u2ug.org]
>> Subject: Re: [U2] UniSubroutineException: Unknown Error [30102]
>>Occurred
>>
>>
>> The arg count going in needs to be n+1. Arg 0 will be the return data.
>>
>>   public ArrayList callSub(String sRoutine, ArrayList args)
>>   {
>>
>>   Iterator it = args.iterator();
>>   ArrayList oArgs = new ArrayList();
>>
>>   int iArgs = args.size();
>>   System.out.println("Args: " + iArgs);
>>   try
>>   {
>>   UniSubroutine uoSub = ses.subroutine(sRoutine, iArgs + 1);
>>
>>   int iArg = 0;
>>
>>   uoSub.setArg(iArg++, "");   // dummy argument - this
>> will become the return value
>> // Set user arguments
>>   while (it.hasNext())
>>   {
>>   Object arg=it.next();
>> //System.out.println("InputArg["+iArg+"]="+arg);
>>   uoSub.setArg(iArg++, arg);
>>   }
>> // call
>>
>>   uoSub.call();
>>
>> // get returned parameters
>>   iArgs = uoSub.getNumArgs();
>>   for (int i = 0; i<  iArgs; i++)
>>   {
>>   String arg=uoSub.getArg(i);
>> //System.out.println("OutputArg["+i+"]="+arg);
>>   oArgs.add(arg);
>>   }
>>   } catch (Exception ex)
>>   {
>>   System.err.println("Call to " + sRoutine + " failed.");
>>   ex.printStackTrace(System.err);
>>   }
>>   return oArgs;
>>   }
>>
>>
>>
>> On 02/18/2011 01:16 PM, Stephen Jackson wrote:
>>> So we created a basic program to call so we are getting closer, thanks
>>>for
>>> all your input it is putting us on the correct path.  I do seem to have
>>> some issues when trying to get the results.  What is happening is it is
>>> just spitting out the input parameters ..
>>>
>>>
>>>
>>>  //System.err.println(command.response());
>>>  UniSubroutine sub = session.subroutine("S.XTMS.TEST.BASIC", 1);
>>>  sub.setArg(0, "0491865");
>>>
>>>  sub.call();
>>>  sub.resetArgs();
>>>  System.err.println(sub.getNumArgs());
>>>
>>>  System.err.println(sub);
>>>  System.err.println(sub.getArg(0));
>>>  //session.disconnect();
>>>  //String r = sub.getArg(0);
>>>  //String r1 = sub.getArg(1);
>>>
>>>
>>>
>>> Logging statements:
>>>
>>> Version Number :4.1.3
>>> Max Open Files :32
>>> Account Path :/datatel/test/10day/development
>>> Locking Strategy :0
>>> Release Strategy :12
>>> Calling S.XTMS.TEST.LOOKUP...
>>> 1
>>> asjava.uniobjects.UniSubroutine@6791d8c1
>>> 0491865  ->>>>   same as input, not the result from the routine.
>>>
>>>
>>>
>>>
>>>
>>>
>>> On WednesdayF/16/11 5:45 PM, "Hona, David"
>>>wrote:
>>>
>>>> Does this subroutine do file I/O? Does it explicitly open the file or
>>>> assume some other program or subroutine opens it and stores the file
>>>> variable in labelled common...? Sometimes it can even be a call
>>>> subroutine call that is called using a labelled common variable (CALL
>>>> @MYSUB)...
>>>>
>>>> Easiest thing to do is look how the subroutine is used now...if you
>>>>don't
>>>> emulate the same initialisation sequence it requires from UV native
>>>> runtime environment in Java runtime environment...it more than likely
>>>> wil

Re: [U2] UniSubroutineException: Unknown Error [30102] Occurred

2011-02-18 Thread Jeff Powell

Try putting your input data into arg[1].

On 02/18/2011 06:25 PM, Stephen Jackson wrote:

My issue is that what ever I use as my input args is what prints out as my 
return args along with the args number. Can that be caused by the routine not 
returning anything?

Stephen Jackson


-Original Message-
From: Jeff Powell [j...@powellclan.com]
Received: Friday, 18 Feb 2011, 6:43pm
To: U2 Users List [u2-users@listserver.u2ug.org]
Subject: Re: [U2] UniSubroutineException: Unknown Error [30102]  Occurred


The arg count going in needs to be n+1. Arg 0 will be the return data.

  public ArrayList callSub(String sRoutine, ArrayList args)
  {

  Iterator it = args.iterator();
  ArrayList oArgs = new ArrayList();

  int iArgs = args.size();
  System.out.println("Args: " + iArgs);
  try
  {
  UniSubroutine uoSub = ses.subroutine(sRoutine, iArgs + 1);

  int iArg = 0;

  uoSub.setArg(iArg++, "");   // dummy argument - this
will become the return value
// Set user arguments
  while (it.hasNext())
  {
  Object arg=it.next();
//System.out.println("InputArg["+iArg+"]="+arg);
  uoSub.setArg(iArg++, arg);
  }
// call

  uoSub.call();

// get returned parameters
  iArgs = uoSub.getNumArgs();
  for (int i = 0; i<  iArgs; i++)
  {
  String arg=uoSub.getArg(i);
//System.out.println("OutputArg["+i+"]="+arg);
  oArgs.add(arg);
  }
  } catch (Exception ex)
  {
  System.err.println("Call to " + sRoutine + " failed.");
  ex.printStackTrace(System.err);
  }
  return oArgs;
  }



On 02/18/2011 01:16 PM, Stephen Jackson wrote:

So we created a basic program to call so we are getting closer, thanks for
all your input it is putting us on the correct path.  I do seem to have
some issues when trying to get the results.  What is happening is it is
just spitting out the input parameters ..



 //System.err.println(command.response());
 UniSubroutine sub = session.subroutine("S.XTMS.TEST.BASIC", 1);
 sub.setArg(0, "0491865");

 sub.call();
 sub.resetArgs();
 System.err.println(sub.getNumArgs());

 System.err.println(sub);
 System.err.println(sub.getArg(0));
 //session.disconnect();
 //String r = sub.getArg(0);
 //String r1 = sub.getArg(1);



Logging statements:

Version Number :4.1.3
Max Open Files :32
Account Path :/datatel/test/10day/development
Locking Strategy :0
Release Strategy :12
Calling S.XTMS.TEST.LOOKUP...
1
asjava.uniobjects.UniSubroutine@6791d8c1
0491865  ->>>>   same as input, not the result from the routine.






On WednesdayF/16/11 5:45 PM, "Hona, David"   wrote:


Does this subroutine do file I/O? Does it explicitly open the file or
assume some other program or subroutine opens it and stores the file
variable in labelled common...? Sometimes it can even be a call
subroutine call that is called using a labelled common variable (CALL
@MYSUB)...

Easiest thing to do is look how the subroutine is used now...if you don't
emulate the same initialisation sequence it requires from UV native
runtime environment in Java runtime environment...it more than likely
will not work.

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Stephen Jackson
Sent: Thursday, 17 February 2011 1:28 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] UniSubroutineException: Unknown Error [30102] Occurred

I am new to the U2 java api.  I am trying to make a subroutine call but
get the following Exception.  It is not in the documentation and I have
not had a lot of luck tracking it down.  I am able to make a simple query
so not sure if there is some configuration or something I am not aware of
which is causing the error.

Version Number :4.1.3
Max Open Files :32
Account Path :/mypath
Locking Strategy :0
Release Strategy :12
Calling S.XTMS.TEST.LOOKUP...
[IBM U2][UniObjects for Java][UniSubroutine Exception][ErrorCode:
30102]Unknown Error [30102]  Occurred
asjava.uniobjects.UniSubroutineException: Unknown Error [30102]  Occurred
 at asjava.uniobjects.UniSubroutine.call(UniSubroutine.java:150)

Any help would be much appreciated.


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

** IMPORTANT MESSAGE *
This e-mail message is intended only for the addressee(s) and contains
information which may be
confidential.
If you are not the intended recipient please advise the sender by return
email, do not use or
disc

Re: [U2] UniSubroutineException: Unknown Error [30102] Occurred

2011-02-18 Thread Stephen Jackson
My issue is that what ever I use as my input args is what prints out as my 
return args along with the args number. Can that be caused by the routine not 
returning anything?

Stephen Jackson


-Original Message-
From: Jeff Powell [j...@powellclan.com]
Received: Friday, 18 Feb 2011, 6:43pm
To: U2 Users List [u2-users@listserver.u2ug.org]
Subject: Re: [U2] UniSubroutineException: Unknown Error [30102]  Occurred


The arg count going in needs to be n+1. Arg 0 will be the return data.

 public ArrayList callSub(String sRoutine, ArrayList args)
 {

 Iterator it = args.iterator();
 ArrayList oArgs = new ArrayList();

 int iArgs = args.size();
 System.out.println("Args: " + iArgs);
 try
 {
 UniSubroutine uoSub = ses.subroutine(sRoutine, iArgs + 1);

 int iArg = 0;

 uoSub.setArg(iArg++, "");   // dummy argument - this 
will become the return value
// Set user arguments
 while (it.hasNext())
 {
 Object arg=it.next();
//System.out.println("InputArg["+iArg+"]="+arg);
 uoSub.setArg(iArg++, arg);
 }
// call

 uoSub.call();

// get returned parameters
 iArgs = uoSub.getNumArgs();
 for (int i = 0; i < iArgs; i++)
 {
 String arg=uoSub.getArg(i);
//System.out.println("OutputArg["+i+"]="+arg);
 oArgs.add(arg);
 }
 } catch (Exception ex)
 {
 System.err.println("Call to " + sRoutine + " failed.");
 ex.printStackTrace(System.err);
 }
 return oArgs;
 }



On 02/18/2011 01:16 PM, Stephen Jackson wrote:
> So we created a basic program to call so we are getting closer, thanks for
> all your input it is putting us on the correct path.  I do seem to have
> some issues when trying to get the results.  What is happening is it is
> just spitting out the input parameters ..
>
>
>
> //System.err.println(command.response());
> UniSubroutine sub = session.subroutine("S.XTMS.TEST.BASIC", 1);
> sub.setArg(0, "0491865");
>
> sub.call();
> sub.resetArgs();
> System.err.println(sub.getNumArgs());
>
> System.err.println(sub);
> System.err.println(sub.getArg(0));
> //session.disconnect();
> //String r = sub.getArg(0);
> //String r1 = sub.getArg(1);
>
>
>
> Logging statements:
>
> Version Number :4.1.3
> Max Open Files :32
> Account Path :/datatel/test/10day/development
> Locking Strategy :0
> Release Strategy :12
> Calling S.XTMS.TEST.LOOKUP...
> 1
> asjava.uniobjects.UniSubroutine@6791d8c1
> 0491865  ->>>>  same as input, not the result from the routine.
>
>
>
>
>
>
> On WednesdayF/16/11 5:45 PM, "Hona, David"  wrote:
>
>> Does this subroutine do file I/O? Does it explicitly open the file or
>> assume some other program or subroutine opens it and stores the file
>> variable in labelled common...? Sometimes it can even be a call
>> subroutine call that is called using a labelled common variable (CALL
>> @MYSUB)...
>>
>> Easiest thing to do is look how the subroutine is used now...if you don't
>> emulate the same initialisation sequence it requires from UV native
>> runtime environment in Java runtime environment...it more than likely
>> will not work.
>>
>> -Original Message-
>> From: u2-users-boun...@listserver.u2ug.org
>> [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Stephen Jackson
>> Sent: Thursday, 17 February 2011 1:28 AM
>> To: u2-users@listserver.u2ug.org
>> Subject: [U2] UniSubroutineException: Unknown Error [30102] Occurred
>>
>> I am new to the U2 java api.  I am trying to make a subroutine call but
>> get the following Exception.  It is not in the documentation and I have
>> not had a lot of luck tracking it down.  I am able to make a simple query
>> so not sure if there is some configuration or something I am not aware of
>> which is causing the error.
>>
>> Version Number :4.1.3
>> Max Open Files :32
>> Account Path :/mypath
>> Locking Strategy :0
>> Release Strategy :12
>> Calling S.XTMS.TEST.LOOKUP...
>> [IBM U2][UniObjects for Java][UniSubroutine Exception][ErrorCode:
>> 30102]Unknown Error [30102]  Occurred
>> asjava.uniobjects.UniSubroutineException: Unknown Error [30102]  Occurred
>> at asjava.uniobjects.UniSubroutine.call(UniSubroutine.java:150)
>>
>> Any help would be much appreciated.
>>
>>
>> ___

Re: [U2] UniSubroutineException: Unknown Error [30102] Occurred

2011-02-18 Thread Jeff Powell

The arg count going in needs to be n+1. Arg 0 will be the return data.

public ArrayList callSub(String sRoutine, ArrayList args)
{

Iterator it = args.iterator();
ArrayList oArgs = new ArrayList();

int iArgs = args.size();
System.out.println("Args: " + iArgs);
try
{
UniSubroutine uoSub = ses.subroutine(sRoutine, iArgs + 1);

int iArg = 0;

uoSub.setArg(iArg++, "");   // dummy argument - this 
will become the return value

// Set user arguments
while (it.hasNext())
{
Object arg=it.next();
//System.out.println("InputArg["+iArg+"]="+arg);
uoSub.setArg(iArg++, arg);
}
// call

uoSub.call();

// get returned parameters
iArgs = uoSub.getNumArgs();
for (int i = 0; i < iArgs; i++)
{
String arg=uoSub.getArg(i);
//System.out.println("OutputArg["+i+"]="+arg);
oArgs.add(arg);
}
} catch (Exception ex)
{
System.err.println("Call to " + sRoutine + " failed.");
ex.printStackTrace(System.err);
}
return oArgs;
}



On 02/18/2011 01:16 PM, Stephen Jackson wrote:

So we created a basic program to call so we are getting closer, thanks for
all your input it is putting us on the correct path.  I do seem to have
some issues when trying to get the results.  What is happening is it is
just spitting out the input parameters ..



//System.err.println(command.response());
UniSubroutine sub = session.subroutine("S.XTMS.TEST.BASIC", 1);
sub.setArg(0, "0491865");

sub.call();
sub.resetArgs();
System.err.println(sub.getNumArgs());

System.err.println(sub);
System.err.println(sub.getArg(0));
//session.disconnect();
//String r = sub.getArg(0);
//String r1 = sub.getArg(1);



Logging statements:

Version Number :4.1.3
Max Open Files :32
Account Path :/datatel/test/10day/development
Locking Strategy :0
Release Strategy :12
Calling S.XTMS.TEST.LOOKUP...
1
asjava.uniobjects.UniSubroutine@6791d8c1
0491865  -  same as input, not the result from the routine.






On WednesdayF/16/11 5:45 PM, "Hona, David"  wrote:


Does this subroutine do file I/O? Does it explicitly open the file or
assume some other program or subroutine opens it and stores the file
variable in labelled common...? Sometimes it can even be a call
subroutine call that is called using a labelled common variable (CALL
@MYSUB)...

Easiest thing to do is look how the subroutine is used now...if you don't
emulate the same initialisation sequence it requires from UV native
runtime environment in Java runtime environment...it more than likely
will not work.

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Stephen Jackson
Sent: Thursday, 17 February 2011 1:28 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] UniSubroutineException: Unknown Error [30102] Occurred

I am new to the U2 java api.  I am trying to make a subroutine call but
get the following Exception.  It is not in the documentation and I have
not had a lot of luck tracking it down.  I am able to make a simple query
so not sure if there is some configuration or something I am not aware of
which is causing the error.

Version Number :4.1.3
Max Open Files :32
Account Path :/mypath
Locking Strategy :0
Release Strategy :12
Calling S.XTMS.TEST.LOOKUP...
[IBM U2][UniObjects for Java][UniSubroutine Exception][ErrorCode:
30102]Unknown Error [30102]  Occurred
asjava.uniobjects.UniSubroutineException: Unknown Error [30102]  Occurred
at asjava.uniobjects.UniSubroutine.call(UniSubroutine.java:150)

Any help would be much appreciated.


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

** IMPORTANT MESSAGE *
This e-mail message is intended only for the addressee(s) and contains
information which may be
confidential.
If you are not the intended recipient please advise the sender by return
email, do not use or
disclose the contents, and delete the message and any attachments from
your system. Unless
specifically indicated, this email does not constitute formal advice or
commitment by the sender
or the Commonwealth Bank of Australia (ABN 48 123 123 124) or its
subsidiaries.
We can be contacted through our web site: commbank.com.au.
If you no longer wish to receive commercial electronic messages from us,
please reply to this
e-mail by typing Unsubscribe in the subject line.
**



___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


__

Re: [U2] UniSubroutineException: Unknown Error [30102] Occurred

2011-02-18 Thread Holt, Jake
Can you post the sub you're calling?

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Stephen
Jackson
Sent: Friday, February 18, 2011 1:16 PM
To: U2 Users List
Subject: Re: [U2] UniSubroutineException: Unknown Error [30102] Occurred

So we created a basic program to call so we are getting closer, thanks
for all your input it is putting us on the correct path.  I do seem to
have some issues when trying to get the results.  What is happening is
it is just spitting out the input parameters ..



   //System.err.println(command.response());
   UniSubroutine sub = session.subroutine("S.XTMS.TEST.BASIC", 1);
   sub.setArg(0, "0491865");
   
   sub.call();
   sub.resetArgs();
   System.err.println(sub.getNumArgs());
   
   System.err.println(sub);
   System.err.println(sub.getArg(0));
   //session.disconnect();
   //String r = sub.getArg(0);
   //String r1 = sub.getArg(1);



Logging statements:

Version Number :4.1.3
Max Open Files :32
Account Path :/datatel/test/10day/development Locking Strategy :0
Release Strategy :12 Calling S.XTMS.TEST.LOOKUP...
1
asjava.uniobjects.UniSubroutine@6791d8c1
0491865  ->>>> same as input, not the result from the routine.






On WednesdayF/16/11 5:45 PM, "Hona, David" 
wrote:

>Does this subroutine do file I/O? Does it explicitly open the file or 
>assume some other program or subroutine opens it and stores the file 
>variable in labelled common...? Sometimes it can even be a call 
>subroutine call that is called using a labelled common variable (CALL 
>@MYSUB)...
>
>Easiest thing to do is look how the subroutine is used now...if you 
>don't emulate the same initialisation sequence it requires from UV 
>native runtime environment in Java runtime environment...it more than 
>likely will not work.
>
>-Original Message-
>From: u2-users-boun...@listserver.u2ug.org
>[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Stephen 
>Jackson
>Sent: Thursday, 17 February 2011 1:28 AM
>To: u2-users@listserver.u2ug.org
>Subject: [U2] UniSubroutineException: Unknown Error [30102] Occurred
>
>I am new to the U2 java api.  I am trying to make a subroutine call but

>get the following Exception.  It is not in the documentation and I have

>not had a lot of luck tracking it down.  I am able to make a simple 
>query so not sure if there is some configuration or something I am not 
>aware of which is causing the error.
>
>Version Number :4.1.3
>Max Open Files :32
>Account Path :/mypath
>Locking Strategy :0
>Release Strategy :12
>Calling S.XTMS.TEST.LOOKUP...
>[IBM U2][UniObjects for Java][UniSubroutine Exception][ErrorCode:
>30102]Unknown Error [30102]  Occurred
>asjava.uniobjects.UniSubroutineException: Unknown Error [30102]
Occurred
>at asjava.uniobjects.UniSubroutine.call(UniSubroutine.java:150)
>
>Any help would be much appreciated.
>
>
>___
>U2-Users mailing list
>U2-Users@listserver.u2ug.org
>http://listserver.u2ug.org/mailman/listinfo/u2-users
>
>** IMPORTANT MESSAGE * This 
>e-mail message is intended only for the addressee(s) and contains 
>information which may be confidential.
>If you are not the intended recipient please advise the sender by 
>return email, do not use or disclose the contents, and delete the 
>message and any attachments from your system. Unless specifically 
>indicated, this email does not constitute formal advice or commitment 
>by the sender or the Commonwealth Bank of Australia (ABN 48 123 123 
>124) or its subsidiaries.
>We can be contacted through our web site: commbank.com.au.
>If you no longer wish to receive commercial electronic messages from 
>us, please reply to this e-mail by typing Unsubscribe in the subject 
>line.
>**
>
>
>
>___
>U2-Users mailing list
>U2-Users@listserver.u2ug.org
>http://listserver.u2ug.org/mailman/listinfo/u2-users


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] UniSubroutineException: Unknown Error [30102] Occurred

2011-02-18 Thread Stephen Jackson
So we created a basic program to call so we are getting closer, thanks for
all your input it is putting us on the correct path.  I do seem to have
some issues when trying to get the results.  What is happening is it is
just spitting out the input parameters ..



   //System.err.println(command.response());
   UniSubroutine sub = session.subroutine("S.XTMS.TEST.BASIC", 1);
   sub.setArg(0, "0491865");
   
   sub.call();
   sub.resetArgs();
   System.err.println(sub.getNumArgs());
   
   System.err.println(sub);
   System.err.println(sub.getArg(0));
   //session.disconnect();
   //String r = sub.getArg(0);
   //String r1 = sub.getArg(1);



Logging statements:

Version Number :4.1.3
Max Open Files :32
Account Path :/datatel/test/10day/development
Locking Strategy :0
Release Strategy :12
Calling S.XTMS.TEST.LOOKUP...
1
asjava.uniobjects.UniSubroutine@6791d8c1
0491865  - same as input, not the result from the routine.






On WednesdayF/16/11 5:45 PM, "Hona, David"  wrote:

>Does this subroutine do file I/O? Does it explicitly open the file or
>assume some other program or subroutine opens it and stores the file
>variable in labelled common...? Sometimes it can even be a call
>subroutine call that is called using a labelled common variable (CALL
>@MYSUB)...
>
>Easiest thing to do is look how the subroutine is used now...if you don't
>emulate the same initialisation sequence it requires from UV native
>runtime environment in Java runtime environment...it more than likely
>will not work.
>
>-Original Message-
>From: u2-users-boun...@listserver.u2ug.org
>[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Stephen Jackson
>Sent: Thursday, 17 February 2011 1:28 AM
>To: u2-users@listserver.u2ug.org
>Subject: [U2] UniSubroutineException: Unknown Error [30102] Occurred
>
>I am new to the U2 java api.  I am trying to make a subroutine call but
>get the following Exception.  It is not in the documentation and I have
>not had a lot of luck tracking it down.  I am able to make a simple query
>so not sure if there is some configuration or something I am not aware of
>which is causing the error.
>
>Version Number :4.1.3
>Max Open Files :32
>Account Path :/mypath
>Locking Strategy :0
>Release Strategy :12
>Calling S.XTMS.TEST.LOOKUP...
>[IBM U2][UniObjects for Java][UniSubroutine Exception][ErrorCode:
>30102]Unknown Error [30102]  Occurred
>asjava.uniobjects.UniSubroutineException: Unknown Error [30102]  Occurred
>at asjava.uniobjects.UniSubroutine.call(UniSubroutine.java:150)
>
>Any help would be much appreciated.
>
>
>___
>U2-Users mailing list
>U2-Users@listserver.u2ug.org
>http://listserver.u2ug.org/mailman/listinfo/u2-users
>
>** IMPORTANT MESSAGE *
>This e-mail message is intended only for the addressee(s) and contains
>information which may be
>confidential. 
>If you are not the intended recipient please advise the sender by return
>email, do not use or
>disclose the contents, and delete the message and any attachments from
>your system. Unless
>specifically indicated, this email does not constitute formal advice or
>commitment by the sender
>or the Commonwealth Bank of Australia (ABN 48 123 123 124) or its
>subsidiaries. 
>We can be contacted through our web site: commbank.com.au.
>If you no longer wish to receive commercial electronic messages from us,
>please reply to this
>e-mail by typing Unsubscribe in the subject line.
>**
>
>
>
>___
>U2-Users mailing list
>U2-Users@listserver.u2ug.org
>http://listserver.u2ug.org/mailman/listinfo/u2-users


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] UniSubroutineException: Unknown Error [30102] Occurred

2011-02-16 Thread Hona, David
Does this subroutine do file I/O? Does it explicitly open the file or assume 
some other program or subroutine opens it and stores the file variable in 
labelled common...? Sometimes it can even be a call subroutine call that is 
called using a labelled common variable (CALL @MYSUB)...

Easiest thing to do is look how the subroutine is used now...if you don't 
emulate the same initialisation sequence it requires from UV native runtime 
environment in Java runtime environment...it more than likely will not work.

-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Stephen Jackson
Sent: Thursday, 17 February 2011 1:28 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] UniSubroutineException: Unknown Error [30102] Occurred

I am new to the U2 java api.  I am trying to make a subroutine call but
get the following Exception.  It is not in the documentation and I have
not had a lot of luck tracking it down.  I am able to make a simple query
so not sure if there is some configuration or something I am not aware of
which is causing the error.

Version Number :4.1.3
Max Open Files :32
Account Path :/mypath
Locking Strategy :0
Release Strategy :12
Calling S.XTMS.TEST.LOOKUP...
[IBM U2][UniObjects for Java][UniSubroutine Exception][ErrorCode:
30102]Unknown Error [30102]  Occurred
asjava.uniobjects.UniSubroutineException: Unknown Error [30102]  Occurred
at asjava.uniobjects.UniSubroutine.call(UniSubroutine.java:150)

Any help would be much appreciated.


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

** IMPORTANT MESSAGE *   
This e-mail message is intended only for the addressee(s) and contains 
information which may be
confidential. 
If you are not the intended recipient please advise the sender by return email, 
do not use or
disclose the contents, and delete the message and any attachments from your 
system. Unless
specifically indicated, this email does not constitute formal advice or 
commitment by the sender
or the Commonwealth Bank of Australia (ABN 48 123 123 124) or its subsidiaries. 
We can be contacted through our web site: commbank.com.au. 
If you no longer wish to receive commercial electronic messages from us, please 
reply to this
e-mail by typing Unsubscribe in the subject line. 
**



___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] UniSubroutineException: Unknown Error [30102] Occurred

2011-02-16 Thread Stephen Jackson
Thanks, let me investigates this and see what I find.

On WednesdayF/16/11 9:41 AM, "Steve Romanow"  wrote:

>Make sure that the account you are trying to connect to is in the
>UD.ACCOUNT file that resides in the sys account.
>
>Here is what mine looks like.
>LIST UD.ACCOUNT F1 F2 F3 09:31:11 Feb 16 2011 1
>VOC... F1 F2. F3.
>
>sys/usr/udtho rootud
>me/sys
>demo   /usr/udtho rootud
>me/demo
>JM /ud/JM rootud
>JM-CONV/ud/JM-CON rootud
>V
>4 records listed
>
>
>
>On 2/16/2011 9:28 AM, Stephen Jackson wrote:
>> I am new to the U2 java api.  I am trying to make a subroutine call but
>> get the following Exception.  It is not in the documentation and I have
>> not had a lot of luck tracking it down.  I am able to make a simple
>>query
>> so not sure if there is some configuration or something I am not aware
>>of
>> which is causing the error.
>>
>> Version Number :4.1.3
>> Max Open Files :32
>> Account Path :/mypath
>> Locking Strategy :0
>> Release Strategy :12
>> Calling S.XTMS.TEST.LOOKUP...
>> [IBM U2][UniObjects for Java][UniSubroutine Exception][ErrorCode:
>> 30102]Unknown Error [30102]  Occurred
>> asjava.uniobjects.UniSubroutineException: Unknown Error [30102]
>>Occurred
>>  at asjava.uniobjects.UniSubroutine.call(UniSubroutine.java:150)
>>
>> Any help would be much appreciated.
>>
>>
>> ___
>> U2-Users mailing list
>> U2-Users@listserver.u2ug.org
>> http://listserver.u2ug.org/mailman/listinfo/u2-users
>
>___
>U2-Users mailing list
>U2-Users@listserver.u2ug.org
>http://listserver.u2ug.org/mailman/listinfo/u2-users


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] UniSubroutineException: Unknown Error [30102] Occurred

2011-02-16 Thread David A. Green
Can you run the same subroutine from a Basic Program?

David A. Green
(480) 813-1725
DAG Consulting

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Stephen Jackson
Sent: Wednesday, February 16, 2011 7:28 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] UniSubroutineException: Unknown Error [30102] Occurred

I am new to the U2 java api.  I am trying to make a subroutine call but
get the following Exception.  It is not in the documentation and I have
not had a lot of luck tracking it down.  I am able to make a simple query
so not sure if there is some configuration or something I am not aware of
which is causing the error.

Version Number :4.1.3
Max Open Files :32
Account Path :/mypath
Locking Strategy :0
Release Strategy :12
Calling S.XTMS.TEST.LOOKUP...
[IBM U2][UniObjects for Java][UniSubroutine Exception][ErrorCode:
30102]Unknown Error [30102]  Occurred
asjava.uniobjects.UniSubroutineException: Unknown Error [30102]  Occurred
at asjava.uniobjects.UniSubroutine.call(UniSubroutine.java:150)

Any help would be much appreciated.


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] UniSubroutineException: Unknown Error [30102] Occurred

2011-02-16 Thread Symeon Breen
You get this if the backend dies for whatever reason, permissions, corrupt
files etc...

 

From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Stephen Jackson
Sent: 16 February 2011 14:28
To: u2-users@listserver.u2ug.org
Subject: [U2] UniSubroutineException: Unknown Error [30102] Occurred

 

I am new to the U2 java api.  I am trying to make a subroutine call but
get the following Exception.  It is not in the documentation and I have
not had a lot of luck tracking it down.  I am able to make a simple query
so not sure if there is some configuration or something I am not aware of
which is causing the error.

Version Number :4.1.3
Max Open Files :32
Account Path :/mypath
Locking Strategy :0
Release Strategy :12
Calling S.XTMS.TEST.LOOKUP...
[IBM U2][UniObjects for Java][UniSubroutine Exception][ErrorCode:
30102]Unknown Error [30102]  Occurred
asjava.uniobjects.UniSubroutineException: Unknown Error [30102]  Occurred
at asjava.uniobjects.UniSubroutine.call(UniSubroutine.java:150)

Any help would be much appreciated.


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users 

  _  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1204 / Virus Database: 1435/3446 - Release Date: 02/15/11

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] UniSubroutineException: Unknown Error [30102] Occurred

2011-02-16 Thread Steve Romanow
Make sure that the account you are trying to connect to is in the 
UD.ACCOUNT file that resides in the sys account.


Here is what mine looks like.
LIST UD.ACCOUNT F1 F2 F3 09:31:11 Feb 16 2011 1
VOC... F1 F2. F3.

sys/usr/udtho rootud
   me/sys
demo   /usr/udtho rootud
   me/demo
JM /ud/JM rootud
JM-CONV/ud/JM-CON rootud
   V
4 records listed



On 2/16/2011 9:28 AM, Stephen Jackson wrote:

I am new to the U2 java api.  I am trying to make a subroutine call but
get the following Exception.  It is not in the documentation and I have
not had a lot of luck tracking it down.  I am able to make a simple query
so not sure if there is some configuration or something I am not aware of
which is causing the error.

Version Number :4.1.3
Max Open Files :32
Account Path :/mypath
Locking Strategy :0
Release Strategy :12
Calling S.XTMS.TEST.LOOKUP...
[IBM U2][UniObjects for Java][UniSubroutine Exception][ErrorCode:
30102]Unknown Error [30102]  Occurred
asjava.uniobjects.UniSubroutineException: Unknown Error [30102]  Occurred
 at asjava.uniobjects.UniSubroutine.call(UniSubroutine.java:150)

Any help would be much appreciated.


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users