Don't know how to resolve JAXB UnsynchronizedContentModel

I've got a dtd that looks something like:
<!ELEMENT Foo (Bar)*>
<!ELEMENT Bar (A, B, C)>
<!ELEMENT A (#PCDATA)>
<!ELEMENT B (#PCDATA)>
<!ELEMENT C (#PCDATA)>and a binding schema that looks something like:
<xml-java-binding-schema>
<element name="Foo" type="class" root="true">
    <content>
        <choice property="BarList" collection="list"/>
    </content>
</element>
<element name="Bar" type="class">
    <content>
        <element-ref name="A"/>
        <element-ref name="B"/>
        <element-ref name="C"/>
    </content>
</element>
<element name="A" type="value"/>
<element name="B" type="value"/>
<element name="C" type="value"/>
</xml-java-binding-schema>When I try to compile it, I gen an UnsynchronizedContentModel. Other postings in this forum suggest that my choice property doesn't correspond to the data in my dtd.
So, thinking that I need to explicitly map my list to my Bar element, I try:
<choice property="Bar" collection="list"/>
but that doesn't work, either.
All I'm trying to do is cause a List of Bar objects to be created when I unmarshal an xml file. What am I doing wrong?
In the example in the JAXB User's Guide, they complicate the issue of choice / collections by adding in the notion of an interface. I don't really have any sibling classes that share fields, so I don't see why I'd want to add this construct. However, is it necessary to do so, in order to make this work?
Thanks!
Larry

Man, do I feel stupid... finally, after banging my head up against the documentation, I found the answer.
In short, I had been telling the binding schema compiler that I wanted a list that should be named "BarList", but I wasn't telling it that it should be a list of "Bar" objects.
So, the xjs for Foo needed to look like this:
<element name="Foo" type="class" root="true">
    <content>
        <element-ref name="Bar" collection="list" property="BarList"/>
    </content>
</element>like i said, it wasn't that hard, but it sure took a lot of looking at it to realize what I'd done wrong...
Larry

Similar Messages

  • Sorry last question got knocked back my ipad and iPhone on two different levels and I am not able to play through Facebook so not able to progress or unlock next level through Apple store. Don't know how to resolve problem

    Sorry last question got knocked back my ipad and iPhone on two different levels and I am not able to play through Facebook so not able to progress or unlock next level through Apple store. Don't know how to resolve problem

    Thank you again for all of your help!! I really appreciate it!
    I think I am following -- I was able to upload to my iPhoto and all photos and videos are there that is a plus! I tried to create an Event in my iPhoto and put all of my photos in that event but for some reason, now my iTunes it not recognizing that Event in my iPhoto. It is not allowing me to import just that event at the moment but I may be doing something wrong. At least all of my pics and vids are in iPhoto so that is a plus and I know they are at least saved somewhere. Just for some reason, my iTunes it not locating the event that I created with only those photos.
    Thank you for letting me know about my contacts! How do I know if I have the contacts app?
    Also, I had no clue that my iCloud could be backed up via cellular data! However, is this a new feature with the most updated iOS?? Unforutnatly I am like 2 iOS updates behind because I don't have enough storage on my phone. I still get the notification that my phone needs to be plugged in and connected to wifi in order to back up to the cloud :-(
    How can I sync using USB? Right now when i click on the info tab for my iPhone in my iTunes this is the answer that I get -- I am a little unclear as to what it means.
    Sync Contacts:
    Your contacts are being synced with you iPhone over the air from iCloud. Over-the-air sync settings can be changed on you iPhone
    Sync Calendars:
    Your calendars are being synced with you iPhone over the air from iCloud. Over-the-air sync settings can be changed on you iPhone

  • Every time an email comes in it's preceded by two telephone rings. I don't know what I did to create the problem so I don't know how to resolve it. HELP PLEASE!!!

    Every time an email comes in it's preceded by two telephone rings. I don't know what I did to create the problem so I don't know how to resolve it. HELP PLEASE!!!

    settings >>>>notifications>>>>Mail >>>>allow notifications >>>off  (your choice )
    settings>>>sounds>>>new mail>>>>none  ( will kill rings )

  • Quickbooks program will not print reports.  I think it is an Adobe/Pages issue but I don't know how to resolve it.  Help!!!

    Quickbooks reports will not print.  I think it has something to do with Adobe/Pages \but I don't know how to fix the issue.  Help!

    I don't see how it could have anything to do with any Adobe app or Pages. QuickBooks is its own thing and does not rely on any other apps to print.
    I opened a couple of random reports and had no trouble sending it to a laser printer. Also no issue saving them to text file, or clicking the Export button at the top right of the report and having it open directly into Excel.
    What exactly are you trying to accomplish, and what is failing?

  • I am getting this error message, and don't know how to resolve it: 3D features require a minimum of

    I just became a Photoshop CCmember today. I don't know what to do about this error message: 3D features require a minimum of 512MB of vRAM. Photoshop has detected less than that on your system. Updating the driver of your graphics card may resolve the issue.

    What are your hardware specs? How much vRAM do you have? (Note: System RAM and Video RAM are two different things)

  • My lifetime calls is glitched at 4,924,000,000 and I can not figure out how to reset this PLEASE HELP URGENTLY I don't know how to resolve this

    My IPhones total life time calls is at 4,924,000,00 and I can't figure out if this is a glitch because I know that I have DEFIANTLY not called for that long I don't know if this will be resolved but someone PLEASE HELP

    Glad it helped!
    For what it's worth, I suspect you'd have to restore the phone as new to resolve the issue. If it were mine, I'd probably elect to live with the weirdness rather than go through the fuss of a restore.
    Best of luck.

  • I have an issue syncing my iPhone 4 with itunes. This has only happened the last few times i have tried but don't know how to resolve it. Please help.

    Hi, the last few times i have tried to sync my iPhone 4 to my itunes it won't work. I plug my phone into my computer, to sync any new pictures i have taken or add my new music i have bought on my phone, and hit sync. It appears to start syncing then an error message appears saying the following:
    The iPhone 'my iPhone' cannot be synced. You do not have enough access privileges for this operation.
    I'm not sure what this means or why this keeps happening. I have the latest iTunes and i have not done anything different. It appears to have wiped some of my music from my iPhone and a number of my photo albums off. Please can someone help or advise how i resolve this issue. Thanks. 

    When you set up iOS7 the second screen specifically asks that you create a four digit code .
    That's what you now need to re-enter in your phone.
    Once entered you can go to system/general/Passcode lock
    Re-enter the same code and choose turn Passcode off
    iOS 7 has been designed to enforce minimum passcode security by default or in the case of the new 5s use of finger print level security.

  • TS3899 My ipood touch works fine when at home and on my own wi-fi network but when abroad and using wi-fi I can only receive emails but my ipod touch won't send my messages.  I am not very techy but don't know how to resolve this problem.  Any advice?

    Hi
    I am having problems sending emails when using my ipod touch with wi-fi abroad.  When at home my ipod touch receives and I can send emails through my home wi-fi system but when away and logged into other wi-fi networkcan only receive emails and not send them.  Internet access is fine when abroad.
    I am assuming that this is to do with the outgoing server but this is only a guess!
    I am not very techy so any ideas how to resolve this problem would be gratefully received.
    Thanks
    KeithGH

    Seems like the other networks are blocking you from sending emails.
    Do yo have more that one email account on the iPod?
    Have you tried sending from another account?

  • Kernel panic... I don't know how to resolve this problem

    I don't know what the heck is going on, but lately, my Macbook 10.5.8 (White) has been crashing very frequently.. and this really gets in the way of my work :/
    Also, btw, my CD drive is busted, so I can't reinstall the OSX software if that's what I have to do
    Could someone please help? I have no idea what I'm doing
    here's the log:
    2011-03-26-211716.panic:
      Description:          Panic (system crashes) log
      Size:          6 KB
      Last Modified:          26/03/11 9:17 PM
      Location:          /Library/Logs/PanicReporter/2011-03-26-211716.panic
      Recent Contents:          Sat Mar 26 21:17:16 2011
    panic(cpu 0 caller 0x001AB0FE): Kernel trap at 0x0019ee5a, type 14=page fault, registers:
    CR0: 0x8001003b, CR2: 0x23e6b004, CR3: 0x01183000, CR4: 0x00000660
    EAX: 0x00000000, EBX: 0x23e6b004, ECX: 0x23e6b004, EDX: 0x23e6b004
    CR2: 0x23e6b004, EBP: 0x347dbac8, ESI: 0x03e3a053, EDI: 0x00000000
    EFL: 0x00010297, EIP: 0x0019ee5a, CS:  0x00000008, DS:  0x50520010
    Error code: 0x00000000
    Backtrace (CPU 0), Frame : Return Address (4 potential args on stack)
    0x347db8e8 : 0x12b4c6 (0x45f91c 0x347db91c 0x13355c 0x0)
    0x347db938 : 0x1ab0fe (0x469a98 0x19ee5a 0xe 0x469248)
    0x347dba18 : 0x1a1713 (0x347dba30 0x48 0x347dbac8 0x19ee5a)
    0x347dba28 : 0x19ee5a (0xe 0x3e30048 0x4a0070 0x347d0010)
    0x347dbac8 : 0x1d98fe (0x23e6b004 0x2 0x347dbb38 0x400)
    0x347dbb08 : 0x1d999f (0x3e3a01d 0x12 0x0 0x0)
    0x347dbb38 : 0x36e3cc (0x4076c70 0x3e3a000 0x53 0x463c864)
    0x347dbf78 : 0x3e3a7f (0x40d00e4 0x463c820 0x463c864 0x4b428b8)
    0x347dbfc8 : 0x1a1c0a (0x4633200 0x0 0x1a40b5 0x4c628b8)
    No mapping exists for frame pointer
    Backtrace terminated-invalid frame pointer 0xb038b258
    BSD process name corresponding to current thread: mds
    Mac OS version:
    9L31a
    Kernel version:
    Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386
    System model name: MacBook4,1 (Mac-F22788A9)
    System uptime in nanoseconds: 20263482540948
    unloaded kexts:
    com.apple.driver.InternalModemSupport          2.4.0 - last unloaded 181000141442
    loaded kexts:
    com.Cycling74.driver.Soundflower          1.5.1
    com.pctools.iantivirus.kfs          1.0.1
    com.Logitech.Control Center.HID Driver          2.6.0
    com.apple.driver.InternalModemSupport          2.4.0 - last loaded 21429263487
    com.apple.iokit.IOBluetoothSerialManager          2.1.9f10
    com.apple.filesystems.autofs          2.0.2
    com.apple.driver.AppleHDAPlatformDriver          1.7.1a2
    com.apple.driver.CSRUSBBluetoothHCIController          2.1.9f10
    com.apple.driver.AppleHDAHardwareConfigDriver          1.7.1a2
    com.apple.driver.AppleHWSensor          1.9d0
    com.apple.driver.AppleHDA          1.7.1a2
    com.apple.driver.AppleUpstreamUserClient          2.7.5
    com.apple.driver.AppleGraphicsControl          2.8.15
    com.apple.Dont_Steal_Mac_OS_X          6.0.3
    com.apple.driver.AppleIntelGMAX3100          5.4.8
    com.apple.driver.AppleIntelGMAX3100FB          5.4.8
    com.apple.driver.AppleHDAController          1.7.1a2
    com.apple.driver.AppleIRController          113
    com.apple.driver.SMCMotionSensor          2.1.1d2
    com.apple.iokit.IOFireWireIP          1.7.7
    com.apple.driver.AudioIPCDriver          1.0.6
    com.apple.driver.ACPI_SMC_PlatformPlugin          3.4.0a17
    com.apple.driver.AppleLPC          1.3.1
    com.apple.driver.AppleBacklight          1.6.0
    com.apple.driver.AppleTyMCEDriver          1.0.0d28
    com.apple.driver.CSRHIDTransitionDriver          2.1.9f10
    com.apple.driver.AppleUSBMergeNub          3.5.2
    com.apple.driver.AppleUSBTrackpad          1.7.4f1
    com.apple.driver.AppleUSBTCKeyEventDriver          1.7.4f1
    com.apple.driver.AppleUSBTCKeyboard          1.7.4f1
    com.apple.driver.USBCameraFirmwareLoader          1.0.9
    com.apple.iokit.IOSCSIMultimediaCommandsDevice          2.1.1
    com.apple.iokit.SCSITaskUserClient          2.1.1
    com.apple.driver.XsanFilter          2.7.91
    com.apple.iokit.IOATAPIProtocolTransport          1.5.3
    com.apple.driver.AirPortBrcm43xx          366.91.21
    com.apple.iokit.IOAHCIBlockStorage          1.2.2
    com.apple.driver.AppleIntelPIIXATA          2.0.1
    com.apple.driver.AppleFileSystemDriver          1.1.0
    com.apple.driver.AppleUSBHub          3.4.9
    com.apple.iokit.IOUSBUserClient          3.5.2
    com.apple.iokit.AppleYukon2          3.1.13b2
    com.apple.driver.AppleAHCIPort          1.7.0
    com.apple.driver.AppleFWOHCI          3.9.7
    com.apple.driver.AppleUSBEHCI          3.4.6
    com.apple.driver.AppleUSBUHCI          3.5.2
    com.apple.driver.AppleEFINVRAM          1.2.0
    com.apple.driver.AppleSmartBatteryManager          158.10.5
    com.apple.driver.AppleRTC          1.2.3
    com.apple.driver.AppleHPET          1.4
    com.apple.driver.AppleACPIPCI          1.2.5
    com.apple.driver.AppleACPIButtons          1.2.5
    com.apple.driver.AppleSMBIOS          1.4
    com.apple.driver.AppleACPIEC          1.2.5
    com.apple.driver.AppleAPIC          1.4
    com.apple.security.seatbelt          107.12
    com.apple.nke.applicationfirewall          1.8.77
    com.apple.security.TMSafetyNet          3
    com.apple.driver.AppleIntelCPUPowerManagement          76.2.0
    com.apple.driver.DiskImages          199
    com.apple.BootCache          30.4
    com.apple.iokit.IOSerialFamily          9.4
    com.apple.driver.AppleUSBBluetoothHCIController          2.1.9f10
    com.apple.iokit.IOBluetoothFamily          2.1.9f10
    com.apple.driver.DspFuncLib          1.7.1a2
    com.apple.iokit.IOHDAFamily          1.7.1a2
    com.apple.iokit.IOAudioFamily          1.6.9fc5
    com.apple.kext.OSvKernDSPLib          1.1
    com.apple.driver.IOPlatformPluginFamily          3.4.0a17
    com.apple.iokit.IONDRVSupport          1.7.3
    com.apple.iokit.IOGraphicsFamily          1.7.3
    com.apple.driver.AppleSMC          2.3.1d1
    com.apple.iokit.IOUSBHIDDriver          3.4.6
    com.apple.driver.AppleUSBComposite          3.2.0
    com.apple.iokit.IOSCSIBlockCommandsDevice          2.1.1
    com.apple.iokit.IOBDStorageFamily          1.5
    com.apple.iokit.IODVDStorageFamily          1.5
    com.apple.iokit.IOCDStorageFamily          1.5
    com.apple.iokit.IOSCSIArchitectureModelFamily          2.1.1
    com.apple.iokit.IO80211Family          216.1
    com.apple.iokit.IOATAFamily          2.0.1
    com.apple.iokit.IOAHCIFamily          1.5.0
    com.apple.iokit.IOFireWireFamily          3.4.9
    com.apple.iokit.IONetworkingFamily          1.6.1
    com.apple.iokit.IOUSBFamily          3.5.2
    com.apple.driver.AppleEFIRuntime          1.2.0
    com.apple.iokit.IOSMBusFamily          1.1
    com.apple.iokit.IOStorageFamily          1.5.6
    com.apple.iokit.IOHIDFamily          1.5.5
    com.apple.driver.AppleACPIPlatform          1.2.5
    com.apple.iokit.IOACPIFamily          1.2.0
    com.apple.iokit.IOPCIFamily          2.6
    Extracted from System Profiler however.
    I hope it helps
    Thank you so much in advance!
    This is a huge problem for me, and I'm not sure if it can be fixed?

    bump?

  • I don't know how to resolve this .

    I have taken advice about backing up my mac, but this always happens , where am I going wrong ... It's new and has 999.86 Gb free.

    The backup volume was full. That shouldn't happen, because TM is supposed to manage disk space by deleting snapshots as needed to make room for a new one, up to the last complete snapshot, which is never removed automatically. Normally, a snapshot won't be started if there isn't enough space for it.
    First, I strongly suggest that you start a new backup (not necessarily with Time Machine) on another external drive. A single backup isn't enough to be safe.
    One possibility is that you were writing other data to the volume during the backup. Apple recommends that no other data be stored on a backup volume. If two or more computers back up to the same volume over a network, they will compete with each other for space.
    If you've moved any files to the Trash on the backup volume, empty the Trash.
    Sometimes a restart will clear the error.
    Reports suggest that the error may sometimes be caused by a bug that's triggered when you don't use a backup volume for a long time, perhaps two weeks or more. If that's the case, ask for further guidance. You may have to erase the backup volume to work around the bug.
    Otherwise, turn Time Machine OFF temporarily in its preference pane. Launch Disk Utility, select the backup volume, and run Repair Disk. That operation may take a few hours. If the volume is repaired successfully, or if no problems are found, try another backup.
    Disk Utility may be unable to repair the volume. In that case, you should stop using the drive and put it aside until you're sure you'll no longer need the data on it. Then erase it and start over, or (preferably) replace it.
    If TM still isn't working right, start up in Recovery mode and repair the startup volume ("Macintosh HD," unless you gave it a different name) the same way. Restart as usual and try TM again. 

  • Can anyone help me with a problem i am having with my music on my iPhone 4S. I have put alot of Compilation CDs in my library on iTunes. I download these tracks onto my phone, everything is ok so far. Now, this is what is niggling me and I don.t know how

    Can anyone help me with a problem i am having with my music on my iPhone 4S. I have put alot of Compilation CDs in my library on iTunes. I download these tracks onto my phone, everything is ok so far. Now, this is what is niggling me and I don.t know how to resolve it. This is my problem: 
    Have downloaded for example: Queen – Bohemium Rhapsody from a compilation album as well as a few complete Queen Album CDs into the iTunes library and then put them into playlists,
    When I go onto my phone and select Queen on the MUSIC app using Songs tab at the bottom of the screen it will display all Queen songs and their resective Alum pics, that is all those not in a complilation album, .
    If I know the song title I can select the songs tab and find the song that way,
    I’ve tried fiddling with the settings in the iTunes app by going to ‘get info’ tab and trying to sort the problem out that way but am not having much luck.What I want the phone to do is show, for example all Queens songs including those in compilation albums. Can this be done, would be grateful for any ideas on how it can be done, that is if ic can be done, any ideas
    Thanks for your help

    Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.

  • I am unable to receive or send emails, when I go into settings I cannot resolve this problem as I have forgotten my password and don't know how to reset it any suggestions

    I am unable to send or receive emails, when I go into settings I have forgotten my password but I don't know how I can change it, or is it the same password used for my appleID

    Thanks, someone else told me yahoo is an issue.  No, not the fan itself is what I'm asking, but the dots preceding it.  Sometimes there are 3 up, sometimes 4, sometimes 2.  Just wondered if they are the signal strength.  I should actually walk in different parts of the house and see if they change in different rooms.

  • IMac at work, iMac at home. (Latest Yosemite and Apple Remote Desktop updates installed) Need to work from home at night. I don't know how to set my permissions so that I can just control my iMac at work.

    iMac at work, iMac at home. (Latest Yosemite and Apple Remote Desktop updates installed) Need to work from home at night. I don't know how to set my permissions so that I can just control my iMac at work.

         If they have set up port forwarding for you already then that is different.  In that case, then you could be experiencing the bug with the most recent release of ARD (3.7.2) and in particular ARD 3.7.2 and Yosemite ARD version 3.8 clients.  It has been reported numerous times in the forums and to Apple that since 3.7.2, clients are frequently unavailable to connect to despite there being no network issue between the remote computer and client computer.  I have not seen anyone report it who was working from outside the LAN to inside the LAN, but I have the same issue with a number of my own computers that are simply on a different subnet, so it stands rot reason that it would happen from a port forwarding location.
         I am sometimes able to resolve the issue locally by SSH connecting into the client computer using Terminal on my admin machine and restarting or relaunching the ARD agent on the remote device, then trying to connect to it again after about 30 seconds.
    The Terminal commands for this procedure are as follows, though you might need to include a port number from outside the LAN:
    First:
    ssh ipaddress -l adminusername
    (example: ssh 192.168.1.1 -l macadmin)
    Second:
    sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/k ickstart -restart -agent
    After that, waiting about 30 seconds and trying to observe or control usually works, though the computer may still fail to show an online or lit-up status indicator.

  • My MacBook Pro won't go beyond a white screen, after I pushed the restart button. How can I get it to a login? I have routinely backed it up, but don't know how to bring that up, nor if I have a boot file on that external disk. Help!

    My MacBook Pro won't go beyond a white screen, after I pushed the restart button. How can I get it to a login? I have routinely backed it up, but don't know how to bring that up, nor if I have a boot file on that external disk. Help!

    Take each of these steps that you haven't already tried. Stop when the problem is resolved.
    To restart an unresponsive computer, press and hold the power button for a few seconds until the power shuts off, then release, wait a few more seconds, and press it again briefly.
    Step 1
    The first step in dealing with a startup failure is to secure the data. If you want to preserve the contents of the startup drive, and you don't already have at least one current backup, you must try to back up now, before you do anything else. It may or may not be possible. If you don't care about the data that has changed since the last backup, you can skip this step.
    There are several ways to back up a Mac that is unable to start. You need an external hard drive to hold the backup data.
    a. Start up from the Recovery partition, or from a local Time Machine backup volume (option key at startup.) When the OS X Utilities screen appears, launch Disk Utility and follow the instructions in this support article, under “Instructions for backing up to an external hard disk via Disk Utility.” The article refers to starting up from a DVD, but the procedure in Recovery mode is the same. You don't need a DVD if you're running OS X 10.7 or later.
    b. If Step 1a fails because of disk errors, and no other Mac is available, then you may be able to salvage some of your files by copying them in the Finder. If you already have an external drive with OS X installed, start up from it. Otherwise, if you have Internet access, follow the instructions on this page to prepare the external drive and install OS X on it. You'll use the Recovery installer, rather than downloading it from the App Store.
    c. If you have access to a working Mac, and both it and the non-working Mac have FireWire or Thunderbolt ports, start the non-working Mac in target disk mode. Use the working Mac to copy the data to another drive. This technique won't work with USB, Ethernet, Wi-Fi, or Bluetooth.
    d. If the internal drive of the non-working Mac is user-replaceable, remove it and mount it in an external enclosure or drive dock. Use another Mac to copy the data.
    Step 2
    If the startup process stops at a blank gray screen with no Apple logo or spinning "daisy wheel," then the startup volume may be full. If you had previously seen warnings of low disk space, this is almost certainly the case. You might be able to start up in safe mode even though you can't start up normally. Otherwise, start up from an external drive, or else use the technique in Step 1b, 1c, or 1d to mount the internal drive and delete some files. According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation.
    Step 3
    Sometimes a startup failure can be resolved by resetting the NVRAM.
    Step 4
    If a desktop Mac hangs at a plain gray screen with a movable cursor, the keyboard may not be recognized. Press and hold the button on the side of an Apple wireless keyboard to make it discoverable. If need be, replace or recharge the batteries. If you're using a USB keyboard connected to a hub, connect it to a built-in port.
    Step 5
    If there's a built-in optical drive, a disc may be stuck in it. Follow these instructions to eject it.
    Step 6
    Press and hold the power button until the power shuts off. Disconnect all wired peripherals except those needed to start up, and remove all aftermarket expansion cards. Use a different keyboard and/or mouse, if those devices are wired. If you can start up now, one of the devices you disconnected, or a combination of them, is causing the problem. Finding out which one is a process of elimination.
    Step 7
    If you've started from an external storage device, make sure that the internal startup volume is selected in the Startup Disk pane of System Preferences.
    Start up in safe mode. Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Post for further instructions.
    Safe mode is much slower to start and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know the login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    When you start up in safe mode, it's normal to see a dark gray progress bar on a light gray background. If the progress bar gets stuck for more than a few minutes, or if the system shuts down automatically while the progress bar is displayed, the startup volume is corrupt and the drive is probably malfunctioning. In that case, go to Step 11. If you ever have another problem with the drive, replace it immediately.
    If you can start and log in in safe mode, empty the Trash, and then open the Finder Info window on the startup volume ("Macintosh HD," unless you gave it a different name.) Check that you have at least 9 GB of available space, as shown in the window. If you don't, copy as many files as necessary to another volume (not another folder on the same volume) and delete the originals. Deletion isn't complete until you empty the Trash again. Do this until the available space is more than 9 GB. Then restart as usual (i.e., not in safe mode.)
    If the startup process hangs again, the problem is likely caused by a third-party system modification that you installed. Post for further instructions.
    Step 8
    Launch Disk Utility in Recovery mode (see Step 1.) Select the startup volume, then run Repair Disk. If any problems are found, repeat until clear. If Disk Utility reports that the volume can't be repaired, the drive has malfunctioned and should be replaced. You might choose to tolerate one such malfunction in the life of the drive. In that case, erase the volume and restore from a backup. If the same thing ever happens again, replace the drive immediately.
    This is one of the rare situations in which you should also run Repair Permissions, ignoring the false warnings it may produce. Look for the line "Permissions repair complete" at the end of the output. Then restart as usual.
    Step 9
    If the startup device is an aftermarket SSD, it may need a firmware update and/or a forced "garbage collection." Instructions for doing this with a Crucial-branded SSD were posted here. Some of those instructions may apply to other brands of SSD, but you should check with the vendor's tech support.  
    Step 10
    Reinstall the OS. If the Mac was upgraded from an older version of OS X, you’ll need the Apple ID and password you used to upgrade.
    Step 11
    Do as in Step 9, but this time erase the startup volume in Disk Utility before installing. The system should automatically restart into the Setup Assistant. Follow the prompts to transfer the data from a Time Machine or other backup.
    Step 12
    This step applies only to models that have a logic-board ("PRAM") battery: all Mac Pro's and some others (not current models.) Both desktop and portable Macs used to have such a battery. The logic-board battery, if there is one, is separate from the main battery of a portable. A dead logic-board battery can cause a startup failure. Typically the failure will be preceded by loss of the settings for the startup disk and system clock. See the user manual for replacement instructions. You may have to take the machine to a service provider to have the battery replaced.
    Step 13
    If you get this far, you're probably dealing with a hardware fault. Make a "Genius" appointment at an Apple Store, or go to another authorized service provider.

  • *HELP* laptop displaying "Preparing Automatic Repair"?? Don't know how to fix it??

    Hii!
    I've had my laptop for less than 12 months. It was being slow so I decided to turn it off and back on again. When I did this, the laptop displayed 'Preparing automatic Repair' then the screen goes black.
    I don't know how to go about resolving this issue.
    If anyone can help me in any way, I would be more than grateful.
    Thanks!!

    Test your hard drive using Diagnostics:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03467259&tmp_task=solveCategory&cc=us&dlc=en&lc...
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

Maybe you are looking for