You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Saibabu Vallurupalli <sa...@gmail.com> on 2011/08/02 20:50:27 UTC

Question on upgrade process

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

Re: Question on upgrade process

Posted by Saibabu Vallurupalli <sa...@gmail.com>.
I will check with my management to have Apache James in Linux. But I wont
think it is possible because we are already in production phase.

Any other workaround will be great. Even hacking I can try working on your
advises.

Thanks, Sai.

On Thu, Aug 4, 2011 at 9:10 AM, Eric Charles <er...@apache.org> wrote:

> Oops, I forgot we desactivated jcr mailbox due to incompatibility on lucene
> versions...
>
> Any chance to run your migration on a Linux box?
> Otherwise, you will have to hack the spring files to define a second jpa
> connection, but it implies adding important and tricky configurations (I
> don't even have those).
>
> Thx.
>
>
> On 04/08/11 14:58, Saibabu Vallurupalli wrote:
>
>> Hi Eric,
>>
>> jcr-mailboxmanager throws error in jConsole complaining about
>> InvalidStateException.
>> java.lang.**ClassNotFoundException:
>> org.apache.openjpa.**persistence.**InvalidStateException (no security
>> manager:
>> RMI class loader disabled).
>>
>> Any suggestions?
>>
>> Thanks,
>> Sai
>>
>>
>> On Thu, Aug 4, 2011 at 2:30 AM, Eric Charles<er...@apache.org>  wrote:
>>
>>  Hi Sai,
>>>
>>> By design, MailDir is not supported on Windows,so you must forget MailDir
>>> (or switch to Linux).
>>>
>>> There's nothing special to do before invoking the copy via JConsole,
>>> except
>>> having an empty toMailbox.
>>>
>>> You could try to copy from JPA to JCR (use jcr-mailboxmanager). It's
>>> slower, but should work.
>>>
>>> Thx.
>>>
>>>
>>> On 04/08/11 04:00, Saibabu Vallurupalli wrote:
>>>
>>>  Hi Eric,
>>>>
>>>> I am seeing a comment in james-mailbox-maildir-context.****xml file
>>>> "<!--
>>>> WARNING: Maildir does only work on UNIX like operation systems -->".
>>>> We are using Windows machine for James. Also, Is there anything I need
>>>> to
>>>> modify before using jConsole to copy mails from my JPA (MySQL Database)
>>>> to
>>>> MailDir and ViceVersa?
>>>>
>>>> Please advise.
>>>>
>>>> Thanks, Sai.
>>>>
>>>> On Wed, Aug 3, 2011 at 12:31 PM, Saibabu Vallurupalli<
>>>> saibabu.vallurupalli@gmail.com****>   wrote:
>>>>
>>>>  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<eric.charles@u-**
>>>>> mangate.com<eric.charles@u-**mangate.com <er...@u-mangate.com>
>>>>> >>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<er...@apache.org>
>>>>>>> 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<er...@apache.org>
>>>>>>>>> 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/**
>>>>>>>>>>> **<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/**<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/****<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/**<http://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/
>>>>>>>>>>> **** <https://svn.apache.org/**>
>>>>>>>>>>> repos/asf/james/server/trunk/********src/site/xdoc/upgrade-*****
>>>>>>>>>>> *
>>>>>>>>>>> database.xml<https://svn.****apa**che.org/repos/asf/james/****<http://che.org/repos/asf/james/**>
>>>>>>>>>>> <http://apache.org/repos/asf/**james/**<http://apache.org/repos/asf/james/**>
>>>>>>>>>>> >
>>>>>>>>>>>
>>>>>>>>>>> server/trunk/src/site/xdoc/******upgrade-database.xml<https://**
>>>>>>>>>>> **
>>>>>>>>>>> svn.apache.org/repos/asf/****james/server/trunk/src/site/**<http://svn.apache.org/repos/asf/**james/server/trunk/src/site/**>
>>>>>>>>>>> xdoc/upgrade-database.xml<http**s://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<er...@apache.org>
>>>>>>>>>>>  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<http://james.**apache.org<http://james.apache.org>
>>>>>>>>>>>> >>
>>>>>>>>>>>> <unsubscribe@**james.apache.****org<http://james.apache.org><
>>>>>>>>>>>>
>>>>>>>>>>>> unsubscribe@james.apache.****org<un...@james.apache.org>
>>>>>>>>>>>> >>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> <server-dev-**unsubscribe@****ja**mes.apache.org<http://**
>>>>>>>>>>>> james.apache.org <http://james.apache.org>>
>>>>>>>>>>>>
>>>>>>>>>>>> <unsubscribe@**james.apache.**org <http://james.apache.org><
>>>>>>>>>>>> unsubscribe@james.apache.**org <un...@james.apache.org>>>
>>>>>>>>>>>> <server-dev-**unsubscribe@**ja**mes.apache.org<http://james.apache.org>
>>>>>>>>>>>> <unsubscribe@**james.apache.org <un...@james.apache.org>>
>>>>>>>>>>>> <se...@james.apache.org>
>>>>>>>>>>>> <se...@james.apache.org>
>>>>>>>>>>>> >
>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>    For additional commands, e-mail:
>>>>>>>>>>>> server-dev-help@james.apache.*
>>>>>>>>>>>> ****
>>>>>>>>>>>>
>>>>>>>>>>>>  **
>>>>>>>>>>>>>
>>>>>>>>>>>>>  ***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<http://apache.org**><
>>>>>>>>>>>> server-dev-help@james.**apache**.org <http://apache.org><
>>>>>>>>>>>> server-dev-help@james.**apache.org<se...@james.apache.org>
>>>>>>>>>>>> >
>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>   --
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>  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 <http://james.apache.org>>
>>>>>>>>>> <unsubscribe@**james.apache.**org <http://james.apache.org><
>>>>>>>>>> unsubscribe@james.apache.**org <un...@james.apache.org>>>
>>>>>>>>>> <server-dev-**unsubscribe@**ja**mes.apache.org<http://james.apache.org>
>>>>>>>>>> <unsubscribe@**james.apache.org <un...@james.apache.org>>
>>>>>>>>>> <se...@james.apache.org>
>>>>>>>>>> <se...@james.apache.org>
>>>>>>>>>> >
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>   For additional commands, e-mail: server-dev-help@james.apache.*
>>>>>>>>>>> ****
>>>>>>>>>>> **
>>>>>>>>>>>
>>>>>>>>>>>  ***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 <http://apache.org><
>>>>>>>>>> server-dev-help@james.**apache.org<se...@james.apache.org>
>>>>>>>>>> >
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>   --
>>>>>>>>>
>>>>>>>> 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 <un...@james.apache.org>>
>>>>>>>> <se...@james.apache.org>
>>>>>>>> <se...@james.apache.org>
>>>>>>>> >
>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>>  For additional commands, e-mail: server-dev-help@james.apache.***
>>>>>>>>> **
>>>>>>>>>
>>>>>>>> ***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<se...@james.apache.org>
>>>>>>>> >
>>>>>>>>
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>  --
>>>>>> Eric Charles
>>>>>> http://about.echarles.net
>>>>>>
>>>>>> ------------------------------******--------------------------**--**
>>>>>> --**---------
>>>>>> To unsubscribe, e-mail: server-dev-unsubscribe@james.******apache.org
>>>>>> <
>>>>>> server-dev-**unsubscribe@**james.apache.org<un...@james.apache.org>
>>>>>> <se...@james.apache.org>
>>>>>> >
>>>>>>
>>>>>>>
>>>>>>>  For additional commands, e-mail: server-dev-help@james.apache.***
>>>>>> ***org<
>>>>>> server-dev-help@james.**apache**.org <http://apache.org><
>>>>>> server-dev-help@james.**apache.org <se...@james.apache.org>
>>>>>> >>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>> --
>>> Eric Charles
>>> http://about.echarles.net
>>>
>>> ------------------------------****----------------------------**
>>> --**---------
>>> To unsubscribe, e-mail: server-dev-unsubscribe@james.****apache.org<
>>> server-dev-**unsubscribe@james.apache.org<se...@james.apache.org>
>>> >
>>> For additional commands, e-mail: server-dev-help@james.apache.****org<
>>> server-dev-help@james.**apache.org <se...@james.apache.org>>
>>>
>>>
>>>
>>
>
> --
> Eric Charles
> http://about.echarles.net
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.**apache.org<se...@james.apache.org>
> For additional commands, e-mail: server-dev-help@james.apache.**org<se...@james.apache.org>
>
>

Re: Question on upgrade process

Posted by Eric Charles <er...@apache.org>.
Oops, I forgot we desactivated jcr mailbox due to incompatibility on 
lucene versions...

Any chance to run your migration on a Linux box?
Otherwise, you will have to hack the spring files to define a second jpa 
connection, but it implies adding important and tricky configurations (I 
don't even have those).

Thx.

On 04/08/11 14:58, Saibabu Vallurupalli wrote:
> Hi Eric,
>
> jcr-mailboxmanager throws error in jConsole complaining about
> InvalidStateException.
> java.lang.ClassNotFoundException:
> org.apache.openjpa.persistence.InvalidStateException (no security manager:
> RMI class loader disabled).
>
> Any suggestions?
>
> Thanks,
> Sai
>
>
> On Thu, Aug 4, 2011 at 2:30 AM, Eric Charles<er...@apache.org>  wrote:
>
>> Hi Sai,
>>
>> By design, MailDir is not supported on Windows,so you must forget MailDir
>> (or switch to Linux).
>>
>> There's nothing special to do before invoking the copy via JConsole, except
>> having an empty toMailbox.
>>
>> You could try to copy from JPA to JCR (use jcr-mailboxmanager). It's
>> slower, but should work.
>>
>> Thx.
>>
>>
>> On 04/08/11 04:00, Saibabu Vallurupalli wrote:
>>
>>> Hi Eric,
>>>
>>> I am seeing a comment in james-mailbox-maildir-context.**xml file "<!--
>>> WARNING: Maildir does only work on UNIX like operation systems -->".
>>> We are using Windows machine for James. Also, Is there anything I need to
>>> modify before using jConsole to copy mails from my JPA (MySQL Database) to
>>> MailDir and ViceVersa?
>>>
>>> Please advise.
>>>
>>> Thanks, Sai.
>>>
>>> On Wed, Aug 3, 2011 at 12:31 PM, Saibabu Vallurupalli<
>>> saibabu.vallurupalli@gmail.com**>   wrote:
>>>
>>>   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<eric.charles@u-**
>>>> mangate.com<er...@u-mangate.com>>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<er...@apache.org>
>>>>>> 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<er...@apache.org>
>>>>>>>> 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/**>
>>>>>>>>>>>
>>>>>>>>>> <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.**apa**che.org/repos/asf/james/**<http://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<er...@apache.org>
>>>>>>>>>>   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<http://james.apache.org>>
>>>>>>>>>>> <unsubscribe@**james.apache.**org<http://james.apache.org><
>>>>>>>>>>> unsubscribe@james.apache.**org<un...@james.apache.org>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> <server-dev-**unsubscribe@**ja**mes.apache.org<http://james.apache.org>
>>>>>>>>>>> <un...@james.apache.org>>
>>>>>>>>>>> <se...@james.apache.org>
>>>>>>>>>>> <se...@james.apache.org>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>    For additional commands, e-mail: server-dev-help@james.apache.*
>>>>>>>>>>> ****
>>>>>>>>>>>
>>>>>>>>>>>> **
>>>>>>>>>>>>
>>>>>>>>>>>>   ***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<http://apache.org><
>>>>>>>>>>> server-dev-help@james.**apache.org<se...@james.apache.org>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>    --
>>>>>>>>>>
>>>>>>>>> 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>
>>>>>>>>> <un...@james.apache.org>>
>>>>>>>>> <se...@james.apache.org>
>>>>>>>>> <se...@james.apache.org>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>   For additional commands, e-mail: server-dev-help@james.apache.***
>>>>>>>>>> **
>>>>>>>>>>
>>>>>>>>> ***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<se...@james.apache.org>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>   --
>>>>>>> Eric Charles
>>>>>>> http://about.echarles.net
>>>>>>>
>>>>>>> ------------------------------******--------------------------**--**
>>>>>>> --**---------
>>>>>>> To unsubscribe, e-mail: server-dev-unsubscribe@james.******apache.org
>>>>>>> <
>>>>>>> server-dev-**unsubscribe@**james.apache.org<un...@james.apache.org>
>>>>>>> <se...@james.apache.org>
>>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>>   For additional commands, e-mail: server-dev-help@james.apache.***
>>>>>>> ***org<
>>>>>>> server-dev-help@james.**apache**.org<http://apache.org><
>>>>>>> server-dev-help@james.**apache.org<se...@james.apache.org>
>>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>> --
>>>>> Eric Charles
>>>>> http://about.echarles.net
>>>>>
>>>>> ------------------------------****----------------------------**
>>>>> --**---------
>>>>> To unsubscribe, e-mail: server-dev-unsubscribe@james.****apache.org<
>>>>> server-dev-**unsubscribe@james.apache.org<se...@james.apache.org>
>>>>>>
>>>>> For additional commands, e-mail: server-dev-help@james.apache.****org<
>>>>> server-dev-help@james.**apache.org<se...@james.apache.org>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>> --
>> Eric Charles
>> http://about.echarles.net
>>
>> ------------------------------**------------------------------**---------
>> To unsubscribe, e-mail: server-dev-unsubscribe@james.**apache.org<se...@james.apache.org>
>> For additional commands, e-mail: server-dev-help@james.apache.**org<se...@james.apache.org>
>>
>>
>


-- 
Eric Charles
http://about.echarles.net

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: Question on upgrade process

Posted by Saibabu Vallurupalli <sa...@gmail.com>.
Hi Eric,

jcr-mailboxmanager throws error in jConsole complaining about
InvalidStateException.
java.lang.ClassNotFoundException:
org.apache.openjpa.persistence.InvalidStateException (no security manager:
RMI class loader disabled).

Any suggestions?

Thanks,
Sai


On Thu, Aug 4, 2011 at 2:30 AM, Eric Charles <er...@apache.org> wrote:

> Hi Sai,
>
> By design, MailDir is not supported on Windows,so you must forget MailDir
> (or switch to Linux).
>
> There's nothing special to do before invoking the copy via JConsole, except
> having an empty toMailbox.
>
> You could try to copy from JPA to JCR (use jcr-mailboxmanager). It's
> slower, but should work.
>
> Thx.
>
>
> On 04/08/11 04:00, Saibabu Vallurupalli wrote:
>
>> Hi Eric,
>>
>> I am seeing a comment in james-mailbox-maildir-context.**xml file "<!--
>> WARNING: Maildir does only work on UNIX like operation systems -->".
>> We are using Windows machine for James. Also, Is there anything I need to
>> modify before using jConsole to copy mails from my JPA (MySQL Database) to
>> MailDir and ViceVersa?
>>
>> Please advise.
>>
>> Thanks, Sai.
>>
>> On Wed, Aug 3, 2011 at 12:31 PM, Saibabu Vallurupalli<
>> saibabu.vallurupalli@gmail.com**>  wrote:
>>
>>  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<eric.charles@u-**
>>> mangate.com <er...@u-mangate.com>>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<er...@apache.org>
>>>>> 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<er...@apache.org>
>>>>>>> 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/**>
>>>>>>>>> >
>>>>>>>>> <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.**apa**che.org/repos/asf/james/**<http://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<er...@apache.org>
>>>>>>>>>  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 <http://james.apache.org>>
>>>>>>>>>> <unsubscribe@**james.apache.**org <http://james.apache.org><
>>>>>>>>>> unsubscribe@james.apache.**org <un...@james.apache.org>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> <server-dev-**unsubscribe@**ja**mes.apache.org<http://james.apache.org>
>>>>>>>>>> <unsubscribe@**james.apache.org <un...@james.apache.org>>
>>>>>>>>>> <se...@james.apache.org>
>>>>>>>>>> <se...@james.apache.org>
>>>>>>>>>> >
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>   For additional commands, e-mail: server-dev-help@james.apache.*
>>>>>>>>>> ****
>>>>>>>>>>
>>>>>>>>>>> **
>>>>>>>>>>>
>>>>>>>>>>>  ***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 <http://apache.org><
>>>>>>>>>> server-dev-help@james.**apache.org<se...@james.apache.org>
>>>>>>>>>> >
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>   --
>>>>>>>>>
>>>>>>>> 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 <un...@james.apache.org>>
>>>>>>>> <se...@james.apache.org>
>>>>>>>> <se...@james.apache.org>
>>>>>>>> >
>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>>  For additional commands, e-mail: server-dev-help@james.apache.***
>>>>>>>>> **
>>>>>>>>>
>>>>>>>> ***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<se...@james.apache.org>
>>>>>>>> >
>>>>>>>>
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>  --
>>>>>> Eric Charles
>>>>>> http://about.echarles.net
>>>>>>
>>>>>> ------------------------------******--------------------------**--**
>>>>>> --**---------
>>>>>> To unsubscribe, e-mail: server-dev-unsubscribe@james.******apache.org
>>>>>> <
>>>>>> server-dev-**unsubscribe@**james.apache.org<un...@james.apache.org>
>>>>>> <se...@james.apache.org>
>>>>>> >
>>>>>>
>>>>>>>
>>>>>>>  For additional commands, e-mail: server-dev-help@james.apache.***
>>>>>> ***org<
>>>>>> server-dev-help@james.**apache**.org <http://apache.org><
>>>>>> server-dev-help@james.**apache.org <se...@james.apache.org>
>>>>>> >>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>> --
>>>> Eric Charles
>>>> http://about.echarles.net
>>>>
>>>> ------------------------------****----------------------------**
>>>> --**---------
>>>> To unsubscribe, e-mail: server-dev-unsubscribe@james.****apache.org<
>>>> server-dev-**unsubscribe@james.apache.org<se...@james.apache.org>
>>>> >
>>>> For additional commands, e-mail: server-dev-help@james.apache.****org<
>>>> server-dev-help@james.**apache.org <se...@james.apache.org>>
>>>>
>>>>
>>>>
>>>
>>
>
> --
> Eric Charles
> http://about.echarles.net
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.**apache.org<se...@james.apache.org>
> For additional commands, e-mail: server-dev-help@james.apache.**org<se...@james.apache.org>
>
>

Re: Question on upgrade process

Posted by Eric Charles <er...@apache.org>.
Hi Sai,

By design, MailDir is not supported on Windows,so you must forget 
MailDir (or switch to Linux).

There's nothing special to do before invoking the copy via JConsole, 
except having an empty toMailbox.

You could try to copy from JPA to JCR (use jcr-mailboxmanager). It's 
slower, but should work.

Thx.

On 04/08/11 04:00, Saibabu Vallurupalli wrote:
> Hi Eric,
>
> I am seeing a comment in james-mailbox-maildir-context.xml file "<!--
> WARNING: Maildir does only work on UNIX like operation systems -->".
> We are using Windows machine for James. Also, Is there anything I need to
> modify before using jConsole to copy mails from my JPA (MySQL Database) to
> MailDir and ViceVersa?
>
> Please advise.
>
> Thanks, Sai.
>
> On Wed, Aug 3, 2011 at 12:31 PM, Saibabu Vallurupalli<
> saibabu.vallurupalli@gmail.com>  wrote:
>
>> 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<er...@u-mangate.com>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<er...@apache.org>   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<er...@apache.org>
>>>>>> 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<er...@apache.org>
>>>>>>>>   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>
>>>>>>>>> <un...@james.apache.org>>
>>>>>>>>>
>>>>>>>>> <se...@james.apache.org>
>>>>>>>>> <se...@james.apache.org>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>    For additional commands, e-mail: server-dev-help@james.apache.***
>>>>>>>>>> **
>>>>>>>>>>
>>>>>>>>> ***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<se...@james.apache.org>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>   --
>>>>>>> Eric Charles
>>>>>>> http://about.echarles.net
>>>>>>>
>>>>>>> ------------------------------******--------------------------**--**
>>>>>>> --**---------
>>>>>>> To unsubscribe, e-mail: server-dev-unsubscribe@james.******apache.org
>>>>>>> <
>>>>>>> server-dev-**unsubscribe@**james.apache.org<un...@james.apache.org>
>>>>>>> <se...@james.apache.org>
>>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>>   For additional commands, e-mail: server-dev-help@james.apache.***
>>>>>>> ***org<
>>>>>>> server-dev-help@james.**apache**.org<http://apache.org><
>>>>>>> server-dev-help@james.**apache.org<se...@james.apache.org>
>>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>> --
>>>>> Eric Charles
>>>>> http://about.echarles.net
>>>>>
>>>>> ------------------------------****----------------------------**
>>>>> --**---------
>>>>> To unsubscribe, e-mail: server-dev-unsubscribe@james.****apache.org<
>>>>> server-dev-**unsubscribe@james.apache.org<se...@james.apache.org>
>>>>>>
>>>>> For additional commands, e-mail: server-dev-help@james.apache.****org<
>>>>> server-dev-help@james.**apache.org<se...@james.apache.org>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>> --
>>> Eric Charles
>>> http://about.echarles.net
>>>
>>> ------------------------------**------------------------------**---------
>>> To unsubscribe, e-mail: server-dev-unsubscribe@james.**apache.org<se...@james.apache.org>
>>> For additional commands, e-mail: server-dev-help@james.apache.**org<se...@james.apache.org>
>>>
>>>
>>
>


-- 
Eric Charles
http://about.echarles.net

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: Question on upgrade process

Posted by Saibabu Vallurupalli <sa...@gmail.com>.
Hi Eric,

I am seeing a comment in james-mailbox-maildir-context.xml file "<!--
WARNING: Maildir does only work on UNIX like operation systems -->".
We are using Windows machine for James. Also, Is there anything I need to
modify before using jConsole to copy mails from my JPA (MySQL Database) to
MailDir and ViceVersa?

Please advise.

Thanks, Sai.

On Wed, Aug 3, 2011 at 12:31 PM, Saibabu Vallurupalli <
saibabu.vallurupalli@gmail.com> wrote:

> 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 <er...@u-mangate.com>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<er...@apache.org>  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<er...@apache.org>
>>>>> 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<er...@apache.org>
>>>>>>>  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 <un...@james.apache.org>>
>>>>>>>>
>>>>>>>> <se...@james.apache.org>
>>>>>>>> <se...@james.apache.org>
>>>>>>>> >
>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>   For additional commands, e-mail: server-dev-help@james.apache.***
>>>>>>>>> **
>>>>>>>>>
>>>>>>>> ***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<se...@james.apache.org>
>>>>>>>> >
>>>>>>>>
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>  --
>>>>>> Eric Charles
>>>>>> http://about.echarles.net
>>>>>>
>>>>>> ------------------------------******--------------------------**--**
>>>>>> --**---------
>>>>>> To unsubscribe, e-mail: server-dev-unsubscribe@james.******apache.org
>>>>>> <
>>>>>> server-dev-**unsubscribe@**james.apache.org<un...@james.apache.org>
>>>>>> <se...@james.apache.org>
>>>>>> >
>>>>>>
>>>>>>>
>>>>>>>  For additional commands, e-mail: server-dev-help@james.apache.***
>>>>>> ***org<
>>>>>> server-dev-help@james.**apache**.org <http://apache.org><
>>>>>> server-dev-help@james.**apache.org <se...@james.apache.org>
>>>>>> >>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>> --
>>>> Eric Charles
>>>> http://about.echarles.net
>>>>
>>>> ------------------------------****----------------------------**
>>>> --**---------
>>>> To unsubscribe, e-mail: server-dev-unsubscribe@james.****apache.org<
>>>> server-dev-**unsubscribe@james.apache.org<se...@james.apache.org>
>>>> >
>>>> For additional commands, e-mail: server-dev-help@james.apache.****org<
>>>> server-dev-help@james.**apache.org <se...@james.apache.org>>
>>>>
>>>>
>>>>
>>>
>>
>> --
>> Eric Charles
>> http://about.echarles.net
>>
>> ------------------------------**------------------------------**---------
>> To unsubscribe, e-mail: server-dev-unsubscribe@james.**apache.org<se...@james.apache.org>
>> For additional commands, e-mail: server-dev-help@james.apache.**org<se...@james.apache.org>
>>
>>
>

Re: Question on upgrade process

Posted by Saibabu Vallurupalli <sa...@gmail.com>.
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 <er...@u-mangate.com>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<er...@apache.org>  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<er...@apache.org>   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<er...@apache.org>
>>>>>>  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 <un...@james.apache.org>>
>>>>>>>
>>>>>>> <se...@james.apache.org>
>>>>>>> <se...@james.apache.org>
>>>>>>> >
>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>   For additional commands, e-mail: server-dev-help@james.apache.***
>>>>>>>> **
>>>>>>>>
>>>>>>> ***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<se...@james.apache.org>
>>>>>>> >
>>>>>>>
>>>>>>>>
>>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>  --
>>>>> Eric Charles
>>>>> http://about.echarles.net
>>>>>
>>>>> ------------------------------******--------------------------**--**
>>>>> --**---------
>>>>> To unsubscribe, e-mail: server-dev-unsubscribe@james.******apache.org<
>>>>> server-dev-**unsubscribe@**james.apache.org<un...@james.apache.org>
>>>>> <se...@james.apache.org>
>>>>> >
>>>>>
>>>>>>
>>>>>>  For additional commands, e-mail: server-dev-help@james.apache.***
>>>>> ***org<
>>>>> server-dev-help@james.**apache**.org <http://apache.org><
>>>>> server-dev-help@james.**apache.org <se...@james.apache.org>
>>>>> >>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>> --
>>> Eric Charles
>>> http://about.echarles.net
>>>
>>> ------------------------------****----------------------------**
>>> --**---------
>>> To unsubscribe, e-mail: server-dev-unsubscribe@james.****apache.org<
>>> server-dev-**unsubscribe@james.apache.org<se...@james.apache.org>
>>> >
>>> For additional commands, e-mail: server-dev-help@james.apache.****org<
>>> server-dev-help@james.**apache.org <se...@james.apache.org>>
>>>
>>>
>>>
>>
>
> --
> Eric Charles
> http://about.echarles.net
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.**apache.org<se...@james.apache.org>
> For additional commands, e-mail: server-dev-help@james.apache.**org<se...@james.apache.org>
>
>

Re: Question on upgrade process

Posted by Eric Charles <er...@u-mangate.com>.
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<er...@apache.org>  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<er...@apache.org>   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/**>
>>>>> 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<er...@apache.org>    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@**james.apache.org<un...@james.apache.org>
>>>>>> <se...@james.apache.org>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>>   For additional commands, e-mail: server-dev-help@james.apache.***
>>>>>> ***org<
>>>>>> server-dev-help@james.**apache**.org<http://apache.org><
>>>>>> server-dev-help@james.**apache.org<se...@james.apache.org>
>>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>> --
>>>> Eric Charles
>>>> http://about.echarles.net
>>>>
>>>> ------------------------------****----------------------------**
>>>> --**---------
>>>> To unsubscribe, e-mail: server-dev-unsubscribe@james.****apache.org<
>>>> server-dev-**unsubscribe@james.apache.org<se...@james.apache.org>
>>>>>
>>>> For additional commands, e-mail: server-dev-help@james.apache.****org<
>>>> server-dev-help@james.**apache.org<se...@james.apache.org>>
>>>>
>>>>
>>>>
>>>
>>
>> --
>> Eric Charles
>> http://about.echarles.net
>>
>> ------------------------------**------------------------------**---------
>> To unsubscribe, e-mail: server-dev-unsubscribe@james.**apache.org<se...@james.apache.org>
>> For additional commands, e-mail: server-dev-help@james.apache.**org<se...@james.apache.org>
>>
>>
>


-- 
Eric Charles
http://about.echarles.net

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: Question on upgrade process

Posted by Saibabu Vallurupalli <sa...@gmail.com>.
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 <er...@apache.org> 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<er...@apache.org>  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/**>
>>>> 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<er...@apache.org>   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@**james.apache.org<un...@james.apache.org>
>>>>> <se...@james.apache.org>
>>>>> >
>>>>>
>>>>>
>>>>>>  For additional commands, e-mail: server-dev-help@james.apache.***
>>>>> ***org<
>>>>> server-dev-help@james.**apache**.org <http://apache.org><
>>>>> server-dev-help@james.**apache.org <se...@james.apache.org>
>>>>> >>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>> --
>>> Eric Charles
>>> http://about.echarles.net
>>>
>>> ------------------------------****----------------------------**
>>> --**---------
>>> To unsubscribe, e-mail: server-dev-unsubscribe@james.****apache.org<
>>> server-dev-**unsubscribe@james.apache.org<se...@james.apache.org>
>>> >
>>> For additional commands, e-mail: server-dev-help@james.apache.****org<
>>> server-dev-help@james.**apache.org <se...@james.apache.org>>
>>>
>>>
>>>
>>
>
> --
> Eric Charles
> http://about.echarles.net
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.**apache.org<se...@james.apache.org>
> For additional commands, e-mail: server-dev-help@james.apache.**org<se...@james.apache.org>
>
>

Re: Question on upgrade process

Posted by Eric Charles <er...@apache.org>.
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<er...@apache.org>  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/**
>>> 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<er...@apache.org>   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@james.apache.org<se...@james.apache.org>
>>>>>
>>>> For additional commands, e-mail: server-dev-help@james.apache.****org<
>>>> server-dev-help@james.**apache.org<se...@james.apache.org>>
>>>>
>>>>
>>>>
>>>
>>
>> --
>> Eric Charles
>> http://about.echarles.net
>>
>> ------------------------------**------------------------------**---------
>> To unsubscribe, e-mail: server-dev-unsubscribe@james.**apache.org<se...@james.apache.org>
>> For additional commands, e-mail: server-dev-help@james.apache.**org<se...@james.apache.org>
>>
>>
>


-- 
Eric Charles
http://about.echarles.net

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: Question on upgrade process

Posted by Saibabu Vallurupalli <sa...@gmail.com>.
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 <er...@apache.org> 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/**
>> 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<er...@apache.org>  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@james.apache.org<se...@james.apache.org>
>>> >
>>> For additional commands, e-mail: server-dev-help@james.apache.****org<
>>> server-dev-help@james.**apache.org <se...@james.apache.org>>
>>>
>>>
>>>
>>
>
> --
> Eric Charles
> http://about.echarles.net
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.**apache.org<se...@james.apache.org>
> For additional commands, e-mail: server-dev-help@james.apache.**org<se...@james.apache.org>
>
>

Re: Question on upgrade process

Posted by Eric Charles <er...@apache.org>.
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/site/xdoc/upgrade-database.xml
>
> Thanks,
> Sai
>
>
> On Wed, Aug 3, 2011 at 3:17 AM, Eric Charles<er...@apache.org>  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<se...@james.apache.org>
>> For additional commands, e-mail: server-dev-help@james.apache.**org<se...@james.apache.org>
>>
>>
>


-- 
Eric Charles
http://about.echarles.net

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: Question on upgrade process

Posted by Saibabu Vallurupalli <sa...@gmail.com>.
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/site/xdoc/upgrade-database.xml

Thanks,
Sai


On Wed, Aug 3, 2011 at 3:17 AM, Eric Charles <er...@apache.org> 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<se...@james.apache.org>
> For additional commands, e-mail: server-dev-help@james.apache.**org<se...@james.apache.org>
>
>

Re: Question on upgrade process

Posted by Eric Charles <er...@apache.org>.
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
For additional commands, e-mail: server-dev-help@james.apache.org