Re: ExchangePattern.InOut ActiveMq exception

2009-02-28 Thread Claus Ibsen
Hi

Could you create a small sample application that demonstrates this?
Will help while investigating.


On Fri, Feb 27, 2009 at 12:59 AM, Joe White joe.wh...@recondotech.com wrote:
 In Camel 1.5 when using the ExchangePattern.InOut I get an exception
 when tearing down the activemq broker the exception occurs no matter how
 the thread is stopped. Is there configuration to allow the InOut pattern
 to work without causing exceptions when the broker is shut-down? The
 exception received at shutdown is below along with the spring config for
 the my current activemq setup.



 Thanks

 Joe



 16:47:00,284 INFO  [AdvisoryConsumer] (ActiveMQ Connection Worker:
 tcp://localhost/127.0.0.1:61616) Failed to send remove command:
 javax.jms.JMSException: Channel was inactive for too long:
 localhost/127.0.0.1:61616

 javax.jms.JMSException: Channel was inactive for too long:
 localhost/127.0.0.1:61616

      at
 org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.
 java:62)

 ...

 org.springframework.jms.listener.AbstractJmsListeningContainer.refreshSh
 aredConnection(AbstractJmsListeningContainer.java:385)

      at
 org.springframework.jms.listener.SimpleMessageListenerContainer.onExcept
 ion(SimpleMessageListenerContainer.java:206)

      at
 org.apache.activemq.ActiveMQConnection$4.run(ActiveMQConnection.java:177
 9)

      ...

 Caused by: org.apache.activemq.transport.InactivityIOException: Channel
 was inactive for too long: localhost/127.0.0.1:61616

      at
 org.apache.activemq.transport.InactivityMonitor.oneway(InactivityMonitor
 .java:225)

      at
 org.apache.activemq.transport.TransportFilter.oneway(TransportFilter.jav
 a:83)

      at
 org.apache.activemq.transport.WireFormatNegotiator.oneway(WireFormatNego
 tiator.java:100)

      at
 org.apache.activemq.transport.MutexTransport.oneway(MutexTransport.java:
 40)

      at
 org.apache.activemq.transport.ResponseCorrelator.oneway(ResponseCorrelat
 or.java:60)

      at
 org.apache.activemq.ActiveMQConnection.doAsyncSendPacket(ActiveMQConnect
 ion.java:1214)

      ... 10 more







      bean id=activemq
 class=org.apache.camel.component.jms.JmsComponent

            property name=connectionFactory

                  bean
 class=org.apache.activemq.spring.ActiveMQConnectionFactory

                        property name=brokerURL
 value=tcp://localhost:61616?wireFormat.maxInactivityDuration=0 /

                        property name=closeTimeout value=0/

                  /bean

            /property

      /bean



      broker:broker useJmx=false persistent=false
 brokerName=localhost

        broker:transportConnectors

            broker:transportConnector name=tcp
 uri=tcp://localhost:61616/

        /broker:transportConnectors

    /broker:broker





-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/


Re: Camel-quartz

2009-02-28 Thread Claus Ibsen
Hi

I have created the ticket and is currently improving the quartz component.
Yeah its a real bummer with the / as cron separators. I have improved
it to be a URI parameter instead, only requiring to use _ as space.

eg:
quartz://myGroup/myTimerName?cron=0_0/5_12-18_?_*_MON-FRI
quartz://myGroup/myTimerName?cron=0_0_*_*_*_?

And we can use ? instead of having to use $. So its only _ as spaces.



On Fri, Feb 27, 2009 at 3:58 PM, Claus Ibsen claus.ib...@gmail.com wrote:
 On Fri, Feb 27, 2009 at 2:48 PM, gmagniez gabriel.magn...@steria.com wrote:

 Hi,
 The camel-quartz component replace the character / by  , but how can i
 use the / in the cron expression like from trigering something every five
 minutes: 0/5?
 I've found another thread about that problem but it was not resolved.
 http://www.nabble.com/camel-quartz-cron-trigger-endpoint-uri-syntax-td13923344.html#a13923344
 Hi

 Yeah I can not see the reason for this replacement unless to divide
 into sub paths, for each individual cron element.

 Do you mind creating a ticket, then we can fix it so you can use / in
 the URI. The only one that is reasonable to replace is the ? with $
 otherwise, even thought it may still be valid URI using it.
 http://camel.apache.org/support.html


 Best regards
 --
 View this message in context: 
 http://www.nabble.com/Camel-quartz-tp22246214p22246214.html
 Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.





 --
 Claus Ibsen
 Apache Camel Committer

 Open Source Integration: http://fusesource.com
 Blog: http://davsclaus.blogspot.com/




-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/


Re: NoClassDefFoundError for unrelated classes

2009-02-28 Thread Claus Ibsen
Hi

Thanks for reporting. I created an entry in FAQ
http://cwiki.apache.org/confluence/display/CAMEL/Why+do+Camel+throw+so+many+NoClassDefFoundException+on+startup

On Fri, Feb 27, 2009 at 11:26 PM, Bob Pollack
robert_h_poll...@yahoo.com wrote:
 Just FYI, this behavior was probably triggered by your query string 
 (?period=6). I have written a long post on this problem, at 
 http://www.nabble.com/More-info-on-class-not-found-exception-tt22086106.html#a22086106,
  which I can't seem to post to this mailing list.  I'll add your workaround 
 (don't use the big jar) to this post.

 Several people have posted this problem, in various forms.  Perhaps the Camel 
 documentation should include a caution about what you can expect to see with 
 the big jar.


 
 From: skappel skap...@finobra.com
 To: camel-u...@activemq.apache.org
 Sent: Friday, February 27, 2009 12:17:51 PM
 Subject: Re: NoClassDefFoundError for unrelated classes


 Solution: do not use the apache-camel jar.  Use camel-core and only the jars
 used in the application. These warning still appear:
 WARNING: Could not find class
 'org/apache/activemq/camel/converter/InvokeJmsMessageListenerTest.class'
 WARNING: Could not find class
 'org/apache/activemq/camel/converter/InvokeMessageListenerTest.class'

 This is caused by activemq-all-5.1.0.jar.  Both classes have a space between
 Listener and Test, causing a mismatch.


 skappel wrote:

 The Timer or Quartz components and DSL as in:
 from(timer://foo?period=6) appear to generate NoClassDefFoundError and
 ClassNotFound exceptions for unrelated components, such as Scala, Mina,
 Http,etc.  There are also many warnings with
 org.apache.camel.util.ResolverUtil addIfMatching.  The timers do function,
 and the exceptions and warnings go away if parameters in the URI are
 removed.  How do you make this Camel happy?


 --
 View this message in context: 
 http://www.nabble.com/NoClassDefFoundError-for-unrelated-classes-tp22239685p22250210.html
 Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/


Re: Camel-quartz

2009-02-28 Thread Hadrian Zbarcea
I think using '+' for a space is a common convention and better than a  
'_'.

$0.02
Hadrian

On Feb 28, 2009, at 10:29 AM, Claus Ibsen wrote:


Hi

The ticket:
https://issues.apache.org/activemq/browse/CAMEL-1407

Implemented in Camel 2.0

On Sat, Feb 28, 2009 at 4:06 PM, Claus Ibsen claus.ib...@gmail.com  
wrote:

Hi

I have created the ticket and is currently improving the quartz  
component.

Yeah its a real bummer with the / as cron separators. I have improved
it to be a URI parameter instead, only requiring to use _ as space.

eg:
quartz://myGroup/myTimerName?cron=0_0/5_12-18_?_*_MON-FRI
quartz://myGroup/myTimerName?cron=0_0_*_*_*_?

And we can use ? instead of having to use $. So its only _ as spaces.



On Fri, Feb 27, 2009 at 3:58 PM, Claus Ibsen  
claus.ib...@gmail.com wrote:
On Fri, Feb 27, 2009 at 2:48 PM, gmagniez gabriel.magn...@steria.com 
 wrote:


Hi,
The camel-quartz component replace the character / by  , but  
how can i
use the / in the cron expression like from trigering something  
every five

minutes: 0/5?
I've found another thread about that problem but it was not  
resolved.

http://www.nabble.com/camel-quartz-cron-trigger-endpoint-uri-syntax-td13923344.html#a13923344

Hi

Yeah I can not see the reason for this replacement unless to divide
into sub paths, for each individual cron element.

Do you mind creating a ticket, then we can fix it so you can use /  
in

the URI. The only one that is reasonable to replace is the ? with $
otherwise, even thought it may still be valid URI using it.
http://camel.apache.org/support.html



Best regards
--
View this message in context: 
http://www.nabble.com/Camel-quartz-tp22246214p22246214.html
Sent from the Camel - Users (activemq) mailing list archive at  
Nabble.com.







--
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/





--
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/





--
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/




Re: Camel-quartz

2009-02-28 Thread Claus Ibsen
On Sat, Feb 28, 2009 at 5:06 PM, Hadrian Zbarcea hzbar...@gmail.com wrote:
 I think using '+' for a space is a common convention and better than a '_'.
Okay lets support them both, using _ is much easier to read instead of +.
Try a complex cron with - and using + as separators is not easy to read.

 $0.02
 Hadrian

 On Feb 28, 2009, at 10:29 AM, Claus Ibsen wrote:

 Hi

 The ticket:
 https://issues.apache.org/activemq/browse/CAMEL-1407

 Implemented in Camel 2.0

 On Sat, Feb 28, 2009 at 4:06 PM, Claus Ibsen claus.ib...@gmail.com
 wrote:

 Hi

 I have created the ticket and is currently improving the quartz
 component.
 Yeah its a real bummer with the / as cron separators. I have improved
 it to be a URI parameter instead, only requiring to use _ as space.

 eg:
 quartz://myGroup/myTimerName?cron=0_0/5_12-18_?_*_MON-FRI
 quartz://myGroup/myTimerName?cron=0_0_*_*_*_?

 And we can use ? instead of having to use $. So its only _ as spaces.



 On Fri, Feb 27, 2009 at 3:58 PM, Claus Ibsen claus.ib...@gmail.com
 wrote:

 On Fri, Feb 27, 2009 at 2:48 PM, gmagniez gabriel.magn...@steria.com
 wrote:

 Hi,
 The camel-quartz component replace the character / by  , but how
 can i
 use the / in the cron expression like from trigering something every
 five
 minutes: 0/5?
 I've found another thread about that problem but it was not resolved.

 http://www.nabble.com/camel-quartz-cron-trigger-endpoint-uri-syntax-td13923344.html#a13923344

 Hi

 Yeah I can not see the reason for this replacement unless to divide
 into sub paths, for each individual cron element.

 Do you mind creating a ticket, then we can fix it so you can use / in
 the URI. The only one that is reasonable to replace is the ? with $
 otherwise, even thought it may still be valid URI using it.
 http://camel.apache.org/support.html


 Best regards
 --
 View this message in context:
 http://www.nabble.com/Camel-quartz-tp22246214p22246214.html
 Sent from the Camel - Users (activemq) mailing list archive at
 Nabble.com.





 --
 Claus Ibsen
 Apache Camel Committer

 Open Source Integration: http://fusesource.com
 Blog: http://davsclaus.blogspot.com/




 --
 Claus Ibsen
 Apache Camel Committer

 Open Source Integration: http://fusesource.com
 Blog: http://davsclaus.blogspot.com/




 --
 Claus Ibsen
 Apache Camel Committer

 Open Source Integration: http://fusesource.com
 Blog: http://davsclaus.blogspot.com/





-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/


Re: File: using absolute file paths with moveExpressions

2009-02-28 Thread Claus Ibsen
On Fri, Feb 27, 2009 at 8:34 PM, Joseph E. Gottman
jgott...@proteus-technologies.com wrote:
   I'm using the Camel 2.0  File component and I'm having trouble with
 the new moveExpression.  I need to move my input file to an absolute
 directory, but the moveExpression always assumes that I've entered a
 directory that's relative to my current directory.  Is there any way for
 me to force it to treat my moveExpression as an absolute path?
Hi

Thanks for reporting.
I created a ticket
https://issues.apache.org/activemq/browse/CAMEL-1408

And will work on a fix.




 Joe





-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/


Re: File: using absolute file paths with moveExpressions

2009-02-28 Thread Claus Ibsen
Hi

I have fixed it now.

Please test it on your system with the latest SNAPSHOT of Camel 2.0.
It could takes 4+ hours before its published to the maven repo.


On Sat, Feb 28, 2009 at 5:36 PM, Claus Ibsen claus.ib...@gmail.com wrote:
 On Fri, Feb 27, 2009 at 8:34 PM, Joseph E. Gottman
 jgott...@proteus-technologies.com wrote:
   I'm using the Camel 2.0  File component and I'm having trouble with
 the new moveExpression.  I need to move my input file to an absolute
 directory, but the moveExpression always assumes that I've entered a
 directory that's relative to my current directory.  Is there any way for
 me to force it to treat my moveExpression as an absolute path?
 Hi

 Thanks for reporting.
 I created a ticket
 https://issues.apache.org/activemq/browse/CAMEL-1408

 And will work on a fix.




 Joe





 --
 Claus Ibsen
 Apache Camel Committer

 Open Source Integration: http://fusesource.com
 Blog: http://davsclaus.blogspot.com/




-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/