Recently, I posted a simple guide on How to use Eclipse with JMeter. Did
you see it? I'll be happy to get some reference.


On Tue, 4 Jan 2005 14:52:34 +0100, "Vincent Hiribarren"
<[EMAIL PROTECTED]> said:
> Hello all,
> 
> first sorry, this e-mail is quite long.
> 
> I have tested and modified JMeter, but I have encountered a very
> strange java exception with the Reponse Assertion. It is not a bug
> report as it is due to programming tools.
> 
> Here is my working environment :
> - Eclipse 3.0.1
> - a jdk1.3.1_14
> - a jre 1.4.2_01
> - WinXP operating system
> - JMeter 2.0.2 release
> 
> I have configured Eclipse to build and launch JMeter from it.
> If I tell Eclipse to compile JMeter for a java 1.3 or a java 1.4
> platform, there is no problem. It works well.
> 
> It is when I use the Ant buildfile (so with the 1.3.1_14 java
> compiler) that it does not work any more.
> 
> Ant is configured in eclipse to use a java 1.3 JVM.
> In its classpath is included jakarta-oro-2.0.8.jar, xercesImpl.jar,
> and xml-apis.jar.
> If I do not include them, Ant does not work.
> 
> I do not use the same build.xml file as yours : when I launch the
> making of a new distribution, I have this error message :
> 
> compile-htmlparser:
>     [mkdir] Created dir:
>     C:\Local\eclipse\workspace\PPSMeter\build\htmlparser
>     [javac] Compiling 196 source files to
> C:\Local\eclipse\workspace\PPSMeter\build\htmlparser
>     [javac] error: compiler message file broken:
> key=compiler.err.sun.io.MalformedInputException arguments=null, null,
> null, null, null, null, null
>     [javac] error: compiler message file broken:
> key=compiler.err.sun.io.MalformedInputException arguments=null, null,
> null, null, null, null, null
>     [javac] error: compiler message file broken:
> key=compiler.err.sun.io.MalformedInputException arguments=null, null,
> null, null, null, null, null
>     [javac] error: compiler message file broken:
> key=compiler.err.sun.io.MalformedInputException arguments=null, null,
> null, null, null, null, null
>     [javac]
>     
> C:\Local\eclipse\workspace\PPSMeter\src\htmlparser\org\htmlparser\beans\StringBean.java:46:
> org.htmlparser.util.Translate is not public in org.htmlparser.util;
> cannot be accessed from outside package
>     [javac] import org.htmlparser.util.Translate;
>     [javac] ^
>     [javac]
>     
> C:\Local\eclipse\workspace\PPSMeter\src\htmlparser\org\htmlparser\visitors\TextExtractingVisitor.java:39:
> org.htmlparser.util.Translate is not public in org.htmlparser.util;
> cannot be accessed from outside package
>     [javac] import org.htmlparser.util.Translate;
>     [javac] ^
>     [javac]
>     
> C:\Local\eclipse\workspace\PPSMeter\src\htmlparser\org\htmlparser\beans\StringBean.java:626:
> org.htmlparser.util.Translate is not public in org.htmlparser.util;
> cannot be accessed from outside package
>     [javac] text = Translate.decode(text);
>     [javac] ^
>     [javac]
>     
> C:\Local\eclipse\workspace\PPSMeter\src\htmlparser\org\htmlparser\beans\StringBean.java:626:
> cannot resolve symbol
>     [javac] symbol  : method decode  (java.lang.String)
>     [javac] location: class org.htmlparser.util.Translate
>     [javac] text = Translate.decode(text);
>     [javac] ^
>     [javac]
>     
> C:\Local\eclipse\workspace\PPSMeter\src\htmlparser\org\htmlparser\util\LinkProcessor.java:91:
> cannot resolve symbol
>     [javac] symbol  : method decode  (java.lang.String)
>     [javac] location: class org.htmlparser.util.Translate
>     [javac] return (Translate.decode(ret));
>     [javac] ^
>     [javac]
>     
> C:\Local\eclipse\workspace\PPSMeter\src\htmlparser\org\htmlparser\visitors\TextExtractingVisitor.java:73:
> org.htmlparser.util.Translate is not public in org.htmlparser.util;
> cannot be accessed from outside package
>     [javac] text = Translate.decode(text);
>     [javac] ^
>     [javac]
>     
> C:\Local\eclipse\workspace\PPSMeter\src\htmlparser\org\htmlparser\visitors\TextExtractingVisitor.java:73:
> cannot resolve symbol
>     [javac] symbol  : method decode  (java.lang.String)
>     [javac] location: class org.htmlparser.util.Translate
>     [javac] text = Translate.decode(text);
>     [javac] ^
>     [javac] 11 errors
> BUILD FAILED: C:\Local\eclipse\workspace\PPSMeter\build.xml:645:
> Compile failed; see the compiler error output for details.
> 
> 
> After a very long research, I told Ant to compile the htmlparser part
> as if its java files
> were encoded in ISO-8859-1 and not in UTF-8:
> 
> <target name="compile-htmlparser" depends="" description="Compile
> htmlparser.">
> <mkdir dir="${build.htmlparser}"/>
> <javac srcdir="${src.htmlparser}" destdir="${build.htmlparser}"
> optimize="${optimize}" debug="on" source="${src.java.version}"
> target="${target.java.version}" deprecation="${deprecation}"
> encoding="ISO-8859-1">
>  [...]
> 
> It solved the problem.
> 
> Another problem I had was concerning libraries I do not have. But the
> "distribution"
> target assume they are there. So I modified this :
> 
> <target name="distribution" 
>       
> depends="assume-libs-present,clean,install,docs-all,test,_distribution,site"
>       description="Build JMeter for end-user distribution (includes site)"/>
> 
> ... into this :
> 
> <target name="distribution" 
>       depends="clean,install,docs-all,test,_distribution,site"
>       description="Build JMeter for end-user distribution (includes site)"/>
> 
> 
> Well, at this point, I can use the build file and Ant works!
> The problem is, the new created distribution produce the Exception I told
> you.
> 
> So, when I use a Response Assertion :
> - first, I click "add" to enter a new text pattern
> - I tape my text
> - I click again on "add", and...
> - the Response Assertion GUI freezes, this exception is produced :
> 
> (under java 1.4) 
> java.lang.NoSuchMethodError:
> javax.swing.AbstractCellEditor.access$001(Lorg/apache/jmeter/gui/util/TextAreaTableCellEditor;)V
>         at
>         
> org.apache.jmeter.gui.util.TextAreaTableCellEditor$EditorDelegate.stopCellEditing(TextAreaTableCellEditor.java:308)
>         at
>         
> org.apache.jmeter.gui.util.TextAreaTableCellEditor.stopCellEditing(TextAreaTableCellEditor.java:171)
>         at
>         
> org.apache.jmeter.gui.util.TextAreaTableCellEditor$EditorDelegate.focusLost(TextAreaTableCellEditor.java:341)
>         at java.awt.AWTEventMulticaster.focusLost(Unknown Source)
>         at java.awt.Component.processFocusEvent(Unknown Source)
>         at java.awt.Component.processEvent(Unknown Source)
>         at java.awt.Container.processEvent(Unknown Source)
>         at java.awt.Component.dispatchEventImpl(Unknown Source)
>         at java.awt.Container.dispatchEventImpl(Unknown Source)
>         at java.awt.Component.dispatchEvent(Unknown Source)
>         at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
>         at
>         java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown
> Source)
>         at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown
>         Source)
>         at java.awt.Component.dispatchEventImpl(Unknown Source)
>         at java.awt.Container.dispatchEventImpl(Unknown Source)
>         at java.awt.Component.dispatchEvent(Unknown Source)
>         at java.awt.EventQueue.dispatchEvent(Unknown Source)
>         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
>         Source)
>         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
>         Source)
>         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>         at java.awt.EventDispatchThread.run(Unknown Source)
> 
> (under java 1.3)
> Exception occurred during event dispatching:
> java.lang.NoSuchMethodError
>         at
>         
> org.apache.jmeter.gui.util.TextAreaTableCellEditor$EditorDelegate.stopCellEditing(TextAreaTableCellEditor.java:308)
>         at
>         
> org.apache.jmeter.gui.util.TextAreaTableCellEditor.stopCellEditing(TextAreaTableCellEditor.java:171)
>         at
>         
> org.apache.jmeter.gui.util.TextAreaTableCellEditor$EditorDelegate.focusLost(TextAreaTableCellEditor.java:341)
>         at
>         java.awt.AWTEventMulticaster.focusLost(AWTEventMulticaster.java:166)
>         at java.awt.Component.processFocusEvent(Component.java:3637)
>         at javax.swing.JComponent.processFocusEvent(JComponent.java:1975)
>         at java.awt.Component.processEvent(Component.java:3530)
>         at java.awt.Container.processEvent(Container.java:1159)
>         at java.awt.Component.dispatchEventImpl(Component.java:2588)
>         at java.awt.Container.dispatchEventImpl(Container.java:1208)
>         at java.awt.Component.dispatchEvent(Component.java:2492)
>         at
>         java.awt.LightweightDispatcher.setFocusRequest(Container.java:2071)
>         at java.awt.Container.proxyRequestFocus(Container.java:1330)
>         at java.awt.Container.proxyRequestFocus(Container.java:1325)
>         at java.awt.Container.proxyRequestFocus(Container.java:1325)
>         at java.awt.Container.proxyRequestFocus(Container.java:1325)
>         at java.awt.Container.proxyRequestFocus(Container.java:1325)
>         at java.awt.Container.proxyRequestFocus(Container.java:1325)
>         at java.awt.Container.proxyRequestFocus(Container.java:1325)
>         at java.awt.Container.proxyRequestFocus(Container.java:1325)
>         at java.awt.Container.proxyRequestFocus(Container.java:1325)
>         at java.awt.Container.proxyRequestFocus(Container.java:1325)
>         at java.awt.Container.proxyRequestFocus(Container.java:1325)
>         at java.awt.Component.requestFocus(Component.java:4169)
>         at javax.swing.JComponent.grabFocus(JComponent.java:910)
>         at javax.swing.JComponent.requestFocus(JComponent.java:892)
>         at
>         
> javax.swing.plaf.basic.BasicButtonListener.mousePressed(BasicButtonListener.java:202)
>         at java.awt.Component.processMouseEvent(Component.java:3707)
>         at java.awt.Component.processEvent(Component.java:3539)
>         at java.awt.Container.processEvent(Container.java:1159)
>         at java.awt.Component.dispatchEventImpl(Component.java:2588)
>         at java.awt.Container.dispatchEventImpl(Container.java:1208)
>         at java.awt.Component.dispatchEvent(Component.java:2492)
>         at
>         java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
>         at
>         java.awt.LightweightDispatcher.processMouseEvent(Container.java:2210)
>         at
>         java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
>         at java.awt.Container.dispatchEventImpl(Container.java:1195)
>         at java.awt.Window.dispatchEventImpl(Window.java:930)
>         at java.awt.Component.dispatchEvent(Component.java:2492)
>         at java.awt.EventQueue.dispatchEvent(EventQueue.java:334)
>         at
>         
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:126)
>         at
>         
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:93)
>         at
>         java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:88)
>         at java.awt.EventDispatchThread.run(EventDispatchThread.java:80)
> Exception occurred during event dispatching:
> java.lang.NoSuchMethodError
>         at
>         
> org.apache.jmeter.gui.util.TextAreaTableCellEditor$EditorDelegate.stopCellEditing(TextAreaTableCellEditor.java:308)
>         at
>         
> org.apache.jmeter.gui.util.TextAreaTableCellEditor.stopCellEditing(TextAreaTableCellEditor.java:171)
>         at
>         
> org.apache.jmeter.gui.util.TextAreaTableCellEditor$EditorDelegate.focusLost(TextAreaTableCellEditor.java:341)
>         at
>         java.awt.AWTEventMulticaster.focusLost(AWTEventMulticaster.java:166)
>         at java.awt.Component.processFocusEvent(Component.java:3637)
>         at javax.swing.JComponent.processFocusEvent(JComponent.java:1975)
>         at java.awt.Component.processEvent(Component.java:3530)
>         at java.awt.Container.processEvent(Container.java:1159)
>         at java.awt.Component.dispatchEventImpl(Component.java:2588)
>         at java.awt.Container.dispatchEventImpl(Container.java:1208)
>         at java.awt.Component.dispatchEvent(Component.java:2492)
>         at
>         java.awt.LightweightDispatcher.processFocusEvent(Container.java:2167)
>         at
>         java.awt.LightweightDispatcher.dispatchEvent(Container.java:2130)
>         at java.awt.Container.dispatchEventImpl(Container.java:1195)
>         at java.awt.Window.dispatchEventImpl(Window.java:930)
>         at java.awt.Component.dispatchEvent(Component.java:2492)
>         at java.awt.EventQueue.dispatchEvent(EventQueue.java:334)
>         at
>         
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:126)
>         at
>         
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:93)
>         at
>         java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:88)
>         at java.awt.EventDispatchThread.run(EventDispatchThread.java:80)
> 
> 
> The thing is, TextAreaTableCellEditor$EditorDelegate.stopCellEditing()
> exists and calls only one another method: fireEditingStopped(). This
> method also exists and comes from the javax.swing.AbstractCellEditor
> java standard class.
> 
> I do not have this probem with the release you produced. I have created a
> "quick-distribution" Ant target that use Eclipse compiled classes, and it
> works.
> 
> So I think this problem is due to my 1.3 javac compiler, but why ?
> Did you encountered this problem ?
> What is your standard programming environment ?
> 
> If you have any ideas, thank you for your answers.
> 
> Best regards,
> 
> V.H.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
-- 
  
  [EMAIL PROTECTED]


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

Reply via email to