Em.merge does not throw Optimistic Lock Exception

Hello,
we are using Optimistic Lock Exception in a stateful bean managed transaction.
I am wondering that there is no Optimistic Lock Exception is thrown after em.merge
The Optimistic Lock Exception is primary thrown on em.flush - is this right?
A similar problem is described on
http://www.nabble.com/Optimistic-Lock-Exception-expected-td22742662.html#a22742662
See serveroutput: The EclipseLink-5006-Exception is thrown after an em.flush
14:03:11,657 INFO [STDOUT] updateItem
14:03:11,657 INFO [STDOUT] [EL Finest]: 2009-04-09 14:03:11.657--UnitOfWork(14218007)--Thread(WorkerThread#0[192.168.1.217:4518])--Merge clone with references com.tup.model.Person@131a24c
14:03:11,657 INFO [STDOUT] merged
14:03:11,657 INFO [STDOUT] [EL Finest]: 2009-04-09 14:03:11.657--UnitOfWork(14218007)--Thread(WorkerThread#0[192.168.1.217:4518])--Execute query UpdateObjectQuery(com.tup.model.Person@196649c)
14:03:11,657 INFO [STDOUT] [EL Fine]: 2009-04-09 14:03:11.657--ClientSession(21268424)--Connection(25845065)--Thread(WorkerThread#0[192.168.1.217:4518])--UPDATE mku_person_ver SET first_name = ? WHERE ((ID = ?) AND (((last_name = ?) AND (first_name = ?)) AND (version = ?)))
bind => [Bernd 982, 5, Kuls, Bernd 98, 2009-04-09 13:12:15.0]
14:03:11,672 INFO [STDOUT] [EL Warning]: 2009-04-09 14:03:11.672--UnitOfWork(14218007)--Thread(WorkerThread#0[192.168.1.217:4518])--Exception [EclipseLink-5006] (Eclipse Persistence Services - 1.1.0.r3634): org.eclipse.persistence.exceptions.OptimisticLockException
Exception Description: The object [com.tup.model.Person@196649c] cannot be updated because it has changed or been deleted since it was last read.
Class> com.tup.model.Person Primary Key> [5]
14:03:11,688 INFO [STDOUT] [EL Warning]: 2009-04-09 14:03:11.688--UnitOfWork(14218007)--Thread(WorkerThread#0[192.168.1.217:4518])--javax.persistence.OptimisticLockException: Exception [EclipseLink-5006] (Eclipse Persistence Services - 1.1.0.r3634): org.eclipse.persistence.exceptions.OptimisticLockException
Exception Description: The object [com.tup.model.Person@196649c] cannot be updated because it has changed or been deleted since it was last read.
Class> com.tup.model.Person Primary Key> [5]
14:03:11,688 INFO [STDOUT] OptimisticLockException throws MyApplicationException
14:03:11,688 INFO [STDOUT] MyApplicationException
14:03:11,735 INFO [STDOUT] [EL Finer]: 2009-04-09 14:03:11.735--UnitOfWork(14218007)--Thread(WorkerThread#0[192.168.1.217:4518])--TX afterCompletion callback, status=ROLLEDBACK
14:03:11,750 INFO [STDOUT] [EL Finer]: 2009-04-09 14:03:11.75--UnitOfWork(14218007)--Thread(WorkerThread#0[192.168.1.217:4518])--release unit of work
14:03:11,750 INFO [STDOUT] [EL Finer]: 2009-04-09 14:03:11.75--ClientSession(21268424)--Thread(WorkerThread#0[192.168.1.217:4518])--client released
14:03:11,750 ERROR [BMTInterceptor] BMT stateful bean 'ModelFacade' did not complete user transaction properly status=STATUS_MARKED_ROLLBACK
And by this Exception the transaction's status is set to status=STATUS_MARKED_ROLLBACK.
The transaction can no longer be used.
I want to use this transaction further and wrap the OptimisticLockException into an MyApplicationException
(see serveroutput).
But no change!
Any Ideas ?
Regards,
Martin Kubitza
T&P Bochum/Germany

Hi,
are you using JPA or TopLink ? Check if there is another exception thrown that produces the error. You can try and catch (Exception ex), which will catch them all. if this works the obviously you don't catch the right exception
I found a post saying that: "If you trying commit directly after persist w/o doing an explicit
flush then OptimisticLocking Exception maybe nested inside
RollBackException. What is the top most error on stack? You can catch
javax.persistence.PersistenceException and try to do this kind of
error translation
public static void getThrowable(javax.persistence.PersistenceException
perex, int code) {
boolean updateError = false ;
boolean deleteError = false ;
KentException kentex = null ;
Throwable th = null ;
if( perex instanceof org.apache.openjpa.persistence.RollbackException) {
th = perex.getCause();
if(th instanceof OptimisticLockException) {
updateError = true ;
if(perex instanceof OptimisticLockException ){
updateError = true ;
th = perex ;
if(perex instanceof org.apache.openjpa.persistence.EntityNotFoundException) {
deleteError = true ;
th = perex ;
http://n2.nabble.com/OptimisticLockException-confusion.-td210621.html
Frank

Similar Messages

  • Java Does Not Throw Exception When Writing To Read-Only Files

    I have noticed that when I try to write to a read-only file in a window environment, Java does not throw an IOExcpetion, it just dosn't write to the file.
    I am writing an FTP server and here is the code:
         public static long copyStream(InputStream in, OutputStream out)throws IOException
              IOException exception = null;
              long copied = 0;
              try
                   byte buffer[] = new byte[1024];
                   int read;
                   while((read = in.read(buffer)) != -1)
                        out.write(buffer, 0, read);
                        copied += read;
              catch(IOException e)
                   //ensures that the streams are closed.
                   exception = e;
              try
                   in.close();//ensures output stream gets closed, even if there is an
                   //excption here.
              catch(IOException e){exception = e;}
              out.close();//try to close output.
              if(exception != null)
                   //exception is not null, an exception has occured.
                   //rethrow exception.
                   throw exception;
              return copied;//all ok, return bytes copied.
         }Is this a bug in JAVA VM? Is so, how should I report it?

    I have noticed that when I try to write to a read-only file in a window environment,
    Java does not throw an IOExcpetion, it just dosn't write to the file.C:\source\java\Markov>attrib readonly.out
    A R C:\source\java\Markov\readonly.out
    �C:\source\java\Markov>java b
    java.io.FileNotFoundException: readonly.out (Access is denied)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at b.main(b.java:5)
    import java.io.*;
    public class b {
        public static void main(String[] args) {
         try     {
              OutputStream os = new FileOutputStream ( "readonly.out");
         catch (Exception e) {
              e.printStackTrace();
    }

  • Optimistic Lock Exceptions

    Another question:
    I'm getting some optimistic lock exceptions for object which I believe
    should only be modified in a single transaction. How can I see the context
    in which each modification took place?
    What is the definition of a 'modification', i.e. what operations on an
    object take an optimistic lock?
    Thanks,
    Tom

    Tom-
    In article <blj328$1i4$[email protected]>, Tom Davies wrote:
    >
    Another question:
    I'm getting some optimistic lock exceptions for object which I believe
    should only be modified in a single transaction. How can I see the context
    in which each modification took place?Try catching the lock exception and getting the FailedObject to see which
    object failed.
    You could also track which objects are being saved by
    implementing javax.jdo.InstanceCallbacks and doing some logging in
    jdoPreStore(). You could also try watching the SQL log to see if any
    suspicious updates are taking place.
    What is the definition of a 'modification', i.e. what operations on an
    object take an optimistic lock?Any field change or the addition/deletion to any related fields.
    Thanks,
    Tom--
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • WriteDomain( dir ) does not throw an error!

    we are trying to automate our domain creation using wlst. If there is an error in the script we expect our program to throw an error such that we can take some preventive measures. That said, we have such script that loads a template and writes the domain to a directory. If for some reason writeDomain fails it does not throw an error!. Which lets our script continue and fail miserably later.
    Is this a bug??
    Thanks,
    /pete

    I have not had that problem. In my script (using WLST on WebLogic 8.1sp5 on Solaris 9) I specified a directory that my user could not create and the return code to UNIX was 255:
    Trace:
    INFO: Writing domain
    Error: writeDomain() failed.
    Traceback (innermost last):
    File "/usr/local/met/btwlst/0_50/bin/load_template.py", line 78, in ?
    File "initWls.py", line 70, in writeDomain
    com.bea.plateng.domain.script.jython.WLSTException: com.bea.plateng.domain.script.ScriptException: com.bea.
    plateng.domain.GenerationException: Unable to create domain directory: /wls_domain/ecommware2a
    at com.bea.plateng.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHan
    dler.java:33)
    at com.bea.plateng.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:897)
    at com.bea.plateng.domain.script.jython.WLScriptContext.writeDomain(WLScriptContext.java:465)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
    at org.python.core.PyMethod.__call__(PyMethod.java)
    at org.python.core.PyObject.__call__(PyObject.java)
    at org.python.core.PyInstance.invoke(PyInstance.java)
    at org.python.pycode._pyx0.writeDomain$14(initWls.py:70)
    at org.python.pycode._pyx0.call_function(initWls.py)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyFunction.__call__(PyFunction.java)
    at org.python.pycode._pyx3.f$0(/usr/local/met/btwlst/0_50/bin/load_template.py:78)
    at org.python.pycode._pyx3.call_function(/usr/local/met/btwlst/0_50/bin/load_template.py)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyCode.call(PyCode.java)
    at org.python.core.Py.runCode(Py.java)
    at org.python.core.__builtin__.execfile_flags(__builtin__.java)
    at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java)
    at com.bea.plateng.domain.script.jython.WLST_offline.main(WLST_offline.java:67)
    Caused by: com.bea.plateng.domain.script.ScriptException: com.bea.plateng.domain.GenerationException: Unabl
    e to create domain directory: /wls_domain/ecommware2a
    at com.bea.plateng.domain.script.ScriptExecutor.runGenerator(ScriptExecutor.java:2143)
    at com.bea.plateng.domain.script.ScriptExecutor.writeDomain(ScriptExecutor.java:531)
    at com.bea.plateng.domain.script.jython.WLScriptContext.writeDomain(WLScriptContext.java:459)
    ... 21 more
    Caused by: com.bea.plateng.domain.GenerationException: Unable to create domain directory: /wls_domain/ecomm
    ware2a
    at com.bea.plateng.domain.DomainGenerator.generate(DomainGenerator.java:137)
    at com.bea.plateng.domain.script.ScriptExecutor$2.run(ScriptExecutor.java:2120)
    com.bea.plateng.domain.script.jython.WLSTException: com.bea.plateng.domain.script.jython.WLSTException: com
    .bea.plateng.domain.script.ScriptException: com.bea.plateng.domain.GenerationException: Unable to create do
    main directory: /wls_domain/ecommware2a
    Script Exit code = 255

  • IPhone 5 does not always auto lock, particularly if I put it down face down.

    iPhone 5 does not always auto lock. Seems to be particularly true if I place it face gown on a surface.

    try holding home button and on/off button together for few seconds.It will reboot.

  • My iphone 4 does not make any sound except when i have call. Any sound notification for example whatsapp or email or playing song i could not hear a pip, but when blug the earphone i could hear all sound via earphone, any advise??

    My iphone 4 does not make any sound except when i have call. Any sound notification for example whatsapp or email or playing song i could not hear a pip, but when blug the earphone i could hear all sound via earphone, any advise??

    Check the Mute switch, which is on the left side of the phone above the volume buttons.

  • Persist does not throw any exception in a JUnit test

    I am implementing a JUnit test using Toplink as JPA provider. I must be missing something because I try to persist two times the same entity and no exception is thrown. Neither PersistenceException nor any other type of exception. The code cannot be easier:
    @Test
    public void testAddExistingTeam() throws Exception {
    Team team = new Team("team2");
    try{     
    EntityManagerFactory emf =
    Persistence.createEntityManagerFactory("fofo");
    EntityManager em = emf.createEntityManager();
    em.getTransaction().begin();
    em.persist(team);
    em.persist(team);
    em.getTransaction().commit();
    em.close();
    catch(Exception e){
    e.printStackTrace();
    Notice the two em.persist(team).
    This code does not seem to either enter the catch block or produce any sort of exception. On the other hand, I have checked that after the first
    em.persist(team); the team is really managed.
    The relevant parts of the Team class definition follow:
    @Entity
    @Table (name ="TEAM")
    public class Team implements Serializable {
    @Id
    @Column (name="NAME")
    private String name;
    @ManyToOne
    @JoinColumn (name="CLUB_NAME", referencedColumnName="NAME")
    private Club club;
    private Category category;
    private String email;
    @ManyToMany(mappedBy="teams")
    private List<Competition> competitions;
    public Team (String name){
    this.name = name;
    this.club = null;
    this.competitions = new ArrayList<Competition>();
    ....getters/setters....and more constructors.
    I am really puzzled by this issue. Somebody could help??? I would be really grateful!!!
    Josepma

    This is expected behavior as persist is a no-op if called on a managed entity (other than to cascade over relationships marked with cascade.Persist), and the first persist call makes the passed in team entity managed.
    Try calling em.flush(); and em.clear(); between the persist calls to get an exception.
    The first flush will ensure the team is inserted in the database, while clear will detach it so that the second persist call will try to insert the team. JPA providers are not required to throw the entityExistsException on persist - it can be delayed until the transaction is flushed or committed, so you are likely to get a PersistenceException from the commit instead of EntityExistsException from persist.
    Best Regards,
    Chris

  • IDocumentQuery.Execute() method throws user does not have edit permissions exception

    I'm trying to query a document folder for all of its containing documents. Its a basic query like this:
    IPortletContext PortletContext = PortletContextFactory.CreatePortletContext(Request,Response);IRemoteSession PTSession;PTSession = PortletContext.GetRemotePortalSession();IDocumentManager documentManager = PTSession.GetDocumentManager();
    IDocumentQuery documentQuery = documentManager.CreateQuery(FolderID); documentQuery.SetSortProperty(ObjectProperty.Name);IObjectQuery queryResults = documentQuery.Execute();
    When I'm logged into the portal as an administrator, everything works fine. However if I'm logged in as a "regular" user, I get this exception when calling the Execute() method:
    Plumtree.Remote.PRC.PortalException: Exception of type Plumtree.Remote.PRC.PortalException was thrown. ---> System.Web.Services.Protocols.SoapException: Server was unable to process request. --> Access denied: Current user does not have edit permission
    I'm sending the Login Token to the portlet. Now I've tried giving the user Edit rights on the document folder as well as Edit the Knowledge Directory rights in the Activity Manager, but neither gets rid of the exception. I'm not sure what other "Edit" permissions to check. I don't even see why the user would need "Edit" permission to anything in the first place since the Execute() method simply returns an IObjectQuery that doesn't have any ability to make changes to any objects. I know that I could use the SearchFactory interface, but I wanted the results to be real time. Any help would be much appreciated. Thanks!
    Jimmy

    The problem here is that the query is created with default settings to show unapproved documents -- only users with edit access can see unapproved documents. Add the bold line to your code and it will work.
    IDocumentManager docManager = prcSession.GetDocumentManager();IDocumentQuery docQuery = docManager.CreateQuery(iFolderID);docQuery.SetShowUnapproved(false);IObjectQuery queryResults = docQuery.Execute()

  • FileDialog in SAVE mode does not throw file access error

    Hi,
    We are using FileDialog to SAVE and LOAD files.
    If a file is selected to which the user has no access, then LOAD dialog throws an
    error, but SAVE dialog does not.
    Have I skipped something ??
    Below is a sample code :
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class TestClass extends JFrame {
    public TestClass() {
    setSize(400, 400);
    JPanel l_objPanel = new JPanel();
    getContentPane().add(l_objPanel);
    final JButton l_objButton = new JButton("FileOpen");
    l_objPanel.add(l_objButton);
    l_objButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent p_objEvent) {
    FileDialog l_objDlg = new FileDialog(TestClass.this, "Save now", FileDialog.SAVE);
    l_objDlg.show();
    public static void main( String[] strArgs ) {
    try {
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    } catch(Exception e) {
    e.printStackTrace();
    TestClass l_objDlg = new TestClass();
    l_objDlg.show();

    The bug you pointed out is pretty different: JWS should work offline if no network connection is available, but no such behaviour is provided, never the less granted, if your server is down. No matter what your 'web-distributed' app is (ASP, SaaS, SOA, RIA, cloud, ...), you may have it work without a network, but no architectural pattern would ever remotely consider it should run if the providing server is down (and is not redirecting or, at least, sending some 'manageble' error).

  • Em.merge does not work while em.persist does?

    Hello,
    I have a stateless session bean with code snippets below.
        @PersistenceContext
        private EntityManager em;
        public void setList(ContainerList list, int key) {
            ContainerList stored = (ContainerList)em.find(ContainerList.class, key);
            list.setId(key);
            if (stored == null) { em.persist(list); }
            else {
                em.merge(list); // 1st alternative
    //            stored.copy(list); // 2nd alternative
    ...When I call the method setList for a non existing key, the entity is stored in the database. When I call the method for an existing key, the old value is not updated by the new, i.e. the merge method has no effect. If I comment out the 2nd alternative, it has no effect either. Does anyone has an idea why this does not work? I am using Netbeans 5.5 and 5.5.1 release candidate 1. (With the included application server.)

    Hello,
    I will try to summarise my knowledge of the JAVA persistence API as the documentation is not always clear and may be misleading.
    In SQL you have 4 main statements: INSERT, SELECT, UPDATE and DELETE.
    with
    @PersistenceContext
    private EntityManager em;some documentation appears to make the following associations:
    em.persist(Object entity) -> INSERT
    em.find(Class entityClass, Object primaryKey) -> SELECT
    em.merge(Object entity) -> UPDATE
    em.remove(Object entity) -> REMOVE
    However, practice shows that this is NOT the case!
    em.merge(Object entity) does exactly the same thing as em.find(Class entityClass, Object primaryKey)! The only difference is that the em.merge(Object entity) method takes a detached object of the entity class as argument with the same primary key as the attached object you are loading.
    Detached objects are objects of the entity class the database manager is not aware of. Attached objects are objects in the database and are managed by the persistence context. Every newly created object of an entity class is detached. You can attach them to the database with the em.persist(Object entity) method call. Attached objects can be retrieved with the em.find(Class entityClass, Object primaryKey) or with the em.merge(Object entity) method. All changes made to attached objects are automatically stored in the database. There thus is no explicit method for the UPDATE statement. You just make changes to attached objects and the entity manager copies the changes to the database (at the end of the persistence context). An easy way to make all the changes you need at once is to have a detached object that contains the right values and then copy all these values to the associated attached object with a self defined copy method in the entity class as in
       Entity detached;
    // --> begin persistence context
       Entity attached = em.merge(detached);
       attached.copy(detached);
    // <-- end persistence contextIf you are working with session beans, the persistence context standard begins with the beginning of a transaction and ends with the end of a transaction. A transaction standard begins with the start of a session bean method and ends with the session bean method. If you choose to, you can make the persistence context of type extended with
    @PersistenceContext(type=PersistenceContextType.EXTENDED)
    private EntityManager em;In this case, the persistence context ends when the session bean is removed from the EJB container. (Can be useful to keep attached entities in the state of an stateful session bean.)
    Without session beans, you have to declare explicitely the start and end of a persistence context or transaction, but I refer to existing documentation for this, as I do not actively know how to handle things without session beans.
    Finally, the methods em.persist(Object entity) and em.merge(Object entity) use a detached object as argument, while em.remove(Object entity) uses an attached object as argument (using a detached object results in an Exception thrown).
    I hope this makes some things clear

  • Password does not work after Lock windows 8

    Hi Experts,
    I have windows 8 Pro on my Laptop. I have started facing a weird issue if late.
    When I login to the laptop after restart of PC, it connects fine but when I am connected to my domain in my office network, after locking screen (Windows+L) the system does not accept the password. I have to disable the Wi-Fi and then it logs in and
    when I enable Wi-Fi I am in the network and continue to work. here are answers to some basic questions I am sure will be asked.
    - I am entering the correct password.
    - When I am connected to domain I get this problem. At home, it works fine and accepts password after unlocking system. But as soon as I connect to VPN, same problem.
    - I have tried connecting via LAN cable and face the same issue.
    - problem is not with my account, only with my desktop, I can connect from other desktops and other folks using my laptop face the same problem.
    - Our IT guy here has given me a workaround to disable wifi everytime I have to relogin after locking screen. It works but it is not a very good workaround. disabling enabling wifi disconnects all my applications.
    Have asked me to reimage the laptop. I have not given it a thought but I am getting more and more frustrated.
    - I have tried deleting my profile and same problem, i don't think my profile may be a problem though as other folks using my laptop face the same problem.
    Just when i started getting comfortable with Windows 8, i am stuck with this nightmare.
    looking forward for some suggestions.
    Yogi

    Hi,
    I'm a bit confused with your description. Is your account was domain account when encountering this problem?
    When did this problem occures, if it just occures recently, it would be better to use system restore to reset your system to a former normal state.
    Roger Lu
    TechNet Community Support

  • Word Mail Merge does not accurately import a Text field in Excel with more than 15 numbers

    Hi, I've looked through some of the discussions regarding importing numbers from excel into word mail merge. I'm having a problem. In Excel I have a column that includes numbers with more than 15 digits. In Excel, I have made this column a text format, so
    now in Excel those long numbers show up correctly. However, when doing a mail merge in Word, again the numbers past 14 digits change to zeros. I've read many help articles about this but am still not finding a solution. I even tried going the DDE route and
    that didn't do it either. I checked out this answer: http://www.techsupportforum.com/forums/f57/mail-merge-data-corruption-429351.html which was the most helpful, but again, DDE seemed to work for this person but not for me. I hope someone can offer a solution.
    I was hoping that I could do a picture switch, but that does not seem to be an option for this particular problem. I don't know why importing it in DDE format did not solve the problem. Thanks for any help!

    Wow! After all my searching and just after posting this I figured out the solution! I originally had { MERGEFIELD Field_Name \# # } But then I just removed everything after the field name, as is normal for any other text field, so not indicating it was
    a number, and now it shows up correctly even if the number (from a Text formatted field in Excel) is longer than 15 digits. Hope this helps anyone else who has a problem. I did not use DDE to solve this problem.

  • When i plug my iphone 5 to the computer, it does not play any sound except the music app

    I need help to fix my iphone 5. i recently plug in my iphone 5 into the computer and tried to play music on youtube, or websites it does not play anysounds. but when i tried to play music on the music app it works normal. anyone knows please help me. thank you

    PrinceKavin wrote:
    I need help to fix my iphone 5. i recently plug in my iphone 5 into the computer and tried to play music on youtube, or websites it does not play anysounds....
    Perhaps you need to spend a little bit of time here...
    iPhone User Guide (For iOS 6 Software)

  • [Solved] caffeine-ng does not stop screen lock

    I installed caffeine-ng from AUR but it does not seem to work.  Whenever I'm playing my old NES games on higan the screen starts to go to sleep.  The caffeine icon is in my systray and it has the "steam" coming out the top indicating that it is working.   Any ideas?  Thanks.
    Last edited by necbot (Today 12:12:28)

    Does this happen even if you're using keyboard or a controller or only when you're AFK for some time?
    I can't help you with caffeine, but you can disable dpms and / or screen blanking in other ways.

  • My iPad stopped rotating. It does not have a lock icon. I also did a 'reset' didnt help. I also did a complete 'restore' didn't help. Can you help me please?

    I am so disappointed. It is very hard to use an iPad that does not work horizontally.
    I did a 'reset'
    I did a complete restore
    I't definitely started when I installed the IOS 6.
    I tried to instal the 6.01 but I'd did not correct it
    Please help

    The accelerometer is a physical component that allows your device to detect and respond to movement. If there is something physically wrong with this component, it won't be able to be fixed by any software update/restart etc.
    If your iPad is still within the warranty period, contact Apple and I'm sure they will be happy to help you out. Otherwise you could still inquire with them about repairing it.
    This is just my gut feeling based on your description. You should first perform the following steps and then contact Apple if you still have no joy:
    1. Kill all running apps (double tap home button and hit the red close button on each app)
    2. turn off your device (and turn back on)
    3. hold down power button at same time as home button until apple logo appears (a 'hard reset')
    4. if it's still not happening for you, backup everything on your device by plugging it into iTunes or syncing with iCloud and then do a restore. This will rule out a software issue.
    Of course it appears you have already performed the above steps so it looks like a heardware issue.
    Cheers.

Maybe you are looking for

  • Special character in excel

    Hi Friends, I am using CL_BCS class to send mail with attachment (zip contains excel file). Inexcel , one field has string value , and starts with double quotation mark . if excel finds double quoats, then it is displaying all the columns in that fie

  • Web service creation using the wizard

    Hi Friends, I am new to creation of web services. I am creating a web service for a FM which I have created using the wizard. In SE80, under Enterprise Solutions for my package, I am able to see the servicedefinitions . But when I open the serdefinit

  • Eligibility criteria for SAP - ABAP associate certification

    Hi, I'm a S/W Engg.(6months exp in SAP-ABAP) in an Indian firm. I want to take this certification: SAP Certified Development Associate - ABAP - SAP NetWeaver 7.0 because I'm on bench and have got no project. From what I've gathered by googling, I've

  • Table fields cleared when selecting a value in the inputListOfValues

    i have a page with a tabel, in this table i've made an inputListOfValues field which calls an LOV with countries, when i select in in the list and click on 'Ok' i return to the page. When i returned on the page, all fields are cleared from previous i

  • CS5 update error and RAW opning file

    I can't update my cs5. I get error Some updates failed to instaøø There was on error downloading this update, please quit an d try again. And i hvae try, but some problem every time I use update from help meny in Photoshop Have other queston about RA