Hello all,
   We've been using UniObjects middleware to connect to UniData for developing
   Web applications.  We've always used the middleware that came with v6 of
   UniData.   We  have  been unable to use the middleware from v7.  I was
   wondering if anyone might be able to identify what we are doing wrong.  We
   are connecting to UniData 7.
   This code works with the v6 middleware, but does not work with v7
                   objConn.setHostName("ourhost.ourcollege.edu");
                   objConn.setaccountpath("/valid/path/to/home/");
                   objConn.setUserName("ourusername");
                   objConn.setPassword("ourpassword");
                   objConn.connect();
                   webgetapp = objConn.subroutine("SUB.ROUT.INE",2);
                   webgetapp.setArg(0,"");
                   webgetapp.setArg(1,"somevalue");
                   webgetapp.call();
                   getAppResults =  webgetapp.getArg(0)
                   objConn.disconnect();
   On v6 middleware, this return the results properly in the getAppResults
   variable.  On v7 middleware, it does this...
   " An exception occurred when executing method disconnect."
   java.lang.NullPointerException
       at asjava.uniobjects.UniJava.closeSessionInternal(UniJava.java:225)
       at asjava.uniobjects.UniSession.disconnect(UniSession.java:535)
   Any thoughts?  We'd eventually like to get our middleware up to a more
   recent version to take advantage of some new features.
   -Mike
   ___________________________________________________________
   Michael J. Sprague / Director, Web Services
   Hamilton College / 198 College Hill Road / Clinton, NY 13323
   [EMAIL PROTECTED] / 315-859-4087 office / 315-794-6831 mobile
   Wednesday, July 18, 2007 12:00 PM (Thunderbird 2.0.0.4) 
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to