james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Charles <e...@apache.org>
Subject Re: Question on upgrade process
Date Wed, 03 Aug 2011 15:15:58 GMT
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<eric@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<eric@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<server-dev-unsubscribe@james.apache.org>
>>>>>
>>>> For additional commands, e-mail: server-dev-help@james.apache.****org<
>>>> server-dev-help@james.**apache.org<server-dev-help@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>
>> For additional commands, e-mail: server-dev-help@james.apache.**org<server-dev-help@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


Mime
View raw message