JMSQueueAppender: posting logged message several times

package com.citco.banking.nxg.logger;
* Copyright 1999-2005 The Apache Software Foundation.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
import org.apache.log4j.AppenderSkeleton;
import org.apache.log4j.spi.LoggingEvent;
import org.apache.log4j.spi.ErrorHandler;
import org.apache.log4j.spi.ErrorCode;
import org.apache.log4j.helpers.LogLog;
import java.util.Date;
import java.util.Hashtable;
import java.util.Properties;
import javax.jms.*;
import javax.naming.InitialContext;
import javax.naming.Context;
import javax.naming.NameNotFoundException;
import javax.naming.NamingException;
* A Simple JMS (P2P) Queue Appender.
* @author Ceki G�lc�
* @author Jamie Tsao
public class JMSQueueAppender extends AppenderSkeleton {
protected QueueConnection queueConnection;
protected QueueSession queueSession;
protected QueueSender queueSender;
protected Queue queue;
String initialContextFactory;
String providerUrl;
String queueBindingName;
String queueConnectionFactoryBindingName;
public
JMSQueueAppender() {
* The InitialContextFactory option takes a string value.
* Its value, along with the ProviderUrl option will be used
* to get the InitialContext.
public void setInitialContextFactory(String initialContextFactory) {
this.initialContextFactory = initialContextFactory;
* Returns the value of the InitialContextFactory option.
public String getInitialContextFactory() {
return initialContextFactory;
* The ProviderUrl option takes a string value.
* Its value, along with the InitialContextFactory option will be used
* to get the InitialContext.
public void setProviderUrl(String providerUrl) {
this.providerUrl = providerUrl;
* Returns the value of the ProviderUrl option.
public String getProviderUrl() {
return providerUrl;
* The QueueConnectionFactoryBindingName option takes a
* string value. Its value will be used to lookup the appropriate
* QueueConnectionFactory from the JNDI context.
public void setQueueConnectionFactoryBindingName(String queueConnectionFactoryBindingName) {
this.queueConnectionFactoryBindingName = queueConnectionFactoryBindingName;
* Returns the value of the QueueConnectionFactoryBindingName option.
public String getQueueConnectionFactoryBindingName() {
return queueConnectionFactoryBindingName;
* The QueueBindingName option takes a
* string value. Its value will be used to lookup the appropriate
* destination Queue from the JNDI context.
public void setQueueBindingName(String queueBindingName) {
this.queueBindingName = queueBindingName;
Returns the value of the QueueBindingName option.
public String getQueueBindingName() {
return queueBindingName;
* Overriding this method to activate the options for this class
* i.e. Looking up the Connection factory ...
public void activateOptions() {
QueueConnectionFactory queueConnectionFactory;
try {
System.out.println("inside activateOptions");
Context ctx = getInitialContext();
queueConnectionFactory = (QueueConnectionFactory) ctx.lookup(queueConnectionFactoryBindingName);
queueConnection = queueConnectionFactory.createQueueConnection();
queueSession = queueConnection.createQueueSession(false,
Session.AUTO_ACKNOWLEDGE);
Queue queue = (Queue) ctx.lookup(queueBindingName);
queueSender = queueSession.createSender(queue);
queueConnection.start();
ctx.close();
} catch(Exception e) {
errorHandler.error("Error while activating options for appender named ["+name+
"].", e, ErrorCode.GENERIC_FAILURE);
protected InitialContext getInitialContext() throws NamingException {
try {
Hashtable ht = new Hashtable();
//Populate property hashtable with data to retrieve the context.
ht.put(Context.INITIAL_CONTEXT_FACTORY, initialContextFactory);
ht.put(Context.PROVIDER_URL, providerUrl);
return (new InitialContext(ht));
} catch (NamingException ne) {
LogLog.error("Could not get initial context with ["+initialContextFactory + "] and [" + providerUrl + "].");
throw ne;
protected boolean checkEntryConditions() {
String fail = null;
if(this.queueConnection == null) {
fail = "No QueueConnection";
} else if(this.queueSession == null) {
fail = "No QueueSession";
} else if(this.queueSender == null) {
fail = "No QueueSender";
if(fail != null) {
errorHandler.error(fail +" for JMSQueueAppender named ["+name+"].");
return false;
} else {
return true;
* Close this JMSQueueAppender. Closing releases all resources used by the
* appender. A closed appender cannot be re-opened.
public synchronized // avoid concurrent append and close operations
void close() {
if(this.closed)
return;
LogLog.debug("Closing appender ["+name+"].");
this.closed = true;
try {
if(queueSession != null)
queueSession.close();
if(queueConnection != null)
queueConnection.close();
} catch(Exception e) {
LogLog.error("Error while closing JMSQueueAppender ["+name+"].", e);
// Help garbage collection
queueSender = null;
queueSession = null;
queueConnection = null;
* This method called by {@link AppenderSkeleton#doAppend} method to
* do most of the real appending work. The LoggingEvent will be
* be wrapped in an ObjectMessage to be put on the JMS queue.
public void append(LoggingEvent event) {
if(!checkEntryConditions()) {
System.out.println("inside checkEntryCondions()");
return;
try {
MapMessage msg = queueSession.createMapMessage();
//ObjectMessage msg = queueSession.createObjectMessage();
//msg.setString("LOGDate",new Date(event.timeStamp).toString());
msg.setJMSTimestamp(event.timeStamp);
//msg.setString("Logger",event.getLoggerName());
msg.setString("Priority",event.getLevel().toString());
msg.setString("Loc_ClassName",event.getLocationInformation().getClassName());
msg.setString("Loc_MethodName",event.getLocationInformation().getMethodName());
msg.setString("Loc_FileName",event.getLocationInformation().getFileName());
msg.setString("Loc_LineNumber",event.getLocationInformation().getLineNumber());
msg.setString("Msg", event.getMessage() == null ? "null" : event.getMessage().toString());
//msg.setObject(event);
queueSender.send(msg);
} catch(Exception e) {
errorHandler.error("Could not send message in JMSQueueAppender ["+name+"].", e,
ErrorCode.GENERIC_FAILURE);
public boolean requiresLayout() {
return false;
Above is the code for the JMSQueueAppender that I'm using for appending in the queue.
But when it's running, it is sending the message 2 to 5 times, dipending upon the LEVEL. If you're using setlevel(LEVEL.INFO) and calling the logger as logger.INFO(string str), it should give only one result but, it is posting the message twice.
Actually it's execeuting the append method inside JMSQueueAppender twice. why this method is called twice? Can anyone tell me the solution for that.

Some people find it annoying when web pages forward to another page automatically. You can turn off that message if you like.
orange Firefox button ''or'' Tools menu > Options > Advanced
On the "General" mini-tab, ''uncheck'' "Warn me when web site try to redirect or reload the page"

Similar Messages

  • I receive a not connected to the internet message several times daily on my iMac connected via airport to a time capsule which accesses the internet via cable modem.. When I input my password to enter network preferences, the connection re-establishes.

    I receive a "not connected to the internet message" several times daily on my iMac connected via airport to a time capsule which accesses the internet via a cable modem. Software/firmware is up to date on the iMac (OSX 10.6.8)  and Tme Capsule(7.5.2). Browser is Safari 5.1.
    When I input my password at the prompt to enter network preferences, all the lights go green (ie... ethernet, ISP etc.) and the connection re-establishes immediately and states "the connection appears to be working normally".
    It more of a nuisance than anything and seems to have started ocurring over the past couple of months. I also have a windows XP box also connected to the same cable modem that I never have internet connectivity issues with. I've verified all the physical aspects of the connections and can't see any evidence of any actual drops in the modem logs. I suspect it is just an intermittent communication loss between the Imac and the Time Capsule, but I am not very familiar with Mac equipment yet.
    Just wondering if anyone has experienced a similar problem and what you did (if anything) to resolve it?
    Thanks.

    The AirPort Express will connect to your existing wireless network if the network is using WPA2 Personal or WPA/WPA2 Personal wireless security settings.
    So, it can join the network as a client and then provide an Ethernet signal to your Time Capsule.
    Be sure to configure the Time Capsule to operate in Bridge Mode so that it will be operating on the same network.

  • Logged out several times an hour

    Is it just me?
    I am being logged out several times an hour and needing multiple attempts to log back in.
    Is there some maintenance going on?
    Should I give up until tomorrow?

    John,
    Was happening to me, with greater and greater regularity. It got so bad that I would log-in, just to get a reply screen, and then have to log-in to post it, and maybe 2-3 times.
    Finally, it spiraled to the point that every forum would throw me to the main forum page, and clicking on anything there would bring up Server Not Found.
    The speed also ground to a halt.
    About 1:00 PM (PDT/AZT), things got back to normal.
    Sun spots?
    Hunt

  • Posted this query several times but no reply. Please help me out

    Hi all,
    How to know whether a servlet had completely sent its response to the request.
    The problem what i am facing is, I send response to a client's request as a file.
    The byte by byte transfer happens, now if the client interrupts or cancels the operation, the response is not completed.
    At this stage how to know the response status. I am handling all exception, even then I am unable to trap the status.
    Please help me out.
    I have posted this query several times but no convincing reply till now. Hence please help me out.
    If somebody wants to see the code. I'll send it through mail.
    regards
    venkat

    Hi,
    thanks for the reply,
    Please check the code what I have written. The servlet if I execute in Javawebserver2.0 I could trap the exception. If the same servlet is running in weblogic 6.0 I am unable to get the exception.
    Please note that I have maintained counter and all necessary exception handling even then unable to trap the exception.
    //code//
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.security.*;
    public class TestServ extends HttpServlet
    Exception exception;
    public void doGet(HttpServletRequest req, HttpServletResponse res)throws ServletException, IOException, UnavailableException
         int bytesRead=0;
         int count=0;
         byte[] buff=new byte[1];
    OutputStream out=res.getOutputStream ();
    res.setContentType( "application/pdf"); // MIME type for pdf doc
    String fileURL ="http://localhost:7001/soap.pdf";
    BufferedInputStream bis = null;
    BufferedOutputStream bos = null;
    boolean download=false;
         int fsize=0;
         res.setHeader("Content-disposition", "attachment; filename="+"soap.pdf" );
    try
                   URL url=new URL(fileURL);
         bis = new BufferedInputStream(url.openStream());
         fsize=bis.available();
         bos = new BufferedOutputStream(out);
    while(-1 != (bytesRead = bis.read(buff, 0, buff.length)))
              try
                        bos.write(bytesRead);
                        count +=bytesRead;
                        bos.flush();
                   }//end of try for while loop
                   catch(StreamCorruptedException ex)
                        System.out.println("Exception ="+ex);
                        setError(ex);
                        break;
                   catch(SocketException e)
                        setError(e);
                        break;
                   catch(Exception e)
                        System.out.println("Exception in while of TestServlet is " +e.getMessage());
                        if(e != null)
                             System.out.println("File not downloaded properly"+e);
                             setError(e);
                             break;
                        }//if ends
                   }//end of catch for while loop
    }//while ends
              Exception eError=getError();
              if(eError!=null)
                   System.out.println("\n\n\n\nFile Not DownLoaded properly\n\n\n\n");
              else if(bytesRead == -1)
              System.out.println("\n\n\n\ndownload \nsuccessful\n\n\n\n");
              else
              System.out.println("\n\n\n\ndownload not successful\n\n\n\n");
    catch(MalformedURLException e)
    System.out.println ( "Exception inside TestServlet is " +e.getMessage());
    catch(IOException e)
    System.out.println ( "IOException inside TestServlet is " +e.getMessage());
         finally
              try
         if (bis != null)
         bis.close();
         if (bos != null)
         {bos.close();}
              catch(Exception e)
                   System.out.println("here ="+e);
    }//doPost ends
    public void setError(Exception e)
         exception=e;
         System.out.println("\n\n\nException occurred is "+e+"\n\n\n");
    public Exception getError()
              return exception;
    }//class ends
    //ends
    regards,
    venakt

  • Sending the same email message several times to contacts.  Turned off iCloud, but still sending message.

    Sending the same email message several times to contacts.  Turned off iCloud, but still sending message. 
    A user had synced all of his contacts from his computer and iPhone to his iCloud.  Today, his iCloud sent out the same message 20 times to all recipients.  We were able to transfer all calendar items and contacts back to his pc and then disable iCloud.  However, it still sent out the messages.  Any ideas?

    It's a carrier issue. I have AT&T and had this issue with my friend (who had an Android) and my mother (who had a feature phone). Both of them have Verizon for service and I'm thinking the issue was on Verizon's end. They both just dealt with it as we tried all sorts of things to get this sorted out (other than contacting Verizon directly) and had no luck.
    They've both switched to iPhones so it's a moot point for us now, at least.
    ~Lyssa

  • Diplay Message with ABAP Planning Function (same message several times)

    Hello experts,
    I use a ABAP Planning Function (custom developed funtion type) to vaildate the planning data.
    I want to display the validation results in a message box in the workbook. Therefor I use the Parameter I_R_MSG of the "Execute" Method.
    This works fine, BUT
    I want to display the same message several times.
    Example (I want an output in the message box like this):
    AREA1
      Error Message A
    AREA 2
      Error Message A
      Error Message B
    The system merge the identical messages. And the output is this:
    AREA 1
      Error Message A
    AREA 2
      Error Message B
    Can I avoid the automatical merge of identical messages in the monitor?
    Thanks
    Johannes

    Hello Johannes,
    I think the only way is to use a field for (e.g. MSGV4) to group the messages since the system compares
    all fields msgty, ..., msgv4 to identify duplicates. So if your messages do not use msgv4 the above suggestion
    should work.
    Regards,
    Gregor

  • Why does firefox send these two messages several times a day?

    '''firefox is in offline mode.'''
    [i never check offline mode. i don't understand]. this occurs at least twice a day, and sometimes more.
    '''The connection was reset.'''
    '''The connection to the server was reset while the page was loading.''
    win xp pro, sp3, lenovo thinkpad x201, firefox 3.6.10, avg 9.0.8.62

    Hello @susan649, 
    Welcome to the HP forums.
    I understand that you are concerned about the amount of updates being sent to your Photosmart 6520.
    I would like to help.
    That is actually a lot more then normal. One every few weeks sure. four or more a day? Nope, not normal.
    Perhaps the same update is not updating properly so it tries again later.
    I would try setting a manual DNS.
    The following post by happytohelp01 has steps and screen shots to perform this.
    Efax 7510 still won't work after turning off/on ePrint several times
    The screen shots are for an Photosmart 7510, but the steps are the same.
    For the Manual Preferred DNS Server please use 8.8.8.8 and for the Alternate Preferred DNS server please use 8.8.4.4. These are Google’s public DNS servers. If you find that those DNS settings don’t work, some customers have had success using the Level3 DNS servers. I have included About.com’s Free & Public DNS Servers.
    If your printer is still doing an abnormal amount of updates, please call our Cloud Services at 855-785-2777.
    If you live outside the US/Canada Region, please click the link below to get the support number for your region. http://www8.hp.com/us/en/contact-hp/ww-phone-assis​t.html
    Aardvark1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!

  • Why does iClous ask me to log in several times a day

    Even if I drift away for a few minutes, iCloud asks me for my log in information when I go there. I keep checking the remember me box and none of my other websites are having this problem. What gives? Thanks in advance.
    Kathryn

    I've been having this happen as well, ever since the last update. When you download podcasts everyday, it is really annoying. Hope we can get an answer.

  • Message received several time

    Hello, when I send a message, my iPhone told me that the message was not delivered. So, I support it so that it retries sending the message but when the message is finally sent, the recipient told me message it receives the same message several times, it's embarrassing! Es anyone have a solution? Please

    Have you tried a hard reset to see if that helps?  To do this, press and hold both the Sleep/Wake and Home buttons together long enough for the Apple logo to appear. 
    Otherwise, try connecting to a different known Wi-Fi network and try redowloading the App.
    And if the problem still persists after that, it might be time to connect the device to iTunes and restore it from a previous backup.
    B-rock

  • Outlook disconnects from Exchange 2013 several times an hour.

    [Edit: I did figure out a little more of the issue. I have figured out that what is causing this is the IIS Application Poll that The Exchange 2013 installer creates by default when installing called "MSExchangeRpcProxyAppPool". The server is recycling
    the RPC Application Pool every 20 - 30 minutes or so. I have recycling completely turned off  on this pool yet it still restarts which leads me to believe it may be a code problem since it only should recycle if the poll crashes. Short of a bug in the
    code somewhere, I for the life of me can not find why the Application Pool keeps restarting. This is the only pool out of all the ones Exchange created during installation that is recycling constantly. It is frustrating because our Outlook Anywhere clients
    keep getting disconnection messages several times an hour because of this. The event logs I listed below are the only event logs I can find that trigger when the pool recycles, so as you can see, they give me no useful information in debugging the
    problem.]
    This problem only applies to outlook clients using RPC over HTTP. ActiveSync, OWA and EWS are working fine.
    There is a problem with the RPC over HTTP tunnel on our server. Every 20-30 minutes, sometimes more sometimes less, but usually with in that 20-30 minute timeframe, the RPC over HTTP tunnel drops and all Outlook Anywhere clients get immediately disconnected.
    IT comes back up very fast and all clients reconnect with in a matter of seconds. Not a huge deal for people using cached mode outlook but all the non-cached mode people (Thin clients are an example are not using cached mode to save diskspace). People using
    non-cached mode would get a couple errors pop up and outlook stopped working.
    The only relevant entries I have found in the exchange server event log are here. These same grouping of events show up everytime the RPC over HTTP tunnel shuts down and restarts. I just can't figure out why its doing it:
    1-23-2013 9:21:18 AM RPC Proxy 4 (1)
    -- RPC Proxy successfully loaded in Internet Information Services (IIS).
    1/23/2013 9:22:41 AM WAS 5138 None
    --- A worker process '75832' serving application pool 'MSExchangeRpcProxyAppPool' failed to stop a listener channel for protocol 'http' in the allotted time.  The data field contains the error number.
    1/23/2013 9:22:41 AM WAS 5013 None
    --- A process serving application pool 'MSExchangeRpcProxyAppPool' exceeded time limits during shut down. The process id was '75832'.
    I have been searching for weeks on the problem and all I really have found is that the problem can sometimes be caused by RPC timeouts so I set the RPC timeout on the server to 120 seconds via the registry. That actually helped for about 5 days and then the
    problem mysteriously came back and I can not get it to go away even though the registry value is still set to 120 seconds on that RPC time out.
    Does anyone else know of any thing else that causes this? Its Exchange 2013 on Server 2012 and is a pretty fresh install. Was setup in mid-December.
    --Trent W.

    Hello,
    Thank you for your post.
    This is a quick note to let you know that we are performing research on this issue.
    Thanks,
    Simon Wu
    TechNet Community Support
    Have you had any luck diagnosing the problem?

  • Suppress Finder's "Cant Find Network Volume" Message @ Login Time

    I manage 200 Mac desktops and laptops - all running Leopard. I manage the Macs with Open Directory via MCX policies using Workgroup Manager. One of the main things I manage for my users is Login Items. For example, various SMB network volumes get mounted at login time. When a Mac user is on the LAN and able to access the domain and file servers, the SMB volumes get mounted "automatically" via MCX computer and group policies. The mounts are mounted in /Volumes and appear on the user's Desktop. This is great for desktop users with static Ethernet connections, but for laptop user this poses a major problem which could easily be "fixed' by Apple. Let me explain:
    When mobile users (laptop users) are off the LAN (i.e.; they are on the road, working from home, etc) the Mac attempts to find the SMB network volumes that are read part of the locally cached MCX policies when the user(s) log in. Of course, since the user isn't on the LAN (or connected via VPN,etc) Finder throws a generic error "The network volume could not be found"). This message is easily dismissed,and isnt a big deal if it only pops up once, but my users have SEVERAL SMB mounts configured as login items, and thus my users get prompted with the aforementioned Finder error messages several times. Each message stacks up top of the other as each connection attempt times out. Ouch! This has become the #1 complaint my Mac users have and it has reached the ears of senior IT managers and directors. Keep in mind most of my laptop users travel the planet on lecture tours and are on the road for weeks at a time, and thus they deal with the Finder messages several times a day for weeks on end (and sometimes in front of an audience if the said laptop is connected to a projector for a Keynote/PowerPoint presentation etc). The message provides no useful info. My users are savvy enough to know the auto-mounted network shares aren't available - they dont need "help" from Finder.app. They want to log in and get to work, and not be bothered by the barrage of redundant errors from Finder for 10 minutes!
    I have attempted to design an AppleScript that could "intercept" the Finder messages and dismiss them automatically, but it hasnt worked thus far. I have also researched autofs and other Apple technologies to figure out a way to avoid these errors. No luck.
    Request:
    I would like to request a way to set the preference to have these messages ignored/bypassed or disabled. A simple check box to avoid these messages is all I want.
    I submitted a bug report to Apple requesting a "fix" (ticket 6172962).

    Two suggestions. 1) post AppleScript queries to its forum under OS X Technologies. 2) post server queries to the appropriate server forum.

  • Mountain Lion Mail.app Sends Email Several Times While Drafting Reply

    Using Mail.app in Mountain Lion and the default configuration of Gmail via IMAP (as configured by Mail.app) when I reply to an existing message, Mail.app sends the partially completed email message several times while I am drafting the message, without me hitting the send button. This does not occur when composing new messages. I have not yet determined what is causing the message to send. My working theory is that it is sending the message each time a draft is saved to the server. Any insight on what is happening (or confirmation that other people are experiencing the same behavior) would be appreciated.

    I have 4 accounts running, 2 POP and 2 IMAP, after doing some checking today with a mac engineer online, it appears that it is incoming mail only affected and only on the POP accounts. I had previously tried recreating the accounts but as from today even just quitting Mail and reopening no longer works... the engineer has had to exculate my call to a specialist who in turn has now had to send it off to a specialist team to work on. When I get results, I will post them in case it helps someone else.

  • Cannot install Flasy Player because the installation requires closing Safari and FireFox, but I've done that -- several times. What now?

    I have typed in my message several times, am told I cannot post a blank message.  It is not blank.  What now?

    How do I find this activity monitor on my Mac? | Apple Support Communities

  • Why does iTunes make me log in every time I open it since upgrading to v.12.0.1.26 and Yosemite?

    Since upgrading to itunes v. 12.0.1.26 and Yosemite (same day), iTunes has been making me log in every single time I open it.
    Not only that, but it makes me log in several times, for iCloud, for iTunes match, for whatever else we do on iTunes. It gives me like five different reasons to log in, and I have to type my password in five times.
    Can anyone tell me what is going on here and how to fix it? Thanks!

    Back up all data before proceeding.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
    Select the login keychain from the list on the left side of the Keychain Access window. If your default keychain has a different name, select that.
    If the lock icon in the top left corner of the window shows that the keychain is locked, click to unlock it. You'll be prompted for the keychain password, which is the same as your login password, unless you've changed it.
    Right-click or control-click the login entry in the list. From the menu that pops up, select
              Change Settings for Keychain "login"
    In the sheet that opens, uncheck both boxes, if not already unchecked.
    From the menu bar, select
              Keychain Access ▹ Preferences ▹ First Aid
    If the box marked
              Keep login keychain unlocked
    is not checked, check it.
    Select
              Keychain Access ▹ Keychain First Aid
    from the menu bar and repair the keychain. Quit Keychain Access.

  • System wakes up automatically several times during sleep (logs says RTC Alarm) and improperly Ejects external HD. [MBPro Late 2012 + OSX Yosemite]

    Hi there,
    Background:
    the main issue is that after system wake-up I find often several notification messages about my external drive not being properly ejected.
    This seems to be a common issue for many Yosemite users, some say disabling Spotlight indexing for that volume solves the problem, but this is not my case. That's why I'm creating another thread.
    Multiple ejects:
    Looking at system logs it comes out my MacBookPro with Yosemite when put in standby is actually waking up several times every approx 90 minutes to do something.
    (MBP Late 2012: not a new MBP with PowerNap and thus cannot use nor disable it)
    Logs are like this:
    20/02/15 03:21:13,000 kernel[0]: Wake reason: RTC (Alarm)
    20/02/15 03:21:13,000 kernel[0]: RTC: Maintenance 2015/2/20 02:21:13, sleep 2015/2/20 00:33:19
    20/02/15 03:21:13,000 kernel[0]: Previous sleep cause: 5
    20/02/15 03:21:13,000 kernel[0]: AppleThunderboltGenericHAL::earlyWake - complete - took 1 milliseconds
    20/02/15 03:21:13,062 sharingd[235]: 03:21:13.062 : SDStatusMonitor::kStatusBluetoothPowerChanged
    20/02/15 03:21:13,000 kernel[0]: TBT W (1): 0 [x]
    20/02/15 03:21:13,000 kernel[0]: [0xffffff8050811400](0)/(5) Device not responding
    20/02/15 03:21:13,000 kernel[0]: disk3s2: media is not present.
    20/02/15 03:21:13,000 kernel[0]: disk3s2: media is not present.
    20/02/15 03:21:13,000 kernel[0]: disk3s2: media is not present.
    20/02/15 03:21:13,000 kernel[0]: disk3s2: media is not present.
    20/02/15 03:21:13,000 kernel[0]: disk3s2: media is not present.
    20/02/15 03:21:13,000 kernel[0]: jnl: disk3s2: do_jnl_io: strategy err 0x6
    20/02/15 03:21:13,000 kernel[0]: jnl: disk3s2: end_transaction: only wrote 0 of 32768 bytes to the journal!
    Questions:
    - What is WAKE REASON - RTC (ALARM) ? - Could it be linked to Auto Time&Date Setting?
    - Why disk3s2 is not present?
    Disk is badly ejected only when connected through USB hub. When left connected to MBP USB port seems to behave fine.
    Before Yosemite I've never had any problem with external HD connected to the hub.

    I believe this is ready for submission for the Time Machine forum.
    As noted, it does not cover diagnosis and correction of specific problems or errors, as that would seem to be better handled separately.
    It also doesn't cover anything about Time Capsule, for the very good reason that I'm not familiar with them. If someone wants to draft a separate post for it, or items to add/update here, that would be great!
    Thanks very much.

Maybe you are looking for

  • Printing only does top half of letters in a sentence

    I made the mistake of Registering this product over a year ago as a HP DJ 1510 All in One Printer. Today 1/2/2015, 6 days after my Warranty Expired, lucky me. Today I look again and see that it is a 1512. But each time I do the Diagnostic and Device

  • How do I output 10 minute versions of my 68 minute video.

    I am working on an HP Desktop running windows 7 and Premiere elements 10.  My current video is 68 minutes long and I am trying to figure out the best way to output shorter versions.  I want 10 minute clips to be bale to load to YouTube without having

  • Metadata with defining Derived Associations valided failed.

    Hey all, I am developing a MySQL plugin, and want to use "Derived Associations" to make a topology to display the relationship between mysql objects and its cluster group. However I run into some trouble. Could anyone help me out? I am really confuse

  • New to Imac - how do you view the clipboard?

    How do I see the clipboard and have it open?

  • Question about CLASSPATH Prefix and others...

    Hi all, Would someone pls give me some help about the following questions: 1. how to set the CLASSPATH Prefix, CLASSPATH and SERVERCLASSPATH, and the usage of them? 2. the default JAVA_HOME is \WebLogic\jre1_2, after I changed it to \jdk1.1.7, the EJ