We have this problem in both versions 3.0-M3-SNAPSHOT and 3.0-Beta2 release as well.
This will be really great help Eric. Look forward to see what you get. Thanks, Sai On Wed, Aug 3, 2011 at 12:06 PM, Eric Charles <[email protected]>wrote: > Hi, > > If I remember well, the mailbox already exists exception is catched, > logged, and the process continues. > So we are now with an unlogged exception... > I will try to copy a small mailbox here and see if it works. > > Which version are you using? > > Thx. > > > On 03/08/11 17:26, Saibabu Vallurupalli wrote: > >> Hi Eric, You are correct. Even I wondered after seeing the error it is >> first >> time I saw that mailbox already exists. Now , I cleared the maildir folder >> under var/store path and ran the copy operation one more time. Now, >> jConsole >> error remains same but james-server-log doesn't show any errors. Below is >> James server log - >> >> ************ >> INFO 11:22:33,251 | org.apache.james.mailbox.**copier.MailboxCopierImpl >> | >> Found 12 mailboxes in source mailbox manager. >> INFO 11:22:33,252 | org.apache.james.mailbox.**copier.MailboxCopierImpl >> | >> Mailbox#0 path=#private:admin@Florida-**HIE.net:INBOX >> INFO 11:22:33,252 | org.apache.james.mailbox.**copier.MailboxCopierImpl >> | >> Mailbox#1 path=#private:admin@Florida-**HIE.net:INBOX.Sent >> INFO 11:22:33,252 | org.apache.james.mailbox.**copier.MailboxCopierImpl >> | >> Mailbox#2 path=#private:admin@Florida-**HIE.net:INBOX.Trash >> INFO 11:22:33,252 | org.apache.james.mailbox.**copier.MailboxCopierImpl >> | >> Mailbox#3 path=#private:admin@Florida-**HIE.net:INBOX.Drafts >> INFO 11:22:33,252 | org.apache.james.mailbox.**copier.MailboxCopierImpl >> | >> Mailbox#4 path=#private:sbrewste@**Florida-HIE.net:INBOX >> INFO 11:22:33,252 | org.apache.james.mailbox.**copier.MailboxCopierImpl >> | >> Mailbox#5 path=#private:sbrewste@**Florida-HIE.net:INBOX.Sent >> INFO 11:22:33,252 | org.apache.james.mailbox.**copier.MailboxCopierImpl >> | >> Mailbox#6 path=#private:sbrewste@**Florida-HIE.net:INBOX.Trash >> INFO 11:22:33,252 | org.apache.james.mailbox.**copier.MailboxCopierImpl >> | >> Mailbox#7 path=#private:sbrewste@**Florida-HIE.net:INBOX.Drafts >> INFO 11:22:33,252 | org.apache.james.mailbox.**copier.MailboxCopierImpl >> | >> Mailbox#8 path=#private:pvalluri@**florida-hie.net:INBOX >> INFO 11:22:33,253 | org.apache.james.mailbox.**copier.MailboxCopierImpl >> | >> Mailbox#9 path=#private:pvalluri@**Florida-HIE.net:INBOX.Sent >> INFO 11:22:33,253 | org.apache.james.mailbox.**copier.MailboxCopierImpl >> | >> Mailbox#10 path=#private:pvalluri@**Florida-HIE.net:INBOX.Trash >> INFO 11:22:33,253 | org.apache.james.mailbox.**copier.MailboxCopierImpl >> | >> Mailbox#11 path=#private:pvalluri@**Florida-HIE.net:INBOX.Drafts >> INFO 11:22:33,253 | org.apache.james.mailbox.**copier.MailboxCopierImpl >> | >> Ready to copy source mailbox path=#private:admin@Florida-**HIE.net:INBOX >> INFO 11:22:33,265 | org.apache.james.mailbox.**copier.MailboxCopierImpl >> | >> Destination mailbox 0/12 created with path=#private:admin@Florida-** >> HIE.net:INBOX >> after 22 ms. >> *********** >> Thanks, >> Sai >> >> >> On Wed, Aug 3, 2011 at 11:15 AM, Eric Charles<[email protected]> wrote: >> >> Hi Sai, >>> >>> The returned message via JConsole is not inline with the real exception >>> 'INBOX already exists'. >>> >>> Can you 'rm -fr $JAMES_HOME/var/store/maildir' and retest? >>> (the target maildir already contains some files, which confuses the >>> processus). >>> >>> Thx. >>> >>> >>> >>> On 03/08/11 16:55, Saibabu Vallurupalli wrote: >>> >>> Hi Eric, We were able to send and receive emails successfully. Below are >>>> the >>>> steps I followed: >>>> - Ensured SMTP/POP3/IMAP4 services are disabled. >>>> - Started James >>>> - Opened jConsole and invoked mailboxcopier.copy with jpa-mailboxmanager >>>> and >>>> maildir-mailboxmanager >>>> I get exception in jConsole saying "Problem invoking copy : >>>> java.lang.Exception: Unable to parse message". >>>> >>>> In james-server-log file below is what I see: >>>> ************* >>>> INFO 10:50:43,468 | org.apache.james.mailbox.**** >>>> copier.MailboxCopierImpl >>>> | >>>> Found 8 mailboxes in source mailbox manager. >>>> INFO 10:50:43,469 | org.apache.james.mailbox.**** >>>> copier.MailboxCopierImpl >>>> | >>>> Mailbox#0 path=#private:admin@Florida-****HIE.net:INBOX >>>> INFO 10:50:43,469 | org.apache.james.mailbox.**** >>>> copier.MailboxCopierImpl >>>> | >>>> Mailbox#1 path=#private:admin@Florida-****HIE.net:INBOX.Sent >>>> INFO 10:50:43,469 | org.apache.james.mailbox.**** >>>> copier.MailboxCopierImpl >>>> | >>>> Mailbox#2 path=#private:admin@Florida-****HIE.net:INBOX.Trash >>>> INFO 10:50:43,469 | org.apache.james.mailbox.**** >>>> copier.MailboxCopierImpl >>>> | >>>> Mailbox#3 path=#private:admin@Florida-****HIE.net:INBOX.Drafts >>>> INFO 10:50:43,469 | org.apache.james.mailbox.**** >>>> copier.MailboxCopierImpl >>>> | >>>> Mailbox#4 path=#private:vpao@florida-****hie.net:INBOX >>>> INFO 10:50:43,469 | org.apache.james.mailbox.**** >>>> copier.MailboxCopierImpl >>>> | >>>> Mailbox#5 path=#private:vpao@florida-****hie.net:INBOX.Sent >>>> INFO 10:50:43,469 | org.apache.james.mailbox.**** >>>> copier.MailboxCopierImpl >>>> | >>>> Mailbox#6 path=#private:vpao@florida-****hie.net:INBOX.Trash >>>> INFO 10:50:43,469 | org.apache.james.mailbox.**** >>>> copier.MailboxCopierImpl >>>> | >>>> Mailbox#7 path=#private:vpao@florida-****hie.net:INBOX.Drafts >>>> INFO 10:50:43,469 | org.apache.james.mailbox.**** >>>> copier.MailboxCopierImpl >>>> | >>>> Ready to copy source mailbox path=#private:admin@Florida-**** >>>> HIE.net:INBOX >>>> ERROR 10:50:43,481 | org.apache.james.mailbox.**** >>>> copier.MailboxCopierImpl >>>> | >>>> Mailbox 0 with path=#private:admin@Florida-****HIE.net:INBOX already >>>> exists. >>>> Mailbox with name=#private:admin@Florida-****HIE.net:INBOX already >>>> exists. >>>> at >>>> org.apache.james.mailbox.****store.StoreMailboxManager.**** >>>> createMailbox(** >>>> StoreMailboxManager.java:259) >>>> at >>>> org.apache.james.mailbox.****copier.MailboxCopierImpl.**** >>>> copyMailboxes(** >>>> MailboxCopierImpl.java:90) >>>> at >>>> org.apache.james.container.****spring.mailbox.** >>>> MailboxCopierManagement.copy(****MailboxCopierManagement.java:****76) >>>> at sun.reflect.****NativeMethodAccessorImpl.****invoke0(Native Method) >>>> at sun.reflect.****NativeMethodAccessorImpl.****invoke(Unknown Source) >>>> at sun.reflect.****DelegatingMethodAccessorImpl.****invoke(Unknown >>>> Source) >>>> at java.lang.reflect.Method.****invoke(Unknown Source) >>>> at com.sun.jmx.mbeanserver.****StandardMBeanIntrospector.** >>>> invokeM2(Unknown >>>> Source) >>>> at com.sun.jmx.mbeanserver.****StandardMBeanIntrospector.** >>>> invokeM2(Unknown >>>> Source) >>>> at com.sun.jmx.mbeanserver.****MBeanIntrospector.invokeM(****Unknown >>>> Source) >>>> at com.sun.jmx.mbeanserver.****PerInterface.invoke(Unknown Source) >>>> at com.sun.jmx.mbeanserver.****MBeanSupport.invoke(Unknown Source) >>>> at com.sun.jmx.interceptor.****DefaultMBeanServerInterceptor.**** >>>> invoke(Unknown >>>> Source) >>>> at com.sun.jmx.mbeanserver.****JmxMBeanServer.invoke(Unknown Source) >>>> at javax.management.remote.rmi.****RMIConnectionImpl.doOperation(** >>>> **Unknown >>>> Source) >>>> at javax.management.remote.rmi.****RMIConnectionImpl.access$200(*** >>>> *Unknown >>>> Source) >>>> at >>>> javax.management.remote.rmi.****RMIConnectionImpl$** >>>> PrivilegedOperation.run(****Unknown >>>> Source) >>>> at >>>> javax.management.remote.rmi.****RMIConnectionImpl.** >>>> doPrivilegedOperation(Unknown >>>> Source) >>>> at javax.management.remote.rmi.****RMIConnectionImpl.invoke(**** >>>> Unknown >>>> Source) >>>> at sun.reflect.****GeneratedMethodAccessor65.****invoke(Unknown >>>> Source) >>>> at sun.reflect.****DelegatingMethodAccessorImpl.****invoke(Unknown >>>> Source) >>>> at java.lang.reflect.Method.****invoke(Unknown Source) >>>> at sun.rmi.server.****UnicastServerRef.dispatch(****Unknown Source) >>>> at sun.rmi.transport.Transport$1.****run(Unknown Source) >>>> at java.security.****AccessController.doPrivileged(****Native Method) >>>> at sun.rmi.transport.Transport.****serviceCall(Unknown Source) >>>> at sun.rmi.transport.tcp.****TCPTransport.handleMessages(****Unknown >>>> Source) >>>> at sun.rmi.transport.tcp.****TCPTransport$**** >>>> ConnectionHandler.run0(Unknown >>>> Source) >>>> at sun.rmi.transport.tcp.****TCPTransport$**** >>>> ConnectionHandler.run(Unknown >>>> Source) >>>> at java.util.concurrent.****ThreadPoolExecutor$Worker.**** >>>> runTask(Unknown >>>> Source) >>>> at java.util.concurrent.****ThreadPoolExecutor$Worker.run(****Unknown >>>> Source) >>>> at java.lang.Thread.run(Unknown Source) >>>> ************ >>>> Thank you, >>>> Sai >>>> >>>> >>>> On Wed, Aug 3, 2011 at 10:34 AM, Eric Charles<[email protected]> wrote: >>>> >>>> Hi Sai, >>>> >>>>> >>>>> Before copy invocation, is your mailbox operational (receive/send mails >>>>> ok...) ? >>>>> >>>>> Could you send us the stacktrace you will find in the log file >>>>> (log/james-server.log) ? >>>>> >>>>> Thx. >>>>> >>>>> >>>>> On 03/08/11 14:47, Saibabu Vallurupalli wrote: >>>>> >>>>> Hi Eric, Thank you for confirming on this. >>>>> >>>>>> >>>>>> We just encountered a strange issue with backup and restore. If we >>>>>> don't >>>>>> have any emails in the user Inbox, backup works perfectly. If there >>>>>> are >>>>>> any >>>>>> users then jConsole throws exception saying unable to parse the >>>>>> message. >>>>>> >>>>>> Is there any other setting we are missing? We are following your >>>>>> instructions from link: >>>>>> https://svn.apache.org/repos/******asf/james/server/trunk/src/****<https://svn.apache.org/repos/****asf/james/server/trunk/src/**> >>>>>> <https://svn.apache.org/**repos/**asf/james/server/**trunk/src/**<https://svn.apache.org/repos/**asf/james/server/trunk/src/**> >>>>>> > >>>>>> >>>>>> site/xdoc/upgrade-database.****xml<https://svn.apache.org/** >>>>>> repos/asf/james/server/trunk/****src/site/xdoc/upgrade-**** >>>>>> database.xml<https://svn.**apache.org/repos/asf/james/** >>>>>> server/trunk/src/site/xdoc/**upgrade-database.xml<https://svn.apache.org/repos/asf/james/server/trunk/src/site/xdoc/upgrade-database.xml> >>>>>> > >>>>>> >>>>>> >>>>>>> >>>>>> >>>>>> Thanks, >>>>>> Sai >>>>>> >>>>>> >>>>>> On Wed, Aug 3, 2011 at 3:17 AM, Eric Charles<[email protected]> >>>>>> wrote: >>>>>> >>>>>> Hi, >>>>>> >>>>>> >>>>>>> If you copy mails from e.g. MailDir to JPA with JPAEncryptedMessage >>>>>>> in >>>>>>> persistence.xml, mails body and headers will be encrypted. >>>>>>> >>>>>>> Thx. >>>>>>> >>>>>>> >>>>>>> On 02/08/11 20:50, Saibabu Vallurupalli wrote: >>>>>>> >>>>>>> Hi Norman and Team, I have got a question on James upgrade - >>>>>>> >>>>>>> At present we are using James milestore 3 snapshot and we have our >>>>>>>> JAP >>>>>>>> configuration setup to use JPAMessage, now after upgrade to James >>>>>>>> 3-Beta2 >>>>>>>> we >>>>>>>> wanted to use JPAEncryptedMessage class in persistence.xml file for >>>>>>>> email >>>>>>>> encryption. After restoring the data from backup using the steps >>>>>>>> provided >>>>>>>> in >>>>>>>> site to backup and restore. Will the OLD email content be encrypted >>>>>>>> or >>>>>>>> NOT? >>>>>>>> How this situation can be handled? >>>>>>>> >>>>>>>> Please advise. >>>>>>>> >>>>>>>> Thanks, Sai >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> >>>>>>> Eric Charles >>>>>>> http://about.echarles.net >>>>>>> >>>>>>> ------------------------------********------------------------** >>>>>>> --**--** >>>>>>> --**--------- >>>>>>> To unsubscribe, e-mail: server-dev-unsubscribe@james.******** >>>>>>> apache.org< >>>>>>> server-dev-**unsubscribe@**jam**es.apache.org<http://james.apache.org> >>>>>>> <unsubscribe@**james.apache.org <[email protected]>> >>>>>>> >>>>>>> <server-dev-**unsubscribe@**james.apache.org<[email protected]> >>>>>>> <server-dev-**[email protected]<[email protected]> >>>>>>> > >>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> For additional commands, e-mail: [email protected].*** >>>>>>>> ** >>>>>>>> >>>>>>> ***org< >>>>>>> server-dev-help@james.****apache**.org<http://apache.org**>< >>>>>>> >>>>>>> server-dev-help@james.**apache**.org <http://apache.org>< >>>>>>> server-dev-help@james.**apache.org<[email protected]> >>>>>>> > >>>>>>> >>>>>>>> >>>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> -- >>>>> Eric Charles >>>>> http://about.echarles.net >>>>> >>>>> ------------------------------******--------------------------**--** >>>>> --**--------- >>>>> To unsubscribe, e-mail: server-dev-unsubscribe@james.******apache.org< >>>>> server-dev-**unsubscribe@**james.apache.org<[email protected]> >>>>> <server-dev-**[email protected]<[email protected]> >>>>> > >>>>> >>>>>> >>>>>> For additional commands, e-mail: [email protected].*** >>>>> ***org< >>>>> server-dev-help@james.**apache**.org <http://apache.org>< >>>>> server-dev-help@james.**apache.org <[email protected]> >>>>> >> >>>>> >>>>> >>>>> >>>>> >>>> >>> -- >>> Eric Charles >>> http://about.echarles.net >>> >>> ------------------------------****----------------------------** >>> --**--------- >>> To unsubscribe, e-mail: server-dev-unsubscribe@james.****apache.org< >>> server-dev-**[email protected]<[email protected]> >>> > >>> For additional commands, e-mail: [email protected].****org< >>> server-dev-help@james.**apache.org <[email protected]>> >>> >>> >>> >> > > -- > Eric Charles > http://about.echarles.net > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: > server-dev-unsubscribe@james.**apache.org<[email protected]> > For additional commands, e-mail: > [email protected].**org<[email protected]> > >
