You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by Timothy Bish <ta...@twcny.rr.com> on 2006/08/18 01:42:26 UTC
openwire command generation
Hey guys
I'm trying to understand the openwire command generator. My first task is
just getting it to run and generate commands for the current set of
clients..
Once I build the broker I attempt to run the generator with
Mvn gram:gram
from the activemq-core folder. I get tons of errors that look like this:
[INFO] [gram:gram]
Parsing source files in:
[e:\Eclipse\ActiveMQ\activemq-trunk\activemq-core\src\main\java]
[INFO] Evaluating Groovy script: GenerateJavaMarshalling.groovy
GenerateJavaMarshalling generating files in:
src\main\java\org\apache\activemq\openwire\v2
[JAM] Warning: failed to resolve class AsyncCommandChannel
[JAM] Warning: failed to resolve class Statistic
[JAM] Warning: failed to resolve class MessageListener
[JAM] Warning: failed to resolve class QueueSession
[JAM] Warning: failed to resolve class Resource
[JAM] Warning: failed to resolve class Statistic
[JAM] Warning: failed to resolve class JMSException
[JAM] Warning: failed to resolve class Queue
[JAM] Warning: failed to resolve class Queue
[JAM] Warning: failed to resolve class QueueConnectionFactory
[JAM] Warning: failed to resolve class QueueConnection
[JAM] Warning: failed to resolve class JndiTemplate
GenerateJavaMarshalling processing class: LocalTransactionId
GenerateJavaMarshalling processing class: PartialCommand
GenerateJavaMarshalling processing class: IntegerResponse
GenerateJavaMarshalling processing class: ActiveMQQueue
Most of the time I end up with a Build Failure with an out of memory
exception which looks like the following:
[INFO] ---------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ---------------------------------------------------------
[INFO] Java heap space
[INFO] ---------------------------------------------------------
[INFO] Trace
java.lang.OutOfMemoryError: Java heap space
Any clues what is going on here? I need to get this working so that I can
go onto trying to get openwire commands generated for activemq-cpp.
-------------------------------------------------
Timothy A. Bish
Re: openwire command generation
Posted by James Strachan <ja...@gmail.com>.
I'm afraid so :)
On 8/18/06, Timothy Bish <ta...@twcny.rr.com> wrote:
> Hi Hiram
>
> That seemed to allow me to get through the generation ok. I still get a lot
> of warnings, like these:
>
> [JAM] Warning: failed to resolve class javax.jms.JMSException
> [JAM] Warning: failed to resolve class javax.jms.MapMessage
> [JAM] Warning: failed to resolve class javax.jms.MessageFormatException
> [JAM] Warning: failed to resolve class
> javax.jms.MessageNotWriteableException
> [JAM] Warning: failed to resolve class
> org.apache.activeio.command.WireFormat
> [JAM] Warning: failed to resolve class
> org.apache.activeio.packet.ByteSequence
> [JAM] Warning: failed to resolve class
> org.apache.activeio.util.ByteArrayInputStream
> [JAM] Warning: failed to resolve class
> org.apache.activeio.util.ByteArrayOutputStream
>
> Is that normal?
>
> -------------------------------------------------
>
> Timothy A. Bish
>
> tabish@twcny.rr.com
>
>
> > -----Original Message-----
> > From: chirino@gmail.com [mailto:chirino@gmail.com] On Behalf Of Hiram
> > Chirino
> > Sent: Thursday, August 17, 2006 8:34 PM
> > To: activemq-dev@geronimo.apache.org
> > Subject: Re: openwire command generation
> > Importance: High
> >
> > Hi Tim,
> >
> > Wild, I just ran it and it was ok.
> >
> > Try setting you MAVEN_OPTS shell variable to something like -Xmx800M
> >
> > Regards,
> > Hiram
> >
> > On 8/17/06, Timothy Bish <ta...@twcny.rr.com> wrote:
> > > Hey guys
> > >
> > > I'm trying to understand the openwire command generator. My first task
> > is
> > > just getting it to run and generate commands for the current set of
> > > clients..
> > >
> > > Once I build the broker I attempt to run the generator with
> > >
> > > Mvn gram:gram
> > >
> > > from the activemq-core folder. I get tons of errors that look like
> > this:
> > >
> > > [INFO] [gram:gram]
> > > Parsing source files in:
> > > [e:\Eclipse\ActiveMQ\activemq-trunk\activemq-core\src\main\java]
> > > [INFO] Evaluating Groovy script: GenerateJavaMarshalling.groovy
> > > GenerateJavaMarshalling generating files in:
> > > src\main\java\org\apache\activemq\openwire\v2
> > > [JAM] Warning: failed to resolve class AsyncCommandChannel
> > > [JAM] Warning: failed to resolve class Statistic
> > > [JAM] Warning: failed to resolve class MessageListener
> > > [JAM] Warning: failed to resolve class QueueSession
> > > [JAM] Warning: failed to resolve class Resource
> > > [JAM] Warning: failed to resolve class Statistic
> > > [JAM] Warning: failed to resolve class JMSException
> > > [JAM] Warning: failed to resolve class Queue
> > > [JAM] Warning: failed to resolve class Queue
> > > [JAM] Warning: failed to resolve class QueueConnectionFactory
> > > [JAM] Warning: failed to resolve class QueueConnection
> > > [JAM] Warning: failed to resolve class JndiTemplate
> > > GenerateJavaMarshalling processing class: LocalTransactionId
> > > GenerateJavaMarshalling processing class: PartialCommand
> > > GenerateJavaMarshalling processing class: IntegerResponse
> > > GenerateJavaMarshalling processing class: ActiveMQQueue
> > >
> > > Most of the time I end up with a Build Failure with an out of memory
> > > exception which looks like the following:
> > >
> > > [INFO] ---------------------------------------------------------
> > > [ERROR] FATAL ERROR
> > > [INFO] ---------------------------------------------------------
> > > [INFO] Java heap space
> > > [INFO] ---------------------------------------------------------
> > > [INFO] Trace
> > > java.lang.OutOfMemoryError: Java heap space
> > >
> > > Any clues what is going on here? I need to get this working so that I
> > can
> > > go onto trying to get openwire commands generated for activemq-cpp.
> > >
> > > -------------------------------------------------
> > > Timothy A. Bish
> > >
> > >
> > >
> > >
> >
> >
> > --
> > Regards,
> > Hiram
> >
> > Blog: http://hiramchirino.com
>
>
--
James
-------
http://radio.weblogs.com/0112098/
Re: openwire command generation
Posted by Hiram Chirino <hi...@hiramchirino.com>.
I think I've seen this before.. it's really weird.. but I think I have
to do a mvn clean install in the generator project for it to install
correctly.
On 8/22/06, Timothy Bish <ta...@twcny.rr.com> wrote:
> Ok guys.
>
> This is probably something really stupid that I'm doing, but so far I am not
> having much luck adding new scripts to the openwire generator.
>
> I've added two groovy scripts, GenerateAmqCppClasses.groovy and
> GenerateAmqCppHeaders.groovy and the associated java classes in with the
> rest of the OpenwireXX classes. I've added my groovy scripts into the
> activemq-core pom with all the rest. I can build the generator and install
> it. But when I try and run mvn gram:gram (from activemq-core directory) I
> get an error shown below:
>
> [INFO] Evaluating Groovy script: GenerateAmqCcppHeaders.groovy
> [ERROR] Caught: java.io.IOException: No script called:
> GenerateAmqCcppHeaders.groovy could be found
> on the classpath or the file system
> java.io.IOException: No script called: GenerateAmqCcppHeaders.groovy could
> be found on the classpath
> or the file system
> at org.apache.activemq.maven.GramMojo.execute(GramMojo.java:127)
> at org.apache.activemq.maven.GramMojo.execute(GramMojo.java:106)
>
> Any Idea what I am doing wrong?
>
> -------------------------------------------------
> Timothy A. Bish
>
> > -----Original Message-----
> > From: chirino@gmail.com [mailto:chirino@gmail.com] On Behalf Of Hiram
> > Chirino
> > Sent: Thursday, August 17, 2006 8:34 PM
> > To: activemq-dev@geronimo.apache.org
> > Subject: Re: openwire command generation
> > Importance: High
> >
> > Hi Tim,
> >
> > Wild, I just ran it and it was ok.
> >
> > Try setting you MAVEN_OPTS shell variable to something like -Xmx800M
> >
> > Regards,
> > Hiram
> >
> > On 8/17/06, Timothy Bish <ta...@twcny.rr.com> wrote:
> > > Hey guys
> > >
> > > I'm trying to understand the openwire command generator. My first task
> > is
> > > just getting it to run and generate commands for the current set of
> > > clients..
> > >
> > > Once I build the broker I attempt to run the generator with
> > >
> > > Mvn gram:gram
> > >
> > > from the activemq-core folder. I get tons of errors that look like
> > this:
> > >
> > > [INFO] [gram:gram]
> > > Parsing source files in:
> > > [e:\Eclipse\ActiveMQ\activemq-trunk\activemq-core\src\main\java]
> > > [INFO] Evaluating Groovy script: GenerateJavaMarshalling.groovy
> > > GenerateJavaMarshalling generating files in:
> > > src\main\java\org\apache\activemq\openwire\v2
> > > [JAM] Warning: failed to resolve class AsyncCommandChannel
> > > [JAM] Warning: failed to resolve class Statistic
> > > [JAM] Warning: failed to resolve class MessageListener
> > > [JAM] Warning: failed to resolve class QueueSession
> > > [JAM] Warning: failed to resolve class Resource
> > > [JAM] Warning: failed to resolve class Statistic
> > > [JAM] Warning: failed to resolve class JMSException
> > > [JAM] Warning: failed to resolve class Queue
> > > [JAM] Warning: failed to resolve class Queue
> > > [JAM] Warning: failed to resolve class QueueConnectionFactory
> > > [JAM] Warning: failed to resolve class QueueConnection
> > > [JAM] Warning: failed to resolve class JndiTemplate
> > > GenerateJavaMarshalling processing class: LocalTransactionId
> > > GenerateJavaMarshalling processing class: PartialCommand
> > > GenerateJavaMarshalling processing class: IntegerResponse
> > > GenerateJavaMarshalling processing class: ActiveMQQueue
> > >
> > > Most of the time I end up with a Build Failure with an out of memory
> > > exception which looks like the following:
> > >
> > > [INFO] ---------------------------------------------------------
> > > [ERROR] FATAL ERROR
> > > [INFO] ---------------------------------------------------------
> > > [INFO] Java heap space
> > > [INFO] ---------------------------------------------------------
> > > [INFO] Trace
> > > java.lang.OutOfMemoryError: Java heap space
> > >
> > > Any clues what is going on here? I need to get this working so that I
> > can
> > > go onto trying to get openwire commands generated for activemq-cpp.
> > >
> > > -------------------------------------------------
> > > Timothy A. Bish
> > >
> > >
> > >
> > >
> >
> >
> > --
> > Regards,
> > Hiram
> >
> > Blog: http://hiramchirino.com
>
>
--
Regards,
Hiram
Blog: http://hiramchirino.com
RE: openwire command generation
Posted by Timothy Bish <ta...@twcny.rr.com>.
Hi Hiram
That seemed to allow me to get through the generation ok. I still get a lot
of warnings, like these:
[JAM] Warning: failed to resolve class javax.jms.JMSException
[JAM] Warning: failed to resolve class javax.jms.MapMessage
[JAM] Warning: failed to resolve class javax.jms.MessageFormatException
[JAM] Warning: failed to resolve class
javax.jms.MessageNotWriteableException
[JAM] Warning: failed to resolve class
org.apache.activeio.command.WireFormat
[JAM] Warning: failed to resolve class
org.apache.activeio.packet.ByteSequence
[JAM] Warning: failed to resolve class
org.apache.activeio.util.ByteArrayInputStream
[JAM] Warning: failed to resolve class
org.apache.activeio.util.ByteArrayOutputStream
Is that normal?
-------------------------------------------------
Timothy A. Bish
tabish@twcny.rr.com
> -----Original Message-----
> From: chirino@gmail.com [mailto:chirino@gmail.com] On Behalf Of Hiram
> Chirino
> Sent: Thursday, August 17, 2006 8:34 PM
> To: activemq-dev@geronimo.apache.org
> Subject: Re: openwire command generation
> Importance: High
>
> Hi Tim,
>
> Wild, I just ran it and it was ok.
>
> Try setting you MAVEN_OPTS shell variable to something like -Xmx800M
>
> Regards,
> Hiram
>
> On 8/17/06, Timothy Bish <ta...@twcny.rr.com> wrote:
> > Hey guys
> >
> > I'm trying to understand the openwire command generator. My first task
> is
> > just getting it to run and generate commands for the current set of
> > clients..
> >
> > Once I build the broker I attempt to run the generator with
> >
> > Mvn gram:gram
> >
> > from the activemq-core folder. I get tons of errors that look like
> this:
> >
> > [INFO] [gram:gram]
> > Parsing source files in:
> > [e:\Eclipse\ActiveMQ\activemq-trunk\activemq-core\src\main\java]
> > [INFO] Evaluating Groovy script: GenerateJavaMarshalling.groovy
> > GenerateJavaMarshalling generating files in:
> > src\main\java\org\apache\activemq\openwire\v2
> > [JAM] Warning: failed to resolve class AsyncCommandChannel
> > [JAM] Warning: failed to resolve class Statistic
> > [JAM] Warning: failed to resolve class MessageListener
> > [JAM] Warning: failed to resolve class QueueSession
> > [JAM] Warning: failed to resolve class Resource
> > [JAM] Warning: failed to resolve class Statistic
> > [JAM] Warning: failed to resolve class JMSException
> > [JAM] Warning: failed to resolve class Queue
> > [JAM] Warning: failed to resolve class Queue
> > [JAM] Warning: failed to resolve class QueueConnectionFactory
> > [JAM] Warning: failed to resolve class QueueConnection
> > [JAM] Warning: failed to resolve class JndiTemplate
> > GenerateJavaMarshalling processing class: LocalTransactionId
> > GenerateJavaMarshalling processing class: PartialCommand
> > GenerateJavaMarshalling processing class: IntegerResponse
> > GenerateJavaMarshalling processing class: ActiveMQQueue
> >
> > Most of the time I end up with a Build Failure with an out of memory
> > exception which looks like the following:
> >
> > [INFO] ---------------------------------------------------------
> > [ERROR] FATAL ERROR
> > [INFO] ---------------------------------------------------------
> > [INFO] Java heap space
> > [INFO] ---------------------------------------------------------
> > [INFO] Trace
> > java.lang.OutOfMemoryError: Java heap space
> >
> > Any clues what is going on here? I need to get this working so that I
> can
> > go onto trying to get openwire commands generated for activemq-cpp.
> >
> > -------------------------------------------------
> > Timothy A. Bish
> >
> >
> >
> >
>
>
> --
> Regards,
> Hiram
>
> Blog: http://hiramchirino.com
RE: openwire command generation
Posted by Timothy Bish <ta...@twcny.rr.com>.
Ok guys.
This is probably something really stupid that I'm doing, but so far I am not
having much luck adding new scripts to the openwire generator.
I've added two groovy scripts, GenerateAmqCppClasses.groovy and
GenerateAmqCppHeaders.groovy and the associated java classes in with the
rest of the OpenwireXX classes. I've added my groovy scripts into the
activemq-core pom with all the rest. I can build the generator and install
it. But when I try and run mvn gram:gram (from activemq-core directory) I
get an error shown below:
[INFO] Evaluating Groovy script: GenerateAmqCcppHeaders.groovy
[ERROR] Caught: java.io.IOException: No script called:
GenerateAmqCcppHeaders.groovy could be found
on the classpath or the file system
java.io.IOException: No script called: GenerateAmqCcppHeaders.groovy could
be found on the classpath
or the file system
at org.apache.activemq.maven.GramMojo.execute(GramMojo.java:127)
at org.apache.activemq.maven.GramMojo.execute(GramMojo.java:106)
Any Idea what I am doing wrong?
-------------------------------------------------
Timothy A. Bish
> -----Original Message-----
> From: chirino@gmail.com [mailto:chirino@gmail.com] On Behalf Of Hiram
> Chirino
> Sent: Thursday, August 17, 2006 8:34 PM
> To: activemq-dev@geronimo.apache.org
> Subject: Re: openwire command generation
> Importance: High
>
> Hi Tim,
>
> Wild, I just ran it and it was ok.
>
> Try setting you MAVEN_OPTS shell variable to something like -Xmx800M
>
> Regards,
> Hiram
>
> On 8/17/06, Timothy Bish <ta...@twcny.rr.com> wrote:
> > Hey guys
> >
> > I'm trying to understand the openwire command generator. My first task
> is
> > just getting it to run and generate commands for the current set of
> > clients..
> >
> > Once I build the broker I attempt to run the generator with
> >
> > Mvn gram:gram
> >
> > from the activemq-core folder. I get tons of errors that look like
> this:
> >
> > [INFO] [gram:gram]
> > Parsing source files in:
> > [e:\Eclipse\ActiveMQ\activemq-trunk\activemq-core\src\main\java]
> > [INFO] Evaluating Groovy script: GenerateJavaMarshalling.groovy
> > GenerateJavaMarshalling generating files in:
> > src\main\java\org\apache\activemq\openwire\v2
> > [JAM] Warning: failed to resolve class AsyncCommandChannel
> > [JAM] Warning: failed to resolve class Statistic
> > [JAM] Warning: failed to resolve class MessageListener
> > [JAM] Warning: failed to resolve class QueueSession
> > [JAM] Warning: failed to resolve class Resource
> > [JAM] Warning: failed to resolve class Statistic
> > [JAM] Warning: failed to resolve class JMSException
> > [JAM] Warning: failed to resolve class Queue
> > [JAM] Warning: failed to resolve class Queue
> > [JAM] Warning: failed to resolve class QueueConnectionFactory
> > [JAM] Warning: failed to resolve class QueueConnection
> > [JAM] Warning: failed to resolve class JndiTemplate
> > GenerateJavaMarshalling processing class: LocalTransactionId
> > GenerateJavaMarshalling processing class: PartialCommand
> > GenerateJavaMarshalling processing class: IntegerResponse
> > GenerateJavaMarshalling processing class: ActiveMQQueue
> >
> > Most of the time I end up with a Build Failure with an out of memory
> > exception which looks like the following:
> >
> > [INFO] ---------------------------------------------------------
> > [ERROR] FATAL ERROR
> > [INFO] ---------------------------------------------------------
> > [INFO] Java heap space
> > [INFO] ---------------------------------------------------------
> > [INFO] Trace
> > java.lang.OutOfMemoryError: Java heap space
> >
> > Any clues what is going on here? I need to get this working so that I
> can
> > go onto trying to get openwire commands generated for activemq-cpp.
> >
> > -------------------------------------------------
> > Timothy A. Bish
> >
> >
> >
> >
>
>
> --
> Regards,
> Hiram
>
> Blog: http://hiramchirino.com
Re: openwire command generation
Posted by Hiram Chirino <hi...@hiramchirino.com>.
Hi Tim,
Wild, I just ran it and it was ok.
Try setting you MAVEN_OPTS shell variable to something like -Xmx800M
Regards,
Hiram
On 8/17/06, Timothy Bish <ta...@twcny.rr.com> wrote:
> Hey guys
>
> I'm trying to understand the openwire command generator. My first task is
> just getting it to run and generate commands for the current set of
> clients..
>
> Once I build the broker I attempt to run the generator with
>
> Mvn gram:gram
>
> from the activemq-core folder. I get tons of errors that look like this:
>
> [INFO] [gram:gram]
> Parsing source files in:
> [e:\Eclipse\ActiveMQ\activemq-trunk\activemq-core\src\main\java]
> [INFO] Evaluating Groovy script: GenerateJavaMarshalling.groovy
> GenerateJavaMarshalling generating files in:
> src\main\java\org\apache\activemq\openwire\v2
> [JAM] Warning: failed to resolve class AsyncCommandChannel
> [JAM] Warning: failed to resolve class Statistic
> [JAM] Warning: failed to resolve class MessageListener
> [JAM] Warning: failed to resolve class QueueSession
> [JAM] Warning: failed to resolve class Resource
> [JAM] Warning: failed to resolve class Statistic
> [JAM] Warning: failed to resolve class JMSException
> [JAM] Warning: failed to resolve class Queue
> [JAM] Warning: failed to resolve class Queue
> [JAM] Warning: failed to resolve class QueueConnectionFactory
> [JAM] Warning: failed to resolve class QueueConnection
> [JAM] Warning: failed to resolve class JndiTemplate
> GenerateJavaMarshalling processing class: LocalTransactionId
> GenerateJavaMarshalling processing class: PartialCommand
> GenerateJavaMarshalling processing class: IntegerResponse
> GenerateJavaMarshalling processing class: ActiveMQQueue
>
> Most of the time I end up with a Build Failure with an out of memory
> exception which looks like the following:
>
> [INFO] ---------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ---------------------------------------------------------
> [INFO] Java heap space
> [INFO] ---------------------------------------------------------
> [INFO] Trace
> java.lang.OutOfMemoryError: Java heap space
>
> Any clues what is going on here? I need to get this working so that I can
> go onto trying to get openwire commands generated for activemq-cpp.
>
> -------------------------------------------------
> Timothy A. Bish
>
>
>
>
--
Regards,
Hiram
Blog: http://hiramchirino.com