Good afternoon everyone
I have now resolved this issue. Checking the configuration in framework/service/ofbiz-component.xml it seems that the line <container name="javamail-container" class="org.apache.ofbiz.service.mail.JavaMailContainer"> is incomplete . Based on the config for the container rmi-disaptcher there seemed to be a missing loaders option. . After adding the additional parameter *"loaders="main"* as below. <container name="javamail-container"* loaders="main" * class="org.apache.ofbiz.service.mail.JavaMailContainer"> inbound mail now works. I checked back and this option seems to have been missing back to at least version 17.12. Once the change is made , then ofbiz starts up and once the container parameters have been entered inbound email is processed as expected. kind regards Ernest On Wed, Mar 8, 2023 at 2:19 PM Ernest Hocking <[email protected]> wrote: > > Hi everyone, > > I'm trying to configure inbound email. . Outbound mail is working so the > username, password etc that I'm using in example config hafe been tested. > > > > I've uncommented the javamail listener in > ofbiz/framework/service/ofbiz-component.xml > as suggested in the article at > https://motalibbd.wordpress.com/2016/06/16/mail-server-configure-ofbiz/ > > This is the example config: > > <container name=”javamail-container” > class=”org.ofbiz.service.mail.JavaMailContainer”> > <property name=”delegator-name” value=”default”/> > <property name=”dispatcher-name” value=”JavaMailDispatcher”/> > <property name=”run-as-user” value=”system”/> > <property name=”poll-delay” value=”300000″/> > <property name=”delete-mail” value=”false”/> > <property name=”maxSize” value=”100000″/> > <property name=”default-listener” value=”store-listener”> > <property name=”mail.store.protocol” value=”imaps”/> > <property name=”mail.host” value=”imap.gmail.com”/> > <property name=”mail.port” value=”993″/> > <property name=”mail.user” value=”[email protected]”/> > <property name=”mail.pass” value=”changeitreos”/> > <property name=”mail.debug” value=”false”/> > </property> > </container> > > On trying to restart ofbiz I now get the following error message. Has > anyone else seen this, or is there something else that I need to configure > to get this working > > Thanks in advance for any assistance that you can provide? > > Ernest > > > Error report that the ./gradlew ofbiz stop at: > > 2023-03-08 14:04:29,092 |main |ComponentContainer > |I| Added class path for component : [webpos] > 2023-03-08 14:04:29,094 |main |ComponentContainer > |I| All components loaded > 2023-03-08 14:04:29,094 |main |ContainerLoader > |I| Loaded container: component-container > 2023-03-08 14:04:29,094 |main |ContainerLoader > |I| [Startup] Loading component containers... > Exception in thread "main" java.lang.NullPointerException > at > org.apache.ofbiz.base.container.ContainerLoader.lambda$filterContainersHavingMatchingLoaders$1(ContainerLoader.java:89) > at > java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:176) > at > java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655) > at > java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) > at > java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) > at > java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) > at > java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) > at > java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) > at > org.apache.ofbiz.base.container.ContainerLoader.filterContainersHavingMatchingLoaders(ContainerLoader.java:90) > at > org.apache.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:67) > at > org.apache.ofbiz.base.start.StartupControlPanel.loadStartupLoaders(StartupControlPanel.java:218) > at > org.apache.ofbiz.base.start.StartupControlPanel.start(StartupControlPanel.java:71) > at org.apache.ofbiz.base.start.Start.main(Start.java:85) >
