DO NOT REPLY [Bug 1263] - jmeter 1.6 alpha looks for SSL.StaticProvider in stead of SSLStaticProvider

2001-10-24 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1263

jmeter 1.6 alpha looks for SSL.StaticProvider in stead of SSLStaticProvider





--- Additional Comments From [EMAIL PROTECTED]  2001-10-24 10:47 ---
SSLStaticProvider has been removed in favor of the SSLManager classes.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




DO NOT REPLY [Bug 1263] - jmeter 1.6 alpha looks for SSL.StaticProvider in stead of SSLStaticProvider

2001-10-24 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1263

jmeter 1.6 alpha looks for SSL.StaticProvider in stead of SSLStaticProvider

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||FIXED

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




cvs commit: jakarta-jmeter build.xml

2001-10-24 Thread bloritsch

bloritsch01/10/24 10:31:32

  Modified:.build.xml
  Log:
  Provide proper conditional compile support for SSL managers
  
  Revision  ChangesPath
  1.40  +8 -3  jakarta-jmeter/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/jakarta-jmeter/build.xml,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- build.xml 2001/10/24 15:46:55 1.39
  +++ build.xml 2001/10/24 17:31:32 1.40
  @@ -35,6 +35,7 @@
  
  
  +  
 
   
 

cvs commit: jakarta-jmeter/bin jmeter.properties

2001-10-24 Thread bloritsch

bloritsch01/10/24 10:13:45

  Modified:bin  jmeter.properties
  Log:
  Add support to print out debug messages.
  
  Revision  ChangesPath
  1.30  +3 -2  jakarta-jmeter/bin/jmeter.properties
  
  Index: jmeter.properties
  ===
  RCS file: /home/cvs/jakarta-jmeter/bin/jmeter.properties,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- jmeter.properties 2001/10/24 16:23:33 1.29
  +++ jmeter.properties 2001/10/24 17:13:44 1.30
  @@ -27,8 +27,9 @@
   #ssl.pkgs=iaik.protocol
   
   #Flag for whether to output debug messages to System.err
  -#To enable it, set the value to "true"
  -debug.ssl=false
  +#To enable it, set the value to "all"  Note, for it to work with
  +#JSSE, it needs to be done from the Java command (i.e. -Djavax.net.debug=all)
  +javax.net.debug=all
   
   #Classname of the Swing default UI  
   #Installed Look and Feel classes on Windows are: 
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




cvs commit: jakarta-jmeter/src/org/apache/jmeter/util JsseSSLManager.java IaikSSLManager.java

2001-10-24 Thread bloritsch

bloritsch01/10/24 10:11:39

  Modified:src/org/apache/jmeter/util JsseSSLManager.java
IaikSSLManager.java
  Log:
  Add support to print out debug messages.
  
  Revision  ChangesPath
  1.3   +4 -2  jakarta-jmeter/src/org/apache/jmeter/util/JsseSSLManager.java
  
  Index: JsseSSLManager.java
  ===
  RCS file: /home/cvs/jakarta-jmeter/src/org/apache/jmeter/util/JsseSSLManager.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JsseSSLManager.java   2001/10/24 16:24:34 1.2
  +++ JsseSSLManager.java   2001/10/24 17:11:39 1.3
  @@ -76,7 +76,7 @@
* make a decision, it will pop open a dialog asking you for more information.
*
* @author Berin Loritsch
  - * @version CVS $Revision: 1.2 $ $Date: 2001/10/24 16:24:34 $
  + * @version CVS $Revision: 1.3 $ $Date: 2001/10/24 17:11:39 $
*/
   public class JsseSSLManager extends SSLManager {
   /** Cache the SecureRandom instance because it takes a long time to create */
  @@ -234,7 +234,7 @@
   this.rand = new SecureRandom();
   }
   
  -if ("true".equalsIgnoreCase(JMeterUtils.getPropDefault("debug.ssl", 
"false"))) {
  +if ("all".equalsIgnoreCase(JMeterUtils.getPropDefault("javax.net.debug", 
"none"))) {
   System.setProperty("javax.net.debug", "all");
   }
   
  @@ -260,6 +260,8 @@
   
HttpsURLConnection.setDefaultSSLSocketFactory(context.getSocketFactory());
   } catch (Exception e) {
   }
  +
  +System.out.println("JsseSSLManager installed");
   }
   
   /**
  
  
  
  1.2   +75 -56jakarta-jmeter/src/org/apache/jmeter/util/IaikSSLManager.java
  
  Index: IaikSSLManager.java
  ===
  RCS file: /home/cvs/jakarta-jmeter/src/org/apache/jmeter/util/IaikSSLManager.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IaikSSLManager.java   2001/10/24 15:46:55 1.1
  +++ IaikSSLManager.java   2001/10/24 17:11:39 1.2
  @@ -54,6 +54,12 @@
*/
   package org.apache.jmeter.util;
   
  +import iaik.pkcs.pkcs12.CertificateBag;
  +import iaik.pkcs.pkcs12.PKCS12;
  +import iaik.protocol.https.HttpsURLConnection;
  +import iaik.security.ssl.KeyAndCert;
  +import iaik.security.ssl.SSLClientContext;
  +import iaik.security.ssl.SSLContext;
   import org.apache.jmeter.gui.GuiPackage;
   
   import javax.swing.*;
  @@ -62,7 +68,11 @@
   import java.net.HttpURLConnection;
   import java.security.KeyStore;
   import java.security.KeyStoreException;
  +import java.security.PrivateKey;
   import java.security.Provider;
  +import java.security.cert.Certificate;
  +import java.security.cert.X509Certificate;
  +import java.util.Enumeration;
   
   /**
* The SSLManager handles the KeyStore information for JMeter.  Basically, it
  @@ -72,14 +82,19 @@
* make a decision, it will pop open a dialog asking you for more information.
*
* @author Berin Loritsch
  - * @version CVS $Revision: 1.1 $ $Date: 2001/10/24 15:46:55 $
  + * @version CVS $Revision: 1.2 $ $Date: 2001/10/24 17:11:39 $
*/
   public class IaikSSLManager extends SSLManager {
  -private static KeyStore keyStore;
  -private static KeyStore trustStore;
  -private String defaultpw;
  +private SSLContext context;
  +private KeyAndCert identity;
  +private KeyStore trustStore;
  +private String defaultpw = 
JMeterUtils.getJMeterProperties().getProperty("javax.net.ssl.keyStorePassword");
   
   public void setContext(HttpURLConnection conn) {
  +if (conn instanceof HttpsURLConnection) {
  +HttpsURLConnection secureConn = (HttpsURLConnection) conn;
  +secureConn.setSSLContext(this.context);
  +}
   }
   
   /**
  @@ -87,10 +102,12 @@
* not set, this method will prompt you to enter it.  Unfortunately, there is
* no PasswordEntryField available from JOptionPane.
*/
  -private KeyStore getKeyStore() {
  +private KeyAndCert getKeyAndCert() {
   String password = this.defaultpw;
  +KeyStore keyStore = null;
  +PKCS12 pkcsKey = null;
   
  -if (null == this.keyStore) {
  +if (null == this.identity) {
   String defaultName = 
JMeterUtils.getJMeterProperties().getProperty("user.home") + File.separator +
   ".keystore";
   String fileName = 
JMeterUtils.getJMeterProperties().getProperty("javax.net.ssl.keyStore", defaultName);
  @@ -98,11 +115,10 @@
   
   try {
   if (fileName.endsWith(".p12") || fileName.endsWith(".P12")) {
  -this.keyStore = KeyStore.getInstance("pkcs12");
   System.out.println("KeyStore Type: PKCS 12");
   System.setProperty("javax.net.ssl.key

cvs commit: jakarta-jmeter/src/org/apache/jmeter/util JsseSSLManager.java

2001-10-24 Thread bloritsch

bloritsch01/10/24 09:24:34

  Modified:src/org/apache/jmeter/util JsseSSLManager.java
  Log:
  Add support to print out debug messages.
  
  Revision  ChangesPath
  1.2   +6 -2  jakarta-jmeter/src/org/apache/jmeter/util/JsseSSLManager.java
  
  Index: JsseSSLManager.java
  ===
  RCS file: /home/cvs/jakarta-jmeter/src/org/apache/jmeter/util/JsseSSLManager.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- JsseSSLManager.java   2001/10/24 15:46:55 1.1
  +++ JsseSSLManager.java   2001/10/24 16:24:34 1.2
  @@ -76,11 +76,11 @@
* make a decision, it will pop open a dialog asking you for more information.
*
* @author Berin Loritsch
  - * @version CVS $Revision: 1.1 $ $Date: 2001/10/24 15:46:55 $
  + * @version CVS $Revision: 1.2 $ $Date: 2001/10/24 16:24:34 $
*/
   public class JsseSSLManager extends SSLManager {
   /** Cache the SecureRandom instance because it takes a long time to create */
  -private static SecureRandom rand;
  +private SecureRandom rand;
   
   /** Cache the KeyStore instance */
   private KeyStore keyStore;
  @@ -232,6 +232,10 @@
   protected JsseSSLManager(Provider sslProvider) {
   if (null == this.rand) {
   this.rand = new SecureRandom();
  +}
  +
  +if ("true".equalsIgnoreCase(JMeterUtils.getPropDefault("debug.ssl", 
"false"))) {
  +System.setProperty("javax.net.debug", "all");
   }
   
   try {
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




cvs commit: jakarta-jmeter/bin jmeter.properties

2001-10-24 Thread bloritsch

bloritsch01/10/24 09:23:33

  Modified:bin  jmeter.properties
  Log:
  Add entry for SSL debug messages
  
  Revision  ChangesPath
  1.29  +4 -0  jakarta-jmeter/bin/jmeter.properties
  
  Index: jmeter.properties
  ===
  RCS file: /home/cvs/jakarta-jmeter/bin/jmeter.properties,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- jmeter.properties 2001/10/24 15:45:50 1.28
  +++ jmeter.properties 2001/10/24 16:23:33 1.29
  @@ -26,6 +26,10 @@
   #Alternative protocol of the ssl provider for IAIK JCE + iSaSiLk
   #ssl.pkgs=iaik.protocol
   
  +#Flag for whether to output debug messages to System.err
  +#To enable it, set the value to "true"
  +debug.ssl=false
  +
   #Classname of the Swing default UI  
   #Installed Look and Feel classes on Windows are: 
   #  Metal   = javax.swing.plaf.metal.MetalLookAndFeel 
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




cvs commit: jakarta-jmeter/bin jmeter.properties

2001-10-24 Thread bloritsch

bloritsch01/10/24 08:45:50

  Modified:bin  jmeter.properties
  Log:
  Update jmeter.properties with info for IAIK iSaSiLk
  
  Revision  ChangesPath
  1.28  +3 -0  jakarta-jmeter/bin/jmeter.properties
  
  Index: jmeter.properties
  ===
  RCS file: /home/cvs/jakarta-jmeter/bin/jmeter.properties,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- jmeter.properties 2001/10/11 17:58:38 1.27
  +++ jmeter.properties 2001/10/24 15:45:50 1.28
  @@ -23,6 +23,9 @@
   #ssl.provider=com.sun.net.ssl.internal.ssl.Provider
   #ssl.pkgs=com.sun.net.ssl.internal.www.protocol
   
  +#Alternative protocol of the ssl provider for IAIK JCE + iSaSiLk
  +#ssl.pkgs=iaik.protocol
  +
   #Classname of the Swing default UI  
   #Installed Look and Feel classes on Windows are: 
   #  Metal   = javax.swing.plaf.metal.MetalLookAndFeel 
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: out of commission for a while

2001-10-24 Thread neth6

I second that Kevin be the release manager.

 Begin Original Message 

From: "Stover, Michael" <[EMAIL PROTECTED]>
Sent: Tue, 23 Oct 2001 11:40:27 -0400
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: out of commission for a while



Hi all,
     I am unfortunately out of commission for a while.  I'll still be
on the
mailing lists, but I have no access to cvs or to telnet
currently.  There
are now several of you who have access and are writing code.  From
memory,
you are:

Kevin Hammond
Tushar Bhatia
Neth
Scott Coleman (newest member)

And there's at least one other whose name escapes me right now.  I
suggest
you all introduce yourselves.  First thing to do probably should be to
determine the release manager amongst you all.  Kevin's being most
active,
so I would nominate him.

I'll be back eventually, though

-Mike Stover

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 End Original Message 



__
For the latest news, go to http://www.asia1.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




cvs commit: jakarta-jmeter/src/org/apache/jmeter/gui JLabeledTextField.java

2001-10-24 Thread khammond

khammond01/10/24 05:23:02

  Added:   src/org/apache/jmeter/gui JLabeledTextField.java
  Log:
  Code from Scott Coleman:
  
  A thin component that can hopefully be re-used when developers need a
  JTextField with a JLabel. This component also has an efficient event
  handling mechanism for changes in the TextField, please see the javadocs. I
  was thinking maybe the gui package needs a sub package something like
  components. Then any re-usable components could be placed there.
  
  Revision  ChangesPath
  1.1  jakarta-jmeter/src/org/apache/jmeter/gui/JLabeledTextField.java
  
  Index: JLabeledTextField.java
  ===
  /*
   * Copyright(c) 2000 Soltima, Inc.
   * Soltima Wireless Publishing Platform (WPP)
   *
   * @author S.Coleman
   */
  package org.apache.jmeter.gui;
  
  import javax.swing.*;
  import javax.swing.event.ChangeListener;
  import javax.swing.event.ChangeEvent;
  import java.util.ArrayList;
  import java.awt.event.FocusListener;
  import java.awt.event.FocusEvent;
  
  /**
   * A Helper component that wraps a JTextField with a label into
   * a JPanel (this). This component also has an efficient event handling
   * mechanism for handling the text changing in the Text Field. The registered
   * change listeners are only called when the text has changed.
   *
   * @author S.Coleman
   */
  public class JLabeledTextField extends JPanel
  {
  private JLabel mLabel = new JLabel();
  private JTextField mTextField = new JTextField(30);
  private ArrayList mChangeListeners = new ArrayList(3);  // Maybe move to vector 
if MT problems occur
  
  /**
   * Default constructor, The label and the Text field are left empty.
   */
  public JLabeledTextField()
  {
  super();
  init();
  }
  
  /**
   * Constructs a new component with the label displaying the
   * passed text.
   *
   * @param pLabel The text to in the label.
   */
  public JLabeledTextField(String pLabel)
  {
  super();
  mLabel.setText(pLabel);
  init();
  }
  
  /**
   * Initialises all of the components on this panel.
   */
  private void init()
  {
  // Register the handler for focus listening. This handler will
  // only notify the registered when the text changes from when
  // the focus is gained to when it is lost.
  mTextField.addFocusListener(new FocusListener(){
  
  String oldValue = ""; // A temporary cache.
  
  /**
   * Callback method when the focus to the Text Field component
   * is lost.
   *
   * @param pFocusEvent The focus event that occured.
   */
  public void focusLost(FocusEvent pFocusEvent)
  {
  // Compare if the value has changed, since we received focus.
  if (oldValue.equals(mTextField.getText()) == false)
  {
  notifyChangeListeners();
  }
  }
  
  /**
   * Catch what the value was when focus was gained.
   */
  public void focusGained(FocusEvent pFocusEvent)
  {
  oldValue = mTextField.getText();
  }
  });
  
  // Add the sub components
  this.add(mLabel);
  this.add(mTextField);
  }
  
  /**
   * Set the text displayed in the label.
   *
   * @param pLabel The new label text.
   */
  public void setLabel(String pLabel)
  {
  mLabel.setText(pLabel);
  }
  
  /**
   * Set the text displayed in the Text Field.
   *
   * @param pText The new text to display in the text field.
   */
  public void setText(String pText)
  {
  mTextField.setText(pText);
  }
  
  /**
   * Returns the text in the Text Field.
   *
   * @return The text in the Text Field.
   */
  public String getText()
  {
  return mTextField.getText();
  }
  
  /**
   * Returns the text of the label.
   *
   * @return The text of the label.
   */
  public String getLabel()
  {
  return mLabel.getText();
  }
  
  /**
   * Adds a change listener, that will be notified when the text in the
   * text field is changed. The ChangeEvent that will be passed
   * to registered listeners will contain this object as the source, allowing
   * the new text to be extracted using the {@link #getText() getText} method.
   *
   * @param pChangeListener The listener to add
   */
  public void addChangeListener(ChangeListener pChangeListener)
  {
  mChangeListeners.add(pChangeListener);
  }
  
  /**
   * Removes a change listener.
   *
   * @param pChangeListener The chan

cvs commit: jakarta-jmeter build.xml

2001-10-24 Thread khammond

khammond01/10/24 05:21:57

  Modified:.build.xml
  Log:
  Code from Scott Coleman:
  
  A slight modification to the build.xml to provide a nicer Java Docs (or at
  least I think so)
  
  Revision  ChangesPath
  1.38  +2 -0  jakarta-jmeter/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/jakarta-jmeter/build.xml,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- build.xml 2001/10/03 02:22:14 1.37
  +++ build.xml 2001/10/24 12:21:57 1.38
  @@ -112,6 +112,8 @@
destdir="${docs.api.dest.dir}"
private="yes" author="yes" version="yes"
doctitle="Apache JMeter APIs Specification"
  + windowtitle="Apache JMeter API Specification"
  + header="Apache 
JMeter
1.7" bottom="Copyright © 1998-2001 Apache Software Foundation. All Rights Reserved." packagenames="org.apache.jmeter.*, org.apache.jmeter.timers.*, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

cvs commit: jakarta-jmeter build.bat

2001-10-24 Thread khammond

khammond01/10/24 05:21:36

  Modified:.build.bat
  Log:
  Code from Scott Coleman:
  
  An environment check in build.bat to confirm that all is correct before
  trying to build.
  
  Revision  ChangesPath
  1.4   +10 -0 jakarta-jmeter/build.bat
  
  Index: build.bat
  ===
  RCS file: /home/cvs/jakarta-jmeter/build.bat,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- build.bat 2001/09/05 05:33:26 1.3
  +++ build.bat 2001/10/24 12:21:36 1.4
  @@ -1,6 +1,13 @@
   @echo off
   
  +if not "%JAVA_HOME%" == "" goto start:
  +echo JAVA_HOME not set, please set
  +goto eof:
  +
  +:start
   set LOCALCLASSPATH=%JAVA_HOME%\lib\tools.jar
  +set OLDPATH=%PATH%
  +set PATH=%JAVA_HOME%\bin;%PATH%
   
   for %%i in (".\lib\*.jar") do CALL lcp %%i
   echo %LOCALCLASSPATH%
  @@ -10,3 +17,6 @@
   SET BUILDFILE=build.xml
   echo %LOCALCLASSPATH%
   java -classpath %LOCALCLASSPATH% org.apache.tools.ant.Main -buildfile %BUILDFILE% %1
  +set PATH=%OLDPATH%
  +
  +:eof
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




cvs commit: jakarta-jmeter/src/org/apache/jmeter/config ExtensionsFileFilter.java

2001-10-24 Thread khammond

khammond01/10/24 05:20:52

  Added:   src/org/apache/jmeter/config ExtensionsFileFilter.java
  Log:
  Code from Scott Coleman:
  
  A component for a file chooser that allows me to filter file types, I will
  be using in the future, maybe this need to be in a different package?
  
  Revision  ChangesPath
  1.1  
jakarta-jmeter/src/org/apache/jmeter/config/ExtensionsFileFilter.java
  
  Index: ExtensionsFileFilter.java
  ===
  /*
   * Copyright(c) 2000 Soltima, Inc.
   * Soltima Wireless Publishing Platform (WPP)
   *
   * @author S.Coleman
   */
  package org.apache.jmeter.config;
  
  import javax.swing.filechooser.FileFilter;
  import java.util.ArrayList;
  import java.io.File;
  
  /**
   * This FileFilter allows for a list of file extensions
   * to be set that it will filter on. This design was taken
   * from the ExampleFileFilter used in
   * http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html";>How 
to Use File Choosers,
   * a section in The Java Tutorial.
   *
   * Here is an example of how to use the file filter for JMX files,
   * that have the .jmx extension.
   * 
   *  ExtensionsFileFilter filter = new ExtensionsFileFilter();
   *  filter.addExtension("jmx");
   *  filter.setDescription("JMeter (*.jmx)");
   *  FileChooser fileChooser = new FileChooser();
   *  fileChooser.setFileFilter(fileFilter);
   * 
   */
  public class ExtensionsFileFilter extends FileFilter
  {
  /**
   * A description of the extensions being filtered on.
   */
  private String mDescription = "";
  
  /**
   * The list of extensions being filtered on.
   */
  private ArrayList acceptableExtensions = new ArrayList(3);
  
  /**
   * Default Constructor.
   */
  public ExtensionsFileFilter()
  {
  }
  
  /**
   * Add an extension to the list of extensions to filter on.
   *
   * @param pExtension The extension to add.
   */
  public void addExtension(String pExtension)
  {
  acceptableExtensions.add(pExtension);
  }
  
  /**
   * Removes an extension from the list of extensions to filter on.
   *
   * @param pExtension The extension to remove.
   */
  public void removeExtension(String pExtension)
  {
  acceptableExtensions.remove(pExtension);
  }
  
  /**
   * Set the description of the extensions being filtered on.
   *
   * @param pDescription The detailed description of the extensions being filtered 
on.
   */
  public void setDescription(String pDescription)
  {
  mDescription = pDescription;
  }
  
  /**
   * Returns a descriptive string detailing the file extensions being filtered.
   *
   * @return The description of the extensions being filtered.
   * @see javax.swing.filechooser.FileFilter#getDescription()
   */
  public String getDescription()
  {
  return mDescription;
  }
  
  /**
   * Determines whether to accept the passed File or not.
   *
   * @param pFile The file to check whether we should accept or not.
   * @return true if the file is accepted, false if not.
   */
  public boolean accept(File pFile)
  {
  // Always accept directories or the user will not be able to navigate
  // around the file system.
  if (pFile.isDirectory())
  {
  return true;
  }
  if (acceptableExtensions.contains(getExtension(pFile)) == true)
  {
  return true;
  }
  
  return false;
  }
  
  /**
   * Finds the file extension for the passed File. If there
   * is no extension then an empty string is returned.
   *
   * @param pFile The file to find the extension of.
   */
  private String getExtension(File pFile)
  {
  String name = pFile.getName();
  int index = name.lastIndexOf('.');
  if (index == -1 || index == name.length())
  {
  return "";
  }
  else
  {
  return name.substring(index + 1);
  }
  }
  }
  
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: JMeter Proxy Server config issues

2001-10-24 Thread Marc Ponschab

Hi,

the Proxy opens directly a socket to the requested URL (in the example 
http://www.google.com) so the timeout occurs. There's nothing in the 
code respecting the http.proxyHost/Proxy properties.
In the moment, i work on a rewrite of the Proxy module to implement 
https support on recording browser activity (status: working, but not 
perfectly integrated).
If there's any interrest to include my changes in the JMeter-Code, i can 
also try extending the Proxy server using the http.proxyHost/Proxy 
Properties.

Marc


Stover, Michael wrote:
> I suspect the Proxy server is doing something weird that prevents it from
> using the proxy you instructed JMeter to use.  The code is from an on-line
> university that I grabbed and plugged in.  It's super simple code, which
> probably means it's not particularly robust.  You might find your answer by
> digging through it.
> 
> Can't you test out the proxy server without going through a firewall?
> 
> -Mike
> 
> 
>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, October 23, 2001 11:09 AM
>>To: [EMAIL PROTECTED]
>>Subject: JMeter Proxy Server config issues
>>
>>
>>I tested out JMeter's proxy server last night but had some difficulty 
>>configuring it mainly b'cos I think the doc was a bit scant.  From 
>>what I could gather, these are what I have to do :
>>1. Add 'ThreadGroup' to 'Test Plan'.
>>2. Add 'Proxy Server' to 'ThreadGroup'.  Accept the default values 
>>where name is 'Proxy Server', port is '8080', include and exclude are 
>>both left blank.
>>3. Add 'Simple Controller' to 'ThreadGroup'.
>>4. Make browser point to the JMeter proxy server
>>5. Access http://www.google.com.
>>
>>At this stage the console shows 'Miss! Forwarding to 
>>http://www.google.com'.  After sometime, I get :
>>java.net.NoRouteToHostException: Operation timed out: connect
>>at java.net.PlainSocketImpl.socketConnect(Native Method)
>>at java.net.PlainSocketImpl.doConnect
>>(PlainSocketImpl.java:323)
>>at java.net.PlainSocketImpl.connectToAddress
>>(PlainSocketImpl.java:136)
>>at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:123)
>>at java.net.Socket.(Socket.java:273)
>>at java.net.Socket.(Socket.java:100)
>>at org.apache.jmeter.protocol.http.proxy.Proxy.run
>>(Proxy.java:195)
>>The browser shows 503 Gateway Timeout Error.
>>
>>I did a ip trace and notice that the 'Proxy Server' did not forward 
>>the browser request to my proxy server(I'm referring to my ISP proxy 
>>server and NOT the JMeter Proxy Server) but instead tried to forward 
>>directly to http://www.google.com which of course fails since my ISP 
>>does not allow connections without going thru' its proxy.  I started 
>>JMeter with 'jmeter.bat -h proxy.myisp.com.sg -p 8080'.  For other 
>>types of JMeter function, e.g. 'View Result Tree' etc things work 
>>just fine.
>>
>>What did I do wrong?  Let me know and I'll update the docs to reflect 
>>the steps required.
>>
>>
>>__
>>For the latest news, go to http://www.asia1.com
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]