Clearing Toplink cache

We are encountering OptmisticLockException sometimes in our app, when this happens all the other transactions are affected, is there any way to clear the Toplink cache externally? thanks

Thanks, but can you please tell me why Toplnik is issuing an update instead of insert for the object FXSingleLegC.FI120.0#16137966, I have given the list of registered objects and the sql generated, as you
can see the primary key is 0 for the object and Toplink still issues an update statement
2008-10-16 13:30:45,385 DEBUG Thread-199 [[email protected]] ISTransactionManager.endTransaction called
2008-10-16 13:30:45,387 INFO Thread-199 [[email protected]] Persistence - TOPLink: [TopLink Severe]:
2008-10-16 13:30:45,387 INFO Thread-199 [[email protected]] Persistence - TOPLink: 2008.10.16 01:30:45.387--UnitOfWork(16131849)--Thread(Thread[Thread-199,5,ASF Session Pool Threads])--
2008-10-16 13:30:45,387 INFO Thread-199 [[email protected]] Persistence - TOPLink:
UnitOfWork identity hashcode: 16131849
All Registered Clones:
Key: [0]     Identity Hash Code: 16153182     Object: com.integral.finance.dealing.fx.FXLegDealingPriceC.CITI.0#16153182
Key: [0]     Identity Hash Code: 15825629     Object: com.integral.finance.trade.TradeExternalSystemIdC.MAIN.0#15825629
Key: [0]     Identity Hash Code: 16151868     Object: com.integral.finance.dealing.QuoteC.CITI.0#16151868
Key: [0]     Identity Hash Code: 16136988     Object: com.integral.finance.dealing.RequestExternalSystemIdC.MAIN.0#16136988
Key: [0]     Identity Hash Code: 16165592     Object: com.integral.finance.fx.FXLegC.MAIN.0#16165592
Key: [0]     Identity Hash Code: 16152054     Object: com.integral.finance.dealing.fx.FXLegDealingPriceC.CITI.0#16152054
Key: [0]     Identity Hash Code: 16136630     Object: com.integral.finance.dealing.RequestC.FI120.0#16136630
Key: [0]     Identity Hash Code: 16152405     Object: com.integral.finance.dealing.fx.FXDealingPriceElementC.MAIN.0#16152405
Key: [0]     Identity Hash Code: 16261779     Object: com.integral.workflow.WorkflowStateMapC.FI120.0#16261779
Key: [0]     Identity Hash Code: 16153490     Object: com.integral.finance.dealing.fx.FXDealingPriceElementC.MAIN.0#16153490
Key: [0]     Identity Hash Code: 16137966     Object: com.integral.finance.fx.FXSingleLegC.FI120.0#16137966
Key: [0]     Identity Hash Code: 16137678     Object: com.integral.finance.fx.FXLegC.MAIN.0#16137678
Key: [0]     Identity Hash Code: 16140011     Object: com.integral.finance.dealing.fx.FXLegDealingPriceC.MAIN.0#16140011
Key: [0]     Identity Hash Code: 16262600     Object: com.integral.finance.trade.CptyTradeC.FI120.0#16262600
Key: [0]     Identity Hash Code: 16263303     Object: com.integral.finance.trade.CptyTradeC.FXI.0#16263303
Key: [0]     Identity Hash Code: 16137383     Object: com.integral.finance.dealing.fx.FXLegDealingPriceC.MAIN.0#16137383
Key: [4434103]     Identity Hash Code: 16156067     Object: com.integral.finance.dealing.RequestC.FI120.4434103#16156067
2008-10-16 13:30:45,387 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,387 INFO Thread-199 [[email protected]] Persistence - TOPLink: [TopLink Finer]:
2008-10-16 13:30:45,387 INFO Thread-199 [[email protected]] Persistence - TOPLink: 2008.10.16 01:30:45.387--UnitOfWork(16131849)--Thread(Thread[Thread-199,5,ASF Session Pool Threads])--
2008-10-16 13:30:45,387 INFO Thread-199 [[email protected]] Persistence - TOPLink: begin unit of work commit
2008-10-16 13:30:45,387 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,391 INFO Thread-199 [[email protected]] Persistence - TOPLink: [TopLink Finer]:
2008-10-16 13:30:45,391 INFO Thread-199 [[email protected]] Persistence - TOPLink: 2008.10.16 01:30:45.391--ClientSession(16131816)--Connection(38882854)--Thread(Thread[Thread-199,5,ASF Session Pool Threads])--
2008-10-16 13:30:45,391 INFO Thread-199 [[email protected]] Persistence - TOPLink: begin transaction
2008-10-16 13:30:45,391 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,392 INFO Thread-199 [[email protected]] Persistence - TOPLink: [TopLink Finer]:
2008-10-16 13:30:45,392 INFO Thread-199 [[email protected]] Persistence - TOPLink: 2008.10.16 01:30:45.392--ClientSession(16131816)--Connection(38882854)--Thread(Thread[Thread-199,5,ASF Session Pool Threads])--
2008-10-16 13:30:45,392 INFO Thread-199 [[email protected]] Persistence - TOPLink: Begin batch statements
2008-10-16 13:30:45,392 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,392 INFO Thread-199 [[email protected]] Persistence - TOPLink: [TopLink Fine]:
2008-10-16 13:30:45,392 INFO Thread-199 [[email protected]] Persistence - TOPLink: 2008.10.16 01:30:45.392--ClientSession(16131816)--Connection(38882854)--Thread(Thread[Thread-199,5,ASF Session Pool Threads])--
2008-10-16 13:30:45,392 INFO Thread-199 [[email protected]] Persistence - TOPLink: INSERT INTO IdcWorkflowState (id, modifiedDate, statusLastModified, status, wrkflowCode, wrkflowCodeArg, statelastmodified, createdDate, guid, version, displayKey, workflowparentid, cptyId, changeSetId, workflowErrorsId, namespaceId, lastactor, clsfId, lastStateId, workgroupId, firstactor, lastModifiedById, stateid, type) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
2008-10-16 13:30:45,392 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,392 INFO Thread-199 [[email protected]] Persistence - TOPLink: [TopLink Fine]:
2008-10-16 13:30:45,392 INFO Thread-199 [[email protected]] Persistence - TOPLink: 2008.10.16 01:30:45.392--ClientSession(16131816)--Connection(38882854)--Thread(Thread[Thread-199,5,ASF Session Pool Threads])--
2008-10-16 13:30:45,392 INFO Thread-199 [[email protected]] Persistence - TOPLink:      bind => [5036105, 2008-10-16 13:30:45.378, null, A, null, null, 2008-10-16 13:30:45.379, 2008-10-16 13:30:45.378, G2cbe1d024c11d05d9e502972, 1, null, null, null, null, null, 167001, 402003, null, null, null, 402003, 402003, 78, IdcWFStateMapC]
2008-10-16 13:30:45,392 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,392 INFO Thread-199 [[email protected]] Persistence - TOPLink: [TopLink Finer]:
2008-10-16 13:30:45,392 INFO Thread-199 [[email protected]] Persistence - TOPLink: 2008.10.16 01:30:45.392--ClientSession(16131816)--Connection(38882854)--Thread(Thread[Thread-199,5,ASF Session Pool Threads])--
2008-10-16 13:30:45,392 INFO Thread-199 [[email protected]] Persistence - TOPLink: End Batch Statements
2008-10-16 13:30:45,392 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,393 INFO Thread-199 [[email protected]] Persistence - TOPLink: [TopLink Fine]:
2008-10-16 13:30:45,393 INFO Thread-199 [[email protected]] Persistence - TOPLink: 2008.10.16 01:30:45.393--ClientSession(16131816)--Connection(38882854)--Thread(Thread[Thread-199,5,ASF Session Pool Threads])--
2008-10-16 13:30:45,393 INFO Thread-199 [[email protected]] Persistence - TOPLink: UPDATE IdcTrd SET modifiedDate = ?, statusLastModified = ?, origUsrId = ?, takerRefId = ?, origCptyId = ?, workflowStateMapId = ?, tkrCptyId = ?, mkrCptyId = ?, version = ?, lastModifiedById = ? WHERE ((id = ?) AND (version = ?))
     bind => [2008-10-16 13:30:45.392, 2008-10-16 13:30:45.378, 402003, test167, 392001, 5036105, 392001, 392012, 1, 402003, 0, 0]
2008-10-16 13:30:45,393 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,395 WARN pool-2-thread-1 [-] HTTPMessageSenderC.sendMessage : status=200 responseStr=com.integral.is.message.ResponseMessageC|{}|{}|null|^1|{}|null|^
2008-10-16 13:30:45,395 WARN pool-2-thread-1 [-] HTTPMessageSenderC.getReturnMessage : objType is com.integral.is.message.ResponseMessageC
2008-10-16 13:30:45,395 WARN pool-2-thread-1 [-] HTTPMessageSenderC.getReturnMessage : objStr is {}|{}|null|^1|{}|null|^
2008-10-16 13:30:45,431 INFO Thread-199 [[email protected]] Persistence - TOPLink: [TopLink Warning]:
2008-10-16 13:30:45,431 INFO Thread-199 [[email protected]] Persistence - TOPLink: 2008.10.16 01:30:45.431--UnitOfWork(16131849)--Thread(Thread[Thread-199,5,ASF Session Pool Threads])--
2008-10-16 13:30:45,453 WARN JMS SessionPool Worker-60 [[email protected]] MessageListenerC.handleTradeResponse: Got trade response for transaction id FXI7423644->com.integral.is.message.TradeVerifyC - Properties{START_TIME=1224163845446,PROCESSED_TIME=1224163845446,} Timing{AcceptanceReceivedByAdapter=1224163845387,VerificationReceivedFromProvider=1224163845446,AcceptanceSentToProvider=1224163845387,} serverId=null,tradeId=FXI7423644,requestReferenceId=null,buySell=0,baseCcy=null,variableCcy=null,statusDesc=null,providerTradeId=FXI742364410,valueDate=Sat Oct 18 00:00:00 GMT 2008,acceptedAmount=0.0,acceptedSettledAmount=0.0,acceptedPrice=0.0
2008-10-16 13:30:45,453 INFO Thread-199 [[email protected]] Persistence - TOPLink: Local Exception Stack:
2008-10-16 13:30:45,454 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,456 INFO Thread-199 [[email protected]] Persistence - TOPLink: Exception [TOPLINK-5006] (Oracle TopLink - 10g Release 3 (10.1.3.4.0) (Build 080602)): oracle.toplink.exceptions.OptimisticLockException
Exception Description: The object [com.integral.finance.fx.FXSingleLegC.FI120.0#16137966] cannot be updated because it has changed or been deleted since it was last read.
Class> com.integral.finance.fx.FXSingleLegC Primary Key> [0]
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.exceptions.OptimisticLockException.objectChangedSinceLastReadWhenUpdating(OptimisticLockException.java:125)
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.descriptors.VersionLockingPolicy.validateUpdate(VersionLockingPolicy.java:677)
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.updateObjectForWriteWithChangeSet(DatabaseQueryMechanism.java:1081)
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.queryframework.WriteObjectQuery.executeCommitWithChangeSet(WriteObjectQuery.java:98)
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.executeWriteWithChangeSet(DatabaseQueryMechanism.java:251)
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.queryframework.WriteObjectQuery.executeDatabaseQuery(WriteObjectQuery.java:47)
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:620)
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.queryframework.DatabaseQuery.executeInUnitOfWork(DatabaseQuery.java:542)
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.queryframework.ObjectLevelModifyQuery.executeInUnitOfWorkObjectLevelModifyQuery(ObjectLevelModifyQuery.java:100)
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.queryframework.ObjectLevelModifyQuery.executeInUnitOfWork(ObjectLevelModifyQuery.java:72)
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(UnitOfWork.java:2631)
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.publicinterface.Session.executeQuery(Session.java:993)
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.publicinterface.Session.executeQuery(Session.java:950)
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.mappings.ObjectReferenceMapping.insert(ObjectReferenceMapping.java:853)
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.mappings.ObjectReferenceMapping.preInsert(ObjectReferenceMapping.java:469)
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,457 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.publicinterface.DescriptorQueryManager.preInsert(DescriptorQueryManager.java:892)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.insertObjectForWrite(DatabaseQueryMechanism.java:380)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.queryframework.InsertObjectQuery.executeCommit(InsertObjectQuery.java:65)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.queryframework.InsertObjectQuery.executeCommitWithChangeSet(InsertObjectQuery.java:75)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.performUserDefinedWrite(DatabaseQueryMechanism.java:522)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.performUserDefinedInsert(DatabaseQueryMechanism.java:490)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.insertObjectForWrite(DatabaseQueryMechanism.java:357)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.queryframework.WriteObjectQuery.executeCommitWithChangeSet(WriteObjectQuery.java:110)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.executeWriteWithChangeSet(DatabaseQueryMechanism.java:251)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.queryframework.WriteObjectQuery.executeDatabaseQuery(WriteObjectQuery.java:47)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:620)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.queryframework.DatabaseQuery.executeInUnitOfWork(DatabaseQuery.java:542)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.queryframework.ObjectLevelModifyQuery.executeInUnitOfWorkObjectLevelModifyQuery(ObjectLevelModifyQuery.java:100)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.queryframework.ObjectLevelModifyQuery.executeInUnitOfWork(ObjectLevelModifyQuery.java:72)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(UnitOfWork.java:2631)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.publicinterface.Session.executeQuery(Session.java:993)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.publicinterface.Session.executeQuery(Session.java:950)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.mappings.ObjectReferenceMapping.insert(ObjectReferenceMapping.java:853)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.mappings.ObjectReferenceMapping.preInsert(ObjectReferenceMapping.java:469)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.publicinterface.DescriptorQueryManager.preInsert(DescriptorQueryManager.java:892)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.insertObjectForWrite(DatabaseQueryMechanism.java:380)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.queryframework.InsertObjectQuery.executeCommit(InsertObjectQuery.java:65)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.queryframework.InsertObjectQuery.executeCommitWithChangeSet(InsertObjectQuery.java:75)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.executeWriteWithChangeSet(DatabaseQueryMechanism.java:251)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.queryframework.WriteObjectQuery.executeDatabaseQuery(WriteObjectQuery.java:47)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:620)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.queryframework.DatabaseQuery.executeInUnitOfWork(DatabaseQuery.java:542)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.queryframework.ObjectLevelModifyQuery.executeInUnitOfWorkObjectLevelModifyQuery(ObjectLevelModifyQuery.java:100)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.queryframework.ObjectLevelModifyQuery.executeInUnitOfWork(ObjectLevelModifyQuery.java:72)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(UnitOfWork.java:2631)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.publicinterface.Session.executeQuery(Session.java:993)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.publicinterface.Session.executeQuery(Session.java:950)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.internal.sessions.CommitManager.commitNewObjectsForClassWithChangeSet(CommitManager.java:243)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.internal.sessions.CommitManager.commitAllObjectsForClassWithChangeSet(CommitManager.java:218)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.internal.sessions.CommitManager.commitAllObjectsWithChangeSet(CommitManager.java:174)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.publicinterface.Session.writeAllObjectsWithChangeSet(Session.java:3194)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.publicinterface.UnitOfWork.commitToDatabase(UnitOfWork.java:1320)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.publicinterface.UnitOfWork.commitToDatabaseWithChangeSet(UnitOfWork.java:1416)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.publicinterface.UnitOfWork.commitRootUnitOfWork(UnitOfWork.java:1164)
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:
2008-10-16 13:30:45,458 INFO Thread-199 [[email protected]] Persistence - TOPLink:      at oracle.toplink.publicinterface.UnitOfWork.commit(UnitOfWork.java:932)

Similar Messages

  • How do I sync Toplink Cache with my Database?

    Hey guys,
    We are running macro's through an excel sheet that connects to the database and performs Updates and Inserts.
    Since this database update is NOT taking place through TopLink (in a Unit of Work) - we do not see the database changes through the web app on the front end unless we bounce our webserver. Presumably the Toplink cache is re-built on start up...so then we can see the changes.
    My question is, what can I do to make sure the TopLink cache is aware of the database changes we have made through the macro without having to bounce the server? Is there a re-fresh or sync command that can be run?
    This task is sort of a one time thing, so I don't want a solution that involves the cache going to sync itself on a schedule or anything like that. Maybe bouncing is the best solution?
    Thoughts?
    We are using Toplink 9.0.4
    Thanks.

    Hello,
    Because it is a one time thing, if you can make sure no other TopLink process are going on, you can probably get away with initializeAllIdentityMaps() or the intitializeIdentityMap(Class) methods on the session. These will clear the identity maps, having the obvious draw back of removing all object identity which will cause problems with running processes though. It might be better than bouncing the server - it depends on the application. Logging out of the session and logging back in has the same effect of clearing the cache, but with a bit more overhead. Benifit is that running processes will get errors if they continue to use the session, rather than strange behaviior if they continue to use objects after identity is lost.
    Another alternative is to run refresh queries on the data you know might be in the cache or that might have been affected. Drawbacks are that this brings them into the cache if they are not already there.
    TopLink 9.0.4 is a quire a few versions back, and in newer versions there is cache invalidation. An object marked as invalid is not removed, so object identity is maintained, but on the next query the data will be refreshed - ensuring subsequent queries will get results from the database without having to be told explicietly to refresh or being set to always refresh. Invalidation can be triggered on particular objects, classes or the entire cache or different policies can be set to set a time to live etc.
    Except for bouncing the server or logging out of the session, all of the above leave some possibility that a concurrent user will still have a reference to stale data and continue to use it after the process has run on the database. So I hope you use optimistic locking and that your batch process updates the version to avoid other process from overwriting with stale data.
    Best Regards,
    Chris

  • Problem width topLink cache

    I have a problem width TopLink.
    I update a record width a native query:
    Query q = em.createNativeQuery(sql);
    q.executeUpdate();
    After this when I try to read the records width (in other moment of my program)
    ordenes = (List<com.snack.ordenAp.persistence.OrdenAprovisionamiento>) query.getResultList();
    The values on the record are the same before the update.
    how I can clear the cache ?

    Use em.clear() to detach all entities associated to the context, essentially clearing the context's cache (but not the shared 2nd level cache if it is being used). You can also call em.refresh() on individual entities, or use a query hint query.setHint(QueryHints.REFRESH, true) to refresh all the results returned. Be aware that any changes made to entities in the context so far will not be persisted. You might want to call flush if there are changes you wish to keep.
    Best Regards,
    Chris

  • Toplink cache growing until OutOfMemoryError

    Hello,
    We are using OC4J 9.0.3 with toplink 9.0.3 on IBM AIX J2RE 1.3.1. From time to time, the JVM crashes with an OutOfMemoryError. Analysing the JVM heap dump, we have found that there are a lot of objects of the same type in the toplink cache:
    # of objects: 48 047
    Total size in bytes: 165 874 992
    The identity map settings for the project caching this object type are:
    Type: SoftCacheWeakIdentityMap
    Size: 100
    My understanding is that most of the 48 047 objects should be referenced as a weak references and that some of them should have been garbage collected by the VM instead of throwing an OutOfMemoryError.
    Could it be a problem in the JVM garbage collector ?
    May I use a CacheIdentityMap to work around the problem ?
    Do you have any advice ?
    Thank you in advance for any hint,
    Pierre Laroche

    Being in production I am not sure how much you can debug the system, but to determine if it is an issue with the weak references you could clear out the cache through an initializeAllIdentityMaps call on the session when the system is using most of the memory? This will remove all objects from the TopLink identity map removing the WeakReferences. This call should not be completed on a system still servicing requests though. Is it possible that there is a leak in the application that is preventing the WeakReferences from being garbage collected?
    --Gordon                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Toplink cache

    Hi,
    I am having severe memory problems using Toplink Essentials. What I am experiencing is a growing memory consumption every time an entity is persistent, no matter I set in persistence.xml
    <property name="toplink.cache.type.default" value="Weak"/>
    and
    <property name="toplink.cache.size.default" value="10"/>
    I used the Java Visual VM supplied with the sun 1.6.0.07 sdk to analize the heap.
    The behaviour I am expecting is:
    when a persistent class is not referenced by my application anymore, it should be kept in the toplink cache with a weak reference, to be garbage collected as soon as the JVM is running out of memory.
    What I see instead :
    for each class I persist I find roughly 3 instances in memory and they seems to be strongly referenced. In addition, after a while the program start slowing down (each persist takes longer, I guess this is the cost for the cache lookup, but in my real application it ends up using more than a second for each persist!)
    Workaround: I found EntityManage.clear() wipes out the cache freeying the memory, but I am not sure this is free from side effects (all the entities are detached I guess)
    I attacked a test case: just the simplest entity possible, filled with a random integer and persisted. Leave it running for maybe 10 minutes.
    After a while have:
    2000 entities persisted
    6000 instances in the heap
    12000 oracle.toplink.essentials.internal.helperIdentityHashtable$Entry
    Persisting is now taking ~50ms instead of 5ms (and growing)
    Am I doing something wrong?
    This is my entity:
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.GeneratedValue;
    import javax.persistence.GenerationType;
    import javax.persistence.Id;
    @Entity
    public class AnEntity {
         @Id
         @GeneratedValue(strategy = GenerationType.IDENTITY)
         @Column
         protected int     anEntityID;
         protected int     data;
         protected AnEntity() {
         public AnEntity(final int data) {
              this.data = data;
    My main application:
    import javax.persistence.EntityManager;
    import javax.persistence.EntityManagerFactory;
    import javax.persistence.EntityTransaction;
    import javax.persistence.Persistence;
    public class Test {
         public static void main(final String[] args) throws InterruptedException {
              new Test();
         final EntityManagerFactory     emFTest     = Persistence.createEntityManagerFactory("test_pu");
         private final EntityManager     emTest     = emFTest.createEntityManager();
         public Test() throws InterruptedException {
              int i = 0;
              while (true) {
                   final AnEntity entity = new AnEntity((int) (Math.random() * 1000000));
                   final long time = System.nanoTime();
                   try {
                        final EntityTransaction trans = emTest.getTransaction();
                        trans.begin();
                        emTest.persist(entity);
                        trans.commit();
                   } catch (final Exception e) {
                        System.err.println(e.getMessage());
                   System.out.println("It took:" + (System.nanoTime() - time) / 1000000 + "ms for " + i);
                   i++;
                   Thread.sleep(100);
    And my persistence.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence">
              <persistence-unit name="test_pu" transaction-type="RESOURCE_LOCAL">
                        <provider>oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider</provider>
                        <class>AnEntity</class>
                        <properties>
                             <property name="toplink.jdbc.driver" value="com.mysql.jdbc.Driver" />
                             <property name="toplink.jdbc.url" value="jdbc:mysql://test:3306/test" />
                             <property name="toplink.jdbc.user" value="test" />
                             <property name="toplink.jdbc.password" value="test" />
                             <property name="toplink.logging.level" value="INFO" />
                             <property name="toplink.ddl-generation" value="create-tables" />
                             <property name="toplink.cache.type.default" value="Weak"/>
                        </properties>
              </persistence-unit>
    </persistence>

    Hi Chris,
    I see your point, and this is what I am trying to obtain, I am sure i am getting the underlying JPA phylosophy wrong (as a side note, I already moved to Eclipselink :) )
    What I have is a fleet of vehicles, each one sending the gps position once per second. All the position are stored in the database.
    The communication between each veichle and the "server application" is through JMS, so I effectively receive a bunch of positions every second - no easy way to put them in the same transaction, but it is not a big hit on the database so I am not concerned about this.
    What I noticed is after something like 30 minutes the application starts struggling, every persist took 300ms, positions started accumulating as he software did not manage to write them as fast as they are generated and everything start collapsing badly - it took 15 days to find out the problem was with the toplink cache.
    I am trying to work out the best way of doing things.
    What I noticed is, if I recreate the EM, all the entities are detached (and I understand why - entities are managed by the entity manager!).
    I understand there are two caches, the session cache and the UoW cache (EM).
    What I desire at a conceptual level is to keep my entities managed until I do not reference them anymore. If I need them again, I have to retrieve them back with em.find, or I can create new ones.
    Unfortunately things seems not to be working this way - EM keep everything in cache even if do not have any reference to an instance.
    I have quite a good level of control over the global cache, but no control at all over the EM cache (apart from completely wiping it) so I have to recreate the EM every time, but the object are not managed this way - forcing me to use merge in place of persist (I basically would like the best of the two worlds).
    This is not a problem by itself, but this forces me to write code like
    entity=em.merge(entity)
    or better:
    AnEntity tmp=em.merge(entity)
    entity.anEntityID=tmp.anEntityID
    to handle the case this is a new entity. This is my new code, everytime I have to update the db
    final EntityManager emTest = emFTest.createEntityManager();
    final EntityTransaction trans = emTest.getTransaction();
    trans.begin();
    final AnEntity tmp = emTest.merge(entity);
    trans.commit();
    entity.anEntityID = tmp.anEntityID;
    emTest.close()
    while with a global EM it was:
    final EntityTransaction trans = emTest.getTransaction();
    trans.begin();
    emTest.persist(entity);
    trans.commit();

  • When I publish my site on one specific page where i've added {tag_pagecontent} I get the error:Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.

    When I publish my site on one specific page where I've added {tag_pagecontent} I get the error:
    'Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.'
    I'm trying to get a blog module going, I've even deleted the html insert bog with the tag in and re-published which then I don't get the error but as a result no blog either. But then I add the tag in again and publish the error comes back. I've used the dev console and it says that my musicians sample.css is out of date but why is it only out of date when I add in html to my muse site?
    HELP!!!! I've searched other threads and to no avail I'm publishing so no direct ftp going on. the only thing I changed in business catalyst was the module stylesheet in order to style the blog. I've tried uploading and replacing all files nothing seems to work. the site is here:
    http://www.musicstudentsforhire.co.uk/musicians-samples.html
    It's only this page as it has the blog on. Also I've noticed when I've re-published occasionally it will show the mobile version on my desktop and not the desktop version??? no idea why that's happening so I've had to turn that off. any explanation on why that is happening would also be much appreciated.

    I haven't received an answer as of yet, I'll post t on here when I do. I de-activated the mobile site because it's my clients site so he needs it to be operational during the day. I hope someone gives me an answer soon.

  • I am having a hard time with a page that is working for everyone else. When I click on anything in the site I get a message that says "The page you were looking for doesn't exist."  This is happening on both my ipad 2 and my iphone 5. I cleared my cache

    When I click on anything in the site I get the message " The page you were looking for doesn't exist."  This website works for everyone else, but not on my iPad 2 or iPhone 5. I cleared my cache and history on the iPad, but it still isn't working.

    I live in Germany and my credit card is in my native country of Holland .. then it
    doesn't accept my credit card.
    Your first statement explains the second statement. To use the German iTunes Store, you need to prove that you're a resident of Germany (that is required by the content owners who will not allow cross-border sales) and the only way Apple can provide such a verification is by requiring that you enter in either a German credit card or a German-purchased iTunes prepaid card. Since I presume the former is not a possibility, you'll need to do the latter if you wish to purchase content from the iTunes Store. Again, this is not Apple's choice but is forced on them by the content owners as a requirement for Apple being allowed to sell the content. The EU is working on regulations that would force the content owners to allow access pan-EU, but that's still in the works.
    You do not need an iTunes Store account to activate and run your iPad, though; at least, I didn't need one for either of my two iPads. If you only want to set up an account so you can get free iPad apps, take a look here:
    http://support.apple.com/kb/HT2534
    Read the steps carefully as the order in which you follow them is apparently critical. This seems to come and go, or only apply to App Stores in specific countries, so you may not see the option for "None" when asked for a payment type.
    As to the German iTunes Store in English, you can comment to Apple on that via their feedback pages:
    http://www.apple.com/feedback
    Regards.
    P.S. Regarding "this is the only place for a complaint and that will no doubt get removed because
    I'm not full of happy joy sparkles.
    As stated in the terms of use to which we all agreed, this isn't a complaint forum, it's a technical support forum. You don't have to be full of "happy joy sparkles", but posts that are nothing but complaints may indeed be removed. If you want to complain to Apple, use the feedback pages.
    Message was edited by: Dave Sawyer

  • When I click "Clear now" to clear the cache, nothing happens, no acknowlegement the the cache is cleared, and I need to know whether the function is working.

    login problem at an arts forum... login works at other sites.
    I can't log in. They gave me a new password and were able to log in with it, doesn't work for me. They suggested clearing cache.
    I removed a cookie from that site, and tried to clear the cache, but suspect I was unsuccessful. When I go to the login, after attempting to clear the cache and removing cookie, the login form is immediately filled in with a password, which could be the old one or the new one, they are unfortunately the same number of letters.
    How do I get the cache clear if the edit preferences thing is not working?

    As a quick test for cookie or cache problems you can try to switch Private Browsing mode on to see if that allows to log in.
    You can either use Tools > Start Private Browsing or set a check mark in:
    * Tools > Options > Privacy: [ ] "Automatically start Firefox in a private browsing session"
    To see all the History and Cookie settings, select: Tools > Options > Privacy > History: Firefox will: "Use custom settings for history"<br />
    Do not forget to exit Private Browsing mode after you have finished the login test.

  • My safari,4.1.3 on the bottom says cancelled opening page. have cleared the cache,and reset but it still does it on some pages,not all. Any ideas

    My safari,4.1.3 on the bottom says cancelled opening page. have cleared the cache,and reset but it still does it on some pages,not all. Any ideas

    It's possible that the pages you are attempting to open simply won't work with that old web browser.
    If you're using Mac OS X Tiger, update to the latest version, which is 10.4.11. (You might be using that already. Your profile says you're running 10.4.1, but I bet that's just a typo.)
    Then get the latest version of Safari that will run on Tiger. (And... you have that already: 4.1.3.)
    You might try a more modern browser designed specifically for your current OS. That would be TenFourFox.
    Information on TenFourFox:
    http://en.wikipedia.org/wiki/TenFourFox
    Download TenFourFox here:
    http://www.floodgap.com/software/tenfourfox/

  • How to clear the cache in the portal browser

    Hello Experts,
    Iam unable to clear the cache in the portal. I tried  clearing the Navigation cache , PRT cache,PCD cache,Database cache,UME cache.
    The senario is in the browser if iam logging with some user X , he should see only 1,2,3 countries, and if i logg off and again logg in the same browser with different user he is seeing same 1,2,3 countries unlike he should see 4,5 countries.
    But if iam opening in different browser iam getting the correct one with cache cleared.
    I want to acheive this in the same browser.
    Qucik help in solving out this cache problem is appreciable.
    Regrds,
    Manasa.

    There is one more important cache: the HTTP Provider Service cache (in VA).
    To find out why the browser is showing the same languages, analyze what the server is sending to the browser with HTTPWatch or Firebug and look at the cache flag. Also check what is the iView cache parameter? Is it user, session, shared or none?
    How do you do the logoff? The best thing is to make sure that the HTTP Session is killed. If not, the portal may send data that is cached for the HTTP Session to the browser. When you open a new browser, you will also open a new HTTP Session. That could be the cause why it is working with a new browser instance.
    br,
    Tobias

  • How do I clear the cache in Safari 8.0?

    How do I clear the cache in Safari 8.0? I am running Yosemite ios 10.10.1 on a Macbook Pro.

    Empty Caches
    1. Safari > Preference > Advanced
        Checkmark the box for "Show Develop menu in menu bar".
        "Develop" menu will appear in the Safari menu bar.
        Click Develop and select "Empty Caches" from the dropdown.
    2. Quit Safari if open.
        Option click the "Go" menu in the Finder menu bar.
        Select "Library" and then "Caches".
        Look for the folder 'com.apple.Safari"
        Right click "com.apple.Safari" and select "Move to Trash"
        Relaunch Safari.

  • Can't seem to clear Flash cache in Firefox 4 on Windows 7 (64-bit)

    When updating my work's webpage, I cannot seem to get a certain flash component to update. It works fine in IE so I know that it's not on the server's side. I have tried clearing all cache and even private browsing. Nothing I do will cause Firefox to show the updated information. Is there any other way to clear the flash cache other than using Firefox's Clear Recent history feature?

    Thank you for finding that driver Mikey. The information at the download site is confusing me. The first version listed is the version I have BUT it appears to me that the first listed applies to Windows7 32 bit. I have 64 bit and that number is off the wall. Also, I was looking for Broadcom since that's the driver I have. Somehow you were able to recognize the driver. I made a restore point and removed Ready Comm and it worked out okay. I would hope sometime in the future Lenovo would identify their drivers so that people who aren't familiar with all of this can recognize what they need. I think you're probably right that that is the driver I have. Thank you again.

  • How do I clear the cache in my MacBook Pro 10.9 Maverick

    How do I clear the cache in my MacBook Pro 10.9 Maverick operating system? Can anyone provide step-by-step instructions. I'm a big dummy when it comes to this sort of thing.

    Hey DrSteveMc,
    Thanks for the question. The following resource outlines where the cache folder is stored. Note that the Library folder is hidden by default in OS X Mavericks. To access this folder, hold down option when clicking the Go menu in Finder:
    OS X Mavericks: What is the Library folder?
    http://support.apple.com/kb/PH14330
    Mac OS X: How to troubleshoot a software issue
    http://support.apple.com/kb/ht1199
    If the issue does not appear to be related to preferences, a login item, or a kext file, and still persists in Safe Mode, there may be an issue with a cache file in your home folder:
    1. From the Finder's Go menu, choose Home.
    2. Open the Library folder.
    3. Drag the Caches folder to the desktop.
    4. Attempt to reproduce the issue.
    5. If issue is resolved, drag the Caches folder to the Trash.
    6. If issue persists, from the Finder's Go menu, choose Go To Folder.
    7. Go to this folder: /Library
    8. Drag the Caches folder to the desktop.
    9. Attempt to reproduce the issue.
    10. If issue is resolved, drag the Caches folder to the Trash.
    11. If issue persists, go to step 4.
    Thanks,
    Matt M.

  • I have the latest version of Firefox. How do I clear my personal info and then clear the cache?

    I have the latest version of Firefox. It is: Firefox/3.6.13 (.NET CLR 3.5.30729).
    I got a page that said I needed to clear my personal information, then clear my cache. It said I could do that in the "tools" menu. The "tools" menu has no such option.
    Thanks for any help you can give me.

    Thats' all well and good, but FIREFOX crashes when I click on those links. I'm not doing it again. Heck with it.
    Am going to TRY and get my old version of FIREFOX back.
    If it were not THIS problem, I'm sure I'd be having another problem because I've had nothing BUT problems since I "updated" my browser, the way my neighbor says you are supposed to.
    Thanks anyway, caldwell418

  • My existing purchases have INSTALL next to them, but when I try click on them it says "There was an error in the App Store. Please try again later. (100)". I've tried restarting, clearing all caches, buying and downloading new apps (which works). Any idea

    Hi - in the app store, I've logged in with no problem, but when I go into my existing purchases and have INSTALL next to everything I've bought, and try to click on them it says;
    "There was an error in the App Store. Please try again later. (100)".
    I've tried restarting, clearing all caches, buying and downloading new apps (which works), and also buying and downloading more music from iTunes too (so I update all T&C's etc too, and update all payment info). But nothing seems to solve this. Any ideas?? Thanks a lot, Greg

    This procedure is a diagnostic test. It makes no changes to your data.
    Please triple-click anywhere in the line below on this page to select it:
    ls -@Oaen L*/Coo* | pbcopy
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in Terminal 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 Terminal in the icon grid.
    Paste into the Terminal window by pressing the key combination command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    Wait for a new line ending in a dollar sign ($) to appear below what you entered.
    The output of the command will be automatically copied to the Clipboard. If the command produced no output, the Clipboard will be empty. Paste into a reply to this message.
    The Terminal window doesn't show the output. Please don't copy anything from there.

Maybe you are looking for