function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
bnuckelsbnuckels 

EmailAgent60 problems

I am having problems getting the EmailAgent60 working.  The jar file that comes with it runs, and my config is correct as it connects to the mail server; but I am receiving a java.lang.NullPointerException any time it tries to process an email.  I've tried sending from different mail clients and it makes no difference.  I know people are using this application, so I'm not sure what the problem is.  It's an Exchange 2003 server.

I'm a developer, but not a Java developer, so I've been struggling with Eclipse trying to get the app built and running.  I've been able to build the app and resolved an issue with the j2sdk version (1.4.2_12) it was building with.  However, when running  SalesforceAgent, I get an error from the Java VM "Could not find the main class".  The Console in Eclipse shows "java.lang.UnsupportedClassVersionError: com/sforce/SalesforceAgent (Unsupported major.minor version 49.0)"

I posted this to the OpenSource group but have gotten no replies, and since it seems to be a Java issue, thought I'd try here.  Can anyone help?

Thanks
ChrisS_SFDCChrisS_SFDC
Can you make sure that your Routing Addresses are set up correctly, and if you are using Record Types, that the user running the agent has a default Record Type defined and that they have access to all the record types specified in the Routing Addresses.  This could be the issue you are seeing.
bnuckelsbnuckels
Thanks for responding.  I found out the problem was that the email to case user didn't have sufficient permissions to do everything it needed to.  I still wish I could resolve my Eclipse problem though!
ChrisS_SFDCChrisS_SFDC

Glad you got the security issues worked out.  For the eclipse issue, the Unsupported major.minor version 49.0 error indicates that the code was compiled with Java 1.5 but you are trying to run it in a 1.4x JVM.  Make sure your java compiler settings specify a JDK Compliance of 1.4 and rebuild the project. 

Hope this helps...