Return-Path: Delivered-To: apmail-incubator-beehive-user-archive@www.apache.org Received: (qmail 34658 invoked from network); 16 Jun 2005 14:20:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Jun 2005 14:20:45 -0000 Received: (qmail 34507 invoked by uid 500); 16 Jun 2005 14:20:44 -0000 Delivered-To: apmail-incubator-beehive-user-archive@incubator.apache.org Received: (qmail 34454 invoked by uid 500); 16 Jun 2005 14:20:44 -0000 Mailing-List: contact beehive-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Beehive Users" Delivered-To: mailing list beehive-user@incubator.apache.org Received: (qmail 34441 invoked by uid 99); 16 Jun 2005 14:20:43 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from ritchie.acomp.usf.edu (HELO ritchie.acomp.usf.edu) (131.247.100.10) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 16 Jun 2005 07:20:43 -0700 Received: from [131.247.97.60] (aquinas.acomp.usf.edu [131.247.97.60]) by ritchie.acomp.usf.edu (Postfix) with ESMTP id 5EA092ADEA for ; Thu, 16 Jun 2005 08:15:37 -0400 (EDT) Message-ID: <42B16D68.6030902@ieee.org> Date: Thu, 16 Jun 2005 08:15:36 -0400 From: James Black User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Beehive Users Subject: Re: using axis 1.2.1 in beehive References: <42B08ABF.7070809@ieee.org> In-Reply-To: X-Enigmail-Version: 0.92.0.0 Content-Type: multipart/mixed; boundary="------------080309090305020908010301" X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --------------080309090305020908010301 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Daryoush Mehrtash wrote: > James, > > I am trying to reproduce your problem, I am missing the: > > edu.usf.acomp.epic.AbstractCommon > > Which Location extends. Can you send us the class, or may be a jar > of all your source files just to be sure we can duplicate the problem. I am going to be looking at this more today, and see if I can get a simpler test case that demonstrates the problem. This class works fine in axis 1.2.1 outside of beehive, so I am trying to figure out what is going on. - -- "Love is mutual self-giving that ends in self-recovery." Fulton Sheen James Black james@usf.edu -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCsW1oikQgpVn8xrARApW1AJ9HEK9dn6HfosSjP3nPi9DE6qn/GACghX2q EjSvLpHilci+ueuPel0drYs= =KPhx -----END PGP SIGNATURE----- --------------080309090305020908010301 Content-Type: text/plain; name="AbstractCommon.java" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="AbstractCommon.java" /* * AbstractCommon.java * * Created on January 28, 2002, 10:18 AM */ package edu.usf.acomp.epic; /** * A common class for all single objects. * * Commonly used methods will be placed here. * @author jblack */ public abstract class AbstractCommon { /** * The name of the zip file. */ protected String zipEntryName; /** * The class that is used for the dealing with compression and encrypting. */ protected base64Cipher cipher; /** Creates a new instance of AbstractCommon */ public AbstractCommon() { } /** * Make an XML element. This is a simplification for creating XML files, with the open and close braces * being set appropriately. * NOTE: there is nothing here for attributes, that could be changed at a later time. * @param name The name of the XML element * @param value The value of the element. * @return The end result. */ public String makeElement(String name, String value) { StringBuffer buf = new StringBuffer(2 * name.length() + value.length() + 5); buf.append("<").append(name).append(">").append(value).append(""); String xmlstr = new String(buf.toString()); buf.delete(0, buf.length()); buf = null; return xmlstr; } public String makeElement(String name, boolean value) { if (value) { return makeElement(name, "true"); } return makeElement(name, "false"); } public String makeElement(String name, int value) { try { return makeElement(name, Integer.toString(value)); } catch(java.lang.NumberFormatException nfe) { return makeElement(name, new String("NaN")); } } public String makeElement(String name, double value) { try { return makeElement(name, Double.toString(value)); } catch(java.lang.NumberFormatException nfe) { return makeElement(name, new String("NaN")); } } /** * Remove special characters, especially formatting characters, from the string. * @param value The string to strip from. * @return The resulting (stripped) string. */ protected String stripSpecialCharacters(String value) { byte[] b = value.getBytes(); int num = 0; for(int t = 0; t < value.length(); t++) if (b[t] >= 32) num++; byte[] c = new byte[num]; num = 0; for(int t = 0; t < value.length(); t++) if (b[t] >= 32) { c[num] = b[t]; num++; } String newvalue = new String(c); c = null; b = null; return newvalue; } /** * When compressing is needed to be done. * @param out The output stream that is used when done compressing. * @throws IOException When there is some IO exception. * @throws ZipException When there is a problem zipping the file. */ public void compressObject(java.io.OutputStream out) throws edu.usf.acomp.epic.EpicException { if (cipher == null) cipher = new base64Cipher(this); cipher.compressObject(out); } /** * When compressing is needed to be done. * @param out The output stream that is used when done compressing. * @param instr The string to be compressed * @throws IOException When there is some IO exception. * @throws ZipException When there is a problem zipping the file. */ public long compressObject(java.io.OutputStream out, String instr) throws edu.usf.acomp.epic.EpicException { if (cipher == null) cipher = new base64Cipher(this); return cipher.compressObject(out, instr); } /** * When decompressing is needed. * @param in The input, that has the compressed data that is to be decompressed. * @throws IOException When there is some IO exception. * @throws ZipException When there is a problem zipping the file. */ public byte[] decompressObject(java.io.InputStream in) throws java.io.IOException, java.util.zip.ZipException { return cipher.decompressObject(in); } /** * Convert this list into an XML file * @return the XML file */ public abstract String toXml(); /** * Write this list out. This is here to ensure persistance. * @param out The output stream to write into. * @throws IOException If there is a problem writing. */ protected abstract void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException; /** * Read the object, and build up the list. * @param in The input stream, or source that is to be used. * @throws IOException If there is a problem reading. * @throws ClassNotFoundException If the class is not found. */ protected abstract void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException; /** * Get the name of the zip file. * @return The name to be used for the zip file. When the file is unzipped, this will be the name of the * file that is created. */ public abstract String getZipEntryName(); /** * Get the ID of the person that is encrypting the file. * This could be a full name, USF Netid, nickname. Something so that the receiver can determine how to find the * key to unencrypt the symmetric key. * * @return The ID of the signer */ public abstract String getKeyID(); /** * Check if the string is null or not. A null string has a length of 0 or the value is "". * @param value The string under consideration * @return true if null, else false */ public static boolean isNull(String value) { if ((value == null) || (value.length() == 0) || (value.equals(""))) return true; else return false; } /** * @param out * @param priKey * @param pubKey * @throws IOException * @return */ public String toEncryptedXml(java.io.OutputStream out, java.security.PrivateKey priKey, java.security.PublicKey pubKey) throws edu.usf.acomp.epic.EpicException { if (cipher == null) cipher = new base64Cipher(); return cipher.toEncryptedXml(out, priKey, pubKey); } /** Getter for property jceProvider. * @return Value of property jceProvider. */ public String getJceProvider() { if (cipher != null) return cipher.getJceProvider(); else return new String(""); } /** Setter for property jceProvider. * @param jceProvider New value of property jceProvider. */ public void setJceProvider(String jceProvider) { if (cipher == null) cipher = new base64Cipher(); cipher.setJceProvider(jceProvider); } /** * Getter for property keySize. * @return Value of property keySize. */ public int getKeySize() { if (cipher != null) return cipher.getKeySize(); else return -1; } /** * Setter for property keySize. * @param keySize New value of property keySize. */ public void setKeySize(int keySize) { if (cipher == null) cipher = new base64Cipher(); cipher.setKeySize(keySize); } } --------------080309090305020908010301--