We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Imap Client java.lang.IllegalAccessError

I am trying to familiarize myself with how basic functions in the Aspose IMAP client work. I am able to connect to Gmail via imap fine and list the folders/message counts, no problem. I am interested in fetching a message by ID but got an exception when I did that so I tried something in line with the simple examples on your site. I still get the same exception. I do not know if it is specific to Gmail (I do not have another imap mail server to test with) but the exception looks internal to me (though it is hard to tell through the obsfucation).I am using the eval version I downloaded yesterday.

Exception:

Exception in thread "main" java.lang.IllegalAccessError: class com.aspose.email.internal.ah.nw cannot access its superclass com.aspose.email.system.exceptions.d
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.aspose.email.internal.ah.dq.a(Unknown Source)
at com.aspose.email.internal.ah.dq.a(Unknown Source)
at com.aspose.email.internal.ah.ew.a(Unknown Source)
at com.aspose.email.internal.ah.gu.a(Unknown Source)
at com.aspose.email.internal.ah.gu.o(Unknown Source)
at com.aspose.email.MailQuery.a(Unknown Source)
at com.aspose.email.rz.a(Unknown Source)
at com.aspose.email.rz.a(Unknown Source)
at com.aspose.email.ImapClient.listMessages(Unknown Source)
at Test.main(Test.java:36)

Code I am using
ImapClient client = new ImapClient(
"imap.gmail.com", 993,"xx@xx.xx","XXXXXX",
SecurityOptions.Auto);
ImapQueryBuilder builder = new ImapQueryBuilder();
//builder.getMessageId().contains("55928189", true);
builder.getFrom().contains("godaddy.com");
MailQuery query = builder.getQuery();
//Get list of messages
ImapMessageInfoCollection messages = client.listMessages(query);
System.out.println("Imap: " + messages.size() + " message(s) found.");
client.disconnect();

Hi Michael,


Thank you for your inquiry.

We have tested this issue at our end end with the latest version of Aspose.Email for Java 5.4.0 and were able to observe the issue at our end. It has been logged as EMAILJAVA-33519 in our bug tracking system for investigation by our Product team. We shall update you here as soon as there is some information available about this ticket.

The issues you have found earlier (filed as EMAILJAVA-33519) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.