[jira] [Commented] (JAMES-1524) Windows SERVICE Install: SMTP MessagingException: Unable to access mailbox, Caused By: java.io.IOException

2013-10-27 Thread Conrad T. Pino (JIRA)

[ 
https://issues.apache.org/jira/browse/JAMES-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13806439#comment-13806439
 ] 

Conrad T. Pino commented on JAMES-1524:
---

I'm not James knowledgeable but your situation reminds me of past Windows 
service issues I've had.

1. Have you had the opportunity to compare the Windows account used by the 
service to the filesystem permissions?

2. If not already so, may I suggest creating a separate Windows account for 
James server? The default SYSTEM account is best reserved for Windows alone.  
Any new account requires the Login as a service account right and at most 
Change filesystem permission.

 Windows SERVICE Install: SMTP MessagingException: Unable to access mailbox, 
 Caused By: java.io.IOException
 --

 Key: JAMES-1524
 URL: https://issues.apache.org/jira/browse/JAMES-1524
 Project: James Server
  Issue Type: Bug
  Components: James Core
Affects Versions: 3.0.0-beta5
 Environment: Installing as NT service on Windows 7/Windows Server 
 2008, 64-bit.  JDK 1.7.  PostGreSQL 9+ (optional).
Reporter: Uday Kari
Priority: Critical
 Fix For: 3.0.0-beta5


 When installing James as a Windows service, using james install, followed by 
 james start...I have now tested this on three different windows boxes, 
 getting the exact same error with or without jpa configured to use database.  
 IMPORTANT: Again, this applies only to Windows service.  The run.bat does not 
 gives this error.  So likely a the proprietary wrapper issue...
 SUMMARY: When reaching Step 7 of Quickstart, get Mail Queued For Delivery, 
 but message is NOT received when checking POP.
 DETAILS: Within james-server.log, I see the following stacktrace: 
 ERROR 22:15:47,019 | james.mailetcontext | Error while storing mail.
 javax.mail.MessagingException: Unable to access mailbox. 
 (org.apache.james.mailbox.exception.MailboxException: Unable to parse message)
   at 
 org.apache.james.transport.mailets.SieveMailet.post(SieveMailet.java:225)
   at 
 org.apache.jsieve.mailet.SieveMailboxMailet.storeMessageInbox(SieveMailboxMailet.java:387)
   at 
 org.apache.jsieve.mailet.SieveMailboxMailet.sieveMessage(SieveMailboxMailet.java:358)
   at 
 org.apache.jsieve.mailet.SieveMailboxMailet.storeMail(SieveMailboxMailet.java:341)
   at 
 org.apache.james.transport.mailets.SieveMailet.storeMail(SieveMailet.java:126)
   at 
 org.apache.jsieve.mailet.SieveMailboxMailet.service(SieveMailboxMailet.java:275)
   at 
 org.apache.james.transport.mailets.LocalDelivery.service(LocalDelivery.java:94)
   at 
 org.apache.james.mailetcontainer.impl.camel.CamelProcessor.process(CamelProcessor.java:65)
   at 
 org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
   at 
 org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
   at 
 org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
   at 
 org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
   at 
 org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
   at 
 org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
   at 
 org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
   at 
 org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73)
   at 
 org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
   at 
 org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
   at 
 org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
   at 
 org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:91)
   at 
 org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
   at 
 org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:334)
   at 
 org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:220)
   at 
 org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:45)
   at 
 org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
   at 
 org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:303)
   at 
 org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
   at 
 

[jira] [Commented] (JAMES-1524) Windows SERVICE Install: SMTP MessagingException: Unable to access mailbox, Caused By: java.io.IOException

2013-10-27 Thread Uday Kari (JIRA)

[ 
https://issues.apache.org/jira/browse/JAMES-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13806514#comment-13806514
 ] 

Uday Kari commented on JAMES-1524:
--

Yes, I used icacls to give full privilege to java.io.tmpdir and create separate 
LocalSystem Account.  None of that helps.  I suspect that the proprietary 
service wrapper (Tanuki) has no unpaid support for 64-bit.  

 Windows SERVICE Install: SMTP MessagingException: Unable to access mailbox, 
 Caused By: java.io.IOException
 --

 Key: JAMES-1524
 URL: https://issues.apache.org/jira/browse/JAMES-1524
 Project: James Server
  Issue Type: Bug
  Components: James Core
Affects Versions: 3.0.0-beta5
 Environment: Installing as NT service on Windows 7/Windows Server 
 2008, 64-bit.  JDK 1.7.  PostGreSQL 9+ (optional).
Reporter: Uday Kari
Priority: Critical
 Fix For: 3.0.0-beta5


 When installing James as a Windows service, using james install, followed by 
 james start...I have now tested this on three different windows boxes, 
 getting the exact same error with or without jpa configured to use database.  
 IMPORTANT: Again, this applies only to Windows service.  The run.bat does not 
 gives this error.  So likely a the proprietary wrapper issue...
 SUMMARY: When reaching Step 7 of Quickstart, get Mail Queued For Delivery, 
 but message is NOT received when checking POP.
 DETAILS: Within james-server.log, I see the following stacktrace: 
 ERROR 22:15:47,019 | james.mailetcontext | Error while storing mail.
 javax.mail.MessagingException: Unable to access mailbox. 
 (org.apache.james.mailbox.exception.MailboxException: Unable to parse message)
   at 
 org.apache.james.transport.mailets.SieveMailet.post(SieveMailet.java:225)
   at 
 org.apache.jsieve.mailet.SieveMailboxMailet.storeMessageInbox(SieveMailboxMailet.java:387)
   at 
 org.apache.jsieve.mailet.SieveMailboxMailet.sieveMessage(SieveMailboxMailet.java:358)
   at 
 org.apache.jsieve.mailet.SieveMailboxMailet.storeMail(SieveMailboxMailet.java:341)
   at 
 org.apache.james.transport.mailets.SieveMailet.storeMail(SieveMailet.java:126)
   at 
 org.apache.jsieve.mailet.SieveMailboxMailet.service(SieveMailboxMailet.java:275)
   at 
 org.apache.james.transport.mailets.LocalDelivery.service(LocalDelivery.java:94)
   at 
 org.apache.james.mailetcontainer.impl.camel.CamelProcessor.process(CamelProcessor.java:65)
   at 
 org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
   at 
 org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
   at 
 org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
   at 
 org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
   at 
 org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
   at 
 org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
   at 
 org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
   at 
 org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73)
   at 
 org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
   at 
 org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
   at 
 org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
   at 
 org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:91)
   at 
 org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
   at 
 org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:334)
   at 
 org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:220)
   at 
 org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:45)
   at 
 org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
   at 
 org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:303)
   at 
 org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
   at 
 org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
   at 
 org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:81)
   at 
 org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
   at 
 

[jira] [Commented] (JAMES-1524) Windows SERVICE Install: SMTP MessagingException: Unable to access mailbox, Caused By: java.io.IOException

2013-10-27 Thread Conrad T. Pino (JIRA)

[ 
https://issues.apache.org/jira/browse/JAMES-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13806576#comment-13806576
 ] 

Conrad T. Pino commented on JAMES-1524:
---

My reading of the stack trace implies the mailbox store is inaccessible and I 
have doubts the mailbox store is within the tmpdir, where that may be but this 
is pure speculation which is no substitute for hard evidence.  Two approaches 
can produce useful evidence:

1) Windows Sysinternals Process Monitor 
http://technet.microsoft.com/en-us/sysinternals/bb896645 which may be overkill 
but you can achieve very selective monitoring but all power tools have 
significant learning curves and

2) Windows object access auditing for failure events 
http://support.microsoft.com/kb/310399 and if the failing object location is in 
doubt, apply the auditing policy for the Everyone built in group to the root 
directory of every drive and double check your Security Even Log is 
sufficiently large or allows overwriting the oldest events.

 Windows SERVICE Install: SMTP MessagingException: Unable to access mailbox, 
 Caused By: java.io.IOException
 --

 Key: JAMES-1524
 URL: https://issues.apache.org/jira/browse/JAMES-1524
 Project: James Server
  Issue Type: Bug
  Components: James Core
Affects Versions: 3.0.0-beta5
 Environment: Installing as NT service on Windows 7/Windows Server 
 2008, 64-bit.  JDK 1.7.  PostGreSQL 9+ (optional).
Reporter: Uday Kari
Priority: Critical
 Fix For: 3.0.0-beta5


 When installing James as a Windows service, using james install, followed by 
 james start...I have now tested this on three different windows boxes, 
 getting the exact same error with or without jpa configured to use database.  
 IMPORTANT: Again, this applies only to Windows service.  The run.bat does not 
 gives this error.  So likely a the proprietary wrapper issue...
 SUMMARY: When reaching Step 7 of Quickstart, get Mail Queued For Delivery, 
 but message is NOT received when checking POP.
 DETAILS: Within james-server.log, I see the following stacktrace: 
 ERROR 22:15:47,019 | james.mailetcontext | Error while storing mail.
 javax.mail.MessagingException: Unable to access mailbox. 
 (org.apache.james.mailbox.exception.MailboxException: Unable to parse message)
   at 
 org.apache.james.transport.mailets.SieveMailet.post(SieveMailet.java:225)
   at 
 org.apache.jsieve.mailet.SieveMailboxMailet.storeMessageInbox(SieveMailboxMailet.java:387)
   at 
 org.apache.jsieve.mailet.SieveMailboxMailet.sieveMessage(SieveMailboxMailet.java:358)
   at 
 org.apache.jsieve.mailet.SieveMailboxMailet.storeMail(SieveMailboxMailet.java:341)
   at 
 org.apache.james.transport.mailets.SieveMailet.storeMail(SieveMailet.java:126)
   at 
 org.apache.jsieve.mailet.SieveMailboxMailet.service(SieveMailboxMailet.java:275)
   at 
 org.apache.james.transport.mailets.LocalDelivery.service(LocalDelivery.java:94)
   at 
 org.apache.james.mailetcontainer.impl.camel.CamelProcessor.process(CamelProcessor.java:65)
   at 
 org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
   at 
 org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
   at 
 org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
   at 
 org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
   at 
 org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
   at 
 org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
   at 
 org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
   at 
 org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73)
   at 
 org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
   at 
 org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
   at 
 org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
   at 
 org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:91)
   at 
 org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
   at 
 org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:334)
   at 
 org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:220)
   at 
 org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:45)
   at