MeasurementReport OptionalDataException
by Bruno Wassermann
Hi,
I have dared to extend MeasurementReport by adding LinkedHashSets of
ExecutionTimeDataBeans and ResponseTimeDataBeans (my beans for some type of
call time data). Both beans implement Externalizable to read/write
themselves. All is fine, until the server tries to read from the input
stream the MeasurementReport sent by an agent. It then fails with an
java.io.OptionalDataException trying to read in the LinkedHashSet of
ResponseTimeDataBean. At the point at which this happens the LInkedHashSet
isEmpty, so all MeasurementReport.readExternal would need to do is read in
an empty Set<ResponseTimeDataBean>.
Has anyone come across such an issue before? Is there something obvious I
may be missing (such as don't try to serialize entity beans, or I don't know
what). I am asking as I'm hoping that someone has come across this or a
similar situation when working on serialization between agent and server and
because I am out of ideas.
Thanks,
-- Bruno
15 years, 1 month
(no subject)
by Bryan Kearney
The attached patch removes the hand maintained eclipse files with files which are generated off of the pom files.
The major change is that instead of a single rhq project there are several. The benefits, however, are that the
eclipse is using the same settings as maven.
To test this import the pathc, and run mvn eclipse:ecliplse from the root of rhq. You will then need to re-import
rhq into your IDE.
-- bk
15 years, 1 month
use the eclipse plugin?
by Bryan Kearney
Looks like the antlr plugins are optional, since they are not in the
parent pom file. However, the .classpath in the root of the code base
had the reference to the file. This causes the code base to not load
into eclipse correctly.
Is there any reason to not use the eclipse plugins for maven to generate
the classpath off of the live pom files?
-- bk
15 years, 1 month