Problem of cycle and stackoverflow when using JPA @OneToMany mapping Tag

Hello everyone!
Description:
We are using the tag @OneToMany to map a collection of objects in an entity. In the other side, we use the tag @ManyToOne to map the father.
Our simple example for testing consist of the following entities:
This is the class Child:
@Entity
@Table(name="TEST_CHILD")
public class Child implements Serializable{
@Id
@Column(name="ID_CHILD")
private Long id;
@ManyToOne(fetch=FetchType.LAZY)
@JoinColumn(name="ID_FATHER", referencedColumnName="ID_FATHER")
private Father father;
and this is the Father class:
@Entity
@Table(name="TEST_FATHER")
public class Father implements Serializable{
@Id
@Column(name="ID_FATHER")
private Long id;
@OneToMany(mappedBy="father", fetch=FetchType.EAGER)
private List<Child> children;
Problem:
When a select over this entities is realized, we are getting the folling exception:
The following Error is thrown by the VM [java.lang.StackOverflowError]. ErrorQueueHandler will just trace it. The caller component should take care to process it properly.
java.lang.StackOverflowError
at java.lang.Class.searchMethods(Class.java:2646)
We've already used @OneToMany and @ManyToOne mapping in many other projects, and we've tried different parameters on the tags as well, but we still getting the exception. If applying fetch mode Lazy to the @OneToMany we had an detatched exception, cause ou the context. Anyways, we need and would like to use the EAGER loading mode.
So what seems to happen is that the application runs into a cycle when loading the "father" attribute of Child, recreating the list collection within it.
This same configuration works just fine in other implementations (i.e.: Hibernate JPA implementation), and many other examples over the web are not different of our implementation.
Any suggestion of how we could solve this problem? Is this a standart behavior of mapping using Sap JPA?
Evandro Pomatti
Edited by: Evandro Pomatti on Dec 9, 2010 9:55 PM

hi evandro,
now I got same kind of error, how did you fix, pls help if you have remembered,
hi all,
I am getting folowing error in my JAVA portal system when executing webservices in WSnavigator.
if anyone would have been faced this kind of error pls help me.
The following Error is thrown by the VM [java.lang.StackOverflowError]. ErrorQueueHandler will just trace it. The caller component should take care to process i
t properly.
completere error log
#2.#2014 04 27 23:52:42:197#0-500#Warning#com.sap.engine.core.thread.impl3.ErrorQueueHandler#
com.sap.ASJ.krn_thd.000025#BC-JAS-COR#kernel.sda#C0000AF060EF002D000001A901AA0076###com.sap.engine.core.thread.impl3.ErrorQueueHandler#Guest#0##9586B2DBCCBD11E3
A75E0000033325C2#9586b2dbccbd11e3a75e0000033325c2#9586b2dbccbd11e3a75e0000033325c2#0#Thread[ErrorQueueWatchDog,5,main]#Plain##
The following Error is thrown by the VM [java.lang.StackOverflowError]. ErrorQueueHandler will just trace it. The caller component should take care to process i
t properly.
java.lang.StackOverflowError
        at java.security.AccessController.doPrivileged(Native Method)
        at java.io.FilePermission.init(FilePermission.java:183)
        at java.io.FilePermission.<init>(FilePermission.java:249)
        at sun.net.www.protocol.file.FileURLConnection.getPermission(FileURLConnection.java:198)
        at sun.security.provider.PolicyFile.canonicalizeCodebase(PolicyFile.java:1784)
        at sun.security.provider.PolicyFile.access$700(PolicyFile.java:264)
        at sun.security.provider.PolicyFile$7.run(PolicyFile.java:1247)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1243)
        at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1190)
        at com.sap.engine.services.security.jacc.provider.PolicyImpl.implies(PolicyImpl.java:71)
        at com.sap.security.core.UmePolicy.implies(UmePolicy.java:696)
        at com.sap.security.core.role.jacc.JACCPolicy.implies(JACCPolicy.java:367)
        at java.security.ProtectionDomain.implies(ProtectionDomain.java:222)
        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:354)
        at java.security.AccessController.checkPermission(AccessController.java:549)
        at com.sap.engine.services.keystore.impl.security.CodeBasedSecurityConnector.checkPermissions_readEntry(CodeBasedSecurityConnector.java:542)
and also find heap log info
-----------  H E A P   C H E C K  -----------
Suspension of other threads succeeded.
6 Java thread local allocation buffers currently in use.
Scanning young generation space 314368K,   1% used [0x0a00020000000000, 0x0a00020000334838, 0x0a00020013300000)
Scanning young generation space 157184K,   0% used [0x0a00020013300000, 0x0a00020013300000, 0x0a0002001cc80000)
Scanning young generation space 157184K,   0% used [0x0a0002001cc80000, 0x0a0002001cc80000, 0x0a00020026600000)
Scanning old generation space 2516992K,  21% used [0x0a00020026600000, 0x0a000200c0000000)
Scanning permanent generation space 409600K,  99% used [0x0a000200c0000000, 0x0a000200d9000000)
Checked the complete java heap.
---  N O   H E A P   C O R R U P T I O N  ---
-----------  R E G I S T E R   R E G I O N S  -----------
Register pc points to 0x09000000332ef3a8, which is not a known memory location
Register lr points to 0x09000000332ef388, which is not a known memory location
Register ctr points to 0x0900000033421bc0, which is not a known memory location
Register r0 points to 0x0000000000000000, which is not a known memory location
Register r1 points into the stack of JavaThread "HTTP Worker [@1753615133]" [_thread_in_vm (_call_back), id=25193, stack(0x000000011a5ef888,0x000000011a6ef888)]
Dump of memory region around register r1 at 0x000000011a6e2a70
   0x000000011a6e29f0 00 00 00 01 1A 6E 2A 70 00 00 00 00 00 00 00 15 [.....n*p........]
   0x000000011a6e2a00 09 00 00 00 33 63 12 DC 09 00 10 00 A6 6A F9 60 [....3c.......j.`]
   0x000000011a6e2a10 00 00 00 00 12 4C 35 C0 0A 00 01 00 16 3D 60 78 [.....L5......=`x]
   0x000000011a6e2a20 09 00 00 00 33 FB 54 98 00 00 00 00 33 F4 90 28 [....3.T.....3..(]
   0x000000011a6e2a30 09 00 10 00 A6 4D 98 10 00 00 00 01 1A 6E 2A E8 [.....M.......n*.]
   0x000000011a6e2a40 00 00 00 00 00 00 00 00 00 00 00 00 15 A8 00 69 [...............i]
   0x000000011a6e2a50 00 00 00 00 15 A8 00 69 09 00 00 00 33 F4 90 38 [.......i....3..8]
   0x000000011a6e2a60 00 00 00 00 00 00 01 08 00 00 00 00 00 00 00 00 [................]
=> 0x000000011a6e2a70 00 00 00 01 1A 6E 2B 60 00 00 00 00 00 00 00 08 [.....n+`........]
Register r2 points to 0x09001000a66af960, which is not a known memory location
Register r3 points to 0x00000001188fa130, which is not a known memory location
Register r4 points to 0x0a000100163d6098, which is not a known memory location
Register r5 points to 0x0900000033f49038, which is not a known memory location
Register r6 points to 0x0000000000000108, which is not a known memory location
Register r7 points to 0x09001000a648c308, which is not a known memory location
Register r8 points to 0x09001000a64cf2b4, which is not a known memory location
Register r9 points to 0x0000000000000000, which is not a known memory location
Register r10 points to 0x0000000000000000, which is not a known memory location
Register r11 points to 0x0000000000000000, which is not a known memory location
Register r12 points to 0x09000000332ef388, which is not a known memory location
Register r13 points into the stack of JavaThread "HTTP Worker [@2116488621]" [_thread_in_native (_at_safepoint), id=25450, stack(0x000000011a6f4888,0x000000011a
7f4888)]
[error occurred during error reporting (dumping memory regions for register values), id 0xb
Exception details: SIGSEGV at pc=0
Problematic frame: v  ~StubRoutines::SafeFetch32 (sp=0x000000011a6e1240) (pc=0x0a00010000067b58)]
hs_err_pid26214604.log: END

Similar Messages

  • Problems with cursor and shortcuts when using JNLP services on MAC OS X

    After invoking the JNLP services on a MAC I loose the ability to set the cursor and invoke keyboard shortcuts. On Windows this is not a problem, so I believe it is a bug and I have reported it to Apple. Meanwhile, I would appreciate if someone could help me with finding a work-around. To identify the problem run the following code with Java Web Start (i.e., you need to add the program to a jar and launch it using a JNLP script). You also need to include the javax.jnlp package.
    Observe that the cursor changes to cross-hairs when entering the circle. After invoking the Open file menu item, the cursor does not change any longer. Shortcut key do not work either, but if you open the menu and close it again without selecting any of the menu items, the shortcuts are OK again.
    package bugreport;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.IOException;
    import javax.swing.*;
    import javax.jnlp.*;
    public class Demo2 extends JPanel implements Runnable, MouseMotionListener {
        private int centerX = 100;
        private int centerY = 100;
        private int radius = 50;
        public static void main(String[] args) {
            SwingUtilities.invokeLater(new Demo2());
        public void run() {
            int menuMask = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask();
            final JFrame frame = new JFrame("Bug Demo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            setPreferredSize(new Dimension(200, 200));
            addMouseMotionListener(this);
            JMenuBar menuBar = new JMenuBar();
            frame.setJMenuBar(menuBar);
            //File menu
            JMenu fileMenu = new JMenu("File");
            fileMenu.setMnemonic('F');
            menuBar.add(fileMenu);
            //openMenuItem
            JMenuItem openMenuItem = new JMenuItem("Open...");
            openMenuItem.setMnemonic('O');
            openMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, menuMask));
            openMenuItem.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    openFile();
            fileMenu.add(openMenuItem);
            frame.add(this);
            frame.pack();
            frame.setResizable(false);
            frame.setVisible(true);
        @Override
        public void paintComponent(Graphics g) {
            g.clearRect(0, 0, getWidth(), getHeight());
            g.setColor(Color.BLUE);
            g.fillOval(centerX - radius, centerY - radius, 2 * radius, 2 * radius);
        public void mouseDragged(MouseEvent e) {
        public void mouseMoved(MouseEvent e) {
            int dx = e.getX() - centerX;
            int dy = e.getY() - centerY;
            if (dx * dx + dy * dy < radius * radius) {
                setCursor(Cursor.getPredefinedCursor(Cursor.CROSSHAIR_CURSOR));
            } else {
                setCursor(Cursor.getDefaultCursor());
        private void openFile() {
            FileOpenService fos = null;
            try {
                fos = (FileOpenService) ServiceManager.lookup("javax.jnlp.FileOpenService");
            } catch (UnavailableServiceException ex) {
                JOptionPane.showMessageDialog(this, "Service unavailable", "Open", JOptionPane.ERROR_MESSAGE);
            if (fos != null) {
                try {
                    FileContents fc = fos.openFileDialog(null, null);
                } catch (IOException ex) {
                    JOptionPane.showMessageDialog(this, "Service unavailable", "Open", JOptionPane.ERROR_MESSAGE);
    }Edited by: James_Vagabond on Oct 29, 2009 9:35 AM

    Barbara, Thanks very much taking the time to respond to my posting. Your input and directions were just what I needed.I accessed the print settings in the pull down menu, setup the print options including the color profile for Elements and the Printer to sRGB, and printed my picture. This resolved all the invalid color problems I was having, but I did notice that there was a hint of magenta overall in the picture. I had read an article that said to use Canon Color Matching instead of Color Sync to prevent that but I couldn't make that change in the pull down menu. I tried in the Presets dialog box but that didn't appear to be possible. Should I make that change as well?
    Also, in my travels through Elements 13 I notice under Edit->Color Settings that there were options for No Color Mgmt, Optimize for Screen, for Printing, or ability to chose one or the other (real time I assume). How do those options fit into this scenario?
    Thanks again

  • File sharing problem between XP and MAC when using Airport Extreme

    I recently got a Time Machine to replace my flaky Linksys Wireless N router and since I've done that I can't connect to my PC running Windows XP and was able to before. I have made sure my firewall settings are correct and have gone through many different settings on Time Machine but still no luck.
    I have my PC directly connected via ethernet to the Time Machine and my Mac is wireless. I'm able to ping the IP address of the Mac from my PC but can't ping in the opposite way.
    Any suggestions would be greatly appreciated.
    Thanks!!

    btw the error is
    "Attempting to copy to the disk "Guy_s iPod" failed. The file name was invalid."
    and then it says
    "The iPod "Guy's iPod II" cannot be updated. The disk could not be read or written to."

  • Photoshop CS6 crashes all the time and especially when using the type tool... please help!

    Photoshop CS6 crashes all the time and especially when using the type tool... please help!

    Since I did not have this problem with CS5 or CS4, I can only assume something is not right with Photoshop CS6... below is my video card info:
    ATI Radeon HD 4850:
      Chipset Model:          ATI Radeon HD 4850
      Type:          GPU
      Bus:          PCIe
      PCIe Lane Width:          x16
      VRAM (Total):          512 MB
      Vendor:          ATI (0x1002)
      Device ID:          0x944a
      Revision ID:          0x0000
      ROM Revision:          113-B9110C-425
      EFI Driver Version:          01.00.383
      Displays:
    iMac:
      Resolution:          2560 x 1440
      Pixel Depth:          32-Bit Color (ARGB8888)
      Main Display:          Yes
      Mirror:          Off
      Online:          Yes
      Built-In:          Yes
      Connection Type:          DisplayPort
    Cinema HD:
      Resolution:          1920 x 1200
      Pixel Depth:          32-Bit Color (ARGB8888)
      Display Serial Number:          2A80273WXMN
      Mirror:          Off
      Online:          Yes
      Rotation:          Supported

  • Pixelation problems occurs in my videos when using adobe flash but using chromes pepper flash no problemes so its definitely adobe problems on my WIndows 8.1

    pixelation problems occurs in my videos when using adobe flash but using chromes pepper flash no problemes so its definitely adobe problems on my WIndows 8.1

    Problem is:
    Flash Player for IE11 (which is the worst browser ever developed - BAR NONE) is a Microsoft product, when it comes right down to it.
    Adobe writes the base code and yes, they do collaborate on updates for it, but the gang in Redmond alter the plug-in and add "proprietary" code before embedding it, and at that point it's "their baby".
    There are two (2) registry keys - 1 for 32 bit IE and the other for 64 bit IE, as well as a KB patch that prevent all but the most experienced Windows users from ever touching the Flash Player plug-in for IE. So there's NO WAY you could have done a clean install of the ActiveX plug-in in Windows 8. Unless you're an uber-geek, you can only update it through Windows Update.
    WIn 8 is an abomination and IE11 made it worse. IE has always been the "problem child" of browsers, failing to handle CSS, Javascript, some PHP and most design "tweaks" that good webmasters can use with other browsers, trouble free.
    I have IE8 on XP, 9 on VIsta, 11 on 7, 10 on 8 and 11 on 8.1... but they're all for testing only. I'd have to be out of my mind to ever think of using IE as my primary browser. ActiveX controls have to be disabled formost stuff and that opens millions of security holes in IE.
    You've got a good video card and a decent sound card. It's a shame to waste them on a pile of garbage like IE, just because it came with Windows.

  • I recently upgraded to the latest version of FF and now when using a webmail client I am routinely logged out when I try to search e-mail. Why? I go to IE and it works... but, I hate IE.

    I recently upgraded to the latest version of FF and now when using a webmail client I am routinely logged out when I try to search e-mail. It works in IE, but I don't like or want to use IE.
    == This happened ==
    Every time Firefox opened
    == Today

    Unstable means it can vary in stability day by day as it can be crash prone to being stable. Features can be a work in progress for a while. The May 24 Nighty build was crash prone for a lot of testers for example.

  • Can you share your keyboard and mouse when using S...

    can you share your keyboard and mouse when using Skype Screen share?
    I want to give a remote user access to a application on my computer.  Is this posisable with Skype?
    Can you share just one application on yourscreen and not the complete screen?

    you can share both your entire screen, or just a specific window of program in your computer.  it is not possible to give someone a remote access to your computer through skype, and it is also not possible to share your mouse and keyboard.
    IF YOU FOUND OUR POST USEFUL THEN PLEASE GIVE "KUDOS". IF IT HELPED TO FIX YOUR ISSUE PLEASE MARK IT AS A "SOLUTION" TO HELP OTHERS. THANKS!
    ALTERNATIVE SKYPE DOWNLOAD LINKS | HOW TO RECORD SKYPE VIDEO CALLS | HOW TO HANDLE SUSPICIOS CALLS AND MESSAGES
    SEE MORE TIPS, TRICKS, TUTORIALS AND UPDATES in
    | skypefordummies.blogspot.com | 

  • TS1398 How can I use both, Windows PC and iMac, when using WiFi?. It is either-or. What can I do?

    How can I use both, Windows PC and iMac, when using WiFi?. It is either-or. What can I do?

    What does this have to do with using an iPad?
    But yes, you should be able to connect to your home WiFi network with multiple computers and devices. In my house my wife, my daughter and I will all be using the WiFi Internet connection at the same time with our Laptops and I will also be using my iPad, my daughter uses her iPhone, and we have no issues at all.
    Is this what you want to know about?

  • How can I specify SMTP Email Server userID and password when using Email VIs?

    How can I specify SMTP Email Server userID and password when using Email VIs included in Internet Toolkit?

    Hi,
    A similar question was posted on Discussion Forums soem time back. Please see the link below.
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000C7B00000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
    You would find the last post in the above thread quite useful where it has a link to OpenG code. I am also copying that link for your reference.
    http://www.openg.org/tiki/tiki-index.php?page=OpenG+Internet+Connectivity+Tools
    Please feel free to respond to this post with any questions/comments you may have.
    Regards,
    Ankita A.
    National Instruments

  • Is JBO exception working when using JPA ?

    I am using Jdeveloper 11g R (11.1.2.3) & weblogic 10 G
    In my pages I use JSF & Facelet
    Is JBO exception working when using JPA as data provider?
    I mean can I throw JBO exception from my back end in some business cases?
    thanks
    Mohsen

    You haven't added a resource reference for your web application that gives the application a local name for the global resource "UserDatabase".

  • Why does my image blink on and off when using selecton tool

    why does my image blink on and off when using selection tool

    This is due to the hardware acclerated drawing not working properly because your graphics hardware doesn't support it right. This is usually resolved by updating the graphics driver to the latest version. If this is not possible, turn off OpenGL in Preferences --> Performance.
    Mylenium

  • Just Installed Firefox 6.0.2 And I'm Having Many Problems On Some Web Sites When Using Firefox:

    -When I click on a picture on some sites it will go to the next page with a large view of the picture and then when I go back one page to do the same with another picture (or even the same picture) nothing happens.
    -Videos don't show up or on some sites the videos do show up and work but you can't make them full screen. (YouTube works fine).
    -Sometimes I have to click "Reload" to get my saved codes to show up.
    -It won't let me log onto some sites unless I right click where it says "sign in" and click "open link in new tab".
    -In some Forums the tool bars, smileys, etc. don't work when using Firefox or IE9 and they worked before with IE9.
    -Some of my letters when viewed with IE9 are now in some kind of code (maybe html?).
    I never had these problems before when using IE9 alone!
    Java was updated before I installed Firefox and I installed the Adobe Flash Player 10 plugin right after installing Firefox. My OS is Windows 7 64-bit.
    Please Help. Thank You

    Clear Cookies & Cache
    * https://support.mozilla.com/en-US/kb/Template:clearCookiesCache
    Clear the Network Cache
    * https://support.mozilla.com/en-US/kb/How%20to%20clear%20the%20cache#w_clear-the-cache
    Reload web page(s) and bypass the cache.
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)
    Troubleshooting extensions and themes
    * https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes
    Check and tell if its working.

  • Problem when using JPA/EJB in webservice

    I wrote a web service that use JPA/EJB to connect to Sybase (the existing tables), and deployed to OC4J, but it got the following error when the web service is invoked:
    <env:Envelope
      xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:ns0="http://prjtestws_9/types/">
     <env:Body>
      <env:Fault>
       <faultcode>env:Server</faultcode>
       <faultstring>Internal Server Error (Caught exception while handling request: java.lang.NullPointerException)</faultstring>
      </env:Fault>
     </env:Body>
    </env:Envelope>
    I have checked that, the query will return some records, and also it works fine if the program executed as a stand alone application.
    Thanks in advance

    I find that I can only have ONE webservice that using JPA/EJB for an OC4J instance, if more than one then the above error will come out, and I have to restart the OC4J instance to run another webservice that using JPA/EJB.
    Is there any solution for this issue?
    Thanks

  • Video lag at start and stability problems in Android 4 (ICS) when using Video and StageVideo

    I'm experiencing some problems with video playback in a Samsung Galaxy Tab 2 tablet, which comes with Android 4 (Ice Cream Sandwich).
    In Android 3 (Honeycomb) and 2 (Gingerbread and Froyo) video playback worked perfectly and started with no lag, but in Android 4 video takes like a couple of seconds to start, showing nothing during that time.
    This problem happens when using either Video and StageVideo objects, but when using StageVideo, there's also another problem: When playing back a second video after having closed the first, even after some minutes, when starting the next video I can see during those couple of seconds a still image of the previous video, in the part where it was stopped. Why?
    None of this happened in Android 3 and 2, so I don't think it's something related to my code (and I've reviewed it several times to try and find a solution). This seems to be an Android 4 specific issue with AIR, since I've tried several Android 4 tablets of different brands and all of them show this behaviour. I've tried with AIR 3.1, 3.2 and 3.3 beta, and this problem happens in all three.
    Also, there are some random stability problems if the app goes to sleep while playing a video. Sometimes, it doesn't wake up properly and freezes, giving you a "force close" Android message. Sometimes it wakes up properly but the video doesn't show or it's paused. All of this in "CPU" mode. In "Direct" mode it seems to work a little better.
    BTW, can someone explain what's exactly the new "Direct" mode. I know it's needed for Stage3D, but I don't know why there's that specific mode, when there's GPU mode. Isn't Stage3D supposed to use the device's GPU? Well, Direct mode seems to be "better" than GPU in that filter effects work, whereas GPU mode doesn't support filters, so if you can use Stage3D while using filter effects, that's great.

    Yes, it's unfortunately still not fixed. Also, I've looked into the bugbase report I filed:
    https://bugbase.adobe.com/index.cfm?event=bug&id=3205172
    And it seems they've CLOSED this bug!
    They say that they can't "control the video overlay buffer that is still in the hardware. This really depend on how ICS handle their buffer and external playback".
    The only workaround is NOT using StageVideo, but just regular video. But then you can't use hardware acceleration!
    Also, there's the crashing bug, which is even more important. Video crashes too often, especially in off-brand tablets, which are becoming very common!

  • Battery Cycles and discharge when plugged in

    Hi all,
    Couple of questions from a newbie unibody MBP owner.
    1) My battery is draining slightly even when I have it plugged in. Over 3 days using it plugged in and shutting down in between, my charge goes from 99% down to 95 and triggers a recharge. Is this normal?
    2) My battery seems to add cycles every time I charge it - even if I've only used it on battery for an hour of plain browsing. Aren't cycles meant to reflect accumulated discharge rather than number of charging events?
    Battery has been calibrated twice since I received it 2 weeks ago.
    Thanks in advance for your help.

    Thanks for your reply Mr Engineer.
    So re the charge cycle, it shouldn't be adding whole cycles to the count each time I only used a small a amount of charge, then recharge. IE - 1 cycle should = 10 x (using 10% of the battery, then recharging).
    Since mine is adding cycles each time I recharge, is this likely to be a software or a hardware(battery) problem, and how do I get it fixed - just call AppleCare?
    Many thanks

Maybe you are looking for