Damned it!

Difficult to find any other advice...
Anyone on ml with other ideas?

Maybe:
- It seems you are able to rebuild. Could you rebuild the tagged beta3 with the new MailboxCopierManagement class [1] which logs the exception and send the log with the exception.
- Is the backuped maildir operational (can you read it)?
- Is the configured jpa connection operation (can you create domains, users and send/read mails before trying to restore)?

Thx.

[1] http://svn.apache.org/repos/asf/james/server/trunk/container-spring/src/main/java/org/apache/james/container/spring/mailbox/MailboxCopierManagement.java


On 25/08/11 15:47, Saibabu Vallurupalli wrote:
Hi Eric,

We tried various options and restore is still not working in beta2 and beta3
releases. The options we tried are below:

On Linux (CentOS), MySQL Database, used maildir/jpa for copy and store
viceversa.
- Installed M3-SNAPSHOT, was able to successfully take the backup and also
was able to restore using the same version.
- Installed Beta2 and tried to restore the same content backup took in the
previous test. Got the exception and we sent this in this email chain
already.
- Installed Beta3 and tried to restore the same, it is same issue as Beta2.

We have been trying this since last 2 weeks just to restore the data from
maildir to jpa and unable to proceed with this. Any help regarding this is
greatly appreciated.

Thank you very much in advance.

Thanks, Sai

On Mon, Aug 22, 2011 at 6:49 AM, Eric Charles<e...@apache.org>  wrote:

Hi Sai,

The very good news is that you took backup from M3-SNAPSHOT JPA to maildir.
An additional good news is that you would configure M3-SNAPSHOT to work with
that backuped version (simply read mailboxes for example).

If you can access that backuped maildir version with your M3-SNAPSHOT, I'm
very confident that you will be able to restore it to a newer James version
on a JPA mailbox

Btw, we just released yesterday james 3.0-beta3. Don't hesitate to achieve
your restore on that version (http://james.apache.org/**
download.cgi#Apache_James_**Server<http://james.apache.org/download.cgi#Apache_James_Server>
)

Thx.



On 22/08/11 12:09, Saibabu Vallurupalli wrote:

  Hi Eric,

You remembered correct. Last time I was trying to copy mails from JPA to
JCR
and JCR to JPA and was not successful on Windows. So, We have got a linux
environment and trying to use maildir functionality.

I was successful in taking backup from JPA to MailDir on Linux (CentOs).
Now, I am trying to restore and having problems.

Backup version is 3.0-M3-SNAPSHOT upgraded version is 3.0-Beta2 version.

I will try to use the same jvm as James is running and also will try the
other options as suggested.

Thanks, Sai

On Mon, Aug 22, 2011 at 12:42 AM, Eric Charles<e...@apache.org>   wrote:


On 22/08/11 03:10, Saibabu Vallurupalli wrote:

Hi Eric,

Vanessa and I work on same project. I reviewed all log files and there
are
no errors or exceptions. Though this error got initiated from
MailboxCopierManagement.java line#83 down the line the root cause looks
like
JMX Console related.
The JMX Console is unable to execute copy method. I have installed JDK 7
the
latest version and invoking jConsole from JKD/bin directory. Is this is
the
same way you all try to use jConsole or different? Do we need to set any
classpath to get access to these methods?


I would run JConsole in the same JVM as James is runing.
JDK7 is ambitious, and would run in JDK6 to be more sure.

There should be nothing to add on the classpath to let it work.
James is throwing an Exception on line 83 further a MailboxException
giving
a message. It seems that JConsole does not display that message.

The bad is that we don't log anything. I just committed a patch for this.
If you want to use it, you will have to build from source. Btw, which
version are you using?

Thx.


   Please advise.
Thanks,
Sai


On Fri, Aug 19, 2011 at 11:03 PM, Eric Charles
<eric.char...@u-mangate.com>****wrote:

  Hi Vanessa,

  Is there any other stacktrace in the log/james-server.log file?
Thx.


On 19/08/11 21:55, Pao, Vanessa wrote:

  Hi,

Yes, we're trying to copy from maildir to jpa on CentOS because we
found
out it won't work on Windows. However, we configured James on CentOS
to
point to a  MySQL installation on Windows.

Partial stack trace below...had to hand type because had trouble
copying
text from JMX error window...

Java.lang.Exception
        At org.apache.james.container.******spring.mailbix.**
MailCopierManagement.copy(******MailboxCopierManagement.java:***
***83)
        At sun.reflect.******NativeMethodAccessorImpl.******
invoke0(Native
Method)
        At sun.reflect.******NativeMethodAccessorImpl.******invoke(**
NativeMethodAccessorImpl.java:******57)
        At sun.reflect.******DelegatingMethodAccessorImpl.***
***invoke(**
DelegatingMethodAccessorImpl.******java:43)
        At java.lang.reflect.Method.******invoke(Method.java:601)
        At com.sun.jmx.mbeanserver.******
StandardMBeanIntrospector.****
invokeM2(
**StandardMBeanIntrospector.******java:111)
        At com.sun.jmx.mbeanserver.******
StandardMBeanIntrospector.****
invokeM2(
**StandardMBeanIntrospector.******java:45)
        At com.sub.jmx.mbeanserver.******MBeanIntrospector.invokeM(**
MBeanIntrospector.java:235)
        At com.sun.jmx.mbeanserver.******PerInterface.invoke(**
PerInterface.java:138)
        At com.sun.jmx.mbeanserver.******MBeanSupport.invoke(**
MBeanSupport.java:250)
        At com.sun.jmx.interceptor.******
DefaultMBeanServerInterceptor.****
**
invoke(******DefaultMBeanServerInterceptor.******java:819)
        At com.sun.jmx.mbeanserver.******JmxMBeanServer.invoke(**
JmxBeanServer.java:791)
        At javax.management.remote.rmi.******
RMIConnectionImpl.doOperation(******
RMIConnectionImpl.java:1447)
        At javax.management.remote.rmi.******
RMIConnectionImpl.access$200(******
RMIConnectionImpl.java:89)
        At javax.management.remote.rmi.******RMIConnectionImpl$**
PrivilegedOperation.run(******RMIConnectionImpl.java:1292)
        At javax.management.remote.rmi.******RMIConnectionImple.**
doPrivilegedOperation(******RMIConnectionImpl.java:1380)
        At javax.management.remote.rmi.****
**RMIConnectionImpl.invoke(**
RMIConnectionImpl.java:812)
        At sun.reflect.******GeneratedMethodAccessor69.******
invoke(Unknown
Source)
        At sun.reflect.******DelegatingMethodAccessorImpl.***
***invoke(**
DelegatingMethodAccessorImpl.******java:43)
        At java.lang.reflect.Method.******invoke(Method.java:601)
        At sun.rmi.server.******UnicastServerRef.dispatch(**
UnicastServerRef.java:322)
...

Thanks,
Vanessa Pao


-----Original Message-----
From: Eric Charles [mailto:e...@apache.org]
Sent: Friday, August 19, 2011 12:44 PM
To: James Developers List
Subject: Re: Questions about JMX interface and James 3.0 beta2

Hi,
Are you trying to copy from maildir to jpa on windows?
If such, it won't work, cause maildir is not supported on windows.
Otherwise, can you provide us with the full stacktrace?

Thx.

On 19/08/11 18:22, Pao, Vanessa wrote:

  Hello All,


    My team is using James 3.0 beta2 in one of our environments. We
have
James installed on a CentOS machine and modified database.properties
to
use
a MySQL instance on a Windows machine. When we run jconsole on the
CentOS
machine and try to initiate a database restore using mailboxmanager's
copy
method (trying to copy from maildir-mailboxmanager to
jpa-mailboxmanager),
we get the following exception:

java.lang.Exception
          at org.apache.james.container.******spring.mailbox.**
MailboxCopierManagement.copy(******MailboxCopierManagement.**
java:****83)
...

I'm thinking whatever outbound port the JMX interface is using to
connect
to the Windows machine might be blocked. Does this sound right? What
port
does JMX use? Does it expect the database to be on the same machine?

Thank you very much,

Vanessa Pao






  --

Eric
http://about.echarles.net

------------------------------******--------------------------**--**
--**---------
To unsubscribe, e-mail: server-dev-unsubscribe@james.******apache.org<
server-dev-**unsubscribe@**james.apache.org<unsubscr...@james.apache.org>
<server-dev-**unsubscr...@james.apache.org<server-dev-unsubscr...@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<server-dev-h...@james.apache.org>





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

------------------------------****----------------------------**
--**---------
To unsubscribe, e-mail: server-dev-unsubscribe@james.****apache.org<
server-dev-**unsubscr...@james.apache.org<server-dev-unsubscr...@james.apache.org>

For additional commands, e-mail: server-dev-help@james.apache.****org<
server-dev-help@james.**apache.org<server-dev-h...@james.apache.org>>




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

------------------------------**------------------------------**---------
To unsubscribe, e-mail: 
server-dev-unsubscribe@james.**apache.org<server-dev-unsubscr...@james.apache.org>
For additional commands, e-mail: 
server-dev-help@james.apache.**org<server-dev-h...@james.apache.org>




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

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

Reply via email to