[U2] RE: U2 Users Digest V1 #161

2004-08-02 Thread Tsombakos, John
Wendy Smoak [EMAIL PROTECTED] wrote:

Harry Hambrick wrote:
 Does anyone have a small example program using CALLHTTP that works?
 Would like to study it for a project we need to do.

There's some code on the Wiki.  It uses SSL along with CallHTTP, but you
can just ignore the SSL part:

http://www.pickwiki.com/cgi-bin/wiki.pl?CallHTTPWithSSL

Feel free to post a simpler example!  After all that work, the project
it was for was abandoned, so I haven't used CallHTTP again.

- -- 
Wendy Smoak

I just posted some more CallHTTP code on the Wiki

http://www.pickwiki.com/cgi-bin/wiki.pl?CallHTTP

including the issue where CallHTTP will strip out any custom content-type
headers you add when doing a POST request.
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] UniObjects for Java and Type 1 files

2004-07-22 Thread Tsombakos, John
Well, I played around some more, and checks the docs again. The file is a
type 19 file, and using that exact code (chaning the file name of course).
Since type 19 and type 1 are directory files, I changed to use sequential
files:

UniSequentialFile uBP = uSession(TBP, key, false);
UniString uvstr = uBP.readLine();
int uvstat = uBP.status();

while (uvstat == 0) {
  System.out.println(uvstr);
  uvstr = uBP.readLine();
  uvstat = uBP.status();
}

This worked.

TBP VOC:
1: F
2: /u1/ACCT/TBP
3: /u1/ACCT/D_BP

 -Original Message-
 From: Wendy Smoak [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 22, 2004 12:42 PM
 To: [EMAIL PROTECTED]; Tsombakos, John
 Subject: RE: [U2] UniObjects for Java and Type 1 files
 
 
 Tsombakos, John wrote:
  However, I tried changing the sample code to read from a BP / 
  source code file and it gives an error - 
  asjava.uniobjects.UniFileException: This Record was not found.
  I even tried using (non java) Uniobjects and got the same 
  error.  Is there a problem with UniObjects reading from a non-hashed
 file?
 
 I routinely read from HOLD, which is really a directory.  You wrote
 'type 1' file-- I've heard them called type 19 or dir-type 
 files, but
 I'm not sure what type 1 is.
 
 This works:
 
   UniFile uFile = uSession.openFile( HOLD );
   uString = uFile.read( key );
 
 Can you post some of the code you're using, and what the VOC 
 pointer to
 the file looks like?
 
 -- 
 Wendy Smoak
 Application Systems Analyst, Sr.
 ASU IA Information Resources Management 
 (at 9:41 AM...)
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] UniObject Problem

2004-06-29 Thread Tsombakos, John
Just want to give my two cents. Yes, there is a threading issue with using
Uniobjects with IIS to talk to Universe. Universe is not thread safe/aware
with regards to Uniobjects. IIS uses a threading model to talk to multiple
web connections, and when those connections then try to use Uniobjects, the
connections cross. I was having multiple errors when I had more then one or
two users using a system we developed. The errors that we are mostly getting
are:
30114 UVE_EXECUTEISACTIVE An execute is currently active
 and
39120 UVE_SESSION_NOT_OPEN The session is not open

I was given this information directly from IBM support (if you do a search
of the archives, you'll see my previous messages. There was supposed to be a
fix, but I haven't seen it. We've since moved to using Redback for our web
applications, but frankly, I wish that Uniobjects worked with IIS. Redback
is OK, but it seems to be a bit of overkill for some of the things we're
doing, not to mention we've had some speed issues. Redback just isn't that
fast for us, no matter what I've tried. Uniobjects, for all it's problems,
was nice and fast.

(also, watch out for this bug -
http://www.indexinfocus.com/dl/u2list/200201/25228.html - this is with
Universe 9.6. I'd like to assume it was fixed in a later version)

Please let me know if a later version of Universe/Uniobjects/ASP does work,
I'd love to be able to switch (and if possible, without going to
.NET...ugh...)

John T.

 -Original Message-

 Date: Mon, 28 Jun 2004 07:54:59 -0700
 From: Wendy Smoak [EMAIL PROTECTED]
 Subject: RE: [U2] UniObject Problem
 
 Kevin Vezertzis wrote:
  Has anyone had experience or problems interfacing UniObjects 
  directly to .ASP?  We are seeing errors when two simultaneous users
 are making
  requests to the database.
 
 I believe this is a known issue, check the archives for more info.
 Here's the first thread I turned up, although I'm not sure whether it
 refers to the exact setup you're using:
 http://www.indexinfocus.com/dl/u2list/200402/61668.html
 
 - -- 
 Wendy Smoak
 Application Systems Analyst, Sr.
 ASU IA Information Resources Management 
 
 --
 
 Date: Mon, 28 Jun 2004 12:44:36 -0400
 From: Martin Scholl [EMAIL PROTECTED]
 Subject: RE: [U2] UniObject Problem
 
 UniObjects is not thread safe (Will be hopefully with the 
 .NET version that
 comes out any day now). The connections cross.
 With every database interaction from ASP, I open the 
 connection, do my read,
 write etc and disconnect.
 I don't know if this is really safe so I am awaiting UniObjects.NET
 impatiently.
 
 
 Martin Scholl
 President HIPAAsuite
 18910 New Hampshire Ave
 Brinklow, MD 20862
 301-924-5537  Phone
 301-570-0139  Fax
 301-613-9572  Cell
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Universe Redback Java Problem

2004-06-21 Thread Tsombakos, John
Thanks. I think it does have to do with the encoding somewhere. I can use
the debugger on OS X (Xcode) and see the exact response from the web server.
The value mark is being encoded as %FC, but the sub-value mark is not being
encoded, just passed through as an ASCII 184. I will investigate the
getEncoding routine - maybe it is something broken in Apple's JVM.


-Original Message-
Date: Mon, 21 Jun 2004 15:24:11 +0100
From: Simon Lewington [EMAIL PROTECTED]
Subject: Re: [U2] Universe  Redback  Java Problem

Wendy Smoak ...
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of
  Tsombakos, John
  Now, here's the rub.. My initial testing is using Mac OS X.
  But, when the
  routine returns a multi-valued item, the value of the SubValue (@SM)
  character is wrong, so I can't pull sub-values out of a
  result. The Value
  mark (@VM) is correct (CHAR(253)). The SubValue mark is being
  return in the
  string as a CHAR(184).

 I've never used a Mac.  When you use UniObjects for Java on Linux, you
 have to make sure to set the LANG environment variable to 'C' or the
 same sort of thing happens.  Hope that's somewhat helpful, isn't OS X
 somehow related to Unix?

I think Wendy could be on the right track.

RedBeans used to use, and may well still use, java.net.URLEncoder - and this
fails on high asci for non-US encodings.  If this is your problem, then just
setting LANG isn't enough to change the default encoding.  You can see what
yours is by asking a java.io.OutputStreamWriter getEncoding(). See perhaps
http://www.jguru.com/faq/view.jsp?EID=78088 after a quick google.

If this really the problem then get on to IBM, because they shouldn't be
using this (dodgy anyway) unicode encoder with their asci data.

Simon
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Universe Redback Java Problem

2004-06-21 Thread Tsombakos, John
And I sent this before I double checked... the value mark is being in coded
as %FD.

-Original Message-
From: Tsombakos, John 
Sent: Monday, June 21, 2004 2:15 PM
To: '[EMAIL PROTECTED]'
Subject: Re: [U2] Universe  Redback  Java Problem


Thanks. I think it does have to do with the encoding somewhere. I can use
the debugger on OS X (Xcode) and see the exact response from the web server.
The value mark is being encoded as %FC, but the sub-value mark is not being
encoded, just passed through as an ASCII 184. I will investigate the
getEncoding routine - maybe it is something broken in Apple's JVM.
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


[U2] Universe Redback Java Problem

2004-06-17 Thread Tsombakos, John
I don't know if anyone can help with this but here goes...

I'm toying around with using Redback with Java - kicked off by an article in
the latest International Spectrum Magazine (Using Redback with PHP). I
couldn't get PHP to work with Java, so I went straight to a Java app.

I am able to get the Java app to connect to the Redback server, and make a
method call - which kicks off a routine on the Universe server and then
returns some data.

Now, here's the rub.. My initial testing is using Mac OS X. Shouldn't really
matter, Java is Java (hah). I have the RedBeans.jar file on the Mac and the
test.jar file is created when I compile my little test app. But, when the
routine returns a multi-valued item, the value of the SubValue (@SM)
character is wrong, so I can't pull sub-values out of a result. The Value
mark (@VM) is correct (CHAR(253)). The SubValue mark is being return in the
string as a CHAR(184). Now, if I copy the test.jar file to a PC, and run it
there (java -jar test.jar) - it works fine! The SubValues in the string have
their correct value (CHAR(252)).

Now, it's the exact same .jar file, which includes the exact same
RedBeans.jar library (it's merged into the test.jar file).

I'm stumped.  Any Java-heads out there who can shed some light?


Thanks,

---
John Tsombakos - [EMAIL PROTECTED]
Manager of Web Development
AMI Leasing - http://www.amileasing.com
508-853-2950 x3266
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/