UTL_SMTP writing to email body after writing to attachment doesn't work

Read in contents of files and Write text to email body if size is < 10k , otherwise to an attachment. Problem is after writing to an attachment we can't get it to switch to write the next file contents to the message body.
Example; we have 6 files in the table array. The first two files are less than 10k in size so the text from these files get written to the mail body. The third file size is 12k so the text gets written to an attachment. The 4th file is 2k but instead of being written to the email message body it gets appended to the previous attachment. All subsequent files of size < than 10k get appended to the attachment.

Sounds like you've written some custom code and it has a bug in it. How about you post a SMALL (yet complete) example that can be run by anyone with an Oracle database (the same version as you, which you've not told us and should). From there you should get lots of help.
To get your version
select *
from v$version;

Similar Messages

  • I got this new Ipad. After a month my charger broke. So what I did is got a new charger that is not from Apple company it was from a different company. After 3 week it doesn't work anymore. What do I do. HELP ME PLEASE!!!!!!!!!!!

    I got this new Ipad. After a month my charger broke. So what I did is got a new charger that is not from Apple company it was from a different company. After 3 week it doesn't work anymore. What do I do. HELP ME PLEASE!!!!!!!!!!!

    Not normal. Take it (iPad, cable & charger) to an Apple Store for evaluation.
    Make a Genius Bar Reservation
    http://www.apple.com/retail/geniusbar/
     Cheers, Tom

  • After Mavericks download iCal doesn't work, still - sending calendars to server.... nothing more, please help what to do Tx

    after Mavericks download iCal doesn't work, still - sending calendars to server.... nothing more, please help what to do Tx

    I had some initial problems with iCal too. At least for me deleting the prefs file solve them. The file is: com.apple.iCal.plist  and it is in your Library/Preferences folder
    The other thing your problem appears to be connecting to the server is to quit Calendar and then open System Preferences, select the Internet Accounts, and toggle off the Calendar checkmark of each of your calendar accounts. Quit System Preferences. Start the calendar. Since you've turned off the calendar server accounts there should be no beachballing. Quit, return to System preferences and re-enable one calendar account at a time. (This assumes that you are using more than iCloud Calendar) and then start Calendar again. And finally, for one particularly obnoxious iCloud issue I wound up deleting my iCloud account in System Preferences and then recreating it. (Same account name, etc, I just killed the account on my computer so I could start out with fresh preferences).

  • BI Publisher how to make email body not be a attachment (message.txt)

    I am using Oracle Business Intelligence Publisher Release 10.1.3.4 Part Number E12602-01 with OBIEE 10g. When I schedule a BI pub PDF report send via email, my text in "BODY" text area shows up as an attachment (message.txt) not in the email body. How can I solve this. We don't need bursting.
    Thanks in advance!

    jordansydney wrote:
    I have literally tried everything! read all the forums! I need an actual solution!
    If everything has been tried, there is nothing more to try.  Just give up. 
    Or Troubleshooting FaceTime and iMessage activation issues

  • Every time I ask Siri to find something near me, she says that she cannot find my location, and to turn on my location settings and siri settings. These are both on and after rebooting it still doesn't work. How do I fix this?

    Every time I ask Siri to find something near me, she says that she cannot find my location because I need to turn on location services in the settings menu and in siri. These are both on, and after rebooting my phone it still doesn't work correctly. How do I fix this?

    No, the app does not have to completely restart. It gets shifted in its open state into storage. Similar to how a computer uses the hard disk when it has insufficient memory.
    What complicates things is that sometimes memory does not get returned for reuse when you close an app. Thus yo should periodically double click the Home button and "delete" unnecessary apps from the multitasking dock and power off and then back on the iPod.

  • After upgrading software microphone doesn't work

    After upgrading software microphone doesn't work

    Dimitrios44-
    Have you tried using the microphone with more than one App?  One I use is Skype, which is a free App.  Once your are registered with Skype, you can use their test server to record and playback several seconds of your audio.
    It may just be coincidence that your microphone stopped working after the upgrade.  If you show it to an Apple Store Genius, you may get a new iPad.  If that is not convenient, search for an Authorized Apple Repair Center near you.  There may be one in your city.
    One thing you can try is to reset (reboot) the iPad.  Hold both the Home and Sleep buttons for several seconds until the Apple logo appears.  Ignore the "Slide to power off" arrow.  The iPad will restart after a couple of minutes.  Resetting this way will not hurt anything, and sometimes clears up mysterious problems.
    Fred

  • Cannot install CS6. I deleted CC tryout version files by dragging them to trash bin. After that, installation program doesn't work (do nothing). How can I fix it?

    I deleted application folder of Illustrator CC tryout by mistake.  I should have run adobe installer but I didn't.
    After that, I could not uninstall Illustrator CC and also I could not install CS6.
    When I tried to install CS6, installer does nothing after entering serial number.
    OS: Mac OS Maverick on Macbook Pro

    I did run Adobe cleanup and confirmed that Illustrator CC has been removed but installation doesn't work.
    When I click on install button after putting in serial number and login with Adobe ID, nothing happens.
    It is frustrating.  I couldn't even install the program yet.

  • Text in the email body is going as attachment through email activity

    hi ,
    In my bpel email activity the body part is going as an attachment. Even a text like 'hi' also going as an attachment where i need to download the file and need to read the content.
    Can any one help is in solving this issue.
    Thank you
    Gayaz

    hi Jyotirmoy,
    this is the format i am using
    <scope name="Email_1">
    <bpelx:annotation>
    <bpelx:pattern patternName="bpelx:email"></bpelx:pattern>
    </bpelx:annotation>
    <variables>
    <variable name="varNotificationReq"
    messageType="ns3:EmailNotificationRequest"/>
    <variable name="varNotificationResponse"
    messageType="ns3:ArrayOfResponse"/>
    <variable name="NotificationServiceFaultVariable"
    messageType="ns3:NotificationServiceErrorMessage"/>
    </variables>
    <sequence name="Sequence_2">
    <assign name="EmailParamsAssign">
    <copy>
    <from expression="string('Default')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:FromAccountName"/>
    </copy>
    <copy>
    <from expression="string('')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:Bcc"/>
    </copy>
    <copy>
    <from expression="string('')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:Cc"/>
    </copy>
    <copy>
    <from expression="string('')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:ReplyToAddress"/>
    </copy>
    <copy>
    <from expression="concat(concat(concat('RLMS ',bpws:getVariableData('inputVariable','payload','/client:AarlmsDailyWeeklySubscriptionProcessRequest/client:input')),' Subscription Alert: Uploaded and modified files for folder'), bpws:getVariableData('folderPath'))"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:Subject"/>
    </copy>
    <copy>
    <from expression="bpws:getVariableData('emailIds')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:To"/>
    </copy>
    <copy>
    <from>
    <Content xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
    <MimeType xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">multipart/mixed</MimeType>
    <ContentBody xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
    <MultiPart xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
    <BodyPart xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
    <MimeType xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
    <ContentBody xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
    <BodyPartName xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
    </BodyPart>
    </MultiPart>
    </ContentBody>
    </Content>
    </from>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:Content"/>
    </copy>
    <copy>
    <from expression="string('text/html; charset=UTF-8')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:Content/ns3:ContentBody/ns3:MultiPart/ns3:BodyPart[1]/ns3:MimeType"/>
    </copy>
    <copy>
    <from expression="string('NotificationAttachment1.html')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:Content/ns3:ContentBody/ns3:MultiPart/ns3:BodyPart[1]/ns3:BodyPartName"/>
    </copy>
    <copy>
    <from expression="string('hi')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:Content/ns3:ContentBody/ns3:MultiPart/ns3:BodyPart[1]/ns3:ContentBody"/>
    </copy>
    </assign>
    <invoke name="InvokeNotificationService" partnerLink="NotificationService"
    portType="ns3:NotificationService"
    operation="sendEmailNotification"
    inputVariable="varNotificationReq"
    outputVariable="varNotificationResponse"/>
    </sequence>
    </scope>
    Thank you
    Gayaz

  • Writing up short showcase for sed, but /-\ - A doesn't work [SOLVED]

    As the title says, I'm working on a zenity script to store a fair chunk of sample sed commands to remind myself what I can do with it. Everything seems to work fine except for the l33t to english garbler.
    When that is run, it gives me this:
    sed: -e expression #1, char 9: unterminated `s' command
    sed: -e expression #1, char 7: unknown option to `s'
    sed: -e expression #1, char 10: unterminated `s' command
    sed: -e expression #1, char 5: unterminated `s' command
    sed: -e expression #1, char 8: unterminated `s' command
    http://pastebin.org/193208 <-- has whole script and highlighted line causing trouble <-- not updated, but I have it solved on the local copy. I'll make sure to update this when I get done cleaning up the code
    [^edit: escaped characters pointed out]
    But if I execute this (same trouble command, but not inside the script) [fixed typo now]:
    sed s/'\/-\\'/A/g <yourfile that has /-\ for a in it>
    or
    echo "/-\\" | sed s/'\/-\\'/A/g
    ^It turns the /-\ back into an A...so...I honestly don't know what the shell is doing to interpret the same command differently.
    Last edited by ShadowKyogre (2010-05-02 18:34:30)

    Daenyth wrote:Your quoting is wrong.
    Procyon wrote:
    The quoting is indeed a mess! But the error is from lack of escaping, and no amount of quoting will fix that.
    EDIT
    Although in the script you have: sed s/'\/-\\'/A/g, which is different from what you posted above.
    There is an error in:
    sed s/'[_-'/G/g
    sed s/'[]'/O/g
    sed s/'\/'/ V/g
    sed s/'\|/'/W/g
    So unescaped []/. And probably some more from special regex characters.
    *looks back at the script and my post* Whoooooooooah...that is a huge mistake o_o. *hurries to escape the regex characters in the l33t*
    I'll go fix the typo in my post and I went around and escaped the ones you showed. Now only this pops up.
    sed: -e expression #1, char 7: unterminated `s' command

  • After System Update keyboard doesn't work -MacBook

    Here is what happened and I was able to fix, someway... but not definetly.
    I updated to Snow Leopard and everything was fine. After I launched System Update to finish the update, I installed a few ones then I rebooted.
    At the login I realized that some of the keys didn't work anymore. Namely
    0 = P ] ; \ / ENTER
    those what I found.
    With the help of the virtual keyboard I was able to take a look at the log and I noticed that the /System/Library/Extensions/AppleHIDKeyboard.kext was updated just before the last working configuration...
    Luckily I had a bootable backup of the system before Snow Leopard, so I boot from the external USB drive and copied the old AppleHIDKeyboard.kext in place of the new one, that I saved with .bak extension.
    I rebooted and the keyboard was properly working again.
    I think my fix is "dirty". I experienced some slowdowns here and there and I found a log message stating:
    com.apple.kextcache[271] AppleHIDKeyboard.kext does not declare a kernel dependency; using com.apple.kernel.6.0.
    I'm wondering why the keyboard stopped working and if there is a better way to fix it.
    Any comment? (Please)
    All log messages containig "keyboard" follows
    Thanks
    <START OF LOG MESSAGES CONTAINING "keyboard">
    [[MARKER THIS IS AFTER SNOW LEOPARD UPDATE]]
    16/03/2010 14:47:53 pkgutil[1163] Updating receipt 'com.apple.pkg.BaseSystem' path 'System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleBluetoot hHIDKeyboard.kext/Contents/CodeDirectory' on '/' with actual metadata from '/System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleBluetoo thHIDKeyboard.kext/Contents/CodeDirectory'.
    16/03/2010 14:47:53 pkgutil[1164] Updating receipt 'com.apple.pkg.BaseSystem' path 'System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleBluetoot hHIDKeyboard.kext/Contents/CodeRequirements' on '/' with actual metadata from '/System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleBluetoo thHIDKeyboard.kext/Contents/CodeRequirements'.
    16/03/2010 14:47:54 pkgutil[1165] Updating receipt 'com.apple.pkg.BaseSystem' path 'System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleBluetoot hHIDKeyboard.kext/Contents/CodeResources' on '/' with actual metadata from '/System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleBluetoo thHIDKeyboard.kext/Contents/CodeResources'.
    16/03/2010 14:47:54 pkgutil[1166] Updating receipt 'com.apple.pkg.BaseSystem' path 'System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleBluetoot hHIDKeyboard.kext/Contents/CodeSignature' on '/' with actual metadata from '/System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleBluetoo thHIDKeyboard.kext/Contents/CodeSignature'.
    16/03/2010 14:47:54 pkgutil[1167] Updating receipt 'com.apple.pkg.BaseSystem' path 'System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleBluetoot hHIDKeyboard.kext/Contents/Info.plist' on '/' with actual metadata from '/System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleBluetoo thHIDKeyboard.kext/Contents/Info.plist'.
    16/03/2010 14:47:54 pkgutil[1168] Updating receipt 'com.apple.pkg.BaseSystem' path 'System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleBluetoot hHIDKeyboard.kext/Contents/MacOS/AppleBluetoothHIDKeyboard' on '/' with actual metadata from '/System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleBluetoo thHIDKeyboard.kext/Contents/MacOS/AppleBluetoothHIDKeyboard'.
    16/03/2010 14:47:54 pkgutil[1169] Updating receipt 'com.apple.pkg.BaseSystem' path 'System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleBluetoot hHIDKeyboard.kext/Contents/Resources/AppleBluetoothHIDKeyboard.plist' on '/' with actual metadata from '/System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleBluetoo thHIDKeyboard.kext/Contents/Resources/AppleBluetoothHIDKeyboard.plist'.
    16/03/2010 14:47:54 pkgutil[1170] Updating receipt 'com.apple.pkg.BaseSystem' path 'System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleBluetoot hHIDKeyboard.kext/Contents/_CodeSignature/CodeDirectory' on '/' with actual metadata from '/System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleBluetoo thHIDKeyboard.kext/Contents/_CodeSignature/CodeDirectory'.
    16/03/2010 14:47:54 pkgutil[1171] Updating receipt 'com.apple.pkg.BaseSystem' path 'System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleBluetoot hHIDKeyboard.kext/Contents/_CodeSignature/CodeRequirements' on '/' with actual metadata from '/System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleBluetoo thHIDKeyboard.kext/Contents/_CodeSignature/CodeRequirements'.
    16/03/2010 14:47:54 pkgutil[1172] Updating receipt 'com.apple.pkg.BaseSystem' path 'System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleBluetoot hHIDKeyboard.kext/Contents/_CodeSignature/CodeResources' on '/' with actual metadata from '/System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleBluetoo thHIDKeyboard.kext/Contents/_CodeSignature/CodeResources'.
    16/03/2010 14:47:54 pkgutil[1173] Updating receipt 'com.apple.pkg.BaseSystem' path 'System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleBluetoot hHIDKeyboard.kext/Contents/_CodeSignature/CodeSignature' on '/' with actual metadata from '/System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleBluetoo thHIDKeyboard.kext/Contents/_CodeSignature/CodeSignature'.
    16/03/2010 14:47:54 pkgutil[1174] Updating receipt 'com.apple.pkg.BaseSystem' path 'System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleBluetoot hHIDKeyboard.kext/Contents/version.plist' on '/' with actual metadata from '/System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleBluetoo thHIDKeyboard.kext/Contents/version.plist'.
    16/03/2010 14:47:54 pkgutil[1175] Updating receipt 'com.apple.pkg.BaseSystem' path 'System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleUSBHIDKe yboard.kext/Contents/CodeDirectory' on '/' with actual metadata from '/System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleUSBHIDK eyboard.kext/Contents/CodeDirectory'.
    16/03/2010 14:47:54 pkgutil[1176] Updating receipt 'com.apple.pkg.BaseSystem' path 'System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleUSBHIDKe yboard.kext/Contents/CodeRequirements' on '/' with actual metadata from '/System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleUSBHIDK eyboard.kext/Contents/CodeRequirements'.
    16/03/2010 14:47:55 pkgutil[1177] Updating receipt 'com.apple.pkg.BaseSystem' path 'System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleUSBHIDKe yboard.kext/Contents/CodeResources' on '/' with actual metadata from '/System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleUSBHIDK eyboard.kext/Contents/CodeResources'.
    16/03/2010 14:47:55 pkgutil[1178] Updating receipt 'com.apple.pkg.BaseSystem' path 'System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleUSBHIDKe yboard.kext/Contents/CodeSignature' on '/' with actual metadata from '/System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleUSBHIDK eyboard.kext/Contents/CodeSignature'.
    16/03/2010 14:47:55 pkgutil[1179] Updating receipt 'com.apple.pkg.BaseSystem' path 'System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleUSBHIDKe yboard.kext/Contents/Info.plist' on '/' with actual metadata from '/System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleUSBHIDK eyboard.kext/Contents/Info.plist'.
    16/03/2010 14:47:55 pkgutil[1180] Updating receipt 'com.apple.pkg.BaseSystem' path 'System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleUSBHIDKe yboard.kext/Contents/MacOS/AppleUSBHIDKeyboard' on '/' with actual metadata from '/System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleUSBHIDK eyboard.kext/Contents/MacOS/AppleUSBHIDKeyboard'.
    16/03/2010 14:47:55 pkgutil[1181] Updating receipt 'com.apple.pkg.BaseSystem' path 'System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleUSBHIDKe yboard.kext/Contents/_CodeSignature/CodeDirectory' on '/' with actual metadata from '/System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleUSBHIDK eyboard.kext/Contents/_CodeSignature/CodeDirectory'.
    16/03/2010 14:47:55 pkgutil[1182] Updating receipt 'com.apple.pkg.BaseSystem' path 'System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleUSBHIDKe yboard.kext/Contents/_CodeSignature/CodeRequirements' on '/' with actual metadata from '/System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleUSBHIDK eyboard.kext/Contents/_CodeSignature/CodeRequirements'.
    16/03/2010 14:47:55 pkgutil[1183] Updating receipt 'com.apple.pkg.BaseSystem' path 'System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleUSBHIDKe yboard.kext/Contents/_CodeSignature/CodeResources' on '/' with actual metadata from '/System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleUSBHIDK eyboard.kext/Contents/_CodeSignature/CodeResources'.
    16/03/2010 14:47:55 pkgutil[1184] Updating receipt 'com.apple.pkg.BaseSystem' path 'System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleUSBHIDKe yboard.kext/Contents/_CodeSignature/CodeSignature' on '/' with actual metadata from '/System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleUSBHIDK eyboard.kext/Contents/_CodeSignature/CodeSignature'.
    16/03/2010 14:47:55 pkgutil[1185] Updating receipt 'com.apple.pkg.BaseSystem' path 'System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleUSBHIDKe yboard.kext/Contents/version.plist' on '/' with actual metadata from '/System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleUSBHIDK eyboard.kext/Contents/version.plist'.
    [[MARKER NOW I REBOOTED AND THE KEYBOARD DID NOT WORK]]
    16/03/2010 17:24:43 /System/Library/Input Methods/KeyboardViewer.app/Contents/MacOS/KeyboardViewer[313] CGSKeyTranslateInitialize: KLGetCurrentKeyboardLayout or KLGetKeyboardLayoutProperty is not available, fall back to USA keymap
    16/03/2010 17:55:06 /System/Library/Input Methods/KeyboardViewer.app/Contents/MacOS/KeyboardViewer[337] CGSKeyTranslateInitialize: KLGetCurrentKeyboardLayout or KLGetKeyboardLayoutProperty is not available, fall back to USA keymap
    [[MARKER NOW I WILL TRY TO INSTALL A FIRMWARE UPDATE, BUT IT WILL STATE THAT MY SYSTEM DOESN'T NEED IT. SO NOTHING DONE]]
    16/03/2010 21:27:26 /System/Library/Input Methods/KeyboardViewer.app/Contents/MacOS/KeyboardViewer[433] CGSKeyTranslateInitialize: KLGetCurrentKeyboardLayout or KLGetKeyboardLayoutProperty is not available, fall back to USA keymap
    16/03/2010 21:33:37 Installer[462] Opened from: /Volumes/MacBook MacBook Pro Keyboard Update/MacBookMacBookProKbdSU.pkg
    16/03/2010 21:36:52 /System/Library/Input Methods/KeyboardViewer.app/Contents/MacOS/KeyboardViewer[490] CGSKeyTranslateInitialize: KLGetCurrentKeyboardLayout or KLGetKeyboardLayoutProperty is not available, fall back to USA keymap
    17/03/2010 07:13:25 /System/Library/Input Methods/KeyboardViewer.app/Contents/MacOS/KeyboardViewer[662] CGSKeyTranslateInitialize: KLGetCurrentKeyboardLayout or KLGetKeyboardLayoutProperty is not available, fall back to USA keymap
    [[MARKER AND HERE IS AFTER I RESTORED THE OLD AppleHIDKeyboard.kext...]
    17/03/2010 07:44:23 com.apple.launchd.peruser.502[182] ([0x0-0x60060].com.apple.KeyboardViewer[662]) Exited: Killed
    17/03/2010 08:21:55 com.apple.kextcache[271] AppleHIDKeyboard.kext does not declare a kernel dependency; using com.apple.kernel.6.0.
    <END OF LOGS>

    It is never a good idea to mix system components like kext's from different OS X versions. If you right-click on for instance the AppleHIDKeyboard.kext & choose "Show contents" you will see that it is a bundle composed of many individual files. Many of these files contain information about files in other OS bundles. Similarly, other OS bundles may contain info about the files in this bundle. This tells the OS what +set of files+ it can & can't use for various functions.
    IOW, kext's are not self-contained, functionally independent items. When you replace one with one from a different OS version, its info about other files usually won't be right. This can & very often does cause problems. Some are minor but others can cause progressively greater problems, eventually damaging the OS enough that it becomes inoperative.
    So, your fix is almost certainly "dirty."
    It's also not addressing the source of the problem. There is nothing wrong with Snow Leopard's AppleHIDKeyboard.kext file (version 1.2.0). Snow Leopard works perfectly well with my & thousands of other users' MacBooks. The cause of your problem could be many things, but this is not one of them. If you can accept that, there are several things you can do to find the cause, starting with running the Apple Hardware Test to see if it finds up any problems with your MacBook.

  • Email with attachment doesn't work

    Hi all,
    I have a form in with i upload a file. On submit i send a mail with attach the file i uploaded. the form has as action a servlet.
    Well it works if i try it on the localhost, when i try it from my computer to the server the mail is sent but without the file attach.
    the code is the following:
    import java.util.Properties;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    import java.io.*;
    import java.util.*;
    /public class SendMail
    String host ="" ;
    String from ="" ;
    String to ="";
    String subject ="";
    String body ="";
    String id ="";
    String filename ="" ;
    boolean add = false;
    boolean tosend = false;
    public SendMail(String h , String f)
         host = h;
         from = f;
    public void setTo(String to)
         this.to = to;
    public void setSubject(String obj)
         this.subject = obj;
    public void setBody(String body)
         if(add)
              this.body += body;
              add = false;
         else
              this.body = body;
    public void addToBody(String body)
         this.body += body;
    public boolean getContinue()
         return add;
    public void setContinue(boolean a)
         add = a;
    public String getBody()
         if(!add)
              return this.body;
         else
              return "";
    public boolean send()
         try
         //Get system properties
         Properties props = System.getProperties();     
         //Setup mail server
         props.put("mail.smtp.host", host);
         // Get session
         Session session = Session.getDefaultInstance(props, null);
         // Define message
         MimeMessage message = new MimeMessage(session);
                   // Set the from address
                   message.setFrom(new InternetAddress(from));
    //               Set the to address
    System.out.println("to = >" + to +"< body = "+ body);
         message.addRecipient(Message.RecipientType.TO,new InternetAddress(to));
    //     Set the subject
         message.setSubject(subject);
    //     Set the content
         message.setText(body);
    // Send message
         // Transport.send(message);
    File file = new File(filename);
                   if (file.exists())
                        // create and fill the first message part
                        MimeBodyPart mbp1 = new MimeBodyPart();
                        mbp1.setText(body);
                        // create the second message part
                        MimeBodyPart mbp2 = new MimeBodyPart();
                        // attach the file to the message
                        FileDataSource fds = new FileDataSource(filename);
                        mbp2.setDataHandler(new DataHandler(fds));
                        mbp2.setFileName(fds.getName());
                        // create the Multipart and its parts to it
                        Multipart mp = new MimeMultipart();
                        mp.addBodyPart(mbp1);
                        mp.addBodyPart(mbp2);
                        // add the Multipart to the message
                        message.setContent(mp);
                   // send the message
                   Transport.send(message);
    return true;
    catch (AddressException e)
                   e.printStackTrace();
                   return false;
    catch (MessagingException e)
                   e.printStackTrace();
                   return false;
    catch (Exception e)
                   e.printStackTrace();
                   return false;
    Any help is appreciated.
    Thanks!

    Ok, I have made something similar to which your you want to do.
    Before to send a e-mail you have to upload the file, and later you can attach it into the e-mail.
    To upload the file:
    I made it with a jsp file (has a form) where I call to a java servlet how upload the file:
    package ServletUpload;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.text.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import org.apache.commons.fileupload.*;
    import org.apache.commons.fileupload.disk.DiskFileItemFactory;
    import org.apache.commons.fileupload.servlet.ServletFileUpload;
    public class uploadFichero extends HttpServlet {
        public void init(ServletConfig config) throws ServletException{
            super.init(config);
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            response.setContentType("text/html");
            PrintWriter out = response.getWriter();
            out.println("<html>");
            out.println("<head>");
            out.println("<title>Servlet</title>");
            out.println("</head>");
            out.println("<body>");
            out.println("We began the processing of the file");
            boolean uploaded = false;
            uploaded = procesaFicheros(request,out);
            if (true==uploaded)
                out.println("File uploaded");
            else
                out.println("Error to upload File");
            out.println("</body>");
            out.println("</html>");
            out.close();
        public boolean procesaFicheros(HttpServletRequest req, PrintWriter out ) throws ServletException, IOException {
            try {
                boolean isMultipart = FileUpload.isMultipartContent(req);
                out.println ("<br>Is multipart:"+isMultipart);
                // Create a factory for disk-based file items
                FileItemFactory factory = new DiskFileItemFactory();
                // Create a new file upload handler
                ServletFileUpload upload = new ServletFileUpload(factory);
                // Set overall request size constraint
                upload.setSizeMax(1024*512); //524288 Bytes (512 KB)
                // Parse the request
                List items = upload.parseRequest(req);
                // Process the uploaded items
                Iterator iter = items.iterator();
                while (iter.hasNext()) {
                    FileItem item = (FileItem) iter.next();
                    if (!item.isFormField()) {  //Files to upload
                        String fieldName = item.getFieldName();
                        String fileName = item.getName();
                        String contentType = item.getContentType();
                        boolean isInMemory = item.isInMemory();
                        long sizeInBytes = item.getSize();
                        /* ************* FOR WINDOWS EXPLORER ****************** */
                        /* ************** FOR MOZILLA EXPLORER IS NOT NEED ****************** */
                        /* *********** We extract the name of the file ONLY the name *********** */
                            /*  We have the name into a string, We have the separated folders by the character \  */
                        int numbers=0;
                        for(int i=fileName.length();(i=fileName.lastIndexOf('\\',i-1))>=0;)
                            numbers++;
                            /* WE OBTAIN A STRING FOR EACH DIRECTORY And The FILE */
                        String stringFile[] = fileName.split("\\\\");
                        /* *********** We only extract the name of the file (END) *********** */
                        /* WE CREATED THE FOLDER IN CASE IT DOES NOT EXIST */
                        /* WE VERIFIED IF THE FOLDER EXISTS */
                        String folder = "yourFolderName";
                        String newUserFolder = folder;
                        File createFile = new File("routeOfYourFolder/"+newUserFolder);
                        /*  for example (in unix)
    File createFile = new File("/usr/local/tomcat/webapps/"+newUserFolder);
                        if (!createFile.exists()){ /* IT DOES NOT EXIST, WE CREATE IT */
                            createFile.mkdir();
                        /* WE VERIFIED IF THE FOLDER EXISTS (END) */
                        /* WE WROTE THE FILE (UPLOAD) IN THE CHOSEN FOLDER */
                        fileName = stringFile[numbers];
                        File uploadedFile = new File("routeOfYourFolder/"+newUserFolder+"/"+fileName);
                        item.write(uploadedFile);
                        /* WE WROTE THE FILE (UPLOAD) IN THE CHOSEN FOLDER (END) */
                    } else {        //THAT ARE THE OTHER FIELDS OF THE FORM
                        // s= item.toString();
                        // out.println("<br>isFormField: "+s);
            catch(Exception e) {
                out.println("ERROR IN THE APPLICATION " + e.getMessage());
            return true;
        public void destroy() {
        public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{
            response.setContentType("text/html");
            PrintWriter out = response.getWriter();
            processRequest(request, response);
        public void doPost(HttpServletRequest req,HttpServletResponse res) throws ServletException, IOException {
              doGet(req,res);
    }  //END OF uploadFicheroI hope it helps you. you will tell me.

  • After updates solo button doesn't work with comp track, anyone have the same problem?

    Hello everyone, after upadtes solo button is not soloing a comp track,
    is there someone that knows to fix this bug?
    it's possible that now logic consider a comp track as muted, and then doesn't solo the comp track ?
    thanks everyone

    Looks like there may be a solution on Itunes 10.5 64bit will not install on Win7. I am going to try that.

  • If I open my email server with firefox the autocomplete doesn't work. why?

    If I open my email server with Internet explorer I don't have this problem

    Thank you Alley!
    But still not working.
    I've just bought my Apple TV. I think it is impossible low battery and I tried to hold menu and left, but it didn't response again.
    When I press any buttom, the Apple TV LED doesn't flick. The light is just on... not flickering...
    Thanks again!
    Igor

  • After iOS8, spell check doesn't work for last word in sentence

    Hello,
    After updating my iPhone 5 to iOS 8, i've noticed that the spell checker and the keybord shortcuts arent working for the last word in sentence.
    For instance, I used to have a shortcut, so whenever I texted LOL and hit the send button, it would send "HAHAHAHA" into the message.
    Now, if i just type LOL and hit send, it will send LOL iinto conversation.
    Has anyone managed to fix it out?
    Thanks.

    Confirm this is selected:
    In the new Write window
    Options > Spell check as you type
    ''re Yes, I have dictionaries installed.''
    This implies you have more than one dictionary.
    Can you check to see if any addon /extension is causing a conflict.
    There is no point starting up in safe mode as this will disable the dictionaries. So instead:
    Tools > Add-ons
    The 'Add-ons Manager will open in a new tab
    select 'Extensions'
    Disable all add-on extensions except for one dictionary.
    Check to see if that dictionary is an up to date version.
    then select 'Dictionaries'
    This is where the default dictionary is located.
    In my case it is 'United States English Spellchecker'
    make sure this is disabled.
    The idea being to ensure that only one dictionary is enabled and that it is up to date. Then check to see if the spell check works.
    If you have other dictionaries, go through the process of enabling one dictionary, checking it is up to date and then testing the spell check.
    Please confirm which dictionaries you have installed.
    for example, I have British English Dictionary 1.19.1 and it is located under Tools > Addons > 'Extensions' and it is enabled.
    I also have under:
    Tools > Addons > 'Dictionaries'
    'United States English Spellchecker' 7.0.1 but this is disabled.
    Tell us what you have and report back on the testing.

  • After update airport interface doesn't work when security is enabled

    Hi all.
    After update of Leopard to v.10.5.2 wireless stop working. As I discovered wireless without security are working, but when I apply any secure methods (wpa,wpa2,wep) airport adapter can't connect to router though I can see available networks. My wireless router is ZyXel p-600 series (P660HTW2EE). I installed last update of airport. Nothing changes.
    1) Any idea about how to resolve the trouble?
    2) How could I see detailed log of airport about troubles during connections?
    3) Where are located config files which save passwords and other settings for wi-fi networks?
    Thanks a lot in advance.

    I would delete your network password.
    Use spotlight or, go to the Utility folder and open "*Keychain Access*" ---> look in the "System" tab and delete the network password for your network.
    Let me know if it does not work.
    -Mike

Maybe you are looking for

  • The document could not be printed...

    I have users that seem to encounter the following errors on a regular basis.  No, it does not occur on every multipage PDF file, however it happens frequently.  When attempting to print multi-page documents - we receive the following errors: The docu

  • How to determine Free Pool Ids in Timesten Db for a given Table

    Hi All, I am using Times ten DB. I have a requirement that i need to have a query which will fetch the free ids in DB. Say if a table has entries with ids 2,3,5 it should return me 1,4 or if the DB has entries for ids 99,100 the query should return m

  • Why can't I use screen sharing with AIM using Mountain Lion?

    Hi everyone: I am 100% sure that my friend and I both have active, valid AIM supported user names and can exchange messages but CANNOT video chat or share screens as befo rewith iChat. Anyone know what the issue may be? Am I alone or is this a known

  • Map implemetation that preserves order of insertion

    Which of the Map implementations guarantees order of insertion? That is, if I iterate through the Map, I should be able to get the keys in the same order in which I inserted. Also, new insertions should always go to the end.

  • Importing special prices

    HI, Can somebody give me an example file to import special prices with quantitys area for all BP ???? Tried something but it didn't update the quantity price only the special price of a BP. Thanks Mark