Thanks Marco,

It is not jmx problem. i thought it was:
java.lang.NullPointerException

But i don't know what to do yet.

BTW, why ServiceMix is so complicated? Maven downloaded a lot of junks
before trying to run. In fact, the basic example is just not
straightforward.


marco.mistroni wrote:
> 
> Hi,
>         looks your problem is here
> 
> Failed to start jmx connector: Cannot bind to URL
> [rmi://localhost:1099/jmxrmi]
> 
> try to change rmi port to , let's say, 1699 in  servicemix.properties 
> under <svcmixdir>\conf
> 
> hth
>         marco
> 
> 
> 
> 
> 
> Internet
> [EMAIL PROTECTED]
> 
> 12/02/2008 11:29
> Please respond to
> [email protected]
> 
> 
> To
> users
> cc
> 
> Subject
> Re: The Basic example fails to run.
> 
> 
> 
> 
> 
> 
> 
> yes, i can't get it work either.
> 
> C:\apache-servicemix-3.2.1\examples\basic>mvn jbi:embeddedServicemix
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'jbi'.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building ServiceMix :: Samples :: Basic
> [INFO]    task-segment: [jbi:embeddedServicemix]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Preparing jbi:embeddedServicemix
> [INFO] [build:copy {execution: default}]
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> Downloading:
> http://people.apache.org/repo/m2-incubating-repository/wss4j/wss4j/
> 1.5.1/wss4j-1.5.1.pom
> Downloading:
> http://svn.apache.org/repos/asf/servicemix/m2-repo/wss4j/wss4j/1.5.
> 1/wss4j-1.5.1.pom
> Downloading:
> http://people.apache.org/repo/m2-incubating-repository/wss4j/wss4j/
> 1.5.1/wss4j-1.5.1.pom
> Downloading:
> http://repository.codehaus.org/wss4j/wss4j/1.5.1/wss4j-1.5.1.pom
> Downloading: 
> http://repo1.maven.org/maven2/wss4j/wss4j/1.5.1/wss4j-1.5.1.pom
> Downloading:
> http://people.apache.org/repo/m2-incubating-repository/xml-security
> /xmlsec/1.3.0/xmlsec-1.3.0.pom
> Downloading:
> http://svn.apache.org/repos/asf/servicemix/m2-repo/xml-security/xml
> sec/1.3.0/xmlsec-1.3.0.pom
> Downloading:
> http://people.apache.org/repo/m2-incubating-repository/xml-security
> /xmlsec/1.3.0/xmlsec-1.3.0.pom
> Downloading:
> http://repository.codehaus.org/xml-security/xmlsec/1.3.0/xmlsec-1.3
> ..0.pom
> Downloading:
> http://repo1.maven.org/maven2/xml-security/xmlsec/1.3.0/xmlsec-1.3.
> 0.pom
> [INFO] [compiler:compile]
> [INFO] No sources to compile
> [INFO] [jbi:embeddedServicemix]
> 2008-02-12 19:14:48,125 [main           ] INFO 
> ileSystemXmlApplicationContext -
>  Refreshing
> [EMAIL PROTECTED]
> 68: display name
> [org.apache.xbean.spring.context.FileSystemXmlApplicationContex
> [EMAIL PROTECTED]; startup date [Tue Feb 12 19:14:48 CST 2008]; root of 
> context
> hierarch
> y
> 2008-02-12 19:14:48,187 [main           ] INFO 
> XBeanXmlBeanDefinitionReader 
> -
>  Loading XML bean definitions from URL
> [file:/C:/apache-servicemix-3.2.1/example
> s/basic/src/main/resources/servicemix.xml]
> 2008-02-12 19:14:48,750 [main           ] INFO 
> ileSystemXmlApplicationContext -
>  Bean factory for application context
> [org.apache.xbean.spring.context.FileSyste
> [EMAIL PROTECTED]:
> org.springframework.beans.factory.support.Defaul
> [EMAIL PROTECTED]
> 2008-02-12 19:14:48,765 [main           ] INFO  DefaultListableBeanFactory 
>  
> -
>  Pre-instantiating singletons in
> org.springframework.beans.factory.support.Defau
> [EMAIL PROTECTED]: defining beans
> [jbi,transactionManager,workManage
> r,bootstrapContext,activeMQResourceAdapter,broker,jmsFactory]; root of
> factory h
> ierarchy
> 2008-02-12 19:14:48,796 [main           ] WARN  EndpointRegistry  
> -
>  Disabled endpoint processor
> 'org.apache.servicemix.jbi.framework.support.WSDL2P
> rocessor': java.lang.NoClassDefFoundError: org/apache/woden/WSDLReader
> 2008-02-12 19:14:49,062 [main           ] INFO  BrokerService  
> -
>  ActiveMQ 4.1.1 JMS Message Broker (localhost) is starting
> 2008-02-12 19:14:49,062 [main           ] INFO  BrokerService  
> -
>  For help or more information please see:
> http://incubator.apache.org/activemq/
> 2008-02-12 19:14:49,125 [JMX connector  ] INFO  ManagementContext  
> -
>  JMX consoles can connect to
> service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
> 
> 2008-02-12 19:14:49,281 [main           ] INFO 
> TransportServerThreadSupport 
> -
>  Listening for connections at: tcp://aii-hshu-n-t61:61616
> 2008-02-12 19:14:49,281 [main           ] INFO  TransportConnector  
> -
>  Connector tcp://localhost:61616 Started
> 2008-02-12 19:14:49,281 [main           ] INFO  BrokerService  
> -
>  ActiveMQ JMS Message Broker (localhost,
> ID:aii-hshu-n-t61-4371-1202814889125-0:
> 0) started
> 2008-02-12 19:14:49,328 [main           ] INFO  JBIContainer  
> -
>  ServiceMix 3.2.1 JBI Container (ServiceMix) is starting
> 2008-02-12 19:14:49,328 [main           ] INFO  JBIContainer  
> -
>  For help or more informations please see:
> http://incubator.apache.org/servicemi
> x/
> 2008-02-12 19:14:49,328 [main           ] WARN  ManagementContext  
> -
>  Failed to start rmi registry: internal error: ObjID already in use
> 2008-02-12 19:14:49,343 [main           ] WARN  ManagementContext  
> -
>  Failed to start jmx connector: Cannot bind to URL
> [rmi://localhost:1099/jmxrmi]
> : javax.naming.NameAlreadyBoundException: jmxrmi [Root exception is
> java.rmi.Alr
> eadyBoundException: jmxrmi]
> 2008-02-12 19:14:49,421 [main           ] INFO  ComponentMBeanImpl  
> -
>  Initializing component: #SubscriptionManager#
> 2008-02-12 19:14:49,437 [main           ] INFO  DeploymentService  
> -
>  Restoring service assemblies
> 2008-02-12 19:14:49,453 [main           ] INFO  ComponentMBeanImpl  
> -
>  Initializing component: inputSender
> 2008-02-12 19:14:49,468 [main           ] INFO  ComponentMBeanImpl  
> -
>  Initializing component: timer
> 2008-02-12 19:14:49,515 [main           ] INFO  SimpleThreadPool  
> -
>  Job execution threads will use class loader of thread: main
> 2008-02-12 19:14:49,531 [main           ] INFO  QuartzScheduler  
> -
>  Quartz Scheduler v.1.5.2 created.
> 2008-02-12 19:14:49,546 [main           ] INFO  RAMJobStore  
> -
>  RAMJobStore initialized.
> 2008-02-12 19:14:49,546 [main           ] INFO  StdSchedulerFactory  
> -
>  Quartz scheduler 'DefaultQuartzScheduler' initialized from default 
> resource
> fil
> e in Quartz package: 'quartz.properties'
> 2008-02-12 19:14:49,546 [main           ] INFO  StdSchedulerFactory  
> -
>  Quartz scheduler version: 1.5.2
> 2008-02-12 19:14:49,546 [main           ] INFO  ComponentMBeanImpl  
> -
>  Initializing component: inputReceiver
> 2008-02-12 19:14:49,546 [main           ] INFO  ComponentMBeanImpl  
> -
>  Initializing component: outputSender
> 2008-02-12 19:14:49,546 [main           ] INFO  ComponentMBeanImpl  
> -
>  Initializing component: jmsTrace
> 2008-02-12 19:14:49,562 [main           ] INFO  ComponentMBeanImpl  
> -
>  Initializing component: trace
> 2008-02-12 19:14:49,562 [main           ] WARN  ClientFactory  
> -
>  Cound not start ClientFactory: javax.naming.NoInitialContextException: 
> Need
> to
> specify class name in environment or system property, or as an applet
> parameter,
>  or in an application resource file:  java.naming.factory.initial
> 2008-02-12 19:14:49,765 [main           ] INFO  QuartzScheduler  
> -
>  Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
> 2008-02-12 19:14:49,812 [main           ] INFO  JBIContainer  
> -
>  ServiceMix JBI Container (ServiceMix) started
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 17 seconds
> [INFO] Finished at: Tue Feb 12 19:14:49 CST 2008
> [INFO] Final Memory: 15M/28M
> [INFO]
> ------------------------------------------------------------------------
> 2008-02-12 19:14:49,953 [MQ ShutdownHook] INFO  BrokerService  
> -
>  ActiveMQ Message Broker (localhost,
> ID:aii-hshu-n-t61-4371-1202814889125-0:0) i
> s shutting down
> 2008-02-12 19:14:49,953 [ix ShutdownHook] INFO 
> ileSystemXmlApplicationContext -
>  Closing
> [EMAIL PROTECTED]:
>  display name
> [EMAIL PROTECTED]
> 63068]; startup date [Tue Feb 12 19:14:48 CST 2008]; root of context
> hierarchy
> 2008-02-12 19:14:49,953 [ix ShutdownHook] INFO  DefaultListableBeanFactory 
>  
> -
>  Destroying singletons in
> org.springframework.beans.factory.support.DefaultLista
> [EMAIL PROTECTED]: defining beans
> [jbi,transactionManager,workManager,boots
> trapContext,activeMQResourceAdapter,broker,jmsFactory]; root of factory
> hierarch
> y
> 2008-02-12 19:14:49,953 [ix ShutdownHook] INFO  JBIContainer  
> -
>  Shutting down ServiceMix JBI Container (ServiceMix) stopped
> 2008-02-12 19:14:49,953 [ix ShutdownHook] INFO  JBIContainer  
> -
>  Deactivating component #SubscriptionManager#
> 2008-02-12 19:14:49,968 [ix ShutdownHook] INFO  QuartzScheduler  
> -
>  Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED paused.
> 2008-02-12 19:14:49,968 [ix ShutdownHook] INFO  QuartzScheduler  
> -
>  Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED shutting down.
> 2008-02-12 19:14:49,968 [ix ShutdownHook] INFO  QuartzScheduler  
> -
>  Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED paused.
> 2008-02-12 19:14:49,968 [ix ShutdownHook] INFO  QuartzScheduler  
> -
>  Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED shutdown complete.
> 2008-02-12 19:14:49,968 [ix ShutdownHook] INFO  ConnectorServerFactoryBean 
>  
> -
>  Stopping JMX connector server:
> [EMAIL PROTECTED]
> d688e2
> 2008-02-12 19:14:49,968 [ix ShutdownHook] INFO  JBIContainer  
> -
>  ServiceMix JBI Container (ServiceMix) stopped
> 2008-02-12 19:14:50,062 [Sender-thread-1] ERROR JmsComponent  
> -
>  Error processing exchange InOnly[
>   id: ID:192.168.1.21-1180d5aba62-7:0
>   status: Active
>   role: provider
>   service: {http://servicemix.apache.org/demo/}inputSender
>   endpoint: endpoint
>   in: <?xml version="1.0" encoding="UTF-8"?><timer><name>My Example
> Job</name><g
> roup>ServiceMix</group><fullname>ServiceMix.My Example
> Job</fullname><descriptio
> n/><fireTime>Tue Feb 12 19:14:49 CST 2008</fireTime></timer>
> ]
> java.lang.NullPointerException
>         at
> org.apache.servicemix.jms.multiplexing.MultiplexingProviderProcessor.
> process(MultiplexingProviderProcessor.java:139)
>         at
> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLi
> feCycle.java:538)
>         at
> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(Async
> BaseLifeCycle.java:490)
>         at
> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLife
> Cycle.java:46)
>         at
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBoun
> d(DeliveryChannelImpl.java:610)
>         at
> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlo
> w.java:170)
>         at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.j
> ava:167)
>         at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.jav
> a:134)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
> utor.java:650)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
> ..java:675)
>         at java.lang.Thread.run(Thread.java:595)
> 2008-02-12 19:14:50,062 [Sender-thread-1] ERROR JmsComponent  
> -
>  Error setting exchange status to ERROR
> javax.jbi.messaging.MessagingException: DeliveryChannel{inputSender} has
> been cl
> osed.
>         at
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.checkNotClose
> d(DeliveryChannelImpl.java:147)
>         at
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.send(Delivery
> ChannelImpl.java:422)
>         at
> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLife
> Cycle.java:58)
>         at
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBoun
> d(DeliveryChannelImpl.java:610)
>         at
> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlo
> w.java:170)
>         at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.j
> ava:167)
>         at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.jav
> a:134)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
> utor.java:650)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
> ..java:675)
>         at java.lang.Thread.run(Thread.java:595)
> 2008-02-12 19:14:54,281 [127.0.0.1:61616] WARN  ActiveMQConnection  
> -
>  Async exception with no exception listener: java.io.EOFException
> java.io.EOFException
>         at java.io.DataInputStream.readInt(DataInputStream.java:358)
>         at
> org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.
> java:267)
>         at
> org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTranspo
> rt.java:156)
>         at
> org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:
> 136)
>         at java.lang.Thread.run(Thread.java:595)
> 2008-02-12 19:14:54,281 [MQ ShutdownHook] INFO  TransportConnector  
> -
>  Connector tcp://localhost:61616 Stopped
> 2008-02-12 19:14:54,296 [MQ ShutdownHook] INFO  BrokerService  
> -
>  ActiveMQ JMS Message Broker (localhost,
> ID:aii-hshu-n-t61-4371-1202814889125-0:
> 0) stopped
> 
> C:\apache-servicemix-3.2.1\examples\basic>
> -- 
> View this message in context: 
> http://www.nabble.com/The-Basic-example-fails-to-run.-tp15306536s12049p15431337.html
> 
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> 
> 
> 
> This communication is confidential, may be privileged and is meant only
> for the intended recipient.  If you are 
> not the intended recipient, please notify the sender by reply and delete
> this message from your system.  Any 
> unauthorised dissemination, distribution or copying hereof is prohibited.
> 
> BNP Paribas Fund Services UK Limited, BNP Paribas Trust Corporation UK
> Limited, BNP Paribas UK Limited, 
> BNP Paribas Commodity Futures Ltd and Investment Fund Services Limited are
> authorised and regulated by 
> the Financial Services Authority.
> 
> BNP Paribas, BNP Paribas Securities Services and BNP Paribas Private Bank
> are authorised by the CECEI 
> and AMF.  BNP Paribas London Branch, BNP Paribas Securities Services
> London Branch and BNP Paribas 
> Private Bank London Branch are regulated by the Financial Services
> Authority for the conduct of their UK 
> business.  BNP Paribas Securities Services London Branch is also a member
> of the London Stock Exchange.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/The-Basic-example-fails-to-run.-tp15306536s12049p15432084.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to