Over 2 weeks ago, I took on what I figured to be a 1-2 task of migrating
to v3. I'm well into my 3rd week of this, and I STILL do not have it
working. I've made progress. But this was not supposed to be a 3 week+
project....
OK, rant off... sorry. Just incredibly frustrating.....
I'm down to only 1 or two remaining problems (that I know about
now....). But this one is absolutely killing me. I am running JAMES
3b5 right out of the box. Zero config changes. When I go to the bin
directory and type 'run', about 90-95% of the time it fails. After
retrying 5-10 times, it will finally start. But as soon as I have to
stop it and restart, it fails again a bunch of times.
I've just been working around it since day-1 while I was debugging
everything else that didn't work, hoping that something would become
obvious. But here I am over two weeks later, and zero progress on
this. So I've started trying to debug it. I believe I've isolated it
to initialization of 'camel' by the spring framework.
The main exception message is: Exception in thread "main"
org.springframework.beans.factory.BeanDefinitionStoreException:
Unexpected exception parsing XML document from class path resource
[META-INF/org/apache/james/spring-server.xml];
But that's not all that useful other than getting me in the general
vicinity.
I turned on DEBUG in log4j for everything. Here's what I got:
WHEN IT WORKS ==========>>>
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader |
Imported 6 bean definitions from URL location [classpath:META-I
org.springframework.beans.factory.xml.XmlBeanDefinitionReader | Loading
XML bean definitions from class path resource [META-INF/spring/mail
org.springframework.beans.factory.xml.DefaultDocumentLoader | Using JAXP
provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderF
org.springframework.beans.factory.xml.PluggableSchemaResolver | Found
XML schema [http://www.springframework.org/schema/beans/spring-beans-
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader |
Loading bean definitions
org.springframework.beans.factory.xml.XmlBeanDefinitionReader | Loaded 3
bean definitions from location pattern [classpath:META-INF/spring/
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader |
Imported 3 bean definitions from URL location [classpath:META-I
org.apache.camel.spring.handler.CamelNamespaceHandler | Using
org.apache.camel.spring.CamelContextFactoryBean as
CamelContextBeanDefinition
org.apache.camel.spring.handler.CamelNamespaceHandler | Registered
default: org.apache.camel.spring.CamelProducerTemplateFactoryBean with i
org.apache.camel.spring.handler.CamelNamespaceHandler | Registered
default: org.apache.camel.spring.CamelConsumerTemplateFactoryBean with i
org.springframework.beans.factory.xml.XmlBeanDefinitionReader | Loading
XML bean definitions from class path resource [META-INF/spring/dns-
WHEN IT FAILS ============>>>
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader |
Imported 6 bean definitions from URL location [classpa
org.springframework.beans.factory.xml.XmlBeanDefinitionReader | Loading
XML bean definitions from class path resource [META-INF/sp
org.springframework.beans.factory.xml.DefaultDocumentLoader | Using JAXP
provider [com.sun.org.apache.xerces.internal.jaxp.Documen
org.springframework.beans.factory.xml.PluggableSchemaResolver | Found
XML schema [http://www.springframework.org/schema/beans/spri
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader |
Loading bean definitions
org.springframework.beans.factory.xml.XmlBeanDefinitionReader | Loaded 3
bean definitions from location pattern [classpath:META-IN
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader |
Imported 3 bean definitions from URL location [classpa
org.apache.camel.spring.handler.CamelNamespaceHandler | Using
org.apache.camel.spring.CamelContextFactoryBean as CamelContextBeanD
Exception in thread "main"
org.springframework.beans.factory.BeanDefinitionStoreException:
Unexpected exception parsing XML docume
java.lang.NullPointerException
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
=============================
So somewhere between the 1st and 2nd log entry for the
CamelNamespaceHandler, it's dying. Apparently, the
CamelNameSpaceHandler is failing and returning a null instead of an
object that the caller is expecting. But it's not an absolute solid
failure. It apparently sneaks by on rare occasions (???) Considering
no one else appears to be encountering this, I've got to assume it has
something to do with my environment. But I have absolutely no idea what
it would be. I need to at least get pointed to the ballpark.
I don't know anything about camel. What does it do? If someone can
please just explain what it is trying to do in this class, it will at
least give me somewhere to start.
Please help!!
Thx.
BTW.... I'm running on Win Server 2008.
Jerry
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org