[U2] Re: U2 Users Digest V1 #2326

2008-08-18 Thread David Beahm
Charles-
As I read it, the unhandled exception is happening within the U2 object 
when you are trying to execute the Java method PbrGetMgrList.

I never heard of JavaBridge before, but after reading the requirements 
at http://php-java-bridge.sourceforge.net/doc/overview.php, I don't 
think that is the source of the problem (java.inc is a PHP include file, 
and might be referenced through a URL such as 
|once("http://localhost:9090/JavaBridge/java/Java.inc";);|).  You can 
verify that the JavaBridge is working by calling a Java method outside 
of the U2 object prior to calling the PbrGetMgrList method; if it works, 
then something is happening to your U2 object.  I don't have enough to 
troubleshoot any further at this point.

HTH,
David Beahm

> Date: Fri, 15 Aug 2008 11:23:41 -0500
> From: [EMAIL PROTECTED]
> Subject: [U2] Uniobjects for Java
>
> Hello,
>
> I am accessing our Unidata server from PHP using the java bridge for a few 
> months  It has been working pretty well up until the current project I am 
> working on.
>
> PHP calls a method in a U2 object, which uses Uniobjects for Java to 
> invoke a UniBasic Subroutine on our Unidata 7.1 redhat based server. 
> Recently I have intermittently received the following error message. 
> **
> Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: 
> [[o:U2]]->PbrGetMgrList. 
> Cause: java.lang.NoSuchMethodException: PbrGetMgrList(). 
> Candidates: 
> [] Responsible VM: [EMAIL PROTECTED]://java.sun.com/" at: 
> #-5 php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1045) 
> #-4 php.java.bridge.Request.handleRequest(Request.java:405) 
> #-3 php.java.bridge.Request.handleRequests(Request.java:481) 
> #0 java.inc(257): java_ThrowExceptionProxyFactory->getProxy(52, '@N', 
> true) 
> #1 java.inc(473): java_Arg->getResult(true) 
> #2 java.inc(479): java_Client->getWrappedResult(true) 
> #3 java.inc(672): java_Client->getResult() 
> #4 java.inc(1786): java_Client->invokeMethod(51, 'PbrGetMgrList', Array) 
> #5 java.inc(1910): java_JavaProxy->__call('PbrGetMgrList', Array) 
> #6 java.inc(2072): java_AbstractJava->__call('PbrGetMgrList', Array) 
> #7 [internal function]: Java->__call('PbrGetMgrList', Array) 
> #8 /var/www/pbr/pbr.php(14): Java->PbrGetMgrList() 
> #9 {main}] thrown in java.inc on line 220
> 
> I am not sure what this is referring to.  I don't find a java.inc anywhere 
> on the web server host.
>
> This works most of the time, but sometimes not.  and I don't see a 
> pattern.  Most of the time it can be "fixed" by recompiling and rejarring 
> the Java object, but that doesn't always fix it.  One thing I wondered 
> about is that this is the first time that I have called a program with no 
> input parameters.
>
> Here is the java code.
>
> /**
>  * @param   none
>  * @return  Tab delimited list of MGR_NAMES
>  */
> public String PbrGetMgrList() {
> String result = "";
> try {
> OpenU2Session();
> UniSubroutine uSub = uSession.subroutine("PbrGetMgrList", 
> 1);
> uSub.call();
> result = uSub.getArg(0);
> CloseU2Session();
> } catch (UniSessionException e) {
> result = "N";
> } catch (UniSubroutineException e) {
> result = "N";
> } finally {
> return result;
> }
> }
>
> Here is the UniBassic Subroutine code
>
> $BASICTYPE 'U'
> SUBROUTINE PbrGetMgrList(RESULT)
> 
> * Tab delimits data items
> EQU HTABTO CHAR(9)
>
> 
> * Select records for this supervisor
> 
> RESULT = 'N'
> ECMD = "SELECT MGRACCT.DATA SAVING UNIQUE NAME"
> EXECUTE ECMD
> IF @SYSTEM.RETURN.CODE <= 0 THEN RETURN
>  
> ***
> *  Build the list
> ***
> RESULT = ''
> FIRST = 1
> LOOP
> READNEXT ID ELSE ID = ''
> UNTIL ID = ''
> * Insert a delimiter unless this is the first record
> IF FIRST = 0 THEN
> RESULT := HTAB
> END ELSE
> FIRST = 0
> END
> * ADD THE ID
> RESULT := ID
> REPEAT
> RETURN
>
> I suspect that an exception is happening that is not being handled.  Any 
> ideas?
>  
> Senior Analyst
> NTN-Bower Corporation
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] How to setup Distributed files across the network

2008-08-18 Thread Ray Wurlod
You need UV/Net.  There are two solutions.

1. Wherever you want to run the application, set up VOC entries to point to the 
remote part files, using hostname!pathname syntax in the DATA.FILE (field #2) 
entry.  This will be picked up by UV/Net software and afford remote access to 
the part files.  Then build a (local) Distributed File based on the part file 
records in VOC as usual.

2. Set up remote accounts in UV.ACCOUNT, again using the hostname!pathname 
syntax.  Wherever you want to run the application, set up regular Q-pointers to 
the files in the remote accounts.  Then build a (local) Distributed File based 
on the part file records in VOC as usual.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] How to setup Distributed files across the network

2008-08-18 Thread John Hester
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Curt Stewart
> Sent: Monday, August 18, 2008 4:11 PM
> To: [EMAIL PROTECTED]
> Subject: [U2] How to setup Distributed files across the network
> 
> Can someone tell me what is required to setup and use 
> distributed files over a network. My client want's to 
> separate the Application from the Data, so that each is on a 
> separate server.  I'm sure someone has already done this or 
> something similiar before and I would appreciate any insight 
> you could share on how to set this up, what if any, 
> additional Universe modules are required.

If you're talking about unix or linux, you can access remote UV files
via NFS.  Just set the ALLOWNFS flag in the uvconfig file to "1" and run
uvregen.  If you're talking about Windows, I think you can use CIFS (I'm
not sure if there's a corresponding uvconfig flag).  Since this is at
the OS level, no special UV software is required.  This might make sense
in a disaster recovery scenario where you're storing the data on a high
performance and highly redundant SAN (they typically support NFS and
CIFS nowadays), and plan to have a backup OS machine either as a
physical duplicate or a virtualized copy on alternate hardware.  If the
OS hardware fails or the OS software gets hosed by a buggy patch, admin
error, etc., you just switch to the alternate OS machine and there's no
need to restore your UV data.

If they just want to split the application and data onto two standard
servers, I can think of a few non-trivial problems.  For one thing,
application performance may be impacted, possibly severely.  For
example, NFS would need to be configured on the server end to do all I/O
synchronously (not the default) to avoid file corruption during a crash.
This slows things down since the client (which is the OS server in this
case) has to wait for an acknowledgement of each write to traverse the
network.  Another major problem I see is that the potential for downtime
has now more than doubled.  If machine A is down, you're down.  If
machine B is down, you're down.  If the network connection between A and
B is down, you're down.  As far as benefits, maybe there's something I
haven't thought of, but I can't think of any off the top of my head.

-John
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


[U2] How to setup Distributed files across the network

2008-08-18 Thread Curt Stewart
Can someone tell me what is required to setup and use distributed files over a 
network. My client want's to separate the Application from the Data, so that 
each is on a separate server.  I'm sure someone has already done this or 
something similiar before and I would appreciate any insight you could share on 
how to set this up, what if any, additional Universe modules are required.

Any feedback would greatly be appreciated.

Thanks for all the help to date.
Curt Stewart
Tri-Sys Consulting
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Universe Windows reading a Virtual Tape File

2008-08-18 Thread Bill Haskett
Ron:

I was able to restore a D3 account (from Linux) onto a UniVerse on Windows 
machine (my Thinkpad).  In order to accomplish this you need to know the secret 
IBM/U2 handshake.  Fortunately, a VAR told me what that secret handshake was 
and I got it done.  I emailed Curt the instructions for this secret handshake 
so he should be able to properly restore a D3 account onto his UniVerse on 
Windows machine.

Colin Alfke told me how to do the same thing with UniData and I was able to 
upgrade our clients from D3 to UniData by doing an account restore.

Bill

>-Original Message-
>From: [EMAIL PROTECTED] [mailto:owner-u2-
>[EMAIL PROTECTED] On Behalf Of Ron White
>Sent: Monday, August 18, 2008 11:27 AM
>To: u2-users@listserver.u2ug.org
>Subject: RE: [U2] Universe Windows reading a Virtual Tape File
>
>UV on windows does not do virtual tapes but if you do a T-DUMP from D3 you can
>load the file(s) to UniVerse using the T.LOAD verb with the PICK.FORMAT option.
>I have both D3/Windows and UniVerse/Windows and have had good success moving
>small numbers of files.
>
>Ron White
>
>-Original Message-
>From: [EMAIL PROTECTED] [mailto:owner-u2-
>[EMAIL PROTECTED] On Behalf Of Curt Stewart
>Sent: Monday, August 18, 2008 12:10 AM
>To: u2-users@listserver.u2ug.org
>Subject: [U2] Universe Windows reading a Virtual Tape File
>
>I apologize if this is a dumb question, but I haven't found a definitive answer
>anywhere including the manuals.
>
>I'm still in the process of converting a D3 application to Universe and I've T-
>Dumped a bunch of file dictionaries to a VTF and now I just want to be able to
>T-LOAD them into the Universe Account.  I've tried setting the device to the 
>VTF
>but it won't read the file.   What am I missing? I would appreciate any 
>comments
>that you are willing to share.
>
>Thanks for your help.
>
>Sincerely,
>Curt Stewart
>TRI-SYS Consulting
>---
>u2-users mailing list
>u2-users@listserver.u2ug.org
>To unsubscribe please visit http://listserver.u2ug.org/
>---
>u2-users mailing list
>u2-users@listserver.u2ug.org
>To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Universe Windows reading a Virtual Tape File

2008-08-18 Thread Ron White
UV on windows does not do virtual tapes but if you do a T-DUMP from D3 you can 
load the file(s) to UniVerse using the T.LOAD verb with the PICK.FORMAT option. 
 I have both D3/Windows and UniVerse/Windows and have had good success moving 
small numbers of files.

Ron White

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Curt Stewart
Sent: Monday, August 18, 2008 12:10 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] Universe Windows reading a Virtual Tape File

I apologize if this is a dumb question, but I haven't found a definitive answer 
anywhere including the manuals.

I'm still in the process of converting a D3 application to Universe and I've 
T-Dumped a bunch of file dictionaries to a VTF and now I just want to be able 
to T-LOAD them into the Universe Account.  I've tried setting the device to the 
VTF but it won't read the file.   What am I missing? I would appreciate any 
comments that you are willing to share.

Thanks for your help.

Sincerely,
Curt Stewart
TRI-SYS Consulting
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Universe Windows reading a Virtual Tape File

2008-08-18 Thread Ed Clark
Not a dumb question. I've seen threads on here before about this. I  
think the bottom line is that universe on windows has no way to deal  
with virtual tape, but universe on unix/linux does. So if you have  
access to universe on unix, load your t-dumps there and then use  
uvbackup to save/restore to the windows machine.


I might be wrong, but I seem to recall that universe can import a d3  
file-save, and maybe the program that does that can read from a file.


As another alternative, If what you have is t-dumps, the t-dump  
format is almost trivially simple. You could write a basic program  
using OPENSEQ/READBLK to read from the virtual tape file and load the  
data--your own t-load program.


Has anyone ever seen a virtual tape driver for windows? In the same  
way that you can create a virtual disk in ram, has anyone ever seen a  
program that creates a virtual tape from a disk file?


On Aug 18, 2008, at 1:10 AM, Curt Stewart wrote:

I apologize if this is a dumb question, but I haven't found a  
definitive answer anywhere including the manuals.


I'm still in the process of converting a D3 application to Universe  
and I've T-Dumped a bunch of file dictionaries to a VTF and now I  
just want to be able to T-LOAD them into the Universe Account.   
I've tried setting the device to the VTF but it won't read the  
file.   What am I missing? I would appreciate any comments that you  
are willing to share.


Thanks for your help.

Sincerely,
Curt Stewart
TRI-SYS Consulting
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Universe Windows reading a Virtual Tape File

2008-08-18 Thread Dave Taylor

Curt,

The only "virtual" save and restore processes on Universe are uvbackup and 
uvrestore, and they work only with eachother and only with existing Universe 
accounts.


We have two tools that you can use, however, to accomplish your goal.

Please let me know if you would like to discuss these.

And remember, there are no dumb questions.

Best wishes,

Dave

Dave Taylor
Sysmark Information Systems, Inc.
Authorized IBM Business Partner
49 Aspen Way
Rolling Hills Estates, CA 90274
(O) 800-SYSMARK (800-797-6275)
(F) 310-377-3550
(C) 310-561-5200
www.sysmarkinfo.com
- Original Message - 
From: "Curt Stewart" <[EMAIL PROTECTED]>

To: 
Sent: Sunday, August 17, 2008 10:10 PM
Subject: [U2] Universe Windows reading a Virtual Tape File


I apologize if this is a dumb question, but I haven't found a definitive 
answer anywhere including the manuals.


I'm still in the process of converting a D3 application to Universe and 
I've T-Dumped a bunch of file dictionaries to a VTF and now I just want to 
be able to T-LOAD them into the Universe Account.  I've tried setting the 
device to the VTF but it won't read the file.   What am I missing? I would 
appreciate any comments that you are willing to share.


Thanks for your help.

Sincerely,
Curt Stewart
TRI-SYS Consulting
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/ 

---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/