You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by preben <pr...@dr.dk> on 2011/05/29 10:19:23 UTC

management example problem

There is a small problem with the camel-example-management.

The :
<throttle>
      <constant>10</constant>
      <to uri="activemq:queue:stock"/>
</throttle>

should be replaced with :
<throttle maximumRequestsPerPeriod="10" timePeriodMillis="1000">

Besides that it seems that the maximumRequestsPerPeriod and timePeriodMillis
is not showing up as managed attributes on JConsole - some jmx stuff problem
??

In running on camel 2.8-SNAPSHOT

/preben

--
View this message in context: http://camel.465427.n5.nabble.com/management-example-problem-tp4436607p4436607.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: management example problem

Posted by preben <pr...@dr.dk>.
of course - works fine now

--
View this message in context: http://camel.465427.n5.nabble.com/management-example-problem-tp4436607p4436735.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: management example problem

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

It works fine. You need to rebuild *ALL* the source code.


On Sun, May 29, 2011 at 10:41 AM, preben <pr...@dr.dk> wrote:
>
> year - but I'm running the camel management example on 2.8-SNAPSHOT I get an
> SAXParserException on 'constant':
>
> org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was
> found starting with element 'constant'. One of
> '{"http://camel.apache.org/schema/spring":description,
> "http://camel.apache.org/schema/spring":aop,
> "http://camel.apache.org/schema/spring":aggregate,
> "http://camel.apache.org/schema/spring":bean,
> "http://camel.apache.org/schema/spring":doCatch,
> "http://camel.apache.org/schema/spring":when,
> "http://camel.apache.org/schema/spring":choice,
> "http://camel.apache.org/schema/spring":otherwise,
> "http://camel.apache.org/schema/spring":convertBodyTo,
> "http://camel.apache.org/schema/spring":delay,
> "http://camel.apache.org/schema/spring":dynamicRouter,
> "http://camel.apache.org/schema/spring":enrich,
> "http://camel.apache.org/schema/spring":filter,
> "http://camel.apache.org/schema/spring":doFinally,
> "http://camel.apache.org/schema/spring":idempotentConsumer,
> "http://camel.apache.org/schema/spring":inOnly,
> "http://camel.apache.org/schema/spring":inOut,
> "http://camel.apache.org/schema/spring":intercept,
> "http://camel.apache.org/schema/spring":interceptFrom,
> "http://camel.apache.org/schema/spring":interceptToEndpoint,
> "http://camel.apache.org/schema/spring":loadBalance,
> "http://camel.apache.org/schema/spring":log,
> "http://camel.apache.org/schema/spring":loop,
> "http://camel.apache.org/schema/spring":marshal,
> "http://camel.apache.org/schema/spring":multicast,
> "http://camel.apache.org/schema/spring":onCompletion,
> "http://camel.apache.org/schema/spring":onException,
> "http://camel.apache.org/schema/spring":pipeline,
> "http://camel.apache.org/schema/spring":policy,
> "http://camel.apache.org/schema/spring":pollEnrich,
> "http://camel.apache.org/schema/spring":process,
> "http://camel.apache.org/schema/spring":recipientList,
> "http://camel.apache.org/schema/spring":removeHeader,
> "http://camel.apache.org/schema/spring":removeHeaders,
> "http://camel.apache.org/schema/spring":removeProperty,
> "http://camel.apache.org/schema/spring":resequence,
> "http://camel.apache.org/schema/spring":rollback,
> "http://camel.apache.org/schema/spring":route,
> "http://camel.apache.org/schema/spring":routingSlip,
> "http://camel.apache.org/schema/spring":sample,
> "http://camel.apache.org/schema/spring":setBody,
> "http://camel.apache.org/schema/spring":setExchangePattern,
> "http://camel.apache.org/schema/spring":setFaultBody,
> "http://camel.apache.org/schema/spring":setHeader,
> "http://camel.apache.org/schema/spring":setOutHeader,
> "http://camel.apache.org/schema/spring":setProperty,
> "http://camel.apache.org/schema/spring":sort,
> "http://camel.apache.org/schema/spring":split,
> "http://camel.apache.org/schema/spring":stop,
> "http://camel.apache.org/schema/spring":threads,
> "http://camel.apache.org/schema/spring":throttle,
> "http://camel.apache.org/schema/spring":throwException,
> "http://camel.apache.org/schema/spring":to,
> "http://camel.apache.org/schema/spring":transacted,
> "http://camel.apache.org/schema/spring":transform,
> "http://camel.apache.org/schema/spring":doTry,
> "http://camel.apache.org/schema/spring":unmarshal,
> "http://camel.apache.org/schema/spring":validate,
> "http://camel.apache.org/schema/spring":wireTap}' is expected.
>        at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
>        at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
>        at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
>        at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
>        at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:417)
>        at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3182)
>        at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1806)
>        at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:705)
>        at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)
>        at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755)
>        at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
>        at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
>        at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
>        at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
>        at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
>        at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
>        at
> com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:235)
>        at
> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
>        at
> org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
>        at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/management-example-problem-tp4436607p4436642.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
CamelOne 2011: http://fusesource.com/camelone2011/
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Re: management example problem

Posted by preben <pr...@dr.dk>.
year - but I'm running the camel management example on 2.8-SNAPSHOT I get an
SAXParserException on 'constant': 
 
org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was
found starting with element 'constant'. One of
'{"http://camel.apache.org/schema/spring":description,
"http://camel.apache.org/schema/spring":aop,
"http://camel.apache.org/schema/spring":aggregate,
"http://camel.apache.org/schema/spring":bean,
"http://camel.apache.org/schema/spring":doCatch,
"http://camel.apache.org/schema/spring":when,
"http://camel.apache.org/schema/spring":choice,
"http://camel.apache.org/schema/spring":otherwise,
"http://camel.apache.org/schema/spring":convertBodyTo,
"http://camel.apache.org/schema/spring":delay,
"http://camel.apache.org/schema/spring":dynamicRouter,
"http://camel.apache.org/schema/spring":enrich,
"http://camel.apache.org/schema/spring":filter,
"http://camel.apache.org/schema/spring":doFinally,
"http://camel.apache.org/schema/spring":idempotentConsumer,
"http://camel.apache.org/schema/spring":inOnly,
"http://camel.apache.org/schema/spring":inOut,
"http://camel.apache.org/schema/spring":intercept,
"http://camel.apache.org/schema/spring":interceptFrom,
"http://camel.apache.org/schema/spring":interceptToEndpoint,
"http://camel.apache.org/schema/spring":loadBalance,
"http://camel.apache.org/schema/spring":log,
"http://camel.apache.org/schema/spring":loop,
"http://camel.apache.org/schema/spring":marshal,
"http://camel.apache.org/schema/spring":multicast,
"http://camel.apache.org/schema/spring":onCompletion,
"http://camel.apache.org/schema/spring":onException,
"http://camel.apache.org/schema/spring":pipeline,
"http://camel.apache.org/schema/spring":policy,
"http://camel.apache.org/schema/spring":pollEnrich,
"http://camel.apache.org/schema/spring":process,
"http://camel.apache.org/schema/spring":recipientList,
"http://camel.apache.org/schema/spring":removeHeader,
"http://camel.apache.org/schema/spring":removeHeaders,
"http://camel.apache.org/schema/spring":removeProperty,
"http://camel.apache.org/schema/spring":resequence,
"http://camel.apache.org/schema/spring":rollback,
"http://camel.apache.org/schema/spring":route,
"http://camel.apache.org/schema/spring":routingSlip,
"http://camel.apache.org/schema/spring":sample,
"http://camel.apache.org/schema/spring":setBody,
"http://camel.apache.org/schema/spring":setExchangePattern,
"http://camel.apache.org/schema/spring":setFaultBody,
"http://camel.apache.org/schema/spring":setHeader,
"http://camel.apache.org/schema/spring":setOutHeader,
"http://camel.apache.org/schema/spring":setProperty,
"http://camel.apache.org/schema/spring":sort,
"http://camel.apache.org/schema/spring":split,
"http://camel.apache.org/schema/spring":stop,
"http://camel.apache.org/schema/spring":threads,
"http://camel.apache.org/schema/spring":throttle,
"http://camel.apache.org/schema/spring":throwException,
"http://camel.apache.org/schema/spring":to,
"http://camel.apache.org/schema/spring":transacted,
"http://camel.apache.org/schema/spring":transform,
"http://camel.apache.org/schema/spring":doTry,
"http://camel.apache.org/schema/spring":unmarshal,
"http://camel.apache.org/schema/spring":validate,
"http://camel.apache.org/schema/spring":wireTap}' is expected.
	at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
	at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
	at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
	at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
	at
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:417)
	at
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3182)
	at
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1806)
	at
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:705)
	at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)
	at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755)
	at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
	at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
	at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
	at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
	at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
	at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
	at
com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:235)
	at
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
	at
org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
	at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)

--
View this message in context: http://camel.465427.n5.nabble.com/management-example-problem-tp4436607p4436642.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: management example problem

Posted by Claus Ibsen <cl...@gmail.com>.
See the 2.8 release notes
http://camel.apache.org/camel-280-release.html

The <throttle> has changed a bit to use an expression instead of attributes.


On Sun, May 29, 2011 at 10:19 AM, preben <pr...@dr.dk> wrote:
> There is a small problem with the camel-example-management.
>
> The :
> <throttle>
>      <constant>10</constant>
>      <to uri="activemq:queue:stock"/>
> </throttle>
>
> should be replaced with :
> <throttle maximumRequestsPerPeriod="10" timePeriodMillis="1000">
>
> Besides that it seems that the maximumRequestsPerPeriod and timePeriodMillis
> is not showing up as managed attributes on JConsole - some jmx stuff problem
> ??
>
> In running on camel 2.8-SNAPSHOT
>
> /preben
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/management-example-problem-tp4436607p4436607.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
CamelOne 2011: http://fusesource.com/camelone2011/
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/