Ok I fixed this by just running it from within eclipse, this works fine and
the marshallers are generated. I also figured out the problem with my new
variable and fixed that - now the marshaller recognises it and marshalls it
correctly.
My problem now is that even though the message gets marshalled correctly,
the receiver doesn't properly reconstruct the array. The size is always 0.
This happens for my new variable and also for "peerBrokerInfos" in both
cases it is not reconstructed.
Is this a known problem, or have I missed a step out?
Thanks
Daven
CODE FOR MY NEW VARIABLE:
if (bs.readBoolean()) {
short size = dataIn.readShort();
org.apache.activemq.command.BrokerId value[] = new
org.apache.activemq.command.BrokerId[size];
for( int i=0; i < size; i++ ) {
value[i] = (org.apache.activemq.command.BrokerId)
tightUnmarsalNestedObject(wireFormat,dataIn, bs);
}
info.setVisited(value);
}
else {
info.setVisited(null);
}
CODE FOR PEERBROKERINFOS:
if (bs.readBoolean()) {
short size = dataIn.readShort();
org.apache.activemq.command.BrokerId value[] = new
org.apache.activemq.command.BrokerId[size];
for( int i=0; i < size; i++ ) {
value[i] = (org.apache.activemq.command.BrokerId)
tightUnmarsalNestedObject(wireFormat,dataIn, bs);
}
info.setVisited(value);
}
else {
info.setVisited(null);
}
daven1986 wrote:
>
> Hi,
>
> I am using some new message types for a project I am doing but when I try
> to generate the openwire marshallers I get the following error:
>
> [INFO] [antrun:run {execution: default}]
> [INFO] Executing tasks
> [echo] Running OpenWire Generator
> Parsing source files in: /home/daven/activemq/activemq-core/src/main/java
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] org.codehaus.jam.internal.javadoc.JavadocClassBuilder
> com.sun.javadoc.ClassDoc
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
>
>
> I have read the other threads on this, and have set my JAVA_HOME to be my
> java5 home, not java6 but still I have no new marshallers in v1, v2, v3 or
> v4. In the meantime I have manually added the marshallers as a copy of
> others, but this is definately not the ideal solution - if it even works
> at all.
>
> As well as this I have added a variable to the BrokerInfo message (a list
> of visited brokers), but if this is populated before the message is sent,
> it is no longer populated at the receiver. Is this a problem due to the
> openwire marshallers not being generated, or is there something else
> wrong?
>
> Thanks
>
> Daven
>
--
View this message in context:
http://www.nabble.com/openwire-generation-and-new-message-types-tp21645977p21710722.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.