Unit Of work upgrade issue 9.0.3- 10.1.4

Hi,
I recently upgraded from Toplink 9.0.3 to Toplink 10.1.3. I changed nothing in my code except the deployment java descriptor to use the new classes implemented instead of the deprecated classes. I also used the new TypeConversions for my CLOBs and BLOBs. Everything worked fine in my unit tests but then once I'd deployed the application into production my users kept on getting an irregular error. I can't reproduce the error myself as its so irregular. I have tracked it down to when my users enter a clob/blob of data into the database. The strange thing is that I close the unit of work and even test if its still active and I get false as an answer but somehow when I execute on the session it uses the UnitOfWork which has expired for some reason. I have checked my code and can't find anything that is changed.
All my code basically always checks whether a UOW is active and if it is not it uses the session to execute the query. Here is a java code extract:
if ( isTxActive() ) {
objectResults = uow.readAllObjects(Class.forName(objectType), expression);
objectResults = uow.registerAllObjects(objectResults);
} else
objectResults = session.readAllObjects(Class.forName(objectType), expression);
I use the following setup:
- Oracle 9i database
- JDK 1.5
- Oracle JDBC Thin Driver version - 10.1.0.2.0
I have tried the following:
- Specified my OraclePlatform i.e. Oracle9Platform
- Tried playing around with the SQL String binding
- Double checked my type conversions
Below is my logfile output and also my login parameters and extract of one of my descriptors.
Any help would be appreciated.
I was wondering if there is a timeout on the UnitOfWork or if its multi-threaded hence my application doesn't wait for my CLOB to finish being written?
Thanks in advance,
Paula
2006-05-24 11:32:05,870 (toplink) DEBUG - execute_query
2006-05-24 11:32:05,871 (toplink) DEBUG - execute_query
2006-05-24 11:32:05,871 (toplink) DEBUG - DatabaseAccessor(connected)--INSERT INTO chebi.AUTOGEN_STRUCTURES (ID, STRUCTURE_ID) VALUES (12599, 19211)
2006-05-24 11:32:05,874 (toplink) DEBUG - execute_query
2006-05-24 11:32:05,875 (toplink) DEBUG - execute_query
2006-05-24 11:32:05,875 (toplink) DEBUG - DatabaseAccessor(connected)--INSERT INTO chebi.DEFAULT_STRUCTURES (ID, STRUCTURE_ID) VALUES (6968, 19213)
2006-05-24 11:32:05,885 (toplink) DEBUG - execute_query
2006-05-24 11:32:05,886 (toplink) DEBUG - execute_query
2006-05-24 11:32:05,886 (toplink) DEBUG - DatabaseAccessor(connected)--INSERT INTO chebi.IMAGE_PRECOMPUTES (ID, FORMAT, IMAGE, STRUCTURE_ID) VALUES (7208, 'p
ng', empty_blob(), 19213)
2006-05-24 11:32:05,898 (toplink) DEBUG - DatabaseAccessor(connected)--SELECT IMAGE FROM chebi.IMAGE_PRECOMPUTES WHERE (ID = 7208) FOR UPDATE
2006-05-24 11:32:05,905 (toplink) DEBUG - write_BLOB
2006-05-24 11:32:05,905 (toplink) DEBUG - DatabaseAccessor(connected)--commit_transaction
2006-05-24 11:32:05,915 (toplink) DEBUG - end_unit_of_work_commit
2006-05-24 11:32:05,915 (toplink) DEBUG - release_unit_of_work
2006-05-24 11:32:05,915 (controller.DatabaseAction) DEBUG - ModifyStructureAction_postprocess: empty method
2006-05-24 11:32:05,915 (controller.DatabaseAction) DEBUG - ModifyStructureAction_findSuccess: start method
2006-05-24 11:32:05,915 (controller.DatabaseAction) DEBUG - ModifyStructureAction_findSuccess: preparing forward ( set form | release lock | reset token )
2006-05-24 11:32:05,915 (controller.DatabaseAction) DEBUG - ModifyStructureAction_findSuccess: forward to searchId
2006-05-24 11:32:05,917 (toplink.ToplinkDAO) DEBUG - find(String objectType, String col, String val): start method
2006-05-24 11:32:05,917 (toplink.ToplinkDAO) DEBUG - isTxActive: start method
2006-05-24 11:32:05,917 (toplink.ToplinkDAO) DEBUG - isTxActive: false
2006-05-24 11:32:05,917 (toplink) DEBUG - execute_query
2006-05-24 11:32:05,917 (toplink) DEBUG - DatabaseAccessor(connected)--SELECT ID, SOURCE, ASCII_NAME, STATUS, CREATED_ON, DEFINITION, MODIFIED_BY, NAME, MODI
FIED_ON, CREATED_BY, CHEBI_ACCESSION, MERGE_TYPE, PARENT_ID FROM chebi.COMPOUNDS WHERE (ID LIKE 6126)
2006-05-24 11:32:05,980 (toplink) DEBUG - execute_query
2006-05-24 11:32:06,046 (handlers.DefaultExceptionHandler) ERROR - Exception [TOPLINK-6027] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): ora
cle.toplink.exceptions.QueryException
Exception Description: Query sent to a unactivated UnitOfWork.
Query: ReadAllQuery(uk.ac.ebi.chebi.compounds.model.CompoundName)
uk.ac.ebi.chebi.compounds.application.curator2.exceptions.BeanUtilException: Exception [TOPLINK-6027] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060
118)): oracle.toplink.exceptions.QueryException
Exception Description: Query sent to a unactivated UnitOfWork.
Query: ReadAllQuery(uk.ac.ebi.chebi.compounds.model.CompoundName)
LOGIN:
public void applyLogin () {
DatabaseLogin login = new DatabaseLogin();
login.usePlatform( ToplinkDeploymentHelper.getPlatform(options) );
login.setDriverClassName(options.getDriver());
login.setConnectionString(options.getDbUrl());
login.setUserName(options.getDbUserName());
login.setPassword(options.getDbPassword());
// Configuration properties.
// login.setUsesNativeSequencing(true);
// login.setSequencePreallocationSize(100);
// Replace with
login.setDefaultSequence(new NativeSequence("", 1));
login.setShouldBindAllParameters(false);
login.setShouldCacheAllStatements(false);
// String binding is used when the SQL string might be too large to
// incorporate in the Oracle Thin driver. It will give an exception of string literal
// too long. Hence string binding should be turned on for long strings such
// as long names
login.setUsesStringBinding(true);
login.useStringBinding( );
// This specifies for large bytes to use binding to prevent the same problem
// above and improve performance
login.setUsesByteArrayBinding(true);
if ( login.shouldUseByteArrayBinding() ) { // Can only be used with binding.
login.setUsesStreamsForBinding(false);
login.setShouldForceFieldNamesToUpperCase(false);
login.setShouldOptimizeDataConversion(true);
login.setShouldTrimStrings(true);
login.setUsesBatchWriting(false);
if ( login.shouldUseBatchWriting() ) { // Can only be used with batch writing.
login.setUsesJDBCBatchWriting(true);
login.setUsesExternalConnectionPooling(false);
login.setUsesExternalTransactionController(false);
setLogin(login);
ImagePrecompute descriptor:
public ClassDescriptor buildImagePrecomputeDescriptor () {
ClassDescriptor descriptor = new ClassDescriptor();
descriptor.setJavaClass(uk.ac.ebi.chebi.compounds.model.ImagePrecompute.class);
descriptor.addTableName( options.getDbSchemaName().concat(".").concat("IMAGE_PRECOMPUTES") );
descriptor.addPrimaryKeyFieldName("IMAGE_PRECOMPUTES.ID");
descriptor.useSoftCacheWeakIdentityMap();
descriptor.setIdentityMapSize(50);
descriptor.useRemoteNoIdentityMap();
//descriptor.useRemoteSoftCacheWeakIdentityMap();
//descriptor.setRemoteIdentityMapSize(100);
descriptor.setSequenceNumberFieldName("IMAGE_PRECOMPUTES.ID");
descriptor.setSequenceNumberName("image_precompute_sequence");
descriptor.setAlias("ImagePrecomputes");
descriptor.getQueryManager().checkCacheForDoesExist();
DirectToFieldMapping idMapping = new DirectToFieldMapping();
idMapping.setAttributeName("id");
idMapping.setFieldName("IMAGE_PRECOMPUTES.ID");
descriptor.addMapping(idMapping);
OneToOneMapping structureMapping = new OneToOneMapping();
structureMapping.setAttributeName("structure");
structureMapping.setReferenceClass(uk.ac.ebi.chebi.compounds.model.Structure.class);
structureMapping.dontUseIndirection();
structureMapping.addForeignKeyFieldName("IMAGE_PRECOMPUTES.STRUCTURE_ID", "STRUCTURES.ID");
descriptor.addMapping(structureMapping);
DirectToFieldMapping imageMapping = new DirectToFieldMapping();
imageMapping.setAttributeName("image");
imageMapping.setFieldName("IMAGE_PRECOMPUTES.IMAGE");
TypeConversionConverter imageMappingConverter = new TypeConversionConverter(imageMapping);
imageMappingConverter.setObjectClass(byte[].class);
imageMappingConverter.setDataClass(java.sql.Blob.class);
imageMapping.setConverter(imageMappingConverter);
descriptor.addMapping(imageMapping);
DirectToFieldMapping formatMapping = new DirectToFieldMapping();
formatMapping.setAttributeName("format");
formatMapping.setFieldName("IMAGE_PRECOMPUTES.FORMAT");
descriptor.addMapping(formatMapping);
return descriptor;
Message was edited by:
pmatos

Hi,
Thanks for replying.
I use log4j to log my toplink info so that I can write it to a file so that is why I have no session info. If you think it is will be useful then I will try to include it in my tool so that it can be reproduced.
In the mean time here is the stacktrace:
Exception Description: Query sent to a unactivated UnitOfWork.
Query: ReadAllQuery(uk.ac.ebi.chebi.compounds.model.CompoundName)
uk.ac.ebi.chebi.compounds.application.curator2.exceptions.BeanUtilException: Exception [TOPLINK-6027] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.QueryException
Exception Description: Query sent to a unactivated UnitOfWork.
Query: ReadAllQuery(uk.ac.ebi.chebi.compounds.model.CompoundName)
     at uk.ac.ebi.chebi.compounds.application.curator2.controller.helper.BeanAssembler.populateCompoundBean(Unknown Source)
     at uk.ac.ebi.chebi.compounds.application.curator2.controller.search.SearchIdAction.loadCompound(Unknown Source)
     at uk.ac.ebi.chebi.compounds.application.curator2.controller.search.SearchIdAction.executeLogic(Unknown Source)
     at uk.ac.ebi.chebi.compounds.application.curator2.controller.BaseAction.execute(Unknown Source)
     at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
     at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
     at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
     at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
     at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
     at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)
     at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:261)
     at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388)
     at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:316)
     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)
     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
     at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
     at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
     at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:702)
     at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571)
     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644)
     at java.lang.Thread.run(Thread.java:595)
Caused by: Exception [TOPLINK-6027] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.QueryException
Exception Description: Query sent to a unactivated UnitOfWork.
Query: ReadAllQuery(uk.ac.ebi.chebi.compounds.model.CompoundName)
     at oracle.toplink.exceptions.QueryException.querySentToInactiveUnitOfWork(QueryException.java:816)
     at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(UnitOfWork.java:2530)
     at oracle.toplink.publicinterface.Session.executeQuery(Session.java:981)
     at oracle.toplink.internal.indirection.QueryBasedValueHolder.instantiate(QueryBasedValueHolder.java:62)
     at oracle.toplink.internal.indirection.QueryBasedValueHolder.instantiate(QueryBasedValueHolder.java:55)
     at oracle.toplink.internal.indirection.DatabaseValueHolder.getValue(DatabaseValueHolder.java:61)
     at oracle.toplink.indirection.IndirectList.buildDelegate(IndirectList.java:184)
     at oracle.toplink.indirection.IndirectList.getDelegate(IndirectList.java:307)
     at oracle.toplink.indirection.IndirectList.size(IndirectList.java:632)
     at java.util.ArrayList.<init>(ArrayList.java:133)
     at uk.ac.ebi.chebi.compounds.model.Compound.getAllCompoundNameList(Unknown Source)
     at uk.ac.ebi.chebi.compounds.application.curator2.controller.helper.BeanAssembler.populateAllNames(Unknown Source)
     ... 51 more

Similar Messages

  • Ipad 2 upgraded to iOS 8.0.2 and the cellular signal doesn't work. Have to restart the unit to work with cellular signal. After a while it goes off and no service indication appears.

    Ipad 2 upgraded to iOS 8.0.2 and the cellular signal doesn't work. Have to restart the unit to work with cellular signal. After a while it goes off and no service indication appears.

    iPad 2, Since upgrading to iOS 8.0.2  the cellular signal indicates I do not have a SIM card. Monday spent hours on the phone with Apple support, backed up my iPad, reset all settings, reloaded my iPad and it still tells me I don't have a SIM card. Tuesday went to AT&T and got a new SIM card on the advice of apple support. It worked perfect until this morning and the NO SIM CARD notice reappeared. Never ever had any problem until the upgrade. I find it inexcusable that Apple refuses to address the issues they caused, iOS 8.0.2 is the Ebola of iPad 2 world. I dont have any cellular service after wasting two days trying to address and fix a problem Apple is responsible for. It's obvious Steve Jobs is no longer running the company. Furious & fustrated. How does Apple expect anyone who uses an iPad 2 for work, to remain a customer who will return to their products?

  • Issues updating with Unit of Work

    Hello,
    I think, I might be missing a point about toplink. I know that when I need to update an Object, i find the current object in cache(ReadObject) and then register that object to get a cloned object and do updates on the cloned object and then commit it.
    Everything works fine in above scenario, IF AND ONLY IF, I set the attributes of the cloned object individually. But the update doesn't work if I set the cloned object to a totally different object (clonedObj = otherObj) Here otherObj has changed attributes which i want to be updated. Toplink somehow doesn't like it.
    How do i do it?
    Sample working code:
    public void mergeData(Object obj, Class c){
    try{
    ReadObjectQuery query = ReadObjectQuery(obj);
    // get the object with the primary key as the one passed in
    Object persistableObject = session.executeQuery(query);
    Object objectClone = tx.register(persistableObject);
    //It is a User object
    ((User)objectClone).setName("New Neeraj");
    tx.commit();
    Sample NOT working code
    public void mergeData(Object obj, Class c){
    try{
    ReadObjectQuery query = ReadObjectQuery(obj);
    // get the object with the primary key as the one passed in
    Object persistableObject = session.executeQuery(query);
    Object objectClone = tx.register(persistableObject);
    objectClone = obj //passed in object
    tx.commit();
    Is it becuase of the ReadObjectQuery using the same object as used to set up the cloned object?
    Thanks in advance for the help.
    Regards,
    Neeraj

    Don,
    This is what the documentation says related to mergeClone:
    "Merge the attributes of the clone into the unit of work copy. This can be used for objects that are returned from the client through RMI serialization (or another serialization mechanism), because the RMI object will be a clone this will merge its attributes correctly to preserve object identity within the unit of work and record its changes. The object and its private owned parts are merged."
    What is the significance RMI and serialization in this.
    I tries mergeClone locally (using the UOW) and it works fine, but just want to make sure that I understand what the documentation says.
    Also, if you will be kind enough to explain the difference between mergeClone and mergeCloneWithReferences.
    Thanks,
    Neeraj

  • Report generation toolkit upgrade issues

    I have created multiple vi's in that utilize the previous report generation toolkits specifically using the Generate Report Get Data to Modify.vi and the Generate Report Set Modified Data.vi.  Obviously the report reference has now changed in 8.6's version of the report generation toolkit and these vi's do not exist in the 8.6 library anymore.  What vi's do I need to replace these functions with to make this code work.  Can anyone tell me what the work around is to solving this problem.  This is a picture of the code.
    BJD1613
    Lead Test Tools Development Engineer
    Philips Respironics
    Certified LV Architect / Instructor
    Attachments:
    code.JPG ‏92 KB

    Hi BJD1613,
    The Report Generation VIs on the LabVIEW Palettes mutate properly. However, you may run into upgrade issues if VIs distributed with LabVIEW, but not available in the Palettes are used in the code. Hence, I would caution against using them for the same reason.
    In this case, the specific references do exist in the report generation classes; however, since they are private, they cannot be accessed by VIs outside the respective classes. A temporary workaround for now is mentioned in the following KB 4OOCSJ4M Getting References in Report Generation Toolkit 1.1.3 with LabVIEW 8.6.  
    This was reported to R&D (CAR# 123064) for further investigation

  • Rule Execution : Error while executing a rule session unit of work

    Error while executing a rule session unit of work.
    The rule session CreditRule:130002 failed to execute a unit of work.
    Check the underlying exception and correct the error. Contact oracle support if error is not fixable.
    I have created a simple rule and using a decision service and a decide process activity I have tried to run the orchestration.
    After compiling and saving and re-opening the orchestration flow looks correct.
    When I execute the process I get the above error.
    Is this something wrong with the Rule ?
    Can anyone offer any advice
    Thanks
    Cliff

    Hi.
    Any further advice on this issue?
    Getting the same problem and cannot figure out a solution.
    How do I check the "underlying exception" btw?

  • Logical unit of work

    Hi all,
    Can help me regarding LUW(logical unit of work) and its importance in r/3 ?
    Thanks and Regards
    Ravi

    Hai Ravi Charan
    There are 3 types of LUW's available in SAP
    1)Database Transaction or DBLUW
    2)SAP      Transaction or SAPLUW
    2)ABAP     Transaction or ABAPLUW
    1) DBLUW : when it is called it locks the rows , Update the rows & commit the rows issued by auto Commit
    2) SAPLUW : collection of Business reports is called SAPLUW and Issuing the Commit
    here UPDATE,INSERT,MODIFY statements are valid
    Commit work is given by Developer Side.
    3) ABAPLUW : What ever Transaction Code we are creating is called ABAPLUW  it is belongs upon Developers
    here 3 types of updates available
    1) Bundled Updates
    2) Un-Bundled Updates
      1) Bundled Updates :
        in Bundled Updates all your updates in a single unit of work present in a PERFORM 'XYZ'
    PERFORM 'XYZ' on Commit.
    here PERFORM-kept in Buffer 'XYZ' this form having all your update statements
    Priarities of execution.
    Perform xy on comit it will execute first
    perform ab on comit it will execute second
    I want to change this execution Order
    Perform xy on comit Level 2 it will execute second
    perform ab on comit Level 1 it will execute First
    because it will depends on Level command
    Using in Function Modules
    Call Function XYZ in Update Task.
    Commit work.
    In this case it stores in a buffer once encounters the commit statement this will executes from the buffer
    so it is an asynchronos method
    2) Un Bundled Updates
    these are two types
    1) Inline Updates
    2) Buffered Inline Updates
    1) Inline Updates : INSERT,UPDATE
    when update statement found in a program then it is called inline update and you should give the 'commit work'after a update statement
    inthe inline update if you not issue a commit work the system will automatically issues the commit work.
    2) Buffered Inline Updates:
    you will buffer all your inline updates and executes after Encounter the 'COMMIT WORK'
    100
       XYZ --> we can not roll back here
    200
       ABC---> if here is using commit
    Thanks & Regards
    Sreenivasulu P

  • Unit of work

    Hi ,
      My requirement is that while creating internal activity in project once enters the work center name in work center field the activity type automatically comes from the work center. The same way I need the unit of work also should come based on the activity type unit.
    Please help me resolve this issue.
    Thanks
    S.Murali

    what KP told is absolutely true,
    if u want, try with the exit CNEX0028 and function module EXIT_SAPLCOZR_001 and take the help of an abaper,
    it may possible.
    ashis
    Edited by: ashis mohanty on Mar 6, 2009 11:08 AM

  • Unit of work exception

    I am doing an update all query and some inserts through the same unit of work. When trying to commit, toplink throws exception with the error message
    "Update all query not be issued within a unit of work containing other write operations".
    What is the workaround? I don't want to read all the objects I am bulk updating through update all query. Will a nested unit of work help?
    Pranab

    I believe this issue has been fixed, what version are you using?
    Perhaps try the latest release (EclipseLink 1.0 / TopLink 11g).
    Otherwise you could execute the query in a separate UnitOfWork.
    James : http://www.eclipselink.org

  • StoredProcedures Logical Unit of Work (Transactionality)

    I haven't experimented yet about the bahaviour when calling multiple storedProcedures in a single XI-JDBC call.
    When I call multiple stored procedures and if the transaction was partially successfull which means One storedProcedure call executed successfully and other failed in this scenario will this call treats as LUW and rolls back all the successful ones on the DB? or will be partial success?
    Since the actual SQL commands are inside the storedprocedure how do we pass the exception/failed signal back to caller?
    This is similar to calling insert/update statements using JDBC adapter I know that in this case each message call treats as LUW which means message will fail/rollback if any one of the statements failed.
    Thanks in advance...
    Laxman Molugu

    Hai Ravi Charan
    There are 3 types of LUW's available in SAP
    1)Database Transaction or DBLUW
    2)SAP      Transaction or SAPLUW
    2)ABAP     Transaction or ABAPLUW
    1) DBLUW : when it is called it locks the rows , Update the rows & commit the rows issued by auto Commit
    2) SAPLUW : collection of Business reports is called SAPLUW and Issuing the Commit
    here UPDATE,INSERT,MODIFY statements are valid
    Commit work is given by Developer Side.
    3) ABAPLUW : What ever Transaction Code we are creating is called ABAPLUW  it is belongs upon Developers
    here 3 types of updates available
    1) Bundled Updates
    2) Un-Bundled Updates
      1) Bundled Updates :
        in Bundled Updates all your updates in a single unit of work present in a PERFORM 'XYZ'
    PERFORM 'XYZ' on Commit.
    here PERFORM-kept in Buffer 'XYZ' this form having all your update statements
    Priarities of execution.
    Perform xy on comit it will execute first
    perform ab on comit it will execute second
    I want to change this execution Order
    Perform xy on comit Level 2 it will execute second
    perform ab on comit Level 1 it will execute First
    because it will depends on Level command
    Using in Function Modules
    Call Function XYZ in Update Task.
    Commit work.
    In this case it stores in a buffer once encounters the commit statement this will executes from the buffer
    so it is an asynchronos method
    2) Un Bundled Updates
    these are two types
    1) Inline Updates
    2) Buffered Inline Updates
    1) Inline Updates : INSERT,UPDATE
    when update statement found in a program then it is called inline update and you should give the 'commit work'after a update statement
    inthe inline update if you not issue a commit work the system will automatically issues the commit work.
    2) Buffered Inline Updates:
    you will buffer all your inline updates and executes after Encounter the 'COMMIT WORK'
    100
       XYZ --> we can not roll back here
    200
       ABC---> if here is using commit
    Thanks & Regards
    Sreenivasulu P

  • Conform in unit of work broken when not enabling Read Subclasses On Query

    Any business application must use conform in unit of work to have expected ACID properties or modifications done during a unit of work are not visible when executing queries.
    So our application is always using conform in unit of work. We are using TopLink 10.1.3.3.
    We have couple of mapped inheritances. One of them is setup so that when you query on the base class the subclasses are never returned. This is done in TopLink Workbench in inheritance tab by not checking checkbox "Read Subclasses On Query".
    The SQL generated is right. But the code handling conform in unit of work doesn't respect the flag.
    The code in UnitOfWork.java line 4185 is calling:
    getIdentityMapAccessor().getAllFromIdentityMap(expression, class1, databaserow, inmemoryqueryindirectionpolicy);
    This end-up to call IdentityMapManager.java line 648:
    public IdentityMap getIdentityMap(Descriptor descriptor)
    /* 648*/ if(descriptor.hasInheritance())
    /* 649*/ descriptor = descriptor.getInheritancePolicy().getRootParentDescriptor();
    No places in the code are trying to respect deactivation of "Read Subclasses On Query".
    So the query return also subclasses that were in the unit of work!
    Anybody else is using conform in unit of work?

    This is a bug, the subclasses should be getting filtered when conforming.
    Please contact Oracle technical support with this issue.
    As a workaround you could filter the subclass in your application after executing the query (or possibly use a query redirector), or disable conforming.
    <p>---
    <br>James Sutherland
    <br>Oracle TopLink, EclipseLink
    <br>Wiki: Java Persistence, EclipseLink

  • Error: Abnormal end unit of work condition occurred

    I using Weblogic 8.1 sp4, Db2/NT 8.2.9, JDK 1.4,JDBC in multithreaded environment
    When i issue resultset.next(), sometimes (very few times that too when number of units of processing is a bit high) it give me the following error:
    java.sql.SQLException: [BEA][DB2 JDBC Driver][DB2]Abnormal end unit of work condition occurred.
    at weblogic.jdbc.base.BaseExceptions.createException(Ljava.lang.String;Ljava.lang.String;I)Ljava.sql.SQLException;(Unknown Source)
    at weblogic.jdbc.base.BaseExceptions.getException(I[Ljava.lang.String;Ljava.lang.String;I)Ljava.sql.SQLException;(Unknown Source)
            at weblogic.jdbc.db2.drda.DRDARequest.processSQLCA(Lweblogic.jdbc.base.BaseWarnings;)V(Optimized Method)
            at weblogic.jdbc.db2.drda.DRDARequest.processCodePoint(IILweblogic.jdbc.base.BaseWarnings;)Z(Optimized Method)
            at weblogic.jdbc.db2.drda.DRDAStatementRequest.processCodePoint(IILweblogic.jdbc.base.BaseWarnings;)Z(Optimized Method)
            at weblogic.jdbc.db2.drda.DRDAResultSetRequest.processCodePoint(IILweblogic.jdbc.base.BaseWarnings;)Z(Optimized Method)
            at weblogic.jdbc.db2.drda.DRDARequest.processReply(Lweblogic.jdbc.base.BaseWarnings;)V(Optimized Method)
            at weblogic.jdbc.db2.drda.DRDARequest.ensureBytes(ILweblogic.jdbc.base.BaseWarnings;)V(Optimized Method)
            at weblogic.jdbc.db2.drda.DRDARequest.processSQLCA(Lweblogic.jdbc.base.BaseWarnings;)V(Optimized Method)
            at weblogic.jdbc.db2.drda.DRDAResultSetRequest.getNextRow(Lweblogic.jdbc.base.BaseWarnings;)Z(Optimized Method)
            at weblogic.jdbc.db2.DB2ImplResultSet.fetchAtPosition(I)Z(Optimized Method)
            at weblogic.jdbc.base.BaseImplResultSet.next()Z(Optimized Method)
            at weblogic.jdbc.base.BaseResultSet.next()Z(Optimized Method)
            at weblogic.jdbc.wrapper.ResultSet_weblogic_jdbc_base_BaseResultSet.next()Z(Optimized Method)
    Please let me know the solution to this problem..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    chk this link ::
    http://www.dbforums.com/db2/1635479-sql-error-911-sqlstate-40001-rollback-due-deadlock-timeout-reason-68-a.html
    http://businessintelligence.ittoolbox.com/groups/technical-functional/brio-l/db2-error-from-scheduled-job-1061846
    might be useful for u.ang google it.

  • Frustrating Phone Upgrade issue

    We need help with phone upgrade issue we encounter when BestBuy associate process our upgrade. Associate is saying we are not eligible but we have not done any phone upgrade since Jan 2011. Our ATT mobile service was established with BB in 2009 and we only upgraded 2 phones in Jan 2011 thru BB. The only recent change in January 2013 was a change of responsibility between my spouse and me since my company has a better employer discount thru ATT. No change and per ATT, no contract and we should be able to upgrade in any retail store. But BB keeps telling us we have issue with ATT and can do our upgrade only with ATT Corporate Store. Our mobile account is a regular family plan account as originally established with BB and just like any BB customer, have employer's discount attached. I don't understand how BB system communicates with ATT system so it is hard for me to explain to ATT what "error message" BB associate is receiving. It has become so frustrating with BestBuy telling us to check with ATT and then for ATT to tell us that there is no issue at their end. We have been a loyal BB customer with all major appliances bought from them including protection plan. The least they can do is work with their ATT representative to figure out between themselves what the issue is. Here we are willing to give both companies our business with new phones and new contracts and no one can help us out.

    LTGee -
    I am very sorry to hear about this. I am going to send you a Private Message to collect some information from you to see if we can get to the bottom of this. To check your private messages, ensure you are logged into the forum and click on the envelope on the upper right hand side of the forum.
    Thanks!
    Jesus|Senior Social Media Specialist | Best Buy® Corporate
     Private Message

  • MSI 760GM-P23 (fx) bios upgrade issue

    Hello every body
    I just bought a gamer PC from an computer supplier.
    Is has the following spec.
    AMD FX 4170 / 4.2 GHz Processor - AM3+
    MSI 760GM-P23 (FX) - Micro-ATX 3000 AM3+
    8GB DDR3 1600MHz Kingston HyperX (1X8GB)
    Nvidia GTX650 (2GB)
    Kingston SSDNow - 2.5″ SATA-600 120GB
    Seagate Barracuda 7200.12 - 3.5″ SATA-600 1TB
    Cooler Master Elite 430 - ATX Sort
    Cooler Master GX Lite 600W - 120 mm
    22x DVD/RW DL Sort SATA
    I had Windows 7 and all drivers installed and unit was working fine. I then decided to use the MSI Live Updater to update all drivers etc.
    In this process the bios was updated to v.17.13 and before the update the unit was running v.H.A
    After bios update had finished updating in Windows, i rebooted the system and then i have not been able to boot to Windows or Windows install 7 since.
    I have uploaded 2 videos to youtube so that you all can see what the issue is
    Search youtube for these two videos.
    UEBlBJrJXNo
    gvlNZl9Im6s
    I have tried to downgrade the bios, and i dont get any error when trying to do so, but after rebooting the system again, i see that the bios has NOT been downgraded.
    Can somebody tell me what might be the issue?
    I personally think it is the BIOS chip it self, that was up by the update and now is somehow looked and faulty.
    HELP!!

    Sounds like Live Update just claimed another casualty. Unless another forum user can come up with some more suggestions, it is most likely RMA time or a pc shop in your area that has an SPI flash programming device should be able to restore the BIOS chip for you.
    Next time, for BIOS updates, please use the fourm's USB flash method.
      >> Forum Flash Method <<

  • Upgrade issues OBIEE 10g to 11g along with OBIA upgrade

    Hi,
    I have to upgrade OBIEE 10.1.3.4.1 to OBIEE 11.1.1.5 along with OBIA 7.9.6.1 to 7.9.6.5(Informatica 8.6.1 to 9.0.1) at my client location and I have very little knowledge on it. and want to know/have help documents for upgrade.
    And if anyone in the forums involved in upgrade please list the errors/issues occured during upgrade and after upgrade.
    1. OBIEE 10g to 11g upgrade issues??
    2. OBIA OBIA 7.9.6.1 to 7.9.6.5 upgrade issues along with 10g to 11g??
    3. Informatica 8.6.1 to 9.0.1 upgrade issues??
    4. DAC upgrade issues??
    any response for my questions is appreciated.
    Thanks
    Jay.
    Edited by: Jay on Apr 11, 2012 9:11 AM

    HI Jay,
    We cannot explained thread list here, If you get any errors plz post me,will try to help out.
    This is oracle document link - This document has given step by step with screen shots upgration for 10g to 11g ,Please refer the below link.
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/bi/bi11115/upgrade/upgrade_to_11g.htm
    http://obieemanu.blogspot.in/2011/05/rpd-upgration-from-10g-to-11g.html
    http://docs.oracle.com/cd/E21764_01/upgrade.1111/e10125/ua_command_line.htm#ASMAS149
    Award points it is useful.
    Thanks,
    satya

  • EHP Upgrade Issue - Java Stack

    Hi,
    Our Source System at NW 7.0 SP13 and we are upgrading the system to EHP1 SP03.
    Upgrade failed at Downtime > DEPLOY_ONLINE_DEPL phase.
    Error log:
    Sep 9, 2009 10:11:51 PM [Error]:                       com.sap.sdt.ucp.phases.AbstractPhaseType.doExecute(AbstractPhaseType.java:863) [Thread[main,5,main]]: Exception has occurred during the execution of the phase.
    Sep 9, 2009 10:11:51 PM [Error]:             com.sap.sdt.jspm.unattended.RequestController.addContextInfo(RequestController.java:178) [Thread[main,5,main]]: Deployment of queue sapjup-queue completed with error
    JSPM version is 7.01.3.0.15. Current JSPM log directory is /usr/sap/XPD/JC00/j2ee/JSPM/log/log_2009_09_09_16_09_42.
    Sep 9, 2009 10:11:51 PM [Error]: com.sap.sdt.sapjup.tools.sapjupjspm.SAPJupJSPMRapiAdapter.createAndLogRapiException(SAPJupJSPMRapiAdapter.java:698) [Thread[main,5,main]]: The deployment of the queue failed.
    Sep 9, 2009 10:11:51 PM [Error]: com.sap.sdt.sapjup.tools.sapjupjspm.deploy.SAPJupJSPMDeployer.deployList(SAPJupJSPMDeployer.java:68) [Thread[main,5,main]]: Could not execute deployment of stack file /usr/sap/trans/EPS/in/XPD.xml.
    Sep 9, 2009 10:11:51 PM [Error]:      com.sap.sdt.j2ee.phases.PhaseTypeDeploymentManager.execute(PhaseTypeDeploymentManager.java:519) [Thread[main,5,main]]: Error while executing DeploymentManager phase with action deploySlot. Check the log files for the specified action.
    Sep 9, 2009 10:11:51 PM [Info]:                         com.sap.sdt.ucp.phases.AbstractPhaseType.cleanup(AbstractPhaseType.java:906) [Thread[main,5,main]]: Phase UPGRADE/DEPLOYMENT_BASED_UPGRADE/DEPLOY_ONLINE_DEPL has been completed.
    Sep 9, 2009 10:11:51 PM [Info]:                         com.sap.sdt.ucp.phases.AbstractPhaseType.cleanup(AbstractPhaseType.java:907) [Thread[main,5,main]]: Start time: 2009/09/09 22:09:42.
    Sep 9, 2009 10:11:51 PM [Info]:                         com.sap.sdt.ucp.phases.AbstractPhaseType.cleanup(AbstractPhaseType.java:909) [Thread[main,5,main]]: End time: 2009/09/09 22:11:51.
    Sep 9, 2009 10:11:51 PM [Info]:                         com.sap.sdt.ucp.phases.AbstractPhaseType.cleanup(AbstractPhaseType.java:910) [Thread[main,5,main]]: Duration: 0:02:08.248.
    Sep 9, 2009 10:11:51 PM [Info]:                         com.sap.sdt.ucp.phases.AbstractPhaseType.cleanup(AbstractPhaseType.java:911) [Thread[main,5,main]]: Phase status is error.
    I went through the following link , proceeded with option 2, But still getting same error.  
    Portal Upgrade Issue
    Please advise the resolution for the issue I have.
    Thanks in advance
    Regards
    Srinivas
    Edited by: Srinivas Dasari on Sep 10, 2009 5:48 AM
    Edited by: Srinivas Dasari on Sep 10, 2009 5:48 AM

    Issue resolved

Maybe you are looking for

  • Can't run anything with an import statement

    That seems to be what's going on, anyway. HelloWorld works for me, but ECJ (http://cs.gmu.edu/~eclab/projects/ecj/) does not. NoClassDefFoundError when I try to run the thing, even though . is on my classpath and I'm in that directory (and yes, it's

  • After Cloning database,how to add archivelog files for restore in oracle9i?

    Friends, I used to restore my oracle 9iR2 db from production to test server by cloning db method. everything fine....im restoring by this method every week successfully. i have restored my production db to test server yesterday successfully. i want t

  • Photoshop cs 5 misreading RAM memory

    Not feeling happy about my new PC and how plugins behave (time-wise) I decided to add another 8 Gig RAM memory to my 4 totaaling 12G. I thought this would make stuff got at super speeds but to my surprise it actually fel slower. I went to --> Prefere

  • LV 7.1 application builder

    Is it possible to make an executable with LV 7.1 that would run by itself on any other machine? - If not, I guess I need to install run-time engine. How do I install run-time engine? Thanks, Jerome.

  • Intel hd graphics 3000 not working in after effects cs5 and cs4

    Hi I am running after effects cs5.5 and when importing 3d objects the programs keeps on crashing. in the preferences the graphics is not recognized. I also have Photoshop cs5 and it works fine in that and it recognized, both are 64bit. Does any one h