NullPointerException in com.sun.mail.iap.Response.parse

Hey all. I am accessing an IMAP mail server from Solaris 8 using java 1.5.0-08, but I intermittently get the following exception:
java.lang.NullPointerException
        at com.sun.mail.iap.Response.parse(Response.java:130)
        at com.sun.mail.iap.Response.<init>(Response.java:87)
        at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:48)
        at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:122)
        at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:230)
        at com.sun.mail.iap.Protocol.command(Protocol.java:263)
        at com.sun.mail.iap.Protocol.simpleCommand(Protocol.java:310)
        at com.sun.mail.imap.protocol.IMAPProtocol.close(IMAPProtocol.java:926)
        at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:1000)
        at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:935)Any thoughts of what I am doing wrong?

I'm just looking for more data to get
a handle on the problem.I ran my program again, and got a NPE on another email. It is also big...
A479 FETCH 856 (BODY[])
* 856 FETCH (BODY[] {26497359}
Return-Path: <[email protected]>
... some of the body ...
BTW, the ebinder subcollection is not in the select list. Do I have to configure
or create another foA480 CLOSE
DEBUG: added an Authenticated connection -- size: 1
java.lang.NullPointerException
        at com.sun.mail.iap.Response.parse(Response.java:130)
        at com.sun.mail.iap.Response.<init>(Response.java:87)
        at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:48)
        at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:122)
        at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:230)
        at com.sun.mail.iap.Protocol.command(Protocol.java:263)
        at com.sun.mail.iap.Protocol.simpleCommand(Protocol.java:310)
        at com.sun.mail.imap.protocol.IMAPProtocol.close(IMAPProtocol.java:926)
        at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:1000)
        at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:935)
A481 LIST "" shared
java.lang.NullPointerException
        at com.sun.mail.iap.Response.parse(Response.java:130)
        at com.sun.mail.iap.Response.<init>(Response.java:87)
        at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:48)
        at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:122)
        at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:230)
        at com.sun.mail.iap.Protocol.command(Protocol.java:263)
        at com.sun.mail.imap.protocol.IMAPProtocol.doList(IMAPProtocol.java:799)
        at com.sun.mail.imap.protocol.IMAPProtocol.list(IMAPProtocol.java:776)
        at com.sun.mail.imap.IMAPFolder$1.doCommand(IMAPFolder.java:429)
        at com.sun.mail.imap.IMAPFolder.doProtocolCommand(IMAPFolder.java:2387)
        at com.sun.mail.imap.IMAPFolder.doCommand(IMAPFolder.java:2332)
        at com.sun.mail.imap.IMAPFolder.exists(IMAPFolder.java:427)
... lots of these ...
A490 LIST "" shared
rm or resource or something to solve this problem? please
advice.
(See attached file: private-xml.rtf)(See attached file: private-html.rtf)(See
... more body from the first email ...And this process of getting little chunks of data seems to continue on, interspersed with NPEs. It looks like some connection is not being closed.

Similar Messages

  • Java.lang.NullPointerException at com.sun.mail.iap.Response.parse

    I am getting this error when I try to download a message using IMAP from exchange server
    java.lang.NullPointerException
         at com.sun.mail.iap.Response.parse(Response.java:99)
         at com.sun.mail.iap.Response.<init>(Response.java:68)
         at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:31)
         at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:105)
         at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:153)
         at com.sun.mail.iap.Protocol.command(Protocol.java:215)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:882)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:874)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:656)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:645)
    This error occurs intermittantly. I placed one large mail (around 600 MB) and few normal size mails on exchange server. In few testing runs, this error occured while downloading the large mail as well as one normal mail. In one test run, all mails got downloaded successfully.
    Could anyone please suggest the cause and resolution?
    Thanks.

    I turned on the session debugging. I am running my application on Linux, so the debugging info was moved to a log file. This log file is very large (around 1GB) and I am unable to open it.
    One more thing: I am trying Message.writeTo() method to download the message. If an OutOfMemoryError occurs, I catch it and try to download the message using GetInputStream. NullPointerException is occuring in both the cases.
    Exception stack trace with writeTo():
    java.lang.NullPointerException
         at com.sun.mail.iap.Response.parse(Response.java:99)
         at com.sun.mail.iap.Response.<init>(Response.java:68)
         at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:31)
         at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:105)
         at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:153)
         at com.sun.mail.iap.Protocol.command(Protocol.java:215)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:882)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:874)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:656)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:645)
         at com.sun.mail.imap.IMAPMessage.writeTo(IMAPMessage.java:536)
    Exception stack trace with getInputStream():
    java.lang.NullPointerException
         at com.sun.mail.iap.Response.parse(Response.java:99)
         at com.sun.mail.iap.Response.<init>(Response.java:68)
         at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:31)
         at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:105)
         at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:153)
         at com.sun.mail.iap.Protocol.command(Protocol.java:215)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:882)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:874)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:653)
         at com.sun.mail.imap.protocol.IMAPProtocol.peekBody(IMAPProtocol.java:637)
         at com.sun.mail.imap.IMAPMessage.loadHeaders(IMAPMessage.java:1055)
         at com.sun.mail.imap.IMAPMessage.getAllHeaders(IMAPMessage.java:642)
    First I try to download the headers in case of an OutOfMemoryError. The above trace shows that.
    Could anyone point out the problem and help resolving it?

  • IMAPFolder.doCommand() com.sun.mail.iap.BadCommandException

    I'm attempting to run "SEARCH ALL" on my INBOX using IMAPFolder.doCommand(). I'm using the api documentation at http://java.sun.com/products/javamail/javadocs/com/sun/mail/imap/IMAPFolder.html#doCommand as a starting point, I was able to run the IMAP NOOP example in the api documentation without any errors. But when I try to run 'SEARCH ALL'
                        folder.open(Folder.READ_ONLY);
                        IMAPFolder f = (IMAPFolder) folder;
                        Object val = f.doCommand(new IMAPFolder.ProtocolCommand() {
                            public Object doCommand(IMAPProtocol p)
                                    throws ProtocolException {
                                // Issue command
                                Argument args = new Argument();
                                args.writeString("ALL");
                                Response[] r = p.command("SEARCH ", args);
                                Response response = r[r.length - 1];
                                // Grab response
                                if (response.isOK()) { // command successful
                                    for (int i = 0, len = r.length; i < len; i++) {
                                        if (!(r[i] instanceof IMAPResponse)) {
                                            continue;
                                        IMAPResponse ir = (IMAPResponse) r;
    if (ir.keyEquals("SEARCH")) {
    String num;
    while ((num = ir.readAtomString()) != null) {
    System.out.print(num + " ");
    p.notifyResponseHandlers(r);
    p.handleResult(response);
    return null; //just a test, don't need a return value
    I get the errorjavax.mail.MessagingException: A10 BAD Invalid Search criteria;
    nested exception is:
         com.sun.mail.iap.BadCommandException: A10 BAD Invalid Search criteria
         com.sun.mail.imap.IMAPFolder.doCommand(IMAPFolder.java:2571)
         quota.db.QuotaDB.dumpFolder(QuotaDB.java:288)
         quota.db.QuotaDB.getMailboxInfo(QuotaDB.java:206)
         quota.db.QuotaDB.getQuotaInfo(QuotaDB.java:110)
         quota.actions.GetFolderInfoAction.execute(GetFolderInfoAction.java:74)
    Looking through my mailserver's logs does not provide any clues as to the cause of this error.  Any advice?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    mowmowmow wrote:
    Looking through my mailserver's logs does not provide any clues as to the cause of this error. Any advice?Apparently your server considers ALL to be an invalid search criteria.

  • Com.sun.mail.imap.IMAPFolder close

    Hi everyone,
    We are using BMC Remedy Email Engine with javamail function.
    Why is the message of ''com.sun.mail.imap.IMAPFolder close' message is indicated in stderr.log file' indicated? BMC and we don't know the reason at all. If someone knows, could you please teach us the error cause?
    The detail is below:
    2008/10/07 1:16:10 com.sun.mail.imap.IMAPFolder close
    SEVERE: A6 NO CLOSE Block size illegal for BPOOL.
    javax.mail.MessagingException: A6 NO CLOSE Block size illegal for BPOOL.;
    nested exception is:
         com.sun.mail.iap.CommandFailedException: A6 NO CLOSE Block size illegal for BPOOL.
         at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:1003)
         at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:935)
         at com.remedy.arsys.emaildaemon.ReceiverModule.terminateIncommingMailbox(ReceiverModule.java:1837)
         at com.remedy.arsys.emaildaemon.ReceiverModule.doWork(ReceiverModule.java:357)
         at com.remedy.arsys.emaildaemon.ThreadBase.run(ThreadBase.java:268)
         at java.lang.Thread.run(Unknown Source)
    Caused by: com.sun.mail.iap.CommandFailedException: A6 NO CLOSE Block size illegal for BPOOL.
         at com.sun.mail.iap.Protocol.handleResult(Protocol.java:294)
         at com.sun.mail.iap.Protocol.simpleCommand(Protocol.java:316)
         at com.sun.mail.imap.protocol.IMAPProtocol.close(IMAPProtocol.java:926)
         at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:1000)
         ... 5 more
    Regards,
    NAKAI

    Hi,
    I'm experiencing a quite similar problem in our BMC Remedy Email Engine. IMAP mail integration that has been working for a long time has suddently quit working and now producing error message as below every second instead. NAKAI - did you find any solution to your problem? Anyone else that has experienced any similar?
    Thanks in advance,
    Daniel
    A94819 NO The request is not supported.;
    nested exception is:
         com.sun.mail.iap.CommandFailedException: A94819 NO The request is not supported.
    javax.mail.MessagingException: A94819 NO The request is not supported.;
    nested exception is:
         com.sun.mail.iap.CommandFailedException: A94819 NO The request is not supported.
         at com.sun.mail.imap.IMAPMessage.loadEnvelope(IMAPMessage.java:1063)
         at com.sun.mail.imap.IMAPMessage.getMessageID(IMAPMessage.java:428)
         at com.remedy.arsys.emaildaemon.ReceiverModule.checkAndSkipStoredMessages(ReceiverModule.java:397)
         at com.remedy.arsys.emaildaemon.ReceiverModule.doWork(ReceiverModule.java:275)
         at com.remedy.arsys.emaildaemon.ThreadBase.run(ThreadBase.java:268)
         at java.lang.Thread.run(Unknown Source)

  • Java.lang.NoSuchMethodException: com.sun.mail.imap.IMAPStore.

    All:
    I have completed the following:
    1. Downloaded the JavaMail 1.4.2 API.
    2. From this downloaded API I had extracted the mail.jar file (timestamp 2009-02-26 13:28) to my C:\Program Files\Tomcat 6.0\lib directory
    3. Downloaded the jaf-1_0_2-upd2 API
    4. From this downloaded API I had extracted the activation.jar file (timestamped 2005-05-07 21:14) also to my C:\Program Files\Tomcat 6.0\lib directory.
    In Eclipse I have created a simple JSP page that calls a POJO that is to read a particular email box using IMAP. In this POJO I have code to set up the Properties, Session and Store objects as such:
    Line 1 Properties properties = System.getProperties();
    Line 2 properties.put("mail.from", "[email protected]");
    Line 3 properties.put("mail.debug","true");
    Line 4 session = Session.getDefaultInstance(properties, null);
    Line 5 session.setDebug(debug);
    Line 6 printData("About to get store object...");
    Line 7 store = session.getStore("imap");
    In eclispe, I click "Debug on Server" and Tomcat starts, begins to display my JSP and then I am dropped on the line of code in my POJO where I set a breakpoint (Line 1). Now I single step through the code. The code throws the following execption when it executes line 7 of the above code :
    (Line 6 ==>) About to get store object...
    DEBUG: getProvider() returning javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc]
    java.lang.NoSuchMethodException: com.sun.mail.imap.IMAPStore.<init>(javax.mail.Session, javax.mail.URLName)
         at java.lang.Class.getConstructor0(Unknown Source)
         at java.lang.Class.getConstructor(Unknown Source)
         at javax.mail.Session.getService(Session.java:782)
         at javax.mail.Session.getStore(Session.java:574)
         at javax.mail.Session.getStore(Session.java:536)
         at javax.mail.Session.getStore(Session.java:515)
         at emailTest.readEmails.processMail(readEmails.java:62)
         at emailTest.readEmails.<init>(readEmails.java:24)
         at org.apache.jsp.emailTest_jsp._jspService(emailTest_jsp.java:94)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         at java.lang.Thread.run(Unknown Source)
    There are no jar files defined in my project's classpath. The only jar file found in the project is in the WEB-INF\lib folder wherein I have a jndi.jar (timstamp 5/5/2009 8:10AM) file.
    I put the activation.jar file and the mail.jar file in my Tomcat.6\lib folder according item 4 of the JavaMail Sessions section of the Apache Tomcat JNDI Resources HOW_TO found here: http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html
    Can anybody please tell me what I need to do to get around this error? Do I perhaps have the wrong versions of one or more jar files?
    FYI: I have also put these same two jar files in my projects classpath and still recevied the same exception. Because I am invoking a POJO from a JSP should these jar files be in my projects classpath in addition to the tomcat\lib directory, or should they only be in the projects' classpath?
    Thanks to all for your time in responding.
    Gary

    bshannon:
    Thank you for your resonse. Your response got me to thinking that my instance of Ecliplse that I had had running yesterday was behaving a little strangely so this morning I closed everything I had running on my workstation and closed down the machine and rebooted. When I finally opend up Eclipse again and ran my JSP program calling my POJO, the code no longer threw the exception. Apparently Eclipse can have its tempermental moments.
    Also, let it be known that while everything is working for me now, I performed a small experiment. I moved the activiation.jar and mail.jar from my project\WEB-INF\lib folder and put them in the the C:\Program Files\Tomcat 6.0\lib directory. Then, when I ran my program I once again recieved the java.lang.NoSuchMethodException error. When I moved these jar files back from the Tomcat diretory to my project\WEB-INF\lib directory, the program worked just fine.
    Thanks again
    Gary

  • Connection timed out: connect at com.sun.mail.imap.IMAPStore.protocolConne

    Hi ,
    Recently, my team need to work with javamail. Here I got a problem: when I run the application in my personal home network , it goes on very well. When I run the program in my company env, it gives error info:
    Exception in thread "main" javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465;
    nested exception is:
    java.net.ConnectException: Connection timed out: connect
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1706)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:525)
    at javax.mail.Service.connect(Service.java:313)
    The resource is :
    import java.security.Security;
    import java.util.Date;
    import java.util.Properties;
    import javax.mail.Authenticator;
    import javax.mail.Message;
    import javax.mail.MessagingException;
    import javax.mail.PasswordAuthentication;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.internet.AddressException;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeMessage;
    *Use Gmail
    public class GmailSender {
    public static void main(String[] args) throws AddressException, MessagingException {
    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    final String SSL_FACTORY = "javax.net.ssl.SSLSocketFactory";
    // Get a Properties object
    Properties props = System.getProperties();
    //Add proxy for GmailSender
    //especially here, I am not sure whether the proxy really works. In home network, it needn't proxy to run successfully.
    // props.setProperty("proxySet","true");
    // props.setProperty("socksProxyHost","148.87.19.20"); // This IP address is our proxy server address
    // props.setProperty("socksProxyPort","80");
    props.setProperty("mail.smtp.host", "smtp.gmail.com");
    props.setProperty("mail.smtp.socketFactory.class", SSL_FACTORY);
    props.setProperty("mail.smtp.socketFactory.fallback", "false");
    props.setProperty("mail.smtp.port", "465");
    props.setProperty("mail.smtp.socketFactory.port", "465");
    props.put("mail.smtp.auth", "true");
    final String username = "XXX";
    final String password = "XXX";
    Session session = Session.getDefaultInstance(props, new Authenticator(){
    protected PasswordAuthentication getPasswordAuthentication() {
    return new PasswordAuthentication(username, password);
    // -- Create a new message --
    Message msg = new MimeMessage(session);
    // -- Set the FROM and TO fields --
    msg.setFrom(new InternetAddress(username + "@gmail.com"));
    msg.setRecipients(Message.RecipientType.TO,
    InternetAddress.parse("[email protected]",false));
    msg.setSubject("Hello");
    msg.setText("How are you");
    msg.setSentDate(new Date());
    Transport.send(msg);
    System.out.println("Message sent.");
    Will you please help me to review my code and give me some suggestions ?

    No point looking at the code. The error message says the code can't connect to the server you are trying to connect to, so presumably there's a firewall or something like that preventing the connection. Talk to your network people.

  • Java.lang.NoSuchMethodError: com.sun.mail.util.SocketFetcher.getSocket

    I am recieving the above error in a FileNet Content Manager environment. The full stack trace is:
    Exception in thread "main" java.lang.NoSuchMethodError: com.sun.mail.util.SocketFetcher.getSocket(Ljava/lang/String;ILjava/util/Properties;Ljava/lang/String;Z)Ljava/net/Socket;
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1195)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:322)
    at javax.mail.Service.connect(Service.java:233)
    at javax.mail.Service.connect(Service.java:134)
    at javax.mail.Service.connect(Service.java:86)
    at javax.mail.Transport.send0(Transport.java:162)
    at javax.mail.Transport.send(Transport.java:80)
    at com.bearingpoint.utilities.EMail.send(EMail.java:171)
    at com.bearingpoint.utilities.EMail.send(EMail.java:31)
    at email.main(email.java:11)
    I have spent many hours, fiddling with classpaths, ensuring that the mail.jar, mailapi.jar, smtp.jar, activation.jar are all from the same generation of JavaMail. With my classpath set correctly I can run a simple program constructed to just test whether the box can send out email from the command line.
    The code for the program is:
    public class email {
         public email() {
         public static void main (String args[]) {
              try {
              EMail.send("10.132.147.62", "[email protected]", "[email protected]", "test", "test");
              catch (Exception e) {
                   System.err.println(e.toString());
    Where EMail.send() is:
    public static void send(
    String mail_server_host,
    String email_from,
    String email_to,
    String subject,
    String message) throws AddressException, MessagingException, IOException {
    send(mail_server_host,
    (Authenticator)null,
    new InternetAddress[] {new InternetAddress(email_from)},
    new InternetAddress[] {new InternetAddress(email_to)},
    (InternetAddress[])null,
    (InternetAddress[])null,
    subject,
    message,
    null,
    null);
    which calls:
    public static void send(
    String mail_server_host,
    Authenticator authenticator,
    InternetAddress[] addresses_from,
    InternetAddress[] addresses_to,
    InternetAddress[] addresses_cc,
    InternetAddress[] addresses_bcc,
    String subject,
    String message,
    InputStream[] attachments,
    MimeType[] attachmentTypes) throws MessagingException,IOException {
    Properties properties = new Properties();
    properties.put("mail.smtp.host", mail_server_host);
    MimeMessage msg = new MimeMessage(
    Session.getInstance(properties, authenticator));
    msg.addFrom(addresses_from);
    msg.setRecipients(Message.RecipientType.TO, addresses_to);
    msg.setRecipients(Message.RecipientType.CC, addresses_cc);
    msg.setRecipients(Message.RecipientType.BCC, addresses_bcc);
    msg.setSubject(subject);
    BodyPart bpBody = new MimeBodyPart();
    bpBody.setText(message);
    Multipart mpMessageBody = new MimeMultipart();
    if (attachments == null && attachmentTypes == null) {
    mpMessageBody.addBodyPart(bpBody);
    msg.setContent(mpMessageBody);
    else if (attachments == null) {
    bpBody.setContent(message, attachmentTypes[0].toString());
    mpMessageBody.addBodyPart(bpBody);
    msg.setContent(mpMessageBody);
    else {
    mpMessageBody.addBodyPart(bpBody);
    for (int i=0; i<attachments.length;i++) {
    bpBody = new MimeBodyPart();
    DataSource dsAttachment = new ByteArrayDataSource(attachments, attachmentTypes[i].toString());
    bpBody.setDataHandler(new DataHandler(dsAttachment));
    bpBody.setFileName("attachment." + new MimeFileExtensions(attachmentTypes[i].getValue()).toString());
    mpMessageBody.addBodyPart(bpBody);
    msg.setContent(mpMessageBody);
    Transport.send(msg);
    As said before all .jar files are of the same generation, yet when I run FileNet and the underlying content engine, and try to send an email, I recieve this exception. I have run out of ideas, and any help would be appreciated.
    Things I've tried (multiple times):
    - Removing any old versions of the jar files and replace them with JavaMail 1.3.3_01
    - Have the content engine specifically import the JavaMail jar files.
    While I realize some of you may not know what FileNet is, perhaps you have come across this exception before. Any new ideas would be more then appreciated.
    Thank you for your time.

    I haven't seen this error before so I need more detail to reproduce it.
    It looks like you daisy chained calls to various static send() methods from various classes. Could you write a static main() for the class with the send() method actually doing the work? In the main() write the test case and compile it, test it and if it still doesnt work post it. Please include the import statements as it is germain to the solution.
    Its much easier for me to help you if I don't have to recreate "FileNet" to reproduce your error.
    As an alternative....
    The following code I got from: http://javaalmanac.com/egs/javax.mail/SendApp.html?l=new
    its simpler than you're code but gets the job done (without attachments).
    I've tested it and it works with:
    javac -classpath .;c:\sun\appserver\lib\j2ee.jar;c:\sun\appserver\lib\mail.jar SendApp.java
    java -classpath .;c:\sun\appserver\lib\j2ee.jar;c:\sun\appserver\lib\mail.jar SendApp
    Ran on Windows XP, Sun J2EE 1.4/Appserver Bundle
        import java.io.*;
        import javax.mail.*;
        import javax.mail.internet.*;
        import javax.activation.*;
        public class SendApp {
            public static void send(String smtpHost, int smtpPort,
                                    String from, String to,
                                    String subject, String content)
                    throws AddressException, MessagingException {
                // Create a mail session
                java.util.Properties props = new java.util.Properties();
                props.put("mail.smtp.host", smtpHost);
                props.put("mail.smtp.port", ""+smtpPort);
                Session session = Session.getDefaultInstance(props, null);
                // Construct the message
                Message msg = new MimeMessage(session);
                msg.setFrom(new InternetAddress(from));
                msg.setRecipient(Message.RecipientType.TO, new InternetAddress(to));
                msg.setSubject(subject);
                msg.setText(content);
                // Send the message
                Transport.send(msg);
            public static void main(String[] args) throws Exception {
                // Send a test message
                send("10.1.4.105", 25, "[email protected]", "[email protected]",
                     "test", "test message.");
        }

  • Jaxb is giving NullPointerException  at com.sun.xml.bind.v2.model.impl.Prop

    Hi,
    I am getting null pointer exception , i dont whether it is due to jar mismatch or what ???
    I have a stand alone application which created java classes from one schema file and , i construct xml file by
    inputting some values. It works fine in my machine. But when i deploy it our product which has tomcat6 it
    gives the following exception.
    ava.lang.NullPointerException
         at com.sun.xml.bind.v2.model.impl.PropertyInfoImpl.calcXmlName(PropertyInfoImpl.java:287)
         at com.sun.xml.bind.v2.model.impl.PropertyInfoImpl.calcXmlName(PropertyInfoImpl.java:260)
         at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl.getTypes(ElementPropertyInfoImpl.java:100)
         at com.sun.xml.bind.v2.model.impl.RuntimeElementPropertyInfoImpl.getTypes(RuntimeElementPropertyInfoImpl.java:50)
         at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.size(ElementPropertyInfoImpl.java:42)
         at java.util.AbstractList$Itr.hasNext(AbstractList.java:341)
         at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:139)
         at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:49)
         at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:41)
         at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189)
         at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:204)
         at com.sun.xml.bind.v2.runtime.JAXBContextImpl$1.run(JAXBContextImpl.java:343)
         at com.sun.xml.bind.v2.runtime.JAXBContextImpl$1.run(JAXBContextImpl.java:340)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:340)
         at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:204)
         at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76)
         at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:55)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:589)
         at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210)
         at javax.xml.bind.ContextFinder.find(ContextFinder.java:381)
         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
         at com.facetime.rtgsm.extractor.GenerateXml.GenerateXmlForSkypeManagementOnly(Unknown Source)
         at com.facetime.rtgsm.extractor.JDBCToXML.getXmlStringForModalities(Unknown Source)
         at com.facetime.rtgsm.publisher.MessagePublisherClient.sendMessage(Unknown Source)
         at com.facetime.rtgsm.publisher.MessagePublisherJob.execute(Unknown Source)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:191)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
    Any help would be be grately appreciated :)

    Check whether jaxb-ri.jar is there in your class path

  • NullPointerException at com.sun.faces.context.ExternalContextImpl.dispatch?

    Hi All,
    i got this Exception in the log of the application on the application server with big rate
    java.lang.NullPointerException at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
    at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    any idea???

    Hi guys,
    I'm pretty sure I found the problem.
    If there is a wrong url for a link in your JSF page it will throw this error in the log.
    in my case i was referring a javascript file in the page which doesn't exist at the path.
    So check all of your links on the page to make sure they are right. that should fix the problem.
    atleast it did in my case.
    Thanks
    Praveen
    Message was edited by:
    bpraveen

  • NullPointerException at com.sun.t2k.T2KFontFactory.resolveFontFil

    Hellow everyone
    I face an exception when I start FXML-LoginDemo.jar
    the following
    My OS is Microsoft Windows XP [Version 5.1.2600] SP3 Japanese edition
    C:\D\JavaFX\JavaFX 2.1.0 SDK\javafx-samples-2.1.0-beta>java -version
    java version "1.7.0_04-ea"
    Java(TM) SE Runtime Environment (build 1.7.0_04-ea-b06)
    Java HotSpot(TM) Client VM (build 23.0-b06, mixed mode)
    C:\D\JavaFX\JavaFX 2.1.0 SDK\javafx-samples-2.1.0-beta>java -jar FXML-LoginDemo.jar
    java.lang.NullPointerException
    at com.sun.t2k.T2KFontFactory.resolveFontFiles(T2KFontFactory.java:828)
    at com.sun.t2k.T2KFontFactory.resolveWindowsFonts(T2KFontFactory.java:786)
    at com.sun.t2k.T2KFontFactory.getFullNameToFileMap(T2KFontFactory.java:1351)
    at com.sun.t2k.T2KFontFactory.getFontResource(T2KFontFactory.java:212)
    at com.sun.t2k.LogicalFont.getSlot0Resource(LogicalFont.java:174)
    at com.sun.t2k.LogicalFont.getDefaultAAMode(LogicalFont.java:300)
    at com.sun.t2k.LogicalFont.getStrike(LogicalFont.java:304)
    at com.sun.t2k.T2KFont.getStrike(T2KFont.java:70)
    at com.sun.javafx.font.PrismFontUtils.getFontMetrics(PrismFontUtils.java:14)
    at com.sun.javafx.font.PrismFontLoader.getFontMetrics(PrismFontLoader.java:434)
    at javafx.scene.text.Text.<init>(Text.java:105)
    at com.sun.javafx.scene.control.skin.TextFieldSkin.<init>(TextFieldSkin.java:92)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
    at javafx.scene.control.Control.loadSkinClass(Control.java:921)
    at javafx.scene.control.Control.impl_cssSet(Control.java:999)
    at javafx.scene.Node.impl_cssSet(Node.java:6493)
    at com.sun.javafx.css.StyleHelper.transitionToState(StyleHelper.java:755)
    at javafx.scene.Node.impl_processCSS(Node.java:6345)
    at javafx.scene.Parent.impl_processCSS(Parent.java:975)
    at javafx.scene.control.Control.impl_processCSS(Control.java:1026)
    at javafx.scene.Parent.impl_processCSS(Parent.java:982)
    at javafx.scene.Parent.impl_processCSS(Parent.java:982)
    at javafx.scene.Node.processCSS(Node.java:6313)
    at javafx.scene.Scene.doCSSPass(Scene.java:404)
    at javafx.scene.Scene.preferredSize(Scene.java:1208)
    at javafx.scene.Scene.impl_preferredSize(Scene.java:1258)
    at javafx.stage.Window.adjustSize(Window.java:139)
    at javafx.stage.Window.access$800(Window.java:50)
    at javafx.stage.Window$13.invalidated(Window.java:692)
    at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:88)
    at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:122)
    at javafx.stage.Window.setShowing(Window.java:744)
    at javafx.stage.Window.show(Window.java:759)
    at javafx.stage.Stage.show(Stage.java:129)
    at demo.App.start(App.java:73)
    at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:299)
    at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:153)
    at com.sun.javafx.application.PlatformImpl$3.run(PlatformImpl.java:120)
    at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
    at com.sun.glass.ui.win.WinApplication$2$1.run(WinApplication.java:62)
    at java.lang.Thread.run(Thread.java:722)

    Hi guys,
    I'm pretty sure I found the problem.
    If there is a wrong url for a link in your JSF page it will throw this error in the log.
    in my case i was referring a javascript file in the page which doesn't exist at the path.
    So check all of your links on the page to make sure they are right. that should fix the problem.
    atleast it did in my case.
    Thanks
    Praveen
    Message was edited by:
    bpraveen

  • NullPointerException  at com.sun.scenario.effect

    Hi to all
    I meet this exception in my app. At the screen it seems like lost links to my graphics(no rendering some nodes)
    Are there some one to meet that exception too?
    java.lang.NullPointerException
            at com.sun.scenario.effect.impl.prism.ps.PPSDrawable.create(Unknown Sour
    ce)
            at com.sun.scenario.effect.impl.prism.ps.PPSRenderer.createCompatibleIma
    ge(Unknown Source)
            at com.sun.scenario.effect.impl.prism.ps.PPSRenderer.createCompatibleIma
    ge(Unknown Source)
            at com.sun.scenario.effect.impl.ImagePool.checkOut(Unknown Source)
            at com.sun.scenario.effect.impl.Renderer.getCompatibleImage(Unknown Sour
    ce)
            at com.sun.scenario.effect.impl.prism.ps.PPSRenderer.getCompatibleImage(
    Unknown Source)
            at com.sun.scenario.effect.impl.prism.ps.PPSRenderer.getCompatibleImage(
    Unknown Source)
            at com.sun.scenario.effect.Effect.getCompatibleImage(Unknown Source)
            at com.sun.javafx.sg.prism.NGNode.renderOpacity(Unknown Source)
            at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
            at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
            at com.sun.javafx.sg.BaseNode.render(Unknown Source)
            at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
            at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
            at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
            at com.sun.javafx.sg.BaseNode.render(Unknown Source)
            at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
            at com.sun.javafx.sg.prism.NGRegion.renderContent(Unknown Source)
            at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
            at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
            at com.sun.javafx.sg.BaseNode.render(Unknown Source)
            at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
            at com.sun.javafx.sg.prism.NGRegion.renderContent(Unknown Source)
            at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
            at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
            at com.sun.javafx.sg.BaseNode.render(Unknown Source)
            at com.sun.javafx.tk.quantum.ViewPainter.doPaint(Unknown Source)
            at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(Unknown Source)
            at com.sun.javafx.tk.quantum.PresentingPainter.run(Unknown Source)
            at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
            at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
            at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
            at com.sun.prism.render.RenderJob.run(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
            at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(Unknow
    n Source)
            at java.lang.Thread.run(Unknown Source)

    I think there are bugs in the underlying texture handling that are scheduled to be fixed for JavaFX 3.0 which might cause this issue. If that is in fact your issue, I'm not sure what the correct workaround is (perhaps forcing a software pipeline - which I don't know how to do - or simplifying your graphics processing).
    I think the jira issue to track this is:
    http://javafx-jira.kenai.com/browse/RT-15516
    "image data associated with cached nodes that are removed from a scene are not aggressively released"
    Essentially I think the issue is that texture memory on the video card is used up because the unused cached nodes are not aggressively garbage collected.
    I'd advise trying to create a simple test case to reproduce it (I know that might be difficult...) and post your test case (or your app if you can't create one) with reproduction instructions to http://javafx-jira.kenai.com. Although maybe even just posting the stack trace to jira will be enough for the developers to verify that the issue is a duplicate of RT-15516.
    I created a couple of seemingly unrelated jiras which ended up being classed as duplicates of the above jira.
    In both cases I was animating large graphics at high speeds.

  • NullPointerException at com.sun.jndi.ldap.Connection.run(Connection.java:52

    We are using the Sun jndi 1.2.1 files from a Java client to
    access the IBM SecureWay Directory 3.2 server. Our test case is
    retrieving entries using the ctx.getAttributes (String, String[])
    method. Occasionally we are receiving the following error.
    java.lang.NullPointerException
    at com.sun.jndi.ldap.Connection.run(Connection.java:525)
    at java.lang.Thread.run(Thread.java:481)
    The java.lang.NullPointerException is coming from the Sun JNDI file.
    Our program is not catching this exception.
    Has anyone seen this problem before and have any ideas on how this can be resolved?

    Download and use LDAP 1.2.3 or JDK 1.3.1.
    The problem should go away.

  • Error while connecting to Microsoft Exchange server using javamail: "com.sun.mail.util.MailConnectException: Couldn't connect to host, port: host name , 993; timeout -1"

    I am trying to read mails from my outlook microsoft exchange server. Following is the code:
    public void readEmailsFromOutlook(/*String host, String username, String password*/ ) throws MessagingException, IOException {
          String host = "hostname";
          String username = "domain\\username";
          String password = "password"
          // Create empty properties
          Properties props = System.getProperties();
          props.setProperty("mail.smtp.auth","true");
          props.setProperty("mail.store.protocol","imaps");
          props.setProperty("mail.imap.auth.plain.disable","true");
          props.setProperty("mail.imap.host",host);
          props.setProperty("mail.imap.port","993");
          props.setProperty("mail.imap.user",username);
          props.setProperty("mail.imap.pwd",password);
          props.setProperty("mail.imap.debug","true");
          props.setProperty("mail.imap.ssl.protocols","SSL");
          props.setProperty("mail.imap.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
          props.setProperty("mail.imap.socketFactory.fallback", "false");
          props.setProperty("mail.imap.socketFactory.port", "993");
          // Get session
                     Session session = Session.getInstance(props, new ExchangeAuthenticator(username, password));
          session.setDebug(true);
          // Get the store
          Store store = session.getStore("imaps");
          //Store store = session.getStore();
          store.connect(host, username, password);
          // Get folder
          Folder folder = store.getFolder("INBOX");
          folder.open(Folder.READ_ONLY);
          BufferedReader reader = new BufferedReader(new InputStreamReader(
              System.in));
          // Get directory
          Message message[] = folder.getMessages();
          for (int i = 0, n = message.length; i < n; i++) {
            System.out.println(i + ": " + message[i].getFrom()[0] + "\t"
                + message[i].getSubject());
            System.out.println("Read message? [YES to read/QUIT to end]");
            String line = reader.readLine();
            if ("YES".equalsIgnoreCase(line)) {
              System.out.println(message[i].getContent());
            } else if ("QUIT".equalsIgnoreCase(line)) {
              break;
          // Close connection
          folder.close(false);
          store.close();
    But it threw the following error:
    DEBUG: setDebug: JavaMail version 1.5.1
    DEBUG: getProvider() returning javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle]
    DEBUG IMAPS: mail.imap.fetchsize: 16384
    DEBUG IMAPS: mail.imap.ignorebodystructuresize: false
    DEBUG IMAPS: mail.imap.statuscachetimeout: 1000
    DEBUG IMAPS: mail.imap.appendbuffersize: -1
    DEBUG IMAPS: mail.imap.minidletime: 10
    DEBUG IMAPS: trying to connect to host <hostname>,port 993, isSSL true
    com.sun.mail.util.MailConnectException: Couldn't connect to host, port: 10.75.250.60, 993; timeout -1;
      nested exception is:
    java.net.ConnectException: Connection refused: connect
    at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:693)
    at javax.mail.Service.connect(Service.java:345)
    at javax.mail.Service.connect(Service.java:226)
    at com.capgemini.utilities.Utilities.readEmailsFromOutlook(Utilities.java:1261)
    Whats wrong with my code?
    Please help!!!!

    You're using the "imaps" protocol, but you've set properties for the "imap" protocol.  Change all the property names from mail.imap.* to mail.imaps.*.
    Also, get rid of all the socket factory properties.
    If you still can't connect, see these connection debugging tips.
    Most likely you're using the wrong host name or port number.  In almost all cases, it's better to just let JavaMail choose the correct port number.

  • Com.sun.faces.el.impl.parser.ParseException on weblogic 10.3.3

    I have a sample web application from ESRI working on tomcat but fails on weblogic 10.3.3. errors are below.
    jsf jars are in web-inf/lib directory of war. also tried..
    <container-descriptor>
         <prefer-web-inf-classes>
         true
         </prefer-web-inf-classes>
         </container-descriptor>
    any help is appreciated.
    thanks!
    Error Message:
    javax.faces.el.ReferenceSyntaxException: (mapContext.attributes.mapEditor.shapeType == \'POINT\')? \'hiddenButton\':\'disabledButton\'
    com.sun.faces.el.impl.parser.ParseException: Encountered "\\" at line 1, column 49.
    Was expecting one of:
    "true" ...
    "false" ...
    "null" ...
    "not" ...
    "empty" ...
         at com.sun.faces.el.impl.parser.ELParserImpl.generateParseException(ELParserImpl.java:2254)
         at com.sun.faces.el.impl.parser.ELParserImpl.jj_consume_token(ELParserImpl.java:2122)
         at com.sun.faces.el.impl.parser.ELParserImpl.ValuePrefix(ELParserImpl.java:782)
         at com.sun.faces.el.impl.parser.ELParserImpl.Value(ELParserImpl.java:721)
         at com.sun.faces.el.impl.parser.ELParserImpl.UnaryExpression(ELParserImpl.java:697)
         at com.sun.faces.el.impl.parser.ELParserImpl.MultiplyExpression(ELParserImpl.java:543)

    That will work only when all the supporting classes are placed inside the WEB-INF/lib directory only in form of Jar files.
    If any one of the Class is being loaded from outside of the WEB-INF/lib jars then you will definately face this issue......
    Example:
    Suppose "com.sun.faces.el.impl.parser.* " classes are present in some other Jar file outside WEB-INF/lib but rest of the JSF Jars and Parser Jars are present inside the WEB-INF/lib directory ..in that case you will see this kind of issue Because the JSF config Parser will change according to the version of JSF and WLS also provides some supporting Jars in "modules/" or "server/lib" or in "common/lib" directories.
    Thanks
    Jay SenSharma
    http://middlewaremagic.com/weblogic  (Middleware Magic Is here)

  • Com.sun.mail.smtp.SMTPAddressFailedException: 450

    Hello!
    I have problem with sending message.
    My code is:
              Properties props = new Properties();
              props.put("mail.smtp.host", "mail.my.pl");
              Session session = Session.getDefaultInstance(props, null);
              MimeMessage message = new MimeMessage(session);
              message.setText("message text");
              message.setSubject("message subject");
              Address addressFrom = new InternetAddress("[email protected]");
              Address addressTo = new InternetAddress("[email protected]");
              message.setFrom(addressFrom);
              message.addRecipient(Message.RecipientType.TO, addressTo);
              Transport.send(message);When I try to send this message, I get this Exception:
    13:36:09,500 INFO [STDOUT] javax.mail.SendFailedException: Invalid Addresses;
    nested exception is:
         com.sun.mail.smtp.SMTPAddressFailedException: 450 <frodo>: Helo command rejected: Host not found
    13:36:09,500 INFO [STDOUT]      at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1196)
    13:36:09,500 INFO [STDOUT]      at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584)
    13:36:09,500 INFO [STDOUT]      at javax.mail.Transport.send0(Transport.java:169)
    13:36:09,500 INFO [STDOUT]      at javax.mail.Transport.send(Transport.java:98)
    13:36:09,500 INFO [STDOUT]      at pl.spot.onecom.onebox.web.action.SendMailAction.execute(SendMailAction.java:72)
    Please, help me! The host, mail.my.pl, exist, but I get message that this host cant be found. What is going on?

    I think we need to see the entire protocol trace (read the FAQ).
    This FAQ entry might also explain your problem:
    http://java.sun.com/products/javamail/FAQ.html#helo
    I suspect the name of your machine is "frodo", but when
    your machine sends that name in the SMTP HELO command,
    the server doesn't know of a machine by that name. You
    probably need a fully qualified host name in the HELO command,
    a name that the server can look up and find the IP address for.

Maybe you are looking for

  • MSI 870A-G54 Blue Screen & Corruption Issues in Windows 7 64-bit

    I am having periodic blue screen and corruption issues in Winodws 7 64-bit with my MSI 870A-G54 system.  I have a Phenom II X2 560 BE processor, 2 4GB DDR 1333 DIMMs (first bank - unganged), 2 2GB DDR3 1333 DIMMs (2nd bank - unganged), 2 Hitachi 1TB

  • Cancel Reverse Document

    Hi Expert, I encountered a serious problems with cancel outbound delivery with VF09. I reversed an outbound delivery in previous month, however I forgot reversal date. I should have set it to the date in previous month, however I left it the current

  • Multiple ips in apache proxy

    Hi How to add mutiple entries in apache proxy server...Pls give me the solutions Regards jac

  • Add another computer to a WRT 160N

    On Thursday I bought a new WRT 160N. I followed the instructions and I can connect my wife's laptop to the new wireless network with no problem. Managing the network, connecting to the internet wirelessly, etc. with my wife's computer is a snap. Tryi

  • Powerbook g3 Pismo won't boot

    Hi guys i just got myself a pismo (always wanted one) but it won't boot at all !! I get power to the battery the keyboard and the HD spins but thats it, no chime and nothing on screen !! also the power light does not light ... Can anyone shed any lig