You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by bu...@apache.org on 2010/12/16 18:24:05 UTC

DO NOT REPLY [Bug 50487] New: runSerialTest verifies objects that never need persisting

https://issues.apache.org/bugzilla/show_bug.cgi?id=50487

           Summary: runSerialTest verifies objects that never need
                    persisting
           Product: JMeter
           Version: Nightly (Please specify date)
          Platform: PC
            Status: NEW
          Severity: major
          Priority: P2
         Component: Main
        AssignedTo: notifications@jakarta.apache.org
        ReportedBy: ansoni@gmail.com


I've seen an old user-list topic around this error:

     [java] 6)
runSerialTest(org.apache.jmeter.junit.JMeterTest)junit.framework.AssertionFailedError:
serialization of org.apache.jmeter.gui.SavePropertyDialog failed:
java.io.NotSerializableException: com.apple.laf.AquaComboBoxUI
     [java]     at
org.apache.jmeter.junit.JMeterTest.runSerialTest(JMeterTest.java:506)
     [java]     at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at org.apache.jorphan.test.AllTests.main(AllTests.java:225)

Basically, we are verifying that objects serialize because JMeter needs to
serialize all those TestElements.  For some reason this test was testing
SavePropertyDialog which we never need to persist.

The error above appears to be constrained to building on MacOSX presumably
because Apple decided their JVM didn't make the AquaComboBoxUI class
serializable.

Anyways, the fix is easy and will be attached.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


DO NOT REPLY [Bug 50487] runSerialTest verifies objects that never need persisting

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50487

--- Comment #1 from ansoni@gmail.com 2010-12-16 12:25:27 EST ---
Created an attachment (id=26415)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26415)
Patch of JMeterTest.java to address UI JUnit Problem

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


DO NOT REPLY [Bug 50487] runSerialTest verifies objects that never need persisting

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50487

Sebb <se...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #26415|application/octet-stream    |text/plain
          mime type|                            |
  Attachment #26415|0                           |1
           is patch|                            |

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


DO NOT REPLY [Bug 50487] runSerialTest verifies objects that never need persisting

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50487

Sebb <se...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|                            |All

--- Comment #2 from Sebb <se...@apache.org> 2010-12-16 12:52:42 EST ---
Good catch.

Since none of the GUI elements need to be serialised for client-server mode, it
might be simpler just to check for java.awt.Component, which is parent of both
JComponent and JDialog.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


DO NOT REPLY [Bug 50487] runSerialTest verifies objects that never need persisting

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50487

Sebb <se...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Sebb <se...@apache.org> 2010-12-16 13:02:24 EST ---
Fixed by skipping instances of Component.

URL: http://svn.apache.org/viewvc?rev=1050080&view=rev
Log:
Bug 50487 - runSerialTest verifies objects that never need persisting

Modified:
   jakarta/jmeter/trunk/test/src/org/apache/jmeter/junit/JMeterTest.java
   jakarta/jmeter/trunk/xdocs/changes.xml

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org