james-server-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Garvice Eakins <garviceeak...@gmail.com>
Subject Re: No domain found : Relay-Denied
Date Fri, 01 Jun 2012 22:37:31 GMT
>From what I can tell, it seems to be the opposite is going on.
When I run james for the first time it creates the tables, james_domain,
james_mail, james_mailbox, james_mail_property, james_mail_userflag,
james_recipient_rewrite, james_subscription, james_user,
openjpa_sequence_table

But the error log indicates it is looking for the table JamesDomain
javax.persistence.NoResultException: Query "SELECT domain FROM JamesDomain
domain WHERE domain.name=:name" selected no result, but expected unique
result.

Is there some other setting I'm missing?
Here is my james-database.properties file,
database.driverClassName=com.mysql.jdbc.Driver
database.url=jdbc:mysql://192.168.55.119/james
database.username=xxxxx
database.password=xxxxx
vendorAdapter.database=MYSQL
openjpa.streaming=false



On Thu, May 31, 2012 at 1:20 AM, Eric Charles <eric@apache.org> wrote:

> Hi,
>
> It seems like the james_domain table in your database has not the needed
> domains.
>
> Possible problems are:
>
> 1.- you are not connecting to the database your are thinking (the
> database.properties file is now james-database.properties).
>
> 2.- your database has not the JAMES_DOMAIN table. Rename DOMAIN to
> JAMES_DOMAIN
>
> Sorry for all those changes...
>
> Thx, Eric
>
>
>
> On 05/30/2012 10:50 PM, Garvice Eakins wrote:
>
>> I have recently updated from James3 m3 to james beta4
>> I thought I had successfully edited the config files but I'm still having
>> some issues
>> Here is the output: what am I missing?
>>
>> DEBUG 13:53:40,054 | james.mailspooler | ==== Begin processing mail
>> Mail1338411219877-6c56a50c-**d083-48a3-b3f2-fca17234e2f5===**=
>> DEBUG 13:53:40,055 | james.mailprocessor | Call MailProcessor root
>> DEBUG 13:53:40,161 | james.mailprocessor | Call MailProcessor transport
>> DEBUG 13:53:40,211 | james.domainlist | No domain found
>> javax.persistence.**NoResultException: Query "SELECT domain FROM
>> JamesDomain
>> domain WHERE domain.name=:name" selected no result, but expected unique
>> result.
>> at
>> org.apache.openjpa.**persistence.QueryImpl.**getSingleResult(QueryImpl.**
>> java:345)
>> at
>> org.apache.james.domainlist.**jpa.JPADomainList.**
>> containsDomain(JPADomainList.**java:100)
>> at
>> org.apache.james.**mailetcontainer.impl.**JamesMailetContext.**
>> isLocalServer(**JamesMailetContext.java:341)
>> at
>> org.apache.james.**mailetcontainer.impl.**JamesMailetContext.**
>> isLocalEmail(**JamesMailetContext.java:267)
>> at
>> org.apache.james.transport.**matchers.RecipientIsLocal.**matchRecipient(*
>> *RecipientIsLocal.java:37)
>> at
>> org.apache.mailet.base.**GenericRecipientMatcher.match(**
>> GenericRecipientMatcher.java:**54)
>> at
>> org.apache.james.**mailetcontainer.impl.camel.**MatcherSplitter.split(**
>> MatcherSplitter.java:87)
>> at sun.reflect.**NativeMethodAccessorImpl.**invoke0(Native Method)
>> at
>> sun.reflect.**NativeMethodAccessorImpl.**invoke(**
>> NativeMethodAccessorImpl.java:**57)
>> at
>> sun.reflect.**DelegatingMethodAccessorImpl.**invoke(**
>> DelegatingMethodAccessorImpl.**java:43)
>> at java.lang.reflect.Method.**invoke(Method.java:616)
>> at org.apache.camel.component.**bean.MethodInfo.invoke(**
>> MethodInfo.java:322)
>> at org.apache.camel.component.**bean.MethodInfo$1.proceed(**
>> MethodInfo.java:224)
>> at
>> org.apache.camel.component.**bean.BeanProcessor.process(**
>> BeanProcessor.java:159)
>> at
>> org.apache.camel.util.**AsyncProcessorHelper.process(**
>> AsyncProcessorHelper.java:91)
>> at
>> org.apache.camel.component.**bean.BeanProcessor.process(**
>> BeanProcessor.java:74)
>> at
>> org.apache.camel.language.**bean.BeanExpression$**
>> InvokeProcessor.process(**BeanExpression.java:136)
>> at
>> org.apache.camel.language.**bean.BeanExpression.evaluate(**
>> BeanExpression.java:92)
>> at
>> org.apache.camel.language.**bean.BeanExpression.evaluate(**
>> BeanExpression.java:101)
>> at
>> org.apache.camel.processor.**Splitter.**createProcessorExchangePairs(**
>> Splitter.java:99)
>> at
>> org.apache.camel.processor.**MulticastProcessor.process(**
>> MulticastProcessor.java:181)
>> at org.apache.camel.processor.**Splitter.process(Splitter.**java:94)
>> at
>> org.apache.camel.util.**AsyncProcessorHelper.process(**
>> AsyncProcessorHelper.java:70)
>> at
>> org.apache.camel.processor.**DelegateAsyncProcessor.**processNext(**
>> DelegateAsyncProcessor.java:**98)
>> at
>> org.apache.camel.processor.**DelegateAsyncProcessor.**process(**
>> DelegateAsyncProcessor.java:**89)
>> at
>> org.apache.camel.management.**InstrumentationProcessor.**process(**
>> InstrumentationProcessor.java:**68)
>> at
>> org.apache.camel.util.**AsyncProcessorHelper.process(**
>> AsyncProcessorHelper.java:70)
>> at
>> org.apache.camel.processor.**DelegateAsyncProcessor.**processNext(**
>> DelegateAsyncProcessor.java:**98)
>> at
>> org.apache.camel.processor.**DelegateAsyncProcessor.**process(**
>> DelegateAsyncProcessor.java:**89)
>> at
>> org.apache.camel.processor.**interceptor.TraceInterceptor.**
>> process(TraceInterceptor.java:**99)
>> at
>> org.apache.camel.util.**AsyncProcessorHelper.process(**
>> AsyncProcessorHelper.java:70)
>> at
>> org.apache.camel.processor.**RedeliveryErrorHandler.**
>> processErrorHandler(**RedeliveryErrorHandler.java:**299)
>> at
>> org.apache.camel.processor.**RedeliveryErrorHandler.**process(**
>> RedeliveryErrorHandler.java:**208)
>> at
>> org.apache.camel.processor.**DefaultChannel.process(**
>> DefaultChannel.java:256)
>> at
>> org.apache.camel.util.**AsyncProcessorHelper.process(**
>> AsyncProcessorHelper.java:70)
>> at org.apache.camel.processor.**Pipeline.process(Pipeline.**java:143)
>> at org.apache.camel.processor.**Pipeline.process(Pipeline.**java:78)
>> at
>> org.apache.camel.processor.**UnitOfWorkProcessor.process(**
>> UnitOfWorkProcessor.java:113)
>> at
>> org.apache.camel.util.**AsyncProcessorHelper.process(**
>> AsyncProcessorHelper.java:70)
>> at
>> org.apache.camel.processor.**DelegateAsyncProcessor.**processNext(**
>> DelegateAsyncProcessor.java:**98)
>> at
>> org.apache.camel.processor.**DelegateAsyncProcessor.**process(**
>> DelegateAsyncProcessor.java:**89)
>> at
>> org.apache.camel.management.**InstrumentationProcessor.**process(**
>> InstrumentationProcessor.java:**68)
>> at
>> org.apache.camel.util.**AsyncProcessorHelper.process(**
>> AsyncProcessorHelper.java:70)
>> at
>> org.apache.camel.component.**direct.DirectProducer.process(**
>> DirectProducer.java:61)
>> at
>> org.apache.camel.processor.**UnitOfWorkProcessor.process(**
>> UnitOfWorkProcessor.java:99)
>> at
>> org.apache.camel.util.**AsyncProcessorHelper.process(**
>> AsyncProcessorHelper.java:91)
>> at
>> org.apache.camel.processor.**DelegateAsyncProcessor.**process(**
>> DelegateAsyncProcessor.java:**85)
>> at
>> org.apache.camel.processor.**UnitOfWorkProducer.process(**
>> UnitOfWorkProducer.java:63)
>> at
>> org.apache.camel.impl.**ProducerCache$1.doInProducer(**
>> ProducerCache.java:333)
>> at
>> org.apache.camel.impl.**ProducerCache$1.doInProducer(**
>> ProducerCache.java:303)
>> at org.apache.camel.impl.**ProducerCache.doInProducer(**
>> ProducerCache.java:208)
>> at org.apache.camel.impl.**ProducerCache.sendExchange(**
>> ProducerCache.java:303)
>> at org.apache.camel.impl.**ProducerCache.send(**ProducerCache.java:154)
>> at
>> org.apache.camel.impl.**DefaultProducerTemplate.send(**
>> DefaultProducerTemplate.java:**110)
>> at
>> org.apache.camel.impl.**DefaultProducerTemplate.**sendBody(**
>> DefaultProducerTemplate.java:**123)
>> at
>> org.apache.camel.impl.**DefaultProducerTemplate.**sendBody(**
>> DefaultProducerTemplate.java:**130)
>> at
>> org.apache.james.**mailetcontainer.impl.camel.**
>> CamelMailetProcessor.service(**CamelMailetProcessor.java:62)
>> at
>> org.apache.james.**mailetcontainer.lib.**AbstractStateCompositeProcesso**
>> r.service(**AbstractStateCompositeProcesso**r.java:99)
>> at
>> org.apache.james.**mailetcontainer.impl.**JamesMailetContext.sendMail(**
>> JamesMailetContext.java:404)
>> at
>> org.apache.james.**mailetcontainer.lib.**AbstractStateMailetProcessor.**
>> toProcessor(**AbstractStateMailetProcessor.**java:162)
>> at
>> org.apache.james.**mailetcontainer.impl.camel.**
>> CamelMailetProcessor.access$**1000(CamelMailetProcessor.**java:48)
>> at
>> org.apache.james.**mailetcontainer.impl.camel.**CamelMailetProcessor$**
>> MailetContainerRouteBuilder$**StateChangedProcessor.process(**
>> CamelMailetProcessor.java:208)
>> at
>> org.apache.camel.impl.**converter.**AsyncProcessorTypeConverter$**
>> ProcessorToAsyncProcessorBridg**e.process(**AsyncProcessorTypeConverter.*
>> *java:50)
>> at
>> org.apache.camel.util.**AsyncProcessorHelper.process(**
>> AsyncProcessorHelper.java:70)
>> at
>> org.apache.camel.processor.**DelegateAsyncProcessor.**processNext(**
>> DelegateAsyncProcessor.java:**98)
>> at
>> org.apache.camel.processor.**DelegateAsyncProcessor.**process(**
>> DelegateAsyncProcessor.java:**89)
>> at
>> org.apache.camel.processor.**interceptor.TraceInterceptor.**
>> process(TraceInterceptor.java:**99)
>> at
>> org.apache.camel.util.**AsyncProcessorHelper.process(**
>> AsyncProcessorHelper.java:70)
>> at
>> org.apache.camel.processor.**RedeliveryErrorHandler.**
>> processErrorHandler(**RedeliveryErrorHandler.java:**299)
>> at
>> org.apache.camel.processor.**RedeliveryErrorHandler.**process(**
>> RedeliveryErrorHandler.java:**208)
>> at
>> org.apache.camel.processor.**DefaultChannel.process(**
>> DefaultChannel.java:256)
>> at
>> org.apache.camel.util.**AsyncProcessorHelper.process(**
>> AsyncProcessorHelper.java:70)
>> at org.apache.camel.processor.**Pipeline.process(Pipeline.**java:143)
>> at org.apache.camel.processor.**Pipeline.process(Pipeline.**java:78)
>> at
>> org.apache.camel.util.**AsyncProcessorHelper.process(**
>> AsyncProcessorHelper.java:70)
>> at
>> org.apache.camel.processor.**DelegateAsyncProcessor.**processNext(**
>> DelegateAsyncProcessor.java:**98)
>> at
>> org.apache.camel.processor.**ChoiceProcessor.process(**
>> ChoiceProcessor.java:80)
>> at
>> org.apache.camel.util.**AsyncProcessorHelper.process(**
>> AsyncProcessorHelper.java:70)
>> at
>> org.apache.camel.processor.**DelegateAsyncProcessor.**processNext(**
>> DelegateAsyncProcessor.java:**98)
>> at
>> org.apache.camel.processor.**DelegateAsyncProcessor.**process(**
>> DelegateAsyncProcessor.java:**89)
>> at
>> org.apache.camel.management.**InstrumentationProcessor.**process(**
>> InstrumentationProcessor.java:**68)
>> at
>> org.apache.camel.util.**AsyncProcessorHelper.process(**
>> AsyncProcessorHelper.java:70)
>> at
>> org.apache.camel.processor.**DelegateAsyncProcessor.**processNext(**
>> DelegateAsyncProcessor.java:**98)
>> at
>> org.apache.camel.processor.**DelegateAsyncProcessor.**process(**
>> DelegateAsyncProcessor.java:**89)
>> at
>> org.apache.camel.processor.**interceptor.TraceInterceptor.**
>> process(TraceInterceptor.java:**99)
>> at
>> org.apache.camel.util.**AsyncProcessorHelper.process(**
>> AsyncProcessorHelper.java:70)
>> at
>> org.apache.camel.processor.**RedeliveryErrorHandler.**
>> processErrorHandler(**RedeliveryErrorHandler.java:**299)
>> at
>> org.apache.camel.processor.**RedeliveryErrorHandler.**process(**
>> RedeliveryErrorHandler.java:**208)
>> at
>> org.apache.camel.processor.**DefaultChannel.process(**
>> DefaultChannel.java:256)
>> at
>> org.apache.camel.util.**AsyncProcessorHelper.process(**
>> AsyncProcessorHelper.java:70)
>> at org.apache.camel.processor.**Pipeline.process(Pipeline.**java:143)
>> at org.apache.camel.processor.**Pipeline.process(Pipeline.**java:78)
>> at
>> org.apache.camel.util.**AsyncProcessorHelper.process(**
>> AsyncProcessorHelper.java:70)
>> at
>> org.apache.camel.processor.**RedeliveryErrorHandler.**
>> processErrorHandler(**RedeliveryErrorHandler.java:**299)
>> at
>> org.apache.camel.processor.**RedeliveryErrorHandler.**process(**
>> RedeliveryErrorHandler.java:**208)
>> at
>> org.apache.camel.processor.**UnitOfWorkProcessor.process(**
>> UnitOfWorkProcessor.java:99)
>> at
>> org.apache.camel.util.**AsyncProcessorHelper.process(**
>> AsyncProcessorHelper.java:70)
>> at
>> org.apache.camel.processor.**MulticastProcessor.**doProcessSequential(**
>> MulticastProcessor.java:400)
>> at
>> org.apache.camel.processor.**MulticastProcessor.**doProcessSequential(**
>> MulticastProcessor.java:340)
>> at
>> org.apache.camel.processor.**MulticastProcessor.process(**
>> MulticastProcessor.java:187)
>> at org.apache.camel.processor.**Splitter.process(Splitter.**java:94)
>> at
>> org.apache.camel.util.**AsyncProcessorHelper.process(**
>> AsyncProcessorHelper.java:70)
>> at
>> org.apache.camel.processor.**DelegateAsyncProcessor.**processNext(**
>> DelegateAsyncProcessor.java:**98)
>> at
>> org.apache.camel.processor.**DelegateAsyncProcessor.**process(**
>> DelegateAsyncProcessor.java:**89)
>> at
>> org.apache.camel.management.**InstrumentationProcessor.**process(**
>> InstrumentationProcessor.java:**68)
>> at
>> org.apache.camel.util.**AsyncProcessorHelper.process(**
>> AsyncProcessorHelper.java:70)
>> at
>> org.apache.camel.processor.**DelegateAsyncProcessor.**processNext(**
>> DelegateAsyncProcessor.java:**98)
>> at
>> org.apache.camel.processor.**DelegateAsyncProcessor.**process(**
>> DelegateAsyncProcessor.java:**89)
>> at
>> org.apache.camel.processor.**interceptor.TraceInterceptor.**
>> process(TraceInterceptor.java:**99)
>> at
>> org.apache.camel.util.**AsyncProcessorHelper.process(**
>> AsyncProcessorHelper.java:70)
>> at
>> org.apache.camel.processor.**RedeliveryErrorHandler.**
>> processErrorHandler(**RedeliveryErrorHandler.java:**299)
>> at
>> org.apache.camel.processor.**RedeliveryErrorHandler.**process(**
>> RedeliveryErrorHandler.java:**208)
>> at
>> org.apache.camel.processor.**DefaultChannel.process(**
>> DefaultChannel.java:256)
>> at
>> org.apache.camel.util.**AsyncProcessorHelper.process(**
>> AsyncProcessorHelper.java:70)
>> at org.apache.camel.processor.**Pipeline.process(Pipeline.**java:143)
>> at org.apache.camel.processor.**Pipeline.process(Pipeline.**java:78)
>> at
>> org.apache.camel.processor.**UnitOfWorkProcessor.process(**
>> UnitOfWorkProcessor.java:113)
>> at
>> org.apache.camel.util.**AsyncProcessorHelper.process(**
>> AsyncProcessorHelper.java:70)
>> at
>> org.apache.camel.processor.**DelegateAsyncProcessor.**processNext(**
>> DelegateAsyncProcessor.java:**98)
>> at
>> org.apache.camel.processor.**DelegateAsyncProcessor.**process(**
>> DelegateAsyncProcessor.java:**89)
>> at
>> org.apache.camel.management.**InstrumentationProcessor.**process(**
>> InstrumentationProcessor.java:**68)
>> at
>> org.apache.camel.util.**AsyncProcessorHelper.process(**
>> AsyncProcessorHelper.java:70)
>> at
>> org.apache.camel.component.**direct.DirectProducer.process(**
>> DirectProducer.java:61)
>> at
>> org.apache.camel.processor.**UnitOfWorkProcessor.process(**
>> UnitOfWorkProcessor.java:99)
>> at
>> org.apache.camel.util.**AsyncProcessorHelper.process(**
>> AsyncProcessorHelper.java:91)
>> at
>> org.apache.camel.processor.**DelegateAsyncProcessor.**process(**
>> DelegateAsyncProcessor.java:**85)
>> at
>> org.apache.camel.processor.**UnitOfWorkProducer.process(**
>> UnitOfWorkProducer.java:63)
>> at
>> org.apache.camel.impl.**ProducerCache$1.doInProducer(**
>> ProducerCache.java:333)
>> at
>> org.apache.camel.impl.**ProducerCache$1.doInProducer(**
>> ProducerCache.java:303)
>> at org.apache.camel.impl.**ProducerCache.doInProducer(**
>> ProducerCache.java:208)
>> at org.apache.camel.impl.**ProducerCache.sendExchange(**
>> ProducerCache.java:303)
>> at org.apache.camel.impl.**ProducerCache.send(**ProducerCache.java:154)
>> at
>> org.apache.camel.impl.**DefaultProducerTemplate.send(**
>> DefaultProducerTemplate.java:**110)
>> at
>> org.apache.camel.impl.**DefaultProducerTemplate.**sendBody(**
>> DefaultProducerTemplate.java:**123)
>> at
>> org.apache.camel.impl.**DefaultProducerTemplate.**sendBody(**
>> DefaultProducerTemplate.java:**130)
>> at
>> org.apache.james.**mailetcontainer.impl.camel.**
>> CamelMailetProcessor.service(**CamelMailetProcessor.java:62)
>> at
>> org.apache.james.**mailetcontainer.lib.**AbstractStateCompositeProcesso**
>> r.service(**AbstractStateCompositeProcesso**r.java:99)
>> at
>> org.apache.james.**mailetcontainer.impl.**JamesMailSpooler$1.run(**
>> JamesMailSpooler.java:157)
>> at
>> java.util.concurrent.**ThreadPoolExecutor.runWorker(**
>> ThreadPoolExecutor.java:1110)
>> at
>> java.util.concurrent.**ThreadPoolExecutor$Worker.run(**
>> ThreadPoolExecutor.java:603)
>> at java.lang.Thread.run(Thread.**java:679)
>> DEBUG 13:53:40,377 | james.mailprocessor | Call MailProcessor relay-denied
>> INFO  13:53:40,395 | james.mailetcontext | Storing mail
>> Mail1338411219877-6c56a50c-**d083-48a3-b3f2-fca17234e2f5 in
>> file://var/mail/relay-denied/
>> DEBUG 13:53:40,521 | james.mailprocessor | End of mailetprocessor for
>> state
>> transport reached
>> DEBUG 13:53:40,528 | james.mailprocessor | End of mailetprocessor for
>> state
>> root reached
>>
>>
> --
> eric | http://about.echarles.net | @echarles
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: server-user-unsubscribe@james.**apache.org<server-user-unsubscribe@james.apache.org>
> For additional commands, e-mail: server-user-help@james.apache.**org<server-user-help@james.apache.org>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message