Java.io.NotSerializableException  for Mail Client

Hi All,
While running a simple SendMail client I am getting following Exception from
the server (using weblgoic 7.0). Any idea what could be wrong?
Start server side stack trace:
java.io.NotSerializableException: javax.mail.Session
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1143)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:361)
at
weblogic.common.internal.ChunkedObjectOutputStream.writeObject(ChunkedObject
OutputStream.java:107)
at
weblogic.rjvm.MsgAbbrevOutputStream.writeObject(MsgAbbrevOutputStream.java:8
2)
at weblogic.jndi.internal.RootNamingNode_WLSkel.invoke(Unknown
Source)
at
weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
at
weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
:114)
at
weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:785)
at
weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:308)
at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:3
0)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
End server side stack trace
thanks in advance
--rk

Forgive me if I'm misunderstanding your question and pointing out the
obvious, but it looks like you are trying to pass an instance of
javax.mail.Session from your server to your client, but since Session is
not serializable it cannot be passed across JVMs. If you are returning
the Session instance for the purpose of allowing your client to use it
to send an email message, you'll want to refactor your code so that the
client instead sends a representation of the email message to the
server, which then uses the Session (and, through it, the appropriate
Transport) to send the message. Please let me know if I've
misunderstood your question...hope this helps.
Tim Perrigo

Similar Messages

  • Is EJB Java's solution for Thin Clients??

    I want to create an API that controls my odbc layer and place it on my server, not the clients.
    What is the best java solution to create thin client java applications?

    Well that's a big question but I'll give it a go. Use J2EE and let your clients be web browsers. Do all your work on the application server with servlets, JSPs and EJBs. That's about as thin as you can get. Browsers don't give you the best interface in the world but you gain:
    1> No 10meg JRE installation on each client machine.
    2> No worrying about the JRE version.
    3> All upgrades occur near you so no client version to worry about when you make changes.
    blah blah blah

  • Transferring files through java web service(for VB Client)

    Hi,
    I have a VBA client that needs to access a file on a server through a web service ? how do I go about this ? Use SAAJ ? Can I create a VBA client for SAAJ ?

    I don't anderstand your problem,
    With wich client-application do you acces to Web Service,
    Do you program the Server side of the web service ????
    Cl�ment

  • Java.io.NotSerializableException error when starting 8.1 app server

    I am running JES 054Q with uwc deployed on the app server 8.1 (along with am, portal, and da). I am getting a java.io.NotSerializableException for com.sun.uwc.common.util.UWCPreferences when the application server starts. Any access to get attributes from UWCPreferences results more java.io.NotSerializableException errors. How do I get the app server to not load com.sun.uwc.common.util.UWCPreferences as Serializable?
    Following is what is showing up the log file with finest level:
    # grep -n UWCPreferences *
    server.log:2:java.io.NotSerializableException: com.sun.uwc.common.util.UWCPreferences
    server.log:44:java.io.NotSerializableException: com.sun.uwc.common.util.UWCPreferences
    server.log_2006-08-28T03-08-05:10373:[#|2006-08-28T03:07:59.991-0600|FINE|sun-appserver-ee8.1_02|org.apache.catalina.loader.WebappClassLoader|_ThreadID=10;|loadClass(com.sun.uwc.common.util.UWCPreferences, false)|#]
    server.log_2006-08-28T03-08-05:10383:[#|2006-08-28T03:07:59.994-0600|FINE|sun-appserver-ee8.1_02|org.apache.catalina.loader.WebappClassLoader|_ThreadID=10;|    findClass(com.sun.uwc.common.util.UWCPreferences)|#]
    server.log_2006-08-28T03-08-05:10385:[#|2006-08-28T03:07:59.995-0600|FINEST|sun-appserver-ee8.1_02|org.apache.catalina.loader.WebappClassLoader|_ThreadID=10;|      findClassInternal(com.sun.uwc.common.util.UWCPreferences)|#]
    server.log_2006-08-28T03-08-05:10397:[#|2006-08-28T03:08:00.001-0600|FINE|sun-appserver-ee8.1_02|org.apache.catalina.loader.WebappClassLoader|_ThreadID=10;|      Returning class class com.sun.uwc.common.util.UWCPreferences|#]
    server.log_2006-08-28T03-08-05:10781:[#|2006-08-28T03:08:00.154-0600|SEVERE|sun-appserver-ee8.1_02|org.apache.catalina.session.ManagerBase|_ThreadID=10;|IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.sun.uwc.common.util.UWCPreferences
    server.log_2006-08-28T03-08-05:10782:java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.sun.uwc.common.util.UWCPreferences
    server.log_2006-08-28T03-08-05:10807:Caused by: java.io.NotSerializableException: com.sun.uwc.common.util.UWCPreferences
    server.log_2006-08-28T03-08-05:10849:java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.sun.uwc.common.util.UWCPreferences
    server.log_2006-08-28T03-08-05:10874:Caused by: java.io.NotSerializableException: com.sun.uwc.common.util.UWCPreferences
    server.log_2006-08-28T03-08-05:11313:[#|2006-08-28T03:08:00.286-0600|FINE|sun-appserver-ee8.1_02|org.apache.catalina.loader.WebappClassLoader|_ThreadID=10;|loadClass(com.sun.uwc.common.util.UWCPreferencesFactory, false)|#]
    server.log_2006-08-28T03-08-05:11323:[#|2006-08-28T03:08:00.289-0600|FINE|sun-appserver-ee8.1_02|org.apache.catalina.loader.WebappClassLoader|_ThreadID=10;|    findClass(com.sun.uwc.common.util.UWCPreferencesFactory)|#]
    server.log_2006-08-28T03-08-05:11325:[#|2006-08-28T03:08:00.290-0600|FINEST|sun-appserver-ee8.1_02|org.apache.catalina.loader.WebappClassLoader|_ThreadID=10;|      findClassInternal(com.sun.uwc.common.util.UWCPreferencesFactory)|#]
    server.log_2006-08-28T03-08-05:11327:[#|2006-08-28T03:08:00.292-0600|FINE|sun-appserver-ee8.1_02|org.apache.catalina.loader.WebappClassLoader|_ThreadID=10;|      Returning class class com.sun.uwc.common.util.UWCPreferencesFactory|#]
    server.log_2006-08-28T03-15-11:22429:[#|2006-08-28T03:09:45.991-0600|FINE|sun-appserver-ee8.1_02|org.apache.catalina.loader.WebappClassLoader|_ThreadID=23;|loadClass(com.sun.uwc.common.util.UWCPreferences, false)|#]
    server.log_2006-08-28T03-15-11:29542:java.io.NotSerializableException: com.sun.uwc.common.util.UWCPreferences
    server.log_2006-08-28T03-15-11:29584:java.io.NotSerializableException: com.sun.uwc.common.util.UWCPreferences
    server.log_2006-08-28T03-15-11:29626:java.io.NotSerializableException: com.sun.uwc.common.util.UWCPreferences
    server.log_2006-08-28T03-15-11:29668:java.io.NotSerializableException: com.sun.uwc.common.util.UWCPreferences
    Thanks

    I think this might occur if you don't have the patch for SunAlert 46042 installed. There's more information on this critical Solaris security vulnerability, which was reported back in 2002, at http://sunsolve.central.sun.com/search/document.do?assetkey=1-26-46042-1
    Can you run the following command to check if you have patch 109326-09 installed and let us know the result?showrev -p | grep 109326If you don't have 109326-09 or higher installed, you should install it as soon as possible. You can follow the link from the SunAlert. Better yet, install the latest Solaris 8 recommended patch cluster from http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/patch-access to make sure your system is fully patched and up to date.

  • This is regarding CBMA in SAP PI 7.3.1. I have set up the alert mail using default java mail client.I do receive the alerts via mail. But my requirement is to direct all the mails to Business workplace inbox in ECC.

    This is regarding CBMA in single stack SAP PI 7.3.1. I have set up the alert mail using default java mail client.I do receive the alerts via mail. But my requirement is to direct all the alert mails to Business workplace inbox in ECC.
    So I need to set up PI to redirect mails to ECC Business workplace user inbox (sbwp). From here rules are set up & routed per distribution list.
    Please guide me how I can achieve this requirement.

    Hi,
    yes, it is a little bit different. This is the issue.....  
    But I am not sure if your links will help:
    1) /people/william.li/blog/2008/02/13/sap-pi-71-mapping-enhancements-series-using-graphical-variable
    is about a different solution. I do not need to count the number of lines of the source message.
    And the second variable is about concat line by line from unbound node to unbound node.
    My issue is:
    Souce:
    Message line (0...unbound) ! ! ! ! ! ! ! !
    .    ResultLine   (1..1)
    Mapping:
    =>   ResultLine1
           ResultLine2
           ResultLine........          => into UDF to an element  (1..1) in one mapping operation.
    So that all "ResultLine"s are included.
    The result is explained in the given link for Mail attachment with UDF.
    So I am not sure how to use this thread for my issue.
    In the comments of that blog Christoph Gerber writes that the new variable feature can only handle single values.
    So it is not suitable for my purposes as I have a list of values here that needs to be moved into the target message field.
    2) http://wiki.sdn.sap.com/wiki/display/Java/UsingEditJavaSectioninMessageMapping
    shows where to find the button "Java section" which is not available here in 7.1
    3) /people/sap.user72/blog/2005/10/01/xi-new-features-in-sp14
    too is about the nice little button for Java Section that is no longer existing on PI 7.1 screen for mappings.  
    So my issue is: How to replace the Java section function with global variables in PI 7.1?
    Best regards
    Dirk

  • E-Mail client for UNIX

    I want to develop an E-Mail client like ThunderBird, Edura in Java for UNIX,. If any one of you developed such project than please guide me. My email address is [email protected]
    Thank you.

    The nearest to Outlook would probably be MS mail for exchange since they're both Microsoft
    If you find my post helpful please click the green star on the left under the avatar. Thanks.

  • Help me for Programming Mail Client and Mail Server

    I need help on programming mail client.it is totaly new topic for me.
    and i hope some one experienced would surely help me.
    thanks

    Download mail api, it comes with tons of examples
    http://java.sun.com/products/javamail/
    amgandhi said it all... go download it ya lazy sack

  • How to reset time for Firefox' mail client, so it would match my desktop's summer time?

    After I changed time from winter to summer on my desktop, information about the time when I sent or receive e-mail using Firefox Internet browser and Google mail client is one hour off:
    When I check my SENT box, there is information about my immediate recent message that suggests that it has been sent out an hour ago.
    I tried to find relevant Google mail client's and Firefox Internet browser settings, but couldn't.
    What should I do?
    Thank you.

    Firefox doesn't do email, it's a web browser.
    If you are using Firefox to access your mail, you are using "web-mail". You need to seek support from your service provider or a forum for that service.
    If your problem is with Mozilla Thunderbird, see this forum for support.
    [http://www.mozillamessaging.com/en-US/support/] <br />
    or this one <br />
    [http://forums.mozillazine.org/viewforum.php?f=39]

  • Can i restrict apple mail client from downloading all emails...and allow it to pick a start date for gmail mail to sync? i am flooded with old emails, thousands on them ...eating hard drive space of my macbook pro and un necessary overhead

    can i restrict apple mail client from downloading all emails...and allow it to pick a start date for gmail mail to sync? i am flooded with old emails, thousands on them ...eating hard drive space of my macbook pro and un necessary overhead

    The genius bar technicians can check your MBP for possible hardware problems and specific software issues that you may have.  The diagnosis will be free.  Any extensive repairs will not be free.
    If you have minor software problems, you essentially will have to deal with them yourself.  Examine these two comprehensive documents for possible problem definition and solutions.  If you encounter problems that you are unable to cope with, start a new discussion and there will be persons willing to assist you in solving them.
    https://discussions.apple.com/docs/DOC-3521
    https://discussions.apple.com/docs/DOC-3353
    Ciao.

  • Hi - for some reason, my IPAD3 mail client has decided it can no longer connect to my Exchange server.

    Hi - for some reason, my IPAD3 mail client has decided it can no longer connect to my Exchange server.  It's worked like a charm for weeks.  Any thoughts?
    For the record, I've got a POP mail account that is working fine on the machine and the WIFI is up and running (Safari is loading fine).
    Thanks

    Hi Jim,
    Your issue is the most FAQ in the forums, it is an ongoing problem with Tiger waiting to be fixed by Apple. Till then, forget your aliases and use either Command-K or from the Finder Go-->Connect to Server and enter the remote Mac's IP address to connect.
    Also, Open Utilities-->Terminal and type lookupd -flushcache (Press Return) and reboot. Do this for both macs.
    Macs running 9.x, Macs running 10.4.x, SGI workstations running Irix 6.5.x

  • If I install the Mail server on a Mac Mini as a server, can my users utilize Outlook as their mail client and how will it be different for them?

    If I install the Mail server on a Mac Mini as a server, can my users utilize Outlook as their mail client and how will it be different for them?

    Your users can utilize Outlook no matter where your email is hosted at.
    how will it be different for them
    different from what?

  • In August installed PE12  on Windows Vista with incorrect Sharing Preference for Email Client. Shows default Adobe Email Service How do I change it to Windows Mail?

    Had PE6 previously to installing PE12 on Windows Vista.  PE 12 installation went OK except for the Sharing Preference for the Email Client. Existing  PE12 client is the default Adobe email service not the correct Windows Mail for Vista. How do I make this change..

    Hi,
    I think that for PSE 12, you may need to switch to Windows Live Mail
    http://www.microsoft.com/en-gb/download/details.aspx?id=29224
    You may find that you then also need the following fix.
    Freeze or error “There is no email program” | Share via email | Elements Organizer | Windows 7
    I think that the problem is that the new versions of PSE do not know where to look for the mail client.
    Brian

  • How do I schedule an email for future delivery on Mac mail client?

    How do I schedule an email for delivery at a future date/time on my Mac mail client?

    Hello DeeDubb11,
    Unfortunately, you cannot do that with the officially Mac Mail client.
    Best regards.

  • I need a new mail client for MS Exchange Mail- Entourage is slow

    Does anyone know if there is a mail client for Mac that can access MS Exhange Server mail? I am running MS Office Entourage 04 on a MacBook Pro with 2GB RAM (max). Entourage will work fine (using Rosetta) but occasionally hangs and is sluggish. If I can type faster than a computer thinks there is a problem (my typing is bad).

    Aside from Apple's own Mail application, and it's limited support for Exchange servers, I don't think there are any other apps...

  • Mail client settings for Sony Z2 tablet

    Tried to use standard mail client. However incoming mails are ok and are being downloaded. As for outgoing mails...here there is no synchronization with other devices, if You send mail there, it will appear in outgoing folder, if some message is sent from other device, it doesn't appear in this standard client application. The problem is only with the outgoing folder.How to fix?
    Thanks

    Hi pilotbroth,
    Welcome to the community! Since you're new please be sure that you have checked out our Discussion guidelines.
    Are you running a POP3 account? as POP3 only really shows a copy of what is in the inbox, outgoing would only show if say you used Exchange or IMAP4 based accounts.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

Maybe you are looking for

  • Overall result of structure

    Hi all, I have two structures in my query---- one for char and one for keyfigure........ In rows i have char structure and one more char 0wbselment........ when i execute the report i want to display overall result for the structure..........rightnow

  • Replace characters in a string

    Hi, I need to replace all occurrences of control characters except space,newline,tabs in a string . I can give a replace statement for each of these characters but I want to avoid this by making use of regular expressions. Can anyone help me in this

  • Exporting Keynote to PPS

    After exporting a slideshow with music I made with Keynote as pps, I have burned a DVD with it. However, in all attempts to play it back in MS PowerPoint, it will not play. It does play on my iMac through Keynote. What am I missing to cause it to be

  • Cannot Link Account Number to MyBT

    Hi guys, So the title pretty much sums this up. To give a little background on the situation, we have an issue with an outstanding bill that we need to sort out. Calling BT about the bill gave us mixed messages, so I was hoping to resolve the problem

  • Add date that row was modified.

    I am trying to add the date to "column A" when ever a row is modified. If i put this in a new workbook it works fine, but when added to my current work book it does nothing (not even a error) Private Sub Worksheet_Change(ByVal Target As Range) If Tar