OBPM 10 gR 3 database locks

Environment:

Oracle BPM 10 gR 3 Version: 10.3.1.0.0 build: #99954

WebLogic Server 10.0 MP1 in cluster area

JDBC driver - WebLogic Type 4 XA (weblogic.jdbcx.oracle.OracleDataSource)

We have a BPM project deployed to the Cluster of WLS 10.0 MP1, which worked very well for the last 18 months. But all of a sudden we live errors locks on database for these days, when we try to restart the engine of BPM.

WebLogic JTA Timeout = 30 seconds

Database Distributed_Lock_Timeout = 60 seconds

WebLogic Datasources directory and engine XA Connection Timeout = 30 seconds



Error


Process of ' / Test #Default - 1, 0' could not be started. Details: \nProcess error runtime execution.
Caused by: Exception [java.sql.SQLException: [BEA] [Oracle JDBC Driver] [Oracle] ORA-02049: timeout: distributed transaction waiting for lock].
Caused by: [BEA] [Oracle JDBC Driver] [Oracle] ORA-02049: timeout: distributed transaction waiting for lock

fuego.papi.impl.EngineExecutionException: Error executing for the process execution engine.
at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:139)
at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:79)
at fuego.server.execution.DefaultEngineExecution.executeWithoutComponentImmediate(DefaultEngineExecution.java:185)
at fuego.server.execution.EngineExecution.executeWithoutComponentImmediate(EngineExecution.java:86)
at fuego.ejbengine.service.EJBActiveProcessService.startProcess(EJBActiveProcessService.java:92)
at fuego.server.service.ActiveProcessService.runProcessesLoader(ActiveProcessService.java:118)
at fuego.server.service.ActiveProcessService.activateProcesses(ActiveProcessService.java:88)
at fuego.ejbengine.service.EJBActiveProcessService.doActivateProcesses(EJBActiveProcessService.java:63)
at fuego.ejbengine.cluster.DistributedEJBActiveProcessService.initialize(DistributedEJBActiveProcessService.java:37)
at fuego.ejbengine.cluster.ClusterObjectFactory.initializeActiveProcessService(ClusterObjectFactory.java:33)
at fuego.ejbengine.Engine.startServices(Engine.java:448)
at fuego.ejbengine.Engine.start(Engine.java:129)
at fuego.ejbengine.servlet.AbstractSchedulerServlet.init(AbstractSchedulerServlet.java:91)
to weblogic.servlet.internal.StubSecurityHelper$ ServletInitAction.run (StubSecurityHelper.java:282)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs (unknown Source)
at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:63)
at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
to weblogic.servlet.internal.StubLifecycleHelper. < init > (StubLifecycleHelper.java:48)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:507)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1853)
at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1830)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1750)
at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2909)
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:973)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:361)
to weblogic.application.internal.flow.ModuleStateDriver$ 3.next(ModuleStateDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
to weblogic.application.internal.flow.ModuleStateDriver$ 3.next(ModuleStateDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:26)
to weblogic.application.internal.BaseDeployment$ 2.next(BaseDeployment.java:635)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:182)
at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:359)
to weblogic.management.deploy.internal.DeploymentAdapter$ 1.doActivate(DeploymentAdapter.java:51)
at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:196)
to weblogic.management.deploy.internal.AppTransition$ 2.transitionApp(AppTransition.java:30)
at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
Caused by: fuego.directory.DirectoryRuntimeException: Exception [java.sql.SQLException: [BEA] [Oracle JDBC Driver] [Oracle] ORA-02049: timeout: distributed transaction waiting for lock].
at fuego.directory.DirectoryRuntimeException.wrapException(DirectoryRuntimeException.java:85)
at fuego.directory.provider.jdbc.oracle.OraclePersistenceManager.mapSQLException(OraclePersistenceManager.java:183)
at fuego.directory.provider.jdbc.datadirect.oracle.DataDirectOraclePersistenceManager.mapSQLException(DataDirectOraclePersistenceManager.java:50)
at fuego.directory.provider.jdbc.JDBCServiceAccessor.mapSQLException(JDBCServiceAccessor.java:78)
at fuego.directory.provider.jdbc.JDBCProcessAccessor.updateDeployedProcess(JDBCProcessAccessor.java:1330)
at sun.reflect.GeneratedMethodAccessor92.invoke (unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
to fuego.directory.provider.DirectorySessionImpl$ AccessorProxy.invoke (DirectorySessionImpl.java:756)
to $Proxy57.updateDeployedProcess (Unknown Source)
at fuego.directory.DirDeployedProcess.update(DirDeployedProcess.java:1022)
at fuego.server.ActiveProcessManager.handleProcess(ActiveProcessManager.java:496)
at fuego.server.service.ActiveProcessService.startProcess(ActiveProcessService.java:136)
at fuego.ejbengine.service.EJBActiveProcessService.startProcessImpl(EJBActiveProcessService.java:107)
in fuego.ejbengine.service.EJBActiveProcessService.access$ 100 (EJBActiveProcessService.java:32)
to fuego.ejbengine.service.EJBActiveProcessService$ 2.execute(EJBActiveProcessService.java:95)
to fuego.server.execution.DefaultEngineExecution$ AtomicExecutionTA.runTransaction (DefaultEngineExecution.java:304)
at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470)
at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)
at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
... 52 more
Caused by: java.sql.SQLException: [BEA] [Oracle JDBC Driver] [Oracle] ORA-02049: timeout: distributed transaction waiting for lock

at weblogic.jdbc.base.BaseExceptions.createException (unknown Source)
at weblogic.jdbc.base.BaseExceptions.getException (unknown Source)
at weblogic.jdbc.oracle.OracleImplStatement.execute (unknown Source)
at weblogic.jdbc.base.BaseStatement.commonExecute (unknown Source)
at weblogic.jdbc.base.BaseStatement.executeUpdateInternal (unknown Source)
at weblogic.jdbc.base.BasePreparedStatement.executeUpdate (unknown Source)
at weblogic.jdbcx.base.BasePreparedStatementWrapper.executeUpdate (unknown Source)
at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStatement.java:125)
at fuego.jdbc.FaultTolerantPreparedStatement.executeUpdate(FaultTolerantPreparedStatement.java:623)
at fuego.directory.provider.jdbc.JDBCPersistenceManager.update(JDBCPersistenceManager.java:946)
at fuego.directory.provider.jdbc.JDBCProcessAccessor.updateDeployedProcess(JDBCProcessAccessor.java:1327)
... more than 68

Ensure that time-out values conform to this rule DISTRIBUTED_LOCK_TIMEOUT > = XA Transaction Timeout > = time-out JTA in WebLogic Server

And BP timeout in the console (process administrator) BPM method should be<= jta="">

After editing the values of time-out as a result, you have to bounce the BPM and WLS Cluster engine

Ask the ADMINISTRATOR to address the current locks for user database directory and the user of the database engine. If the locks are not released by BPM, then a rebound in the database could help

Thank you
Ashok

Tags: Fusion Middleware

Similar Questions

  • Database locked row when the user closes the browser after a change without saving changes

    Hello

    I have a page in which the user can enter some data and save it.
    When the user asks a row and update it.
    Without saving changes, if the browser is closed, next time when the page is loaded for the update, he said that the line of database is locked with the following error.

    Error: Cannot lock the file, another user owns the lock.
    Unable to lock the file, another user owns the lock.

    How we handle this?
    We can unlock the line when the browser is closed?

    Thanks for any help.
    Sameer

    Assuming you are using ADF BC to access your database, change the optimistic locking setting:
    http://download.Oracle.com/docs/CD/E14571_01/Web.1111/b31974/bcstatemgmt.htm#BABGCDDD

  • Can not access my database locked due to the fact that I've lost my password! Can you help me please?

    Hello, I created a MS Access database and put a password on it, but I lost the password subquently and have no way to get back into my database already created. Is there a way to do it unlocked?

    Hello

    Microsoft technical support engineers cannot help you recover the passwords of the files and Microsoft who are lost or forgotten product features. For more information about this policy, please see the article below:

    Microsoft's strategy concerning lost or forgotten passwords
    http://support.Microsoft.com/default.aspx/KB/189126/

    Lisa
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Database locking issues

    Dear all,

    We had two node oracle RAC 10 g 2 of last 2-3 years. Now plans to add the third node. The node is added but increase that store the locking on a table of ID_USER_SESSION, in this user session information.
    SELECT table_name, nom_tablespace, temporary from user_tables where table_name = 'ID_USER_SESSION ';


    TABLE_NAME NOM_TABLESPACE T
    ------------------------------ ------------------------------ -
    I HAVE D_USER_SESSION AFSYS_DATA_SPACE N




    ID Planhash % activity % event SQL SQL text event

    * 9y6v6907gzts2 4077075788 88.82 enq: TX - line lock contention 88.71 DELETE FROM ID_USER_SESSION WH... *.

    bz1d91crtmmfp 2.41 enq: TX - line lock conflict 2.40 INSERT IN ID_USER_PROGRAM_DE...


    can you guys please guide me how to solve this problem.


    Thank you and best regards,
    Shir khan

    SHERKHAN wrote:

    DELETE FROM ID_USER_SESSION WHERE (USER_SESS_ID =: = USER_SESS_SERIAL AND B2: B1) OR (USER_SESS_ID, USER_SESS_SERIAL) NOT IN (SELECT SID, SERIAL # FROM V$ SESSION);

    (Sid, serial #) are only unique within the lifetime of a single instance. The same (sid, serial #) may exist simultaneously in all three of your RAC instances. Somehow, you need to change your table and the code to include the number of proceedings initiated by the session on.

    Concerning
    Jonathan Lewis

  • How to check the locks in the database

    Hello

    oracleDatabase version: 11 GR 2
    OS: Solaris

    How to check the locks on database objects .it can be any lock?
    None Select sql query to check the levlel of objects of database locks? what basis locks occur?

    Please explain on the locks or share notes MOS?

    Rgds,
    Sam.

    Check below sql.

    Select s1.username. '@' || S1.machine
    || ' (SID =' | s1.sid | block him ') '
    || S2. UserName | '@' || S2.machine | ' (SID =' | s2.sid |) ') ' AS blocking_status
    v $ lock l1, v$ session s1, v$ lock l2, s2 of v$ session
    where s1.sid = l1.sid and s2.sid = l2.sid
    and l1. BLOCK = 1 and l2.request > 0
    and l1.id1 = l2.id1
    and l2.id2 = l2.id2;

    http://psoug.org/snippet/locks-view-locked-Objects_866.htm
    http://www.DBA-Oracle.com/t_locked_rows_user_locks.htm

  • TimesTen create a lock for a select statement through sqldev

    What ttisql use connect to TimesTen Release 7.0.6.15.0 to autocommit = 1, there is no lock for a select statement.

    but when I use sql developer (driver is ttjdbc5.jar, regardless of the version) to connect, even with autocommit = 1, there will be locks for the select statement.

    Is this a bug? How can I achieve the same no lock for a select statement through sql developer? Thank you.

    -your update told me that you are connected to a remote timesten data store using the client driver

    -the output from ttXactAdmin shows that SqlNavigator has a shared lock on the database itself: it will not interfere with someone else "read operations and I think that until you actually try a kind of DML against the database that e IX lock on the database lock will not interfere with any other DML either."

    -sharing database lock is still acquired for any transaction TimesTen. You can test it for yourself ttisql: set off autocommit, perform a simple update and do not commit the transaction. Then, open a separate session and run ttxactadmin - you will have the database IX lock as well as the various locks on the tables and indexes.

    -I think this pretty much proves my original thought: this sqlDeveloper attaches to TimesTen in transaction mode. However, the IX lock on the database will not interfere with anyone else's work and should not be a problem.

  • The first time to open Mail.app: opens the window Import Mail Message - crashes during the infinite-import cycle how to break it?

    El Captain 10.11.03

    .. 10.11.03 .after install, I leave el capitan migrate my old yosemite data.

    restart: when opening mail.app mail insists in the import of 'old' e-mail accounts of the

    standard window "import mail message.

    When importing, it breaks down. How to curb this "never-ending cycle" and of 'just' open mail without importation of message and let me

    everything by myself: accounts and import the 'old' one by one.

    This way I can also identify the import data that causes the accident and so on...

    Is there a file to delete that stop the routine of "import of message window?

    This crash report help? :

    Process: Mail [890]

    Path: /Applications/Mail.app/Contents/MacOS/Mail

    ID: com.apple.mail

    Version: 9.2 (3112)

    Generation information: Mail-3112000000000000 ~ 7

    Code type: X 86-64 (Native)

    Parent process:? [1]

    Manager: Mail [890]

    User ID: 501

    Date/time: 2016-03-09 23:16:00.867 + 0100

    OS version: Mac OS X 10.11.3 (15 d 21)

    Report Version: 11

    Anonymous UUID: BD98511C-1892-5044-70F8-62C35E853145

    Sleep/wake UUID: B53BF3CA-4CDB-4B18-BC26-CBCE4AFEE019

    Time since started awake: 4700 seconds

    Wake time: 1700 seconds

    Integrity of system protection: enabled

    Crashed thread: queue 2-[LibraryImportAssistant synchronouslyDoTheImport] hurry: NSOperationQueue 0x7f8d2615c3e0: NSOperation 0x7f8d2617f2b0 (QOS: UTILITY)

    Specific application Backtrace 1:

    0 CoreFoundation 0x00007fff946e8ae2 __exceptionPreprocess + 178

    1 libobjc. A.dylib 0x00007fff81590f7e objc_exception_throw + 48

    2 CoreFoundation 0x00007fff94589840 _CFXNotificationGetTaskCenter + 0

    3 MailCore 0x00007fff8ee1c21b-[MCMimePart (SMIMEDecodingInternal) _verifySignatureWithCMSDecoder:againstSender:signingError:] + 2941

    4 MailCore 0x00007fff8ee1a01e-[MCMimePart (SMIMEDecoding) decodeApplicationPkcs7_mimeWithContext:] + 4554

    5 MailCore 0x00007fff8edf3b36-[MCMimePart decodeWithContext:] + 411

    6 MailCore 0x00007fff8edee5d5-[MCMimePart decodedContentWithContext:] + 91

    7 MailCore 0x00007fff8edf42ae-[MCMimePart decodeMultipartWithContext:] + 140

    8 MailCore 0x00007fff8edf3b36-[MCMimePart decodeWithContext:] + 411

    9 MailCore 0x00007fff8edeedec-[MCMimePart parsedMessageWithContext:] + 95

    MailCore 10 0x00007fff8eddb40e-[MCMimeBody parsedMessageWithContext:] + 179

    11 MailCore 0x00007fff8edc08a7-[MCMessage searchableItemWithHTML:includingText:] + 2693

    12 email 0x00007fff96f14cff-[MFRecoveredMessage searchableItemWithHTML:includingText:] + 118

    13 mail 0x00007fff96f12b87 + [MFRecoveredMessage searchableItemForBodyData:plistData:path:persistentID:] + 335

    14 mail 0x00007fff96e04a08 __247 + [MFLibrary insertOrUpdateMessages:withMailbox:fetchBodies:isInitialImport:isMailboxRebuild: oldMessagesByNewMessage:remoteIDs:newDocumentIDs:setFlags:clearFlags:messageFla gsForMessages:copyFiles:progressDelegate:updateRowIDs:missedMessages:error:] _blo ck_invoke1168 + 18627

    15 mail 0x00007fff96e27e61 + [MFLibrary executeBlock:isWriter:useTransaction:isPrivileged:] + 766

    16 mail 0x00007fff96dff36b + [MFLibrary insertOrUpdateMessages:withMailbox:fetchBodies:isInitialImport:isMailboxRebuild: oldMessagesByNewMessage:remoteIDs:newDocumentIDs:setFlags:clearFlags:messageFla gsForMessages:copyFiles:progressDelegate:updateRowIDs:missedMessages:error:] + 6167

    17 mail 0x00007fff96e081cd + [MFLibrary addMessages:withMailbox:fetchBodies:isInitialImport:oldMessagesByNewMessage:rem oteIDs:setFlags:clearFlags:messageFlagsForMessages:copyFiles:missedMessages:erro a:] + 263

    18 mail 0x00007fff96e21ad1 + [MFLibrary importMailbox:] + 1640

    19 e-mail 0x00007fff96e24093 __46 + [MFLibrary importMessagesFromEnabledAccounts] _block_invoke2500 + 701

    20 mail 0x00007fff96e28469 + [MFLibrary executeBlock:isWriter:useTransaction:isPrivileged:] + 2310

    21 mail 0x00007fff96e230f7 + [MFLibrary importMessagesFromEnabledAccounts] + 4057

    22 mail 0x0000000109a431f3 + 1757683

    23 CoreFoundation 0x00007fff945b317c __invoking___ + 140

    24 CoreFoundation 0x00007fff945b2fce-[French invoke] + 286

    25 MailCore 0x00007fff8edf9036-[MCMonitoredInvocation invoke] + 245

    26 MailCore 0x00007fff8ee2b98e-[major MCThrowingInvocationOperation] + 48

    27 MailCore 0x00007fff8edb4cde-[major _MCInvocationOperation] + 426

    28 the 0x00007fff918c72fb Foundation-[__NSOperationInternal _start:] + 654

    29 0x00007fff918c6de7 __NSOQSchedule_f + 194 Foundation

    30 libdispatch.dylib 0x00007fff8617c33f _dispatch_client_callout + 8

    31 libdispatch.dylib 0x00007fff86180f6f _dispatch_queue_drain + 754

    32 libdispatch.dylib 0x00007fff8618763b _dispatch_queue_invoke + 549

    33 libdispatch.dylib 0x00007fff8617fc87 _dispatch_root_queue_drain + 538

    34 0x00007fff8617fa34 _dispatch_worker_thread3 + 91 libdispatch.dylib

    35 libsystem_pthread.dylib 0x00007fff961d568f _pthread_wqthread + 1129

    36 libsystem_pthread.dylib 0x00007fff961d3365 start_wqthread + 13

    Summary of the external change:

    Calls made by other processes for this process:

    task_for_pid: 2

    thread_create: 0

    thread_set_state: 0

    Calls made by this process:

    task_for_pid: 0

    thread_create: 0

    thread_set_state: 0

    Calls made by all processes on this machine:

    task_for_pid: 2405

    thread_create: 0

    thread_set_state: 0

    Summary region VM:

    ReadOnly part of libraries: Total = 325.4 M resident = 0 K (0%) swapped_out_or_unallocated=325.4M(100%)

    Regions in writing: Total = 376.5 M written = 0 K (0%) resident = 0 K (0%) swapped_out = 0 K (0%) unallocated=376.5M(100%)

    VIRTUAL REGION

    The NUMBER of DIMENSIONS of TYPE REGION (not melted)

    ===========                     =======  =======

    Accelerate.Framework 256K 3

    2048K 2 follow-up activity

    CG backup stores 5080K 4

    CG image 260 K 5

    CG shared images 240K 6

    CoreAnimation 168K 15

    CoreUI 1928 K 14 image data

    CoreUI image file 224K 5

    Ship 8192 K 2 continuations

    The Foundation 25.8 M 297

    Image IO 4096 K 2

    Kernel Alloc once 8 K 3

    MALLOC 282,9 258 M

    MALLOC 32K 7 cover page

    Tag memory 242 12K 2

    Memory 12 251 K 2 tag

    OpenCL                               8K        2

    Corpse process Info 2048 K 2

    SQLite page cache 15.2 M 106

    BATTERY GUARD 56.0 M 13

    The stack of 13.1 M 15

    VM_ALLOCATE 68K 10

    __DATA 36.3 M 349

    __IMAGE 528K 2

    __LINKEDIT 91.5 M 19

    __TEXT 233.9 356 M

    __UNICODE 552K 2

    mapped file 53.0 M 17

    16.3 shared memory M 10

    ===========                     =======  =======

    TOTAL 849,1 M 1501

    Exception type: EXC_CRASH (SIGABRT)

    Exception codes: 0 x 0000000000000000, 0 x 0000000000000000

    Note the exception: EXC_CORPSE_NOTIFY

    Request for clarification:

    "Reason for terminating app due to exception while now the database lock 'NSInvalidArgumentException',: ' *-[__NSArrayM insertObject:atIndex:]: object cannot be null"

    Abort() called

    You have locally stored messages slot "on my Mac"?

    You have IMAP or POP accounts?

    How much free space on your drive? Use disk utility to find this info.

    I wrote two articles that might help you. If you have the opportunity to start again in the Yosemite, you can export data, as explained before moving on to the post of El Capitan. If this is not possible, you can always ignore the upgrade process by importing your data. Let me know if you have any questions.

    Troubleshooting Apple Mail in OS X 10.11 El Capitan

    Capitan http://www.needhelp4mac.com/2015/10/Troubleshooting-Apple-Mail-in-OS-x-10-11-El-/

    Before moving to the post of El Capitan

    http://www.needhelp4mac.com/2015/11/before-upgrading-to-El-Capitan-mail/

    (Fair disclosure: Needhelp4Mac is my site.) I can receive some form of compensation, financial or otherwise, of the links on my site.)

  • The synchronized application: creation of menu items for each call to makeMenu SQLite?

    A matter of design, which is a good implementation of the following?

    My requirements are:

    1. Have a different menu for each screen.
    2. The battery of the screen will be high both a single screen.
    3. To switch screens, the user must use the menu.

    I created the menu for each screen by the following:

    protected void makeMenu(Menu menu, int instance) {
    super.makeMenu(menu, instance);
    Database db = null;
    try {
    
      db = ResourceManager.getConnection(true);
      mCoffeeDao = new FlavshellDao();
      mTabDao = new FlavmDao();
    
      if (instance == Menu.INSTANCE_CONTEXT) {
          Bitmap logoWbg = Bitmap.getBitmapResource(resource
                  .getString(ScoreCenterResource.logo));
          Image image = ImageFactory.createImage(logoWbg);
    
          gMenu.setIcon(image);
          nMenu.setIcon(image);
          aMenu.setIcon(image);
          shMenu.setIcon(image);
          avMenu.setIcon(image);
          logoMenu.setIcon(image);
    
          menu.add(gMenu);
          menu.add(nMenu);
          menu.add(aMenu);
          menu.add(shMenu);
          menu.add(avMenu);
          menu.add(logoMenu);
      }
    
      if (instance == Menu.INSTANCE_DEFAULT) {
          menu.add(logMenu);
          menu.add(exitMenu);
    
          shell = mCoffeeDao.findAll();
    
          for (int i = 0; i < shell.length; i++) {
              Flavshell m = shell[i];
              /**
               * Ordering parameter, lower values are placed closer to the
               * top of the menu screen.
               */
              item = new FlavMenuItem(m.getPk(), m.getFlavortitle(),
                      200 + i);
              menu.add(item);
          }
    
          String[] params = {
              Integer.toString(this.mCoffeePk)
          };
          Flavm[] m = mTabDao.findByDynamicWhere("FLAVOR = ?",
                  params);
    
          if (m.length > 0) {
              for (int j = 0; j < m.length; j++) {
                  if (m[j] != null) {
                      Flavm specificMenu = m[j];
                      item = new FlavMenuItem(specificMenu.getPk(),
                              specificMenu.getTitle(), 100 + j);
                      menu.add(item);
                  }
              }
    
              menu.add(MenuItem.separator(105));
          }
      }
    
    } catch (FlavshellDaoException e) {
      Logger.logEventError(e.getMessage());
    
    } catch (FlavmDaoException e) {
      Logger.logEventError(e.getMessage());
    
    } finally {
      try {
          db.close();
      } catch (DatabaseException e) {
          Logger.logEventError("Menu Database error: " + e);
      }
    }
    

    I created a database with a single link object read in the following text:

    public synchronized static final Database getConnection(
        final boolean readOnly) {
    Database db = null;
    try {
        URI userFileURL = URI.create(System
                .getProperty("fileconn.dir.memorycard")
                + resource.getString(CoffeeHouseResource.db_path)
                + resource.getString(CoffeeHouseResource.db_name));
    
        db = DatabaseFactory.open(userFileURL, readOnly);
    
    } catch (MalformedURIException e) {
        Logger.logError("Get connection: URI: " + e.getMessage());
    } catch (ControlledAccessException e) {
        Logger.logError("Get connection: Controlled Access: "
                + e.getMessage());
    } catch (DatabasePathException e) {
        Logger.logError("Get connection: Database Path: "
                + e.getMessage());
    } catch (DatabaseIOException e) {
        Logger.logError("Get connection: Database IO: "
                + e.getMessage());
    } catch (Exception e) {
        Logger.logError(e.getMessage());
    }
    return db;
    }
    

    My question is,

    • If the user to call the menu as happening in any other activity database (SQLite), making the synchronized method will prevent database locks?
    • Should I design my makeMenu got a call from the database at all? It seems to me that all this works, this could potentially cause a lot of traffic on the SQLite database?
    • I thought to move the menu to a vector and storing the menu in storage Runtime, but I read that the Runtime Storage has the memory leak issues?

    Your basic design principles seem well - I have a number of applications that actually have "tabs" screens, so clicking on a tab or using the menu swaps from one screen to the other.  You can just push the new screen and pop, that. In fact, here's a menu from a screen, that I am currently working:

    _StatsMenu MenuItem = new MenuItem ("Stats", 110, 10) {}
    public void run() {}
    UiApplication.getUiApplication () .pushScreen (new StatsScreen (System.currentTimeMillis (), 0));
    UiApplication.getUiApplication () .popScreen (BaseScreenWithToolBar.this);
    }
    };

    While I haven't looked in detail, but your code dangerous look.

    I've never tested, but I suspect makeMenu is called using the EventThread.  Doing things like database connections in this method will cause you problems.  Do not.  If you need to query the database, do so before makeMenu is called.  Starts a separate Thread and set the appropriate menus if this Thread is not finished.  or block the user interface, until he made.

    In addition, I wouldn't do it in makeMenu:

    Bitmap logoWbg = Bitmap.getBitmapResource (resource
    .getString (ScoreCenterResource.logo));
    Image image = ImageFactory.createImage (logoWbg);

    You can do it once to the creation of the screen, or better yet, once at startup and save it in a shared domain.

    If you do not want to create a dynamic menu, then use the normal persistent store - or check out the details for the database once at startup and use them after that RAM.

    And avoid lifting heavy objects in makeMenu.

    I hope this helps.

  • Problems with the ability of Lightroom?

    All, I am planning to migrate my entire library of Photos (~ 50 000 photos) to Lightroom, but have concerns about capacity/performance issues. I do not wish to change all of these photos but wanted to take advantage of the features in the Lightroom Catalog and away files hidden in a database locked.

    Ideas or suggestions?

    Thank you

    Bart

    People report 10 x your height well running Lightroom libraries.

    The number of photos imported in the catalog picture should have no effect on the performance of Lightroom (exception: speed of making backups).

  • The stalls on BigDataLite VM Ore.Connect

    After the installation of Oracle Enterprise R 1.4 on the 2.4.1 VM Bigdatalite I am unable to connect using ore.connect.

    Since a Linux Terminal window, I started R and carried out as a result of the actions.

    > library (ORE)
    Loading required package: OREbase

    Package pricing: "OREbase."

    The following objects are hidden from "package: base:

    cbind data.frame, eval, interaction, order, dough, pmax, pmin,
    rbind, table

    Loading required package: OREembed

    Package pricing: "OREembed."

    The following objects are hidden from the "package: OREbase:

    As.Ore.List, as.ore.object, is.ore.list, is.ore.object,
    Ore.datastore, ore.datastoreSummary, ore.delete, ore.doEval,
    ore.groupApply, ore.indexApply, ore.lazyLoad, ore.load,
    ore.rowApply, ore.save, ore.scriptCreate, ore.scriptDrop,
    ore.tableApply

    Loading required package: OREstats
    Loading required package: MASS
    Loading required package: OREgraphics
    Loading required package: OREeda
    Loading required package: OREmodels
    Loading required package: OREdm
    Loading required package: lattice
    Loading required package: OREpredict
    Loading required package: ORExml
    There were 21 warnings (using warnings() to see them)
    >

    > warnings()

    Warning messages:

    1: tables of multiple methods are for "as.ore.object."

    2: tables of multiple methods are for "as.ore.list."

    3: import replacing previous "as.ore.list" loading "OREembed".

    4: replace the previous "as.ore.object" import loading "OREembed".

    5: replacement of previous import '. __C__ore.list' loading "OREembed".

    6: replacement of previous import '. __C__ore.object' loading "OREembed".

    7: replacement of import previous "is.ore.list" loading "OREembed".

    8: import replacing previous "is.ore.object" loading "OREembed".

    9: import replacing previous "ore.datastore" loading "OREembed".

    10: import replacing previous "ore.datastoreSummary" loading "OREembed".

    11: import replacing previous "ore.delete" loading "OREembed".

    12: import replacing previous "ore.doEval" loading "OREembed".

    13: replacement of import previous "ore.groupApply" loading "OREembed".

    14: import replacing previous "ore.indexApply" loading "OREembed".

    15: import replacing previous "ore.lazyLoad" loading "OREembed".

    16: import replacing previous "ore.load" loading "OREembed".

    17: import replacing previous "ore.rowApply" loading "OREembed".

    18: import replacing previous "ore.save" loading "OREembed".

    19: replacement of import previous "ore.scriptCreate" loading "OREembed".

    20: import replacing previous "ore.scriptDrop" loading "OREembed".

    21: replacement of import previous "ore.tableApply" loading "OREembed".

    >

    > ore.connect ("rquser", "orcl", "piet", "welcome1", all = TRUE)

    Loading required package: ROracle

    Loading package perl: DBI

    Therefore the process hangs.

    The process is the only way to regain.

    I uninstalled the software several times and re-installed.

    During uninstall the hook of process on the withdrawal of the RQSYS data, there are probably few current database lock.

    Killing the session will continue the uninstall procedure.

    I have also connected to the database using the ROracle package only as follows:

    > drv <-dbDriver ("Oracle")

    > con <-dbConnect (drv, "rquser", "welcome1")

    > dbListTables (con)

    [1] "RQ$ DATASTOREINVENTORY" 'RQTEST ".

    >

    If the ROracle and DBI packages seem to work correctly.

    Can someone explain why the connection hangs by using ore.connect.

    Bertram Hof

    Hello

    Was already implemented for the Big Data Lite 3.0.

    After the installation of this virtual machine works the ora.connect.

    Thanks for the replies of al

  • How to fix the program Creative Cloud do not synchronize fonts?

    One of our desktop computers is a problem get policies synchronized. The tab fonts is just a circle rotation.

    Many of the following entries in the CoreSync log files:

    20150805 - 105827.621: t = 1a6c: Info: jura.db: database locked C:\Users\XYZ\AppData/Roaming/Adobe/CoreSync\coresync.db (Database.cpp.jura::Database: close 93.)

    20150805 - 105827.621: t = 1a6c: Info: jura.db: database locked C:\Users\XYZ\AppData/Roaming/Adobe/CoreSync\coresync.db (Database.cpp.jura::Database: close 93.)

    20150805 - 105827.622: t = 1a6c: VerifyAndRepair: DB is corrupted, delete it.

    20150805 - 105827.622: t = 1a6c: VerifyAndRepair: result is 0

    20150805 - 105827.622: t = 1a6c: error: app: DB does not pausing (CloudSync.cpp.wWinMain.251)

    We tried the suggestions described here without success. On the same machine, under a different user profile, the synchronization works.

    Using Windows 7 Pro x 64 and creative Cloud app 2.2.0.129.

    Adobe ID Diana M (at) iavi dot com, the country is USA, Ethernet, no proxy, Firewall enterprise, Eastern time.

    The problem has been identified as a result of changes in the end app of creative cloud due to the specificity of the installation of our systems, software CC has been incorrectly referencing variables APPDATA and USERPROFILE and was attempting to access a location that is not valid (for our installation program).

    There is more to the story, but the final resolution has been to create a C:\Users\USERNAME\AppData\Roaming\Adobe\CoreSync file for the Creative cloud program can work. It is not "optimal" we use a different location for this folder (Windows allows the redirection of the user shell folders to a location of choice) but things work. Hopefully a future update will address the issue overall.

  • Writing files papers in different subdirectories

    Hello

    Is it possible to write logs in different subdirectories. I want to write records of type or class. For example, put the records of dogs in a directory, cats in another directory. But the same environment, an Animal as the main environment. Can you give me an example of code for this example if possible.

    Thanks in advance.

    Hello

    It would be interesting for us, first, make sure that there is a clear understanding of how I store data. I use an approach based on the journal to store data. There is no separate database file, that is, records database and logs are stored together transaction is a single sequential journal composed of several log files. These files of newspapers I are single addition with inserts of records, deletions and updates added at the end of the current log file (logs files I are the NNNNNNNN.jdb files). More information here.

    There is a means of distributing the files of newspapers I in several directories that allows to improve the throughput by distributing the disk i/o on multiple disks or file systems. See the documentation section of several subdirectories environment . However, this does not mean that your databases, locked in the files of newspapers I, will be equally distributed in all of those directories.

    In order to separate data sets as you wish, by type or class (Animal/dog, Pet/Cat etc.), you can use several environments I - each environment will correspond to the type of animal data that you will store. However, there are important disadvantage to the use of multiple environments; a single transaction cannot span/include changes in more than one environment.
    You also need to consider using a cache shared for these multiple environments, in order to make more efficient use of memory rather than using private caches.
    See the sections of documentation environments and configuration of a Cache shared for several environments . Below is a snippet of code showing how you would open multiple environment using a shared cache:

    ...
    // Environment references as needed (dog, cats, horses etc)
    Environment dogEnv = null;
    Environment catEnv = null;
    Environment horseEnv = null;
    ...
    
    // Open the Animal subtypes environments (the directories needs to exist)
    try {
         EnvironmentConfig envConfig = new EnvironmentConfig();
         envConfig.setAllowCreate(true);
         envConfig.setSharedCache(true);
         ...
    
         dogEnv = new Environment(new File("/test/animal/dog"), envConfig);
         catEnv = new Environment(new File("/test/animal/cat"), envConfig);
         horseEnv = new Environment(new File("/test/animal/horse"), envConfig);
         ...
    } catch (DatabaseException dbe) {
         ...
    } 
    

    Kind regards
    Andrei

  • Archiver troubleshooting - asking for ideas!

    I have exported the data using archive on our production site and does not try to import into the development. It's Content Server 11.1.1.5 on 64-bit Linux. I removed the other dates of the export.hda file before you import it.

    Currently, I get to 42.10% full and it seems to just stop working. No error message. The bottom of the windows archive said treatment abc123456 of the content item.

    What are the potential problems? How can I find them?

    How can I restart archive in the same place, he stopped processing? (Simply restart seems just to reprocess the entire record and stop once again at the same piece of content.)

    Thank you

    Ken

    The ArchiverReplicationsException component is for the situation where a particular replication fails. In this case, the component allows to set a location where placing the job failed and react for example by sending an e-mail to the admiistrator. This frees up the archiver to continue with the next job. However, if the process simply hangs, I doubt that his absence is the source of your problem.

    If the note indicated by the first response does not help, you will need to study the problem by activating the detailed follow-up. It's slot-> Audit Information System. n the detailed follow-up section, check the box and set check them *, requestaudit and systemdatabase in the field of tracing sections:

    -systemdatabase will tell you what exact query is running when the problem occurs. You can rerun the query, if she seems to be a matter of database as a database lock.

    -entries in requestaudit help you understand how many requests is processed and how long they take. If it is purely a performance problem, it might help.

    -archiver * watch archiver process (it is the trace of archiver comment) archiver so many problems with locks.

    Verbose tracing logs locations differ depending on the version of the server of the University Complutense of MADRID. For 10g, take a look at KM notes 445530.1 and 11 g Watch notes 1309159.1.

    Kind regards
    Frank.

    Published by: Frank Abela on May 28, 2012 10:05

  • Update the metadata of image programmatically

    Hello

    I have developed a plugin that modifies the image exif information (using a third-party program). Is there a way to inform Lightroom programmatically to refresh the image metadata? Right now I have to right click on the folder and choose "synchronize folder...". ».

    There is at least an ODBC driver for SQLLite http://www.ch-werner.de/sqliteodbc/and perhaps command-line access to the database too

    But there is nothing directly through Lightroom, and you will not be able to code Lightroom to update the EXIF data. There is no coding mechanism to write to the EXIF fields or to refresh the image (that is, unfortunately you can't automate metadata > read metadata).

    If you write SQL directly while LR is open, the best you can expect is that the EXIF will use data updates to the database when you click Next on this image in the library. However, you are likely to experience problems of database locking and a good chance of corrupting the database. Abandon all hope, you who enter here?

  • Security HFM

    Hello

    Can we add LDAP user to create and give access rights using the .sec (no services shared) file?

    Thank you
    Fri

    Hello

    Yes, first make sure that you have a configured LDAP, and then to make sure users are connected to this

    Then, you can move to give these users security/access on request of HFM.
    HFM application security is handled through shared services, but it is also stored in. SEC file in the application.

    There is a specific format. File SEC which includes:
    ! FILE_FORMAT
    ! Version

    ! USERS_AND_GROUPS
    => In this part of the users and groups who have access to this HFM application are

    ! SECURITY_CLASSES
    => In this part of security classes are those that are present in HFM tagged metadata to members

    ! ROLE_ACCESS
    -Online this part presents the roles given to users and groups, for HFM, these roles can be create log, database locking, examiner 1, etc.

    ! SECURITY_CLASS_ACCESS
    This part lists the access of each user and group for classes of whatever security they had access.

    After extraction of the existing. You can manually modify the SEC.
    You can give access to the existing LDAP user assistance. File SEC by making entries in the corresponding sections mentioned.
    And then you can load it. SEC file again to the application.

    This charge does not add new users/groups, classes of security, roles, access of safety class and does not remove existing ones.

    See you soon!

    J

Maybe you are looking for

  • Upgrade of computer, Firefox 40.0.02 will work with win 8.1,64 bit?

    My current computer doesn't have enough memory to support Firefox 40.0.02 and I want to move to a system with more RAM. I am interested in a victory of 8.1, computer 64-bit and want to be sure that I will be able to use the latest Firefox. It has all

  • Portege M800 - refund of Windows Vista license but how?

    After that my A100 finally broken I wanted to buy a new laptop (Portege M800). But unfortunately, it comes with Windows Vista and other software that I have any use. According to my interpretation of the license agreement, that I cannot agree to all

  • Network map displays all computers in the company, but I can't access it.

    I just do a fresh install of Win7 Pro 64 bit on my computer here at the office.  When I'm in the file browser, I should be able to click on network and see all the computers in the corporate network. I used to be able to.  Now I have not.  I have the

  • Total N00b question

    Hi guys,. While I'm not new to coding, I'm new to Flash and all things related . I installed Flash Builder 4.5, The Air SDK and Simulator. Now when I want to start a new project I select 'file-> New-> Flex Mobile Project. Then I name the project and

  • I recently changed MacBook Pro with an Air...

    I am willing to spend my account and applications on this computer, but whenever I connect to my account online, that is to say that I am only eligible free trials even if I pay every month for a student package. Does anyone have an idea how to solve