[
https://issues.apache.org/activemq/browse/CAMEL-1966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=54014#action_54014
]
Charles Moulliard commented on CAMEL-1966:
------------------------------------------
Just to inform you that this error appears also when Camel 2.1-SNAPSHOT is used
within Apache Karaf Felix. I have this error since around 3-4 days (when
switching from Camel 2.0 to camel 2.1-SNAPSHOT. That was not the case before. I
must stop/start my camel bundle to be able to work with it.
1) At the karaf launch, the following error is generated :
{code}
ka...@root:/> Exception in thread "SpringOsgiExtenderThread-8"
java.lang.IllegalStateException: BeanFactory not initialized or already closed
- call '
refresh' before accessing beans via the ApplicationContext
os at
org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:153)
at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.close(DependencyWaiterApplicatio
nContextExecutor.java:345)
at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.fail(DependencyWaiterApplication
ContextExecutor.java:401)
at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplica
tionContextExecutor.java:287)
at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicat
ionContextExecutor.java:175)
at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.
java:175)
at
org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718)
at java.lang.Thread.run(Thread.java:595)
{code}
2) My camel context is not started
3) To start it, I must stop my camel bundle. During the stop, here is the error
generated :
{code}
09:46:43,499 | ERROR | Timer-3 | DelegatingTimerTask |
duling.timer.DelegatingTimerTask 69 | Unexpected exception thrown from
Runnable:
org.springframework.osgi.extender.internal.util.concurrent.runnabletimedexecution$monitoredrunna...@15b4804
java.lang.IllegalStateException: BeanFactory not initialized or already closed
- call 'refresh' before accessing beans via the ApplicationContext
at
org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:153)
at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.close(DependencyWaiterApplicationContextExecutor.java:345)
at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.doClose(AbstractDelegatedExecutionApplicationContext.java:236)
at
org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:794)
at
org.springframework.osgi.extender.internal.activator.ContextLoaderListener$3.run(ContextLoaderListener.java:807)
at
org.springframework.osgi.extender.internal.util.concurrent.RunnableTimedExecution$MonitoredRunnable.run(RunnableTimedExecution.java:60)
at
org.springframework.scheduling.timer.DelegatingTimerTask.run(DelegatingTimerTask.java:66)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
{code}
I see also sometimes this warning in the log
{code}
08:59:51,718 | WARN | ExtenderThread-8 | XmlBeanDefinitionReader |
k.util.xml.SimpleSaxErrorHandler 47 | Ignored XML validation warning
org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema
document 'http://camel.apache.org/schema/spring/camel-spring.xsd', because 1)
could not find the document; 2) the document could not be read; 3) the root
element of the document is not <xsd:schema>.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:231)
...
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching
wildcard is strict, but no declaration can be found for element
'camel:camelContext'.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:231)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:167)
{code}
> CamelNamespaceHandler is not thread safe
> ----------------------------------------
>
> Key: CAMEL-1966
> URL: https://issues.apache.org/activemq/browse/CAMEL-1966
> Project: Apache Camel
> Issue Type: Bug
> Affects Versions: 1.4.0, 1.5.0, 1.6.0, 2.0-M1, 1.6.1, 2.0-M2, 2.0-M3, 2.0.0
> Reporter: Willem Jiang
> Assignee: Willem Jiang
> Fix For: 1.6.2, 2.1.0
>
>
> Here is the mail thread[1] which discusses about it.
> [1]
> http://www.nabble.com/Occasional-CamelNamespaceHandler-exception-when-running-with-Spring-DM-1.2-td25195171.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.