fuzesedu / java-gmail-imap

Automatically exported from code.google.com/p/java-gmail-imap
0 stars 0 forks source link

Class problem #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. created java project in eclipse and brought in source code
2. compiler error:
Description Resource    Path    Location    Type
javax.mail cannot be resolved to a 
type    MimeUtility.java    /javamail-gmail/src/com/google/code/javax/mail/internet li
ne 1239 Java Problem

Note, I also saw an error when I tried to use it in a program where it failed 
to load that class.

What is the expected output? What do you see instead?
I just changed:
        InputStream is = 
            javax.mail.internet.MimeUtility.class.getResourceAsStream(
to:
        InputStream is = 
            com.google.code.javax.mail.internet.MimeUtility.class.getResourceAsStream(

What version of the product are you using? On what operating system?

Mac 10.7

Code checked out at revision 12
Path: .
URL: http://java-gmail-imap.googlecode.com/svn
Repository Root: http://java-gmail-imap.googlecode.com/svn
Repository UUID: c400526f-0b74-0b6f-9afc-588b30180218
Revision: 12
Node Kind: directory
Schedule: normal
Last Changed Author: mark.mclaren@gmail.com
Last Changed Rev: 12
Last Changed Date: 2011-09-22 15:15:59 -0700 (Thu, 22 Sep 2011)

Please provide any additional information below.

Here was the stack trace I got:

java.lang.NoClassDefFoundError: javax/mail/internet/MimeUtility
    at com.google.code.javax.mail.internet.MimeUtility.<clinit>(MimeUtility.java:1238)
    at com.google.code.com.sun.mail.imap.protocol.IMAPProtocol.<init>(IMAPProtocol.java:123)
    at com.google.code.com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:632)
    at com.google.code.javax.mail.Service.connect(Service.java:295)
    at com.sevogle.common.imap.ImapAgentImpl.initializeImapConnection(ImapAgentImpl.java:404)
    at com.sevogle.common.imap.ImapAgentImpl.startupImap(ImapAgentImpl.java:144)
    at com.sevogle.common.imap.ImapAgentImpl.start(ImapAgentImpl.java:107)
    at com.sevogle.hatter.connector.gmail.GmailProcessor.startAgent(GmailProcessor.java:231)
    at com.sevogle.hatter.connector.gmail.GmailProcessor.updateAgentState(GmailProcessor.java:181)
    at com.sevogle.hatter.connector.gmail.GmailProcessor.onExtensionUpdated(GmailProcessor.java:77)
    at com.sevogle.common.extension.impl.MessageChannelProcessorImpl.updateExtension(MessageChannelProcessorImpl.java:256)
    at com.sevogle.common.extension.impl.MessageChannelProcessorImpl$ExtensionUpdated.doWork(MessageChannelProcessorImpl.java:391)
    at com.sevogle.common.extension.impl.MessageChannelProcessorImpl$WorkRunner.run(MessageChannelProcessorImpl.java:317)
    at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.ClassNotFoundException: javax.mail.internet.MimeUtility
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    ... 14 more

(sorry if this was intentional and you are supposed to have javamail also 
available for this.)

Original issue reported on code.google.com by greenk...@gmail.com on 30 Sep 2011 at 7:37

GoogleCodeExporter commented 8 years ago
Thanks for reporting this.  I have updated the source code, would you be able 
to test the changes?  Many Thanks, Mark

Original comment by mark.mcl...@gmail.com on 7 Oct 2011 at 10:52

GoogleCodeExporter commented 8 years ago

Original comment by mark.mcl...@gmail.com on 7 Oct 2011 at 10:52

GoogleCodeExporter commented 8 years ago
Yeah, I'll do a fresh pull and give it a try, probably over the weekend.

Original comment by greenk...@gmail.com on 7 Oct 2011 at 10:54