RE: [U2][UV]confusing memory problem
https://www-927.ibm.com/software/data/u2/support/u2techconnect/matrix.asp I would have never looked in the Product availability matrix for the release notes It is a night-mare to run over all this notes, but I suceeded in the 10.0.17.txt 5462An internal error caused the getSocketOptions function to produce unhandled exceptions on Windows platforms and SIGSEGVs on UNIX platforms, which caused UniVerse to crash. This problem has been corrected. This was one of the changes I introduced 5 months ago and never thought that this could produce such an error (up to 5 Minutes 100% CPU usage in this program with millions of variable changes) I am running now 4 hours without any crash. To be honest, I'd just upgrade or request an evaluation copy of the latest 10.1 or 10.2 (as suits you) and try that version. No way: 5000 Euros and probably 5000 hours to find the newly introduced troubles in 2500 procedures makes no sense (the application is a SB application) Thanks for your help -- Manfred --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
[U2] From SOAP on to XML
Thanks to everyone that responded to my SOAP questions. Now it's on to some XML processing. I am having some problem understanding how to get the XMAPAppendRec() function to work properly. Leaving out all of the gory details , basically I have XML.map XML.ext files setup to allow parsing of the following xml : List Item ID1/ID NameOne/Name /Item Item ID2/ID NameTwo/Name /Item /List using XDOMOpen , XDOMLocate , XMAPOpen , XMAPReadNext works very well to get the data out of the xml document. I am trying to copy the source document to a new document using XMAPCreate + St=XMAPReadNext(srcHandle,xfile,rec) St=XMAPAppendRec(dstHandle,xfile,rec) This sort of works for the 1st append , XMAPToXmlDoc shows that the result contains : Item ID1/ID NameOne/Name /Item However, as you can see, there is no root node created, so appending the second record generates a can only have one root node error. I can't see how to get the document root into the result document. Can anyone offer any pointers on this ? Gerry --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] From SOAP on to XML
Gerry - in your StartNode in the XMAP file, add a root element in the Xpath. Example: If StartNode contains List, change it to Lists/List. That should do it. Scott T. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of gerry-u2ug Sent: Tuesday, June 05, 2007 9:09 AM To: u2-users@listserver.u2ug.org Subject: [U2] From SOAP on to XML Thanks to everyone that responded to my SOAP questions. Now it's on to some XML processing. I am having some problem understanding how to get the XMAPAppendRec() function to work properly. Leaving out all of the gory details , basically I have XML.map XML.ext files setup to allow parsing of the following xml : List Item ID1/ID NameOne/Name /Item Item ID2/ID NameTwo/Name /Item /List using XDOMOpen , XDOMLocate , XMAPOpen , XMAPReadNext works very well to get the data out of the xml document. I am trying to copy the source document to a new document using XMAPCreate + St=XMAPReadNext(srcHandle,xfile,rec) St=XMAPAppendRec(dstHandle,xfile,rec) This sort of works for the 1st append , XMAPToXmlDoc shows that the result contains : Item ID1/ID NameOne/Name /Item However, as you can see, there is no root node created, so appending the second record generates a can only have one root node error. I can't see how to get the document root into the result document. Can anyone offer any pointers on this ? Gerry --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ -- NOTICE -- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material, the disclosure of which is governed by applicable law. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error please contact the sender and destroy the materials contained in this message. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] From SOAP on to XML
Thanks Scott, That did it, I changed the .map StartNode from Item to List/Item and the rootNode in my XDOMLocate from List to now everything works as expected. Gerry -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Teixeira Sent: June 5, 2007 10:03 AM To: u2-users@listserver.u2ug.org Subject: RE: [U2] From SOAP on to XML Gerry - in your StartNode in the XMAP file, add a root element in the Xpath. Example: If StartNode contains List, change it to Lists/List. That should do it. Scott T. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of gerry-u2ug Sent: Tuesday, June 05, 2007 9:09 AM To: u2-users@listserver.u2ug.org Subject: [U2] From SOAP on to XML Thanks to everyone that responded to my SOAP questions. Now it's on to some XML processing. I am having some problem understanding how to get the XMAPAppendRec() function to work properly. Leaving out all of the gory details , basically I have XML.map XML.ext files setup to allow parsing of the following xml : List Item ID1/ID NameOne/Name /Item Item ID2/ID NameTwo/Name /Item /List using XDOMOpen , XDOMLocate , XMAPOpen , XMAPReadNext works very well to get the data out of the xml document. I am trying to copy the source document to a new document using XMAPCreate + St=XMAPReadNext(srcHandle,xfile,rec) St=XMAPAppendRec(dstHandle,xfile,rec) This sort of works for the 1st append , XMAPToXmlDoc shows that the result contains : Item ID1/ID NameOne/Name /Item However, as you can see, there is no root node created, so appending the second record generates a can only have one root node error. I can't see how to get the document root into the result document. Can anyone offer any pointers on this ? Gerry --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ -- NOTICE -- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material, the disclosure of which is governed by applicable law. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error please contact the sender and destroy the materials contained in this message. --- 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] Triple-DES Encryption - Java question for U2 group
All, I am testing the 7.1 ENCRYPT function (Unidata). Previous to 7.1 you could not encrypt in a language such as C# and have the Unibasic ENCRYPT function decrypt a string. I believe that IBM has fixed this in 7.16 therefore the test. My problem is that (sad to say unlike C# but now I must use Java) it is hard to find code in Java to produce the base64 encrypted string IF YOU HAVE TO USE THE FOLLOWING PARAMETERS. KEY= 1234ABCDEFABCDEFGH1234 - Length = 24 KEY.SALT = 01234567 - Length = 8 IV = 1ABCDEF1 - Length = 8 What I am trying to do is produce an encrypted string in Java using the above paramerters and give it to Unidata decrypt it (that program is written and working). I also have to base64 encode the encrypted string. The following code is what I have so far - can someone help or point me to another newsgroup. Notice that I have not found out how to pass in the salt value. String instr = This is the string to be Encrypted; String b64es; String decstr; byte[] encrypted; byte[] toEncrypt; byte[] fromEncrypt; byte[] es; byte[] myKey = 1234ABCDEFABCDEFGH1234.getBytes(); byte[] iv= 1ABCDEF1.getBytes(); try { System.out.println(Start of Encryption Test); // Prepare for Encryption IvParameterSpec ivParameterSpec = new IvParameterSpec(iv); DESedeKeySpec keySpec = new DESedeKeySpec(myKey); SecretKeyFactory secretKeyFactory = SecretKeyFactory.getInstance(DESede); SecretKey secretKey = secretKeyFactory.generateSecret(keySpec); Cipher cipher = Cipher.getInstance(DESede/CBC/PKCS5Padding); cipher.init(Cipher.ENCRYPT_MODE,secretKey); // cipher.init(arg0, secretKey, ivParameterSpec) // Get encrypted array of bytes. toEncrypt = instr.getBytes(); // Encrypts byte data encrypted = cipher.doFinal(toEncrypt); int keySizeInBits = keySpec.DES_EDE_KEY_LEN; System.out.println(Effective key size is + keySizeInBits + bits.\n); // get the cipher algorithm String alg = cipher.getAlgorithm(); System.out.println(Algorithm + alg); // // // get the Key // System.out.println(Input Key : + new String(key.getEncoded())); // // // get the IV // System.out.println(Input IV : + new String(cipher.getIV()) + \n); // // Base 64 Encode the encrypted string b64es = new BASE64Encoder().encodeBuffer(encrypted); System.out.println(Base64 encrypted output : + b64es); // decrypt // Convert base64 encrypted string to encrypted byte array es = new BASE64Decoder().decodeBuffer(b64es); // Initializes thE cipher cipher.init(Cipher.DECRYPT_MODE,secretKey); // decrypt byte array fromEncrypt = cipher.doFinal(es); // convert byte array into string decstr = new String(fromEncrypt); System.out.println(Input string : + instr); System.out.println(Output string : + decstr); } catch (Exception e) { System.out.println(Error : + e); } } } Thanks george --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
[U2] Soap Pt 2
Calling a webservice using SoapSetParameters , SoapSubmitRequest There seems to be a limit of about 16K where any parameters exceeding this size get jumbled up - using SoapRequestWrite it looks like some sort of buffer overwrite going on. I can get around this by manually building the entire soap message and using SoapSetRequestContent() but is there any way to increase this limit , 16K is pretty small for say any non-trivial xml document ? Gerry --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Soap Pt 2
I ran into the same issue. What I ended up doing was writing my own subroutine to make web service calls. It is nothing more than a socket call on a given port and IP address expecting a specific packet. Thanks, Nick Cipollina -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of gerry-u2ug Sent: Tuesday, June 05, 2007 12:33 PM To: u2-users@listserver.u2ug.org Subject: [U2] Soap Pt 2 Calling a webservice using SoapSetParameters , SoapSubmitRequest There seems to be a limit of about 16K where any parameters exceeding this size get jumbled up - using SoapRequestWrite it looks like some sort of buffer overwrite going on. I can get around this by manually building the entire soap message and using SoapSetRequestContent() but is there any way to increase this limit , 16K is pretty small for say any non-trivial xml document ? Gerry --- 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] Epicor ManFact
Not to take up most peoples time here needlessly, if there are any programmers on this list that are intimate with Epicor's ManFact package (programming wise) and can offer some assistance with their ElfQuery, please contact me offline. Thank you in advance. Barry Rogen PNY Technologies, Inc. Senior Programmer/Analyst (973) 515 - 9700 ext 5327 [EMAIL PROTECTED] - Far better it is to dare mighty things, to win glorious triumphs even though checkered by failure, than to rank with those poor spirits who neither enjoy nor suffer much because they live in the gray twilight that knows neither victory nor defeat.t. roosevelt --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
[U2] Help in creating Retrieve statement for a multivalue field
My retrieve statement produced below is not formatting properly. I want the first column to be repeated for each period. SORT SACM.AOS.P BY FDX.Period FDX.Period FMT 30L @ID FMT 35L FDX.NumOfDel LPTR SACM.AOS.P Period ##. SACM.AOS.P. Num Of Del 06 4 01*GAN100* 01 01*GAN100*GAN100*WS09*071 GAN100*WS0 9*07 02 1 03 4 04 4 05 2 06 Thanks Krish --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Help in creating Retrieve statement for a multivalue field
You want BY-EXP not BY -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, June 05, 2007 1:42 PM To: u2-users@listserver.u2ug.org Subject: [U2] Help in creating Retrieve statement for a multivalue field My retrieve statement produced below is not formatting properly. I want the first column to be repeated for each period. SORT SACM.AOS.P BY FDX.Period FDX.Period FMT 30L @ID FMT 35L FDX.NumOfDel LPTR SACM.AOS.P Period ##. SACM.AOS.P. Num Of Del 06 4 01*GAN100* 01 01*GAN100*GAN100*WS09*07 1 GAN100*WS0 9*07 02 1 03 4 04 4 05 2 06 Thanks Krish --- 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] Help in creating Retrieve statement for a multivalue field
[EMAIL PROTECTED] wrote: My retrieve statement produced below is not formatting properly. I want the first column to be repeated for each period. SORT SACM.AOS.P BY FDX.Period FDX.Period FMT 30L @ID FMT 35L FDX.NumOfDel LPTR SACM.AOS.P Period ##. SACM.AOS.P. Num Of Del 06 4 01*GAN100* 01 01*GAN100*GAN100*WS09*071 GAN100*WS0 9*07 02 1 03 4 04 4 05 2 06 Look up BY.EXPLD -- Allen Egerton aegerton at pobox dot com --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/