I'm not doing anything. Just running the example with maven. There are few
problem spots that I can see:
1. 2008-02-20 08:07:15,921 [main ] WARN EndpointRegistry ....
2. 2008-02-20 08:07:16,453 [main ] WARN ManagementContext -
Failed to start rmi registry: internal error: ObjID already in use
I think the second problem is the real issue. Why does it say objid already
in use? It's almost as if there is some persistence somewhere. I saw another
email message from some else about this, but nobody had replied to him on
the mailing list.
I'm running this on a dual core and perhaps this is a multithreading issue?
I'm getting really frustrated with this. For an example, this should not be
this difficult. By the way, running the servicemix.bat file seems ok.
gnodet wrote:
>
> ServiceMix seems to start correctly. Did you stop it using Ctrl-C ?
>
> The exception is logged because there is a timing issue
> between the quartz scheduler that sends an event which can
> not be processed because ServiceMix is shutting down. This could
> be improved, but I don't think this is the cause of the problem.
>
> On Wed, Feb 20, 2008 at 2:17 PM, spamdaemon <[EMAIL PROTECTED]>
> wrote:
>>
>> Added the failure messages to the trace.
>>
>>
>>
>>
>> spamdaemon wrote:
>> >
>> > But there is nothing running on port 1099 (nothing there with netstat
>> > either). I unzipped the 2.3.1 release (windows), changed into the
>> > examples/basic and typed "mvn jbi:embeddedServicemix".
>> > There also no other java processes running, but this is the maven
>> version
>> > I'm using:
>> > D:\software\apache-servicemix-3.2.1\examples\basic>mvn -v
>> > Maven version: 2.0.8
>> > Java version: 1.6.0_04
>> > OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
>> >
>> >
>> > Here's my trace:
>> >
>> > D:\software\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/xmlsec/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-20 08:07:15,265 [main ] INFO
>> > ileSystemXmlApplicationContext - Refreshing
>> > [EMAIL PROTECTED]
>> > b0: display name
>> >
>> [EMAIL PROTECTED];
>> > startup date [Wed Feb 20 08:07:15 EST 2008]; root of context hierarch
>> > y
>> > 2008-02-20 08:07:15,421 [main ] INFO
>> > XBeanXmlBeanDefinitionReader - Loading XML bean definitions from URL
>> > [file:/D:/software/apache-servicemix-3.2.
>> > 1/examples/basic/src/main/resources/servicemix.xml]
>> > 2008-02-20 08:07:15,875 [main ] INFO
>> > ileSystemXmlApplicationContext - Bean factory for application context
>> > [org.apache.xbean.spring.context.FileSyste
>> > [EMAIL PROTECTED]:
>> >
>> [EMAIL PROTECTED]
>> > 2008-02-20 08:07:15,890 [main ] INFO
>> DefaultListableBeanFactory
>> > - Pre-instantiating singletons in
>> > org.springframework.beans.factory.support.Defau
>> > [EMAIL PROTECTED]: defining beans
>> >
>> [jbi,transactionManager,workManager,bootstrapContext,activeMQResourceAdapter,broker,jmsFactory];
>> > root of factory hi
>> > erarchy
>> > 2008-02-20 08:07:15,921 [main ] WARN EndpointRegistry
>> > - Disabled endpoint processor
>> > 'org.apache.servicemix.jbi.framework.support.WSDL2P
>> > rocessor': java.lang.NoClassDefFoundError: org/apache/woden/WSDLReader
>> > 2008-02-20 08:07:16,171 [main ] INFO BrokerService
>> > - ActiveMQ 4.1.1 JMS Message Broker (localhost) is starting
>> > 2008-02-20 08:07:16,187 [main ] INFO BrokerService
>> > - For help or more information please see:
>> > http://incubator.apache.org/activemq/
>> > 2008-02-20 08:07:16,250 [JMX connector ] INFO ManagementContext
>> > - JMX consoles can connect to
>> > service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
>> >
>> > 2008-02-20 08:07:16,406 [main ] INFO
>> > TransportServerThreadSupport - Listening for connections at:
>> > tcp://L71059833:61616
>> > 2008-02-20 08:07:16,406 [main ] INFO TransportConnector
>> > - Connector tcp://localhost:61616 Started
>> > 2008-02-20 08:07:16,406 [main ] INFO BrokerService
>> > - ActiveMQ JMS Message Broker (localhost,
>> > ID:L71059833-2434-1203512836250-0:0) st
>> > arted
>> > 2008-02-20 08:07:16,453 [main ] INFO JBIContainer
>> > - ServiceMix 3.2.1 JBI Container (ServiceMix) is starting
>> > 2008-02-20 08:07:16,453 [main ] INFO JBIContainer
>> > - For help or more informations please see:
>> > http://incubator.apache.org/servicemi
>> > x/
>> > 2008-02-20 08:07:16,453 [main ] WARN ManagementContext
>> > - Failed to start rmi registry: internal error: ObjID already in use
>> > 2008-02-20 08:07:16,468 [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.AlreadyBoundException: jmxrmi]
>> > 2008-02-20 08:07:16,531 [main ] INFO ComponentMBeanImpl
>> > - Initializing component: #SubscriptionManager#
>> > 2008-02-20 08:07:16,546 [main ] INFO DeploymentService
>> > - Restoring service assemblies
>> > 2008-02-20 08:07:16,562 [main ] INFO ComponentMBeanImpl
>> > - Initializing component: inputSender
>> > 2008-02-20 08:07:16,562 [main ] INFO ComponentMBeanImpl
>> > - Initializing component: timer
>> > 2008-02-20 08:07:16,609 [main ] INFO SimpleThreadPool
>> > - Job execution threads will use class loader of thread: main
>> > 2008-02-20 08:07:16,625 [main ] INFO QuartzScheduler
>> > - Quartz Scheduler v.1.5.2 created.
>> > 2008-02-20 08:07:16,625 [main ] INFO RAMJobStore
>> > - RAMJobStore initialized.
>> > 2008-02-20 08:07:16,640 [main ] INFO StdSchedulerFactory
>> > - Quartz scheduler 'DefaultQuartzScheduler' initialized from default
>> > resource fil
>> > e in Quartz package: 'quartz.properties'
>> > 2008-02-20 08:07:16,640 [main ] INFO StdSchedulerFactory
>> > - Quartz scheduler version: 1.5.2
>> > 2008-02-20 08:07:16,640 [main ] INFO ComponentMBeanImpl
>> > - Initializing component: inputReceiver
>> > 2008-02-20 08:07:16,656 [main ] INFO ComponentMBeanImpl
>> > - Initializing component: outputSender
>> > 2008-02-20 08:07:16,656 [main ] INFO ComponentMBeanImpl
>> > - Initializing component: jmsTrace
>> > 2008-02-20 08:07:16,656 [main ] INFO ComponentMBeanImpl
>> > - Initializing component: trace
>> > 2008-02-20 08:07:16,656 [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-20 08:07:16,843 [main ] INFO QuartzScheduler
>> > - Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
>> > 2008-02-20 08:07:16,875 [main ] INFO JBIContainer
>> > - ServiceMix JBI Container (ServiceMix) started
>> > [INFO]
>> >
>> ------------------------------------------------------------------------
>> > [INFO] BUILD SUCCESSFUL
>> > [INFO]
>> >
>> ------------------------------------------------------------------------
>> > [INFO] Total time: 13 seconds
>> > 2008-02-20 08:07:17,046 [ix ShutdownHook] INFO
>> > ileSystemXmlApplicationContext - Closing
>> >
>> [EMAIL PROTECTED]:
>>
>> > display name
>> >
>> [EMAIL PROTECTED];
>> > startup date [Wed Feb 20 08:07:15 EST 2008]; root of context hierarchy
>> > 2008-02-20 08:07:17,046 [ix ShutdownHook] INFO
>> DefaultListableBeanFactory
>> > - Destroying singletons in
>>
>> > org.springframework.beans.factory.support.DefaultLista
>> > [EMAIL PROTECTED]: defining beans
>> >
>> [jbi,transactionManager,workManager,bootstrapContext,activeMQResourceAdapter,broker,jmsFactory];
>> > root of factory hierarchy
>> >
>> > 2008-02-20 08:07:17,062 [ix ShutdownHook] INFO JBIContainer
>>
>> > - Shutting down ServiceMix JBI Container (ServiceMix) stopped
>> > 2008-02-20 08:07:17,062 [MQ ShutdownHook] INFO BrokerService
>> > - ActiveMQ Message Broker (localhost,
>> ID:L71059833-2434-1203512836250-0:0)
>> > is shu
>> > tting down
>> > 2008-02-20 08:07:17,078 [ix ShutdownHook] INFO JBIContainer
>> > - Deactivating component #SubscriptionManager#
>> > 2008-02-20 08:07:17,093 [ix ShutdownHook] INFO QuartzScheduler
>> > - Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED paused.
>> > 2008-02-20 08:07:17,093 [ix ShutdownHook] INFO QuartzScheduler
>> > - Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED shutting down.
>> > 2008-02-20 08:07:17,093 [ix ShutdownHook] INFO QuartzScheduler
>> > - Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED paused.
>> > 2008-02-20 08:07:17,093 [ix ShutdownHook] INFO QuartzScheduler
>> > - Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED shutdown complete.
>> > 2008-02-20 08:07:17,093 [ix ShutdownHook] INFO
>> ConnectorServerFactoryBean
>> > - Stopping JMX connector server:
>> > [EMAIL PROTECTED]
>> > 465e5
>> > 2008-02-20 08:07:17,109 [ix ShutdownHook] INFO JBIContainer
>> > - ServiceMix JBI Container (ServiceMix) stopped
>> > 2008-02-20 08:07:17,171 [Sender-thread-1] ERROR JmsComponent
>> > - Error processing exchange InOnly[
>> > id: ID:138.125.145.227-11836f4761f-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><group>ServiceMix</group><fullname>ServiceMix.My Example
>> > Job</fullname><descriptio
>> > n/><fireTime>Wed Feb 20 08:07:16 EST 2008</fireTime></timer>
>>
>> > ]
>> > java.lang.NullPointerException
>> > at
>> >
>> org.apache.servicemix.jms.multiplexing.MultiplexingProviderProcessor.process(MultiplexingProviderProcessor.java:139)
>> > at
>> >
>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>> > at
>> >
>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>> > at
>> >
>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>> > at
>> >
>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>> > at
>> >
>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
>> > at
>> >
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>> > at
>> >
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>> > at
>> >
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>> > at
>> >
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>> > at java.lang.Thread.run(Thread.java:619)
>> > 2008-02-20 08:07:17,218 [Sender-thread-1] ERROR JmsComponent
>>
>> > - Error setting exchange status to ERROR
>> > javax.jbi.messaging.MessagingException: DeliveryChannel{inputSender}
>> has
>> > been closed.
>> > at
>> >
>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.checkNotClosed(DeliveryChannelImpl.java:147)
>> > at
>> >
>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.send(DeliveryChannelImpl.java:422)
>> > at
>> >
>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:58)
>> > at
>> >
>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>> > at
>> >
>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
>> > at
>> >
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>> > at
>> >
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>> > at
>> >
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>> > at
>> >
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>> > at java.lang.Thread.run(Thread.java:619)
>> > 2008-02-20 08:07:21,406 [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:375)
>>
>> > at
>> >
>> org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:267)
>> > at
>> >
>> org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:156)
>>
>> > at
>> >
>> org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:136)
>> > at java.lang.Thread.run(Thread.java:619)
>> > 2008-02-20 08:07:21,406 [MQ ShutdownHook] INFO TransportConnector
>> > - Connector tcp://localhost:61616 Stopped
>> > 2008-02-20 08:07:21,437 [MQ ShutdownHook] INFO BrokerService
>>
>> > - ActiveMQ JMS Message Broker (localhost,
>> > ID:L71059833-2434-1203512836250-0:0) st
>> > opped
>>
>>
>> >
>> >
>> > bsnyder wrote:
>> >>
>> >> On Feb 19, 2008 3:44 PM, spamdaemon <[EMAIL PROTECTED]> wrote:
>> >>>
>> >>>
>> >>> It's been a week. Has this problem been resolved? I'd really like to
>> >>> know,
>> >>> too, because I've also been struggling with this so-called basic
>> >>> example. It
>> >>> seems that it is anything but basic.
>> >>
>> >> As Marco pointed out, the original reporter's issue is a port
>> conflict
>> >> on port 1099 where ServiceMix runs the RMI registry. Below is the
>> >> error:
>> >>
>> >> 2008-02-06 14:59:31,216 [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.AlreadyBoundException: jmxrmi]
>> >>
>> >> When this happens, you need to either shut down whatever is running
>> on
>> >> port 1099 or you can change the port number where ServiceMIx runs the
>> >> RMI registry. This can be done in the conf/servicemix.properties file
>> >> by changing the rmi.port property to a port that is available on your
>> >> machine.
>> >>
>> >> The basic example is fairly complex. The documentation on it can be
>> found
>> >> here:
>> >>
>> >> http://servicemix.apache.org/basic.html
>> >>
>> >> Please let us know if you have any additional questions.
>> >>
>> >> Bruce
>> >> --
>> >> perl -e 'print
>> >> unpack("u30","D0G)[EMAIL
>> PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
>> >> );'
>> >>
>> >> Apache ActiveMQ - http://activemq.org/
>> >> Apache Camel - http://activemq.org/camel/
>> >> Apache ServiceMix - http://servicemix.org/
>> >> Apache Geronimo - http://geronimo.apache.org/
>> >>
>> >> Blog: http://bruceblog.org/
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/The-Basic-example-fails-to-run.-tp15306536s12049p15588826.html
>>
>>
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
>
>
--
View this message in context:
http://www.nabble.com/The-Basic-example-fails-to-run.-tp15306536s12049p15589502.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.