Unusual Error in Threaded Environment

I get a weird error when running my application on a threaded mode. This error however occurs not always but once in a while and that too when I have around 20+ threads. When I have lesser number of threads this error does not occur at all or i could say very very rarely.
any idea guys
I am using 11g instant client and 10g database. and this is how my error message goes.
*** glibc detected *** /home/bala/workspace/OracleTester/OracleTest/Debug/OracleTest: corrupted double-linked list: 0x0845a390 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb61cc3f4]
/lib/tls/i686/cmov/libc.so.6[0xb61ce207]
/lib/tls/i686/cmov/libc.so.6(cfree+0x96)[0xb61ce456]
/opt/oracle/instantclient/instantclient_11_1/libclntsh.so.11.1(sltsmxd+0x34)[0xb68d16b0]
/opt/oracle/instantclient/instantclient_11_1/libclntsh.so.11.1(ltsmxd+0x37)[0xb6904633]
/opt/oracle/instantclient/instantclient_11_1/libclntsh.so.11.1[0xb65e46a1]
/opt/oracle/instantclient/instantclient_11_1/libclntsh.so.11.1(kpufhndl0+0x32a)[0xb65df82a]
/opt/oracle/instantclient/instantclient_11_1/libclntsh.so.11.1(kpufhndl+0x20)[0xb65df4f6]
/opt/oracle/instantclient/instantclient_11_1/libclntsh.so.11.1(kpuspsessionrelease+0x111d)[0xb6eed9e5]
/opt/oracle/instantclient/instantclient_11_1/libclntsh.so.11.1(OCISessionRelease+0xa2)[0xb6d84086]
and here is my code
Environment* Genv1; // OCCI environment
Connection* Gcon1; // OCCI connection
int const MAX = 50;
void openConcurrentConnections(void _tgtObject);
int main(){
int iRetVal;
pthread_t thread[MAX];
pthread_attr_t attr;
void *status;
Genv1 = Environment::createEnvironment(Environment::THREADED_MUTEXED);
/* Initialize and set thread detached attribute */
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
for(int i =0 ;i<MAX;i++){
iRetVal = pthread_create(&thread, &attr, openConcurrentConnections, (void *)i);
if (iRetVal) {
printf("ERROR; return code from pthread_create()is %d\n", iRetVal);
exit(-1);
/* Free attribute and wait for the other threads */
pthread_attr_destroy(&attr);
for(unsigned short int t=0; t< MAX; t++) {
iRetVal = pthread_join(thread[t], &status);
// delete all filereader pointers and set the variable to NULL
if (iRetVal) {
printf("ERROR; return code from pthread_join()is %d\n", iRetVal);
exit(-1);
printf("Main: completed join with thread %d having a status of %ld\n",t,(long)status);
Genv1->terminateEnvironment(Genv1);
printf("Main: program completed. Exiting.\n");
pthread_exit(NULL);
void openConcurrentConnections(void _tgtObject){
Gcon1 = Genv1->createConnection("Ecologital","123","//192.168.1.11:1521/Neurologik");
cout << "oracle connection OPENED" << endl;
Genv1->terminateConnection(Gcon1);
cout << "oracle connection CLOSED" << endl;
pthread_exit((void*) _tgtObject);

Hi,
Have you tried running something like valgrind against this?
Regards,
Mark

Similar Messages

  • Error in setting environment variable

    hi
    Please note JKit is where my jdk1.3 is stored(i.e instead of jdk1.3 folder its JKit folder)... i have gone thru the similar threads but with no success.
    SET
    PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;D:\Jkit\bin;D:\Jkit\lib;D:\Oracle\bin;"C:\PROGRAMFILES\ORACLE\JRE\1.1.7\BIN";D:\JKit\Jre\Bin;
    SET PATH=%PATH%;C:\PROGRA~1\COMMON~1\AUTODE~1;
    SET CLASSPATH=c:\JavaWebServer2.0\lib\servlet.jar;c:\JKit\lib;
    SET CATALINA_HOME=D:\tomcat\jakarta-tomcat-4.1.29;
    SET JAVA_HOME=D:\Jkit;
    The error i get after running autoexec.bat and then tomcat/bin/startup is as follows..
    The CATALINA_HOME environment variable is not defined
    This environment variable is needed to run this program
    please HELP!!.THANKS

    Hi
    Very many thanks for ur solution.. i actually hadset the environment variables spacce..but when i execute the autoexec.bat file i dont get any error(out of env space)..but when i run the startup.bat file i get from the command prompt, i get the foll error.
    This is my Autoexec.bat
    SET JAVA_HOME=D:\Jkit\bin
    SET CATALINA_HOME=D:\tomcat\jakarta-tomcat-4.1.29\bin
    SET PATH=D:\Jkit\bin;C:\WINDOWS;C:\WINDOWS\COMMAND;
    SET PATH=%PATH%;C:\PROGRA~1\COMMON~1\AUTODE~1;
    THE FOLLOWING IS THE ERROR I GET WHEN I RUN STARTUP.BAT UNDER TOMCAT'S BIN UNDER THE COMMAND PROMPT
    D:\tomcat\jakarta-tomcat-4.1.29\bin>startup
    Syntax error
    Out of environment space
    Out of environment space
    Out of environment space
    Using CATALINA_BASE: D:\tomcat\jakarta-tomcat-4.1.29
    Using CATALINA_HOME: D:\tomcat\jakarta-tomcat-4.1.29
    Using CATALINA_TMPDIR: D:\tomcat\jakarta-tomcat-4.1.29\temp
    Using JAVA_HOME: D:\Jkit
    Out of environment space
    Out of environment space
    Invalid switch - -DJAVA.ENDORSED.DIRS=D:\TOMCAT\JAKARTA-TOMCAT-4.1.29\COMMON\ENDORSED
    I even set JAVA_HOME AND CATALINE_HOME to the \bin dir respectively..
    still i get the same error
    As given under the tomcat installation documentation (RUNNING.txt), i set the space for environment space under the Memory tab, for startup and shutdown.bat files, it creates a shortcut for running the resp .bat files, running startup.bat file i get,CATALINA_HOME VAR HAS NOT BEEN SET PROPERLY, THIS OCCURS FOR BOTH TOP LEVEL DIR SETTING AND /bin DIR SETTING of CATALINE_HOME IN autoexec.bat
    PLEASE HEL, I HAVE BEEN TRYING TO CONFIGURE IT FOR THE PAST DAYS BUT WITH NO SUCCESS, DONT KNOW WHERE I AM GOING WRONG..PLEASE HELP

  • Error starting thread: Not enough storage is available to process...

    Hi all,
    We are seeing server going down frequently with below exception:
    [ERROR][thread ] Failed to start new thread
    [2010-04-08 14:36:54,046][ERROR][com.astrazeneca.portal.rss.ContentTransformer] - Error processing item:null
    ; SystemID: http://beaa.astrazeneca.net:10002/NewsBroker/resources/newsToRss.xsl; Line#: 21; Column#: 128
    javax.xml.transform.TransformerException: java.lang.Error: Error starting thread: Not enough storage is available to process this command.
         at org.apache.xalan.extensions.ExtensionHandlerJavaPackage.callFunction(ExtensionHandlerJavaPackage.java:403)
         at org.apache.xalan.extensions.ExtensionHandlerJavaPackage.callFunction(ExtensionHandlerJavaPackage.java:426)
         at org.apache.xalan.extensions.ExtensionsTable.extFunction(ExtensionsTable.java:220)
         at org.apache.xalan.transformer.TransformerImpl.extFunction(TransformerImpl.java:437)
         at org.apache.xpath.functions.FuncExtFunction.execute(FuncExtFunction.java:199)
         at org.apache.xpath.XPath.execute(XPath.java:268)
         at org.apache.xalan.templates.ElemVariable.getValue(ElemVariable.java:279)
         at org.apache.xalan.templates.ElemVariable.execute(ElemVariable.java:247)
    I have a weblogic support SR open and they suggested to add -XXtlaSize and -XXlargeObjectLimit to our JVM parameter. With these parameters, we are getting below error in Windows frequently:
    Reporting queued error: faulting application java.exe, version 1.5.0.11, faulting module jvm.dll, version 27.3.1.1, fault address 0x0014b442.
    I have seen few threads on Sun forum, but answer was not posted there. Details of our environment are as below:-
    JVM : JROCKIT 1.5.0.11
    OS : Windows 2003
    Application Server : Weblogic 10
    Any inputs or pointers will be highly appreciated as this is a bit urgent for me...
    Thanks & Regards,
    Sanjeev

    Hi Henrik,
    I am running Weblogic with below parameters now:
    -Xnohup -Xms:1536m -Xmx:1536m -XXtlaSize:min=32k,preferred=768k -XXlargeObjectLimit:32K
    Weblogic crashed again with below dump:
    ===== BEGIN DUMP =============================================================
    JRockit dump produced after 0 days, 07:17:18 on Fri May 07 15:26:16 2010
    Additional information is available in:
    E:\PortalLIVDomaina\jrockit.5772.dump
    E:\PortalLIVDomaina\jrockit.5772.mdmp
    If you see this dump, please open a support case with BEA and
    supply as much information as you can on your system setup and
    the program you were running. You can also search for solutions
    to your problem at http://forums.bea.com in
    the forum jrockit.developer.interest.general.
    Error Message: Illegal memory access. [54]
    Exception Rec: EXCEPTION_ACCESS_VIOLATION (c0000005) at 0x005148AF - memory at 0x00000000 could not be written.
    Minidump : Wrote mdmp. Size is 1406MB
    SafeDllMode : -1
    Version : BEA JRockit(R) R27.3.1-1_CR344434-89345-1.5.0_11-20070925-1628-windows-ia32
    GC Strategy : Mode: throughput. Currently using strategy: genparpar
    GC Status : OC currently running, in phase: sweeping. This is OC#3000.
    : YC is not running. Last finished YC was YC#9937.
    OC History : Strategy genparpar was used for OC#1.
    : Strategy singleparpar was used for OC#2.
    : Strategy genparpar was used for OC#3 to OC#3000.
    YC History : Ran 11 YCs before OC#2996.
    : Ran 18 YCs before OC#2997.
    : Ran 11 YCs before OC#2998.
    : Ran 8 YCs before OC#2999.
    : Ran 1 YCs before OC#3000.
    Heap : 0x00900000 - 0x60900000
    Compaction : 0x06900000 - 0x0C900000
    Could you please provide some input on this?
    Thanks,
    Sanjeev

  • Error: Java Runtime Environment seems to be already installed

    Hi
    I have been trying to install VDI core on Linux(Centos - 5.5 64 Bit) but unable to do so because of the error Common agent container is not installed on this system. I have checked and found that the cacao 2.2 is installed on the server but the service is unable to start during the OS boot up. I have tried all the possible ways to re-install but got no luck.
    So Finally got another box with solaris 10 update 9 running on Intel. Even this one is not letting me continue the installation. I was getting the below error when trying to install the VDI.
    As the below error seeems to be something related to the java, i tried removing the java packages. But still unable to get the installation up and running fine.
    bash-3.00# ./vda-install
    Oracle Virtual Desktop Infrastructure 3.3 Installation
    ./.install/vda-install-java: ./.install/vda-install-srs: cannot execute
    Error: Java Runtime Environment seems to be already installed.
    Any quick would be appreciated.
    Thanks

    I hope this thread isn't dead, because I have nearly the identical message to the previous poster and was hoping to find out how you got around the error. Any luck?
    bash-3.2# ./vda-install
    Oracle Virtual Desktop Infrastructure 3.3 Installation
    Error: Java Runtime Environment seems to be already installed.
    bash-3.2#
    bash-3.2# uname -a
    SunOS unknown 5.10 Generic_147441-01 i86pc i386 i86pc
    bash-3.2# java -version
    java version "1.6.0_26"
    Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
    Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode)
    Edited by: 921613 on Mar 17, 2012 1:00 PM
    Edited by: 921613 on Mar 17, 2012 1:01 PM

  • Multiple Containers read/write access in multi-threaded environment

    I'm been reading the Berkeley DB XML Transaction Processing document and have a few questions. I have a multi-threaded environment (not multi-process).
    1) In the "Summary and Examples" section, there is an example of several worker threads that perform many writes to a shared container. The one container is passed to all the worker threads, rather them having their own instance of the container. In my application, I could potentially have multiple worker threads acting on the same container, is it better to provide some type of connection pool, so each thread has access to the same container? Is their a problem with each thread creating a new instance of the container and writing to that? Is their pros and cons to each approach?
    2) In some specific web applications, they only require read-access and have no intention of writing to the database. If the environment was created with transactions, can these applications open the environment in read-only mode, so as to not suffer the performance penalty of using transactions? Or do they still require transaction support since other threads in other applications might be writing to it. Is it better in this case to
    3) Is there any decent connection pooling framework that work well with BDB XML? If transactions are involved, it seems pretty important to always close the container once you are finished with it, which kind of defeats the purpose of pooling. I see a container somewhat analogous to a JDBC transaction, where in connection pooling these transactions remain open, but in BDB XML, it doesn't seem like this is good practice. So clarification here would be appreciated.
    Thanks in advance...
    Chris

    Chris,
    I'd be careful about trying to draw too many analogies with other sorts of systems. In many ways BDB XML is simpler -- it's just a library, no server process.
    An open container is analogous to an open file handle/descriptor in your operating system. It can safely be shared by all threads within a given process. In fact, you should not create more than one -- while that works, it can just be confusing, and a source of errors (for example, if you use a different path to open the container each time, you'll have problems). So by all means share them. Most Java applications just point them in a class that is accessible to all threads.
    Other objects that can, and should be shared among threads include:
    Environment
    XmlManager
    XmlQueryExpression
    Most others should not. You also mention closing your containers -- there is no reason to close your active container objects until your application needs to shut down. A long-running application will want to use db_checkpoint (or equivalent) to ensure that modified pages are flushed from the transaction log to the database files, but that's about it.
    As for concurrency, you obviously need transactions for concurrent write operations. If you want concurrent read access to the same containers, they should use transactions as well. Even if you don't explicitly use transactions, locks are always taken on pages in transactional containers. You cannot open the same container transactionally and not transactionally at the same time -- bad things could happen.
    Depending on your performance needs, you could using snapshot concurrency, and see how it works for you. While locking does incur some overhead, it may be acceptable.
    You mention creating your own "snapshot" of a container and running read-only on that copy. That's possible to do, but you have to be careful of how you create the snapshot (following hot backup procedures). Also, if you intend to open that "new" container in the same environment or application as the old one, you need to run a program on it to change its internal identification so Berkeley DB won't think it's the same file. That is, you can't just copy a container file to a new name and just open it like it's a new container if it's still in the vicinity of the original. See the -r option for the db_load program.
    Now that you are probably really confused, good luck!
    Regards,
    George

  • Error while Configuring  environment parameters

    Hi,
    I am installling Oracle Utilities Business Intelligence 2.3.2 version . I am getting error while configuring Environment Paramameters
    Database- Oracle 11g R2
    OS- Windows Server 2008
    1. Environment Description
    Environment Description: DEV01
    2. Business Application Server Configuration
    Business Server Host: 01HW342889
    WebLogic Server Name: myserver
    Business Server Application Name: SPLService
    MPL Admin Port Number: 6502
    MPL Automatic startup: false
    3. Web Application Server Configuration
    Web Server Host: 01HW342889
    Web Server Port Number: 6500
    WebLogic SSL Port Number: 6501
    Web Context Root: ouaf
    WebLogic JNDI User ID: systemjndi
    WebLogic JNDI Password: ENC(tEky0TX65m0nDNIlnX
    CcwlbnXl2b1kMnvE8DD0wfI1Y=)
    WebLogic Admin System User ID: {3DES}gg8gG+5N+gwJBPWG
    IhRRuQ==
    WebLogic Admin System Password: {3DES}gg8gG+5N+gwJBPWG
    IhRRuQ==
    WebLogic Server Name: myserver
    Web Server Application Name: SPLWeb
    Application Admin User ID: appladmin
    Application Admin Password: ENC(OrIg4HyDLxi2kQ6uSs
    cBz4cubUr2U5BbRl75SY2pP6Q=)
    Expanded Directories: false
    Application Viewer Module: true
    4. Database Configuration
    JDBC Name: oubi-jdbc
    MPL Database User ID: SPLADMV2
    MPL Database Password: ENC(mfG7quacTagw5qEvov
    oaQIRpnogRvroY4NcXp6WZCZo=)
    XAI Database User ID: SPLADMV2
    XAI Database Password: ENC(tNfRJUthvYQR990TzW
    314nXU+5jWBuYBDs5AgT5qG7g=)
    Batch Database User ID: SPLADMV2
    Batch Database Password: ENC(L5BXr/lXp/riShr9Lp
    kFDsgUIjDm5I6TJU5Suz0Wy/k=)
    JDBC Database User ID: SPLADMV2
    JDBC Database Password: {3DES}L43JfrbOrCtupkwm
    4I/Adw==
    Database Name: DEV1
    Database Server: 01HW342889
    Database Port: 1701
    ONS Server Configuration:
    Database Override Connection String:
    Oracle Client Character Set NLS_LANG: AMERICAN_AMERICA.UTF8
    5. General Configuration Options
    Batch RMI Port: 6509
    Batch Mode: CLUSTERED
    Coherence Cluster Name: OUBICLUSTER1
    Coherence Cluster Address: 172.25.138.45
    Coherence Cluster PORT: 6508
    Coherence Cluster Mode: dev
    Each item in the above list should be configured for a successful install.
    Choose option (1,2,3,4,5, <P> Process, <X> Exit): P
    --> Calculating additional variables ... done.
    --> Writing variables to E:\OUBI2\ouaf\temp\FW.V4.0.2\tmp\2011-06-10-0954\ENVIRO
    N.INI ... done.
    Can't open E:\OUBI2\ouaf\temp\FW.V4.0.2\install_FW_E:\OUBI2\ouaf\DEV01.log for o
    utput at E:\OUBI2\ouaf\temp\FW.V4.0.2\data\bin\perllib/SPL/splLog.pm line 190.
    "ERROR - Detected while running install.plx."
    Thks,
    Mohan

    This is a common error people get when configuring Repository Service in Admin Console...
    Main reason for this is that there is an incompatible bit versions of Oracle Database and Informatica Server and windows. Try to reinstall Oracle DB or Infa Server and tryconfiguring the same it will work
    Or it could be parameter issues if it is linux...
    Please mark helpful this post

  • Static methods in multi-thread environment.

    Sorry for this silly question, but I have no clue...
    If you're using classes with static methods in a application server environment, would that imply all threads use that same 'one in the jvm' method and would there be a possibility for performance loss?
    Is calling another static method from a static method a good idea in a multi-thread environment, with respect to performance? Somehow I seem to get this java.lang.NoClassDefFoundError. Any ideas? The classes are in the same package. I only get these kind of problems calling static methods from static methods in a multi-thread environmnent. The static methods are pure utility functions and of course do not use class state.
    Thanks for your help.

    Sorry for this question, wasn't thinking straight. I have the answer, won't post question on multiple forums.

  • Application Error : Monty Thread 10 in Nokia 6600

    hai
    I Application accessing Http connections and using RecordStores ,its Working fine in nokia series 60 emulator , but when i am trying to work with nokia 6600 i got an error message Application Error : Monty Thread 10
    Any one can help me regarding this
    ravi varma

    See the answers from here: http://www.j2meforums.com/forum/index.php?topic=11363.0
    Mihai

  • Error 38 "thread.cpp line 1938" failure during an application execution

    I made a Labview6.1 based application that handle serial communication with six RS-232 ports. The program is intended to run 24 hours a day. After around 2 days of execution an error occurs. Here the reference:
    Error 38
    thread.cpp line 1938
    What can be the root cause of this failure?
    I'm pretty sure it's not lack of memory/CPU.

    Hi Mao,
    Be sure that all the threads you oppened are all closed.
    For example if you put an "open VI reference" don't forget to put the "close reference" at the end of the task.
    Hope it helps!
    Best regards,
    G Liagre
    Best regards,
    G Liagre

  • SIGBUS 10 bus error" & "Inconsistent thread : best efforts attempt (may fail)

    We are using Weblogic 5.1 (no service pack installd) on SUN Solaris.
    Suddenly weblogic server was down & in log file
    we found the "SIGBUS 10 bus error" & "Inconsistent thread : best efforts
    attempt (may fail)" errors (see below for full errors in log file).
    We have executeThreadCount=100 in properties file.
    Is it known problem/bug with solaris?
    thanks,
    -ravi
    Tue Jun 06 15:30:55 PDT 2000:<E> <ServletContext-General> Cannot find
    resource 'javascript/stub.rmf' in document root
    '/qa/weblogic/p4root/website/htdocs-portal'
    SIGBUS 10 bus error
    si_signo [10]: BUS
    si_errno [0]:
    si_code [1]: BUS_ADRALN [addr: 0xd81eb71d]
    stackpointer=C99D0D80
    Inconsistent thread : best efforts attempt (may fail)
    "Thread-36" (TID:0x4e92320, sys_thread_t:0x4e92258, state:CW, thread_t:
    t@202, threadID:0xc8ae1dd8, stack_bottom:0xc8ae2000, stack_size:0x20000)
    prio=5
    [1] java.lang.Object.wait(Object.java:424)
    [2] javax.mail.EventQueue.dequeue(EventQueue.java:73)
    [3] javax.mail.EventQueue.run(EventQueue.java:93)
    [4] java.lang.Thread.run(Thread.java:478)
    Inconsistent thread : best efforts attempt (may fail)
    "SeedGenerator Thread" (TID:0x4994508, sys_thread_t:0x4994440, state:CW,
    thread_t: t@118, threadID:0xc8ab1dd8, stack_bottom:0xc8ab2000,
    stack_size:0x20000) prio=1
    [1] java.lang.Object.wait(Object.java:424)
    [2] sun.security.provider.SeedGenerator.run(SeedGenerator.java:107)
    [3] java.lang.Thread.run(Thread.java:479)
    Inconsistent thread : best efforts attempt (may fail)
    "SSLListenThread" (TID:0x4381688, sys_thread_t:0x43815c0, state:R, thread_t:
    t@114, threadID:0xc8b41dd8, stack_bottom:0xc8b42000, stack_size:0x20000)
    prio=5
    [1] java.net.PlainSocketImpl.socketAccept(Native Method)
    [2] java.net.PlainSocketImpl.accept(PlainSocketImpl.java:406)
    [3] java.net.ServerSocket.implAccept(ServerSocket.java:238)
    [4] java.net.ServerSocket.accept(ServerSocket.java:223)
    [5]
    weblogic.security.SSL.SSLServerSocket.acceptNoHandshake(SSLServerSocket.java
    :121)
    [6] weblogic.security.SSL.SSLServerSocket.accept(SSLServerSocket.java:112)
    [7] weblogic.t3.srvr.ListenThread.run(ListenThread.java:226)

    Hi Steve,
    We are also not getting that error on NT. We are not getting SIGBUS error
    at particular point/place. Randomly (approx after 30 min)
    the server will give this SIGBUS error & shutdowns.
    I tried with -native option with JAVA VM also. Still we are getting the same
    error.
    We are using ORACLE8.1.5 with Weblogic's OCI driver.
    I feel this problem may be related to "jdk1.2.2_05a" on Solaris!!
    Weblogic guys: Will weblogic supports jdk1.2.2_05a on Solaris?
    thanks
    -ravi
    Steve Rogers <[email protected]> wrote in message
    news:[email protected]...
    Ravi, I am developing on WL 4.5.1 and solaris 2.6 with SIGBUS 10 erroralso
    (I also have jdk 1.2.2_05a) I do NOT think it has anything to do withthis,
    java always runs with -native on, infact you cannot turn it off. I am
    using HTMLkona, and getting this (from the thread dump) in
    weblogic.html.OptionElement.
    Do you know where yours is coming from?
    I have been hacking at this for 3 days, and have submitted to
    [email protected] as well. I still cannot figure out why this happens. The
    really strange thing is, it WORKS on Windows NT.
    Please respond, maybe we can help each other solve this problem.
    Thanks
    Steve Rogers
    [email protected]
    "Ravi Kumar.T" <[email protected]> wrote in message
    news:[email protected]...
    We are using Weblogic 5.1 (no service pack installd) on SUN Solaris.
    Suddenly weblogic server was down & in log file
    we found the "SIGBUS 10 bus error" & "Inconsistent thread : best efforts
    attempt (may fail)" errors (see below for full errors in log file).
    We have executeThreadCount=100 in properties file.
    Is it known problem/bug with solaris?
    thanks,
    -ravi
    Tue Jun 06 15:30:55 PDT 2000:<E> <ServletContext-General> Cannot find
    resource 'javascript/stub.rmf' in document root
    '/qa/weblogic/p4root/website/htdocs-portal'
    SIGBUS 10 bus error
    si_signo [10]: BUS
    si_errno [0]:
    si_code [1]: BUS_ADRALN [addr: 0xd81eb71d]
    stackpointer=C99D0D80
    Inconsistent thread : best efforts attempt (may fail)
    "Thread-36" (TID:0x4e92320, sys_thread_t:0x4e92258, state:CW, thread_t:
    t@202, threadID:0xc8ae1dd8, stack_bottom:0xc8ae2000, stack_size:0x20000)
    prio=5
    [1] java.lang.Object.wait(Object.java:424)
    [2] javax.mail.EventQueue.dequeue(EventQueue.java:73)
    [3] javax.mail.EventQueue.run(EventQueue.java:93)
    [4] java.lang.Thread.run(Thread.java:478)
    Inconsistent thread : best efforts attempt (may fail)
    "SeedGenerator Thread" (TID:0x4994508, sys_thread_t:0x4994440, state:CW,
    thread_t: t@118, threadID:0xc8ab1dd8, stack_bottom:0xc8ab2000,
    stack_size:0x20000) prio=1
    [1] java.lang.Object.wait(Object.java:424)
    [2] sun.security.provider.SeedGenerator.run(SeedGenerator.java:107)
    [3] java.lang.Thread.run(Thread.java:479)
    Inconsistent thread : best efforts attempt (may fail)
    "SSLListenThread" (TID:0x4381688, sys_thread_t:0x43815c0, state:R,thread_t:
    t@114, threadID:0xc8b41dd8, stack_bottom:0xc8b42000, stack_size:0x20000)
    prio=5
    [1] java.net.PlainSocketImpl.socketAccept(Native Method)
    [2] java.net.PlainSocketImpl.accept(PlainSocketImpl.java:406)
    [3] java.net.ServerSocket.implAccept(ServerSocket.java:238)
    [4] java.net.ServerSocket.accept(ServerSocket.java:223)
    [5]
    weblogic.security.SSL.SSLServerSocket.acceptNoHandshake(SSLServerSocket.java
    :121)
    [6]weblogic.security.SSL.SSLServerSocket.accept(SSLServerSocket.java:112)
    [7] weblogic.t3.srvr.ListenThread.run(ListenThread.java:226)

  • Need to resume task sequence after unplanned reboot - Error Task Sequence environment not found

    The task sequence in SCCM 2012 R2 is being used to deploy a Hyper-V host on Windows Server 2012 R2.
    When installing the Hyper-V role, we have a intermittent issue where after the restart, the TRUSTEDINSTALLER installs a kernel driver (vmswitch.sys) and then restarts the system while the SCCM engine is waiting for the SCCM client to initialize.
    This breaks the TSE and it throws the error "Task Sequence Environment not found" a few minutes later.
    Does anyone know of any way to RESUME the task sequence, or to set the TSEnv.dat back to a clean state that will allow it to resume the TS? I am thinking about configuring an AutoLogon/Logon script that will check try and recover & resume these failures.
    ALTERNATELY, does anyone know how to prevent the Trusted Installer from rebooting on Windows Server 2012 R2?
    SMSTS.log
    _SMSTSReturnToGINA variable set to true TSManager 4/15/2014 4:01:57 PM 2220 (0x08AC)
    Waiting for CcmExec service to be fully operational TSManager 4/15/2014 4:01:57 PM 2220 (0x08AC)
    Succeeded loading resource DLL 'C:\WINDOWS\CCM\1033\TSRES.DLL' TSManager 4/15/2014
    4:01:58 PM 2220 (0x08AC)
    Failed to set log directory. Some execution history may be lost.
    The system cannot find the file specified. (Error: 80070002; Source: Windows) OSDSetupHook 4/15/2014 4:05:33 PM 1912 (0x0778)
    Executing task sequence OSDSetupHook 4/15/2014 4:05:33 PM 1912 (0x0778)
    Task Sequence environment not found. OSDSetupHook 4/15/2014 4:05:33 PM 1912 (0x0778)
    EventLog
    Log Name:      System
    Source:        User32
    Date:          4/15/2014 4:03:07 PM
    Event ID:      1074
    Task Category: None
    Level:         Information
    Keywords:      Classic
    User:          SYSTEM
    The process C:\WINDOWS\servicing\TrustedInstaller.exe (COMPUTER1) has initiated the restart of computer COMPUTER1on behalf of user NT AUTHORITY\SYSTEM for the following reason: Operating System: Upgrade (Planned)
     Reason Code: 0x80020003
     Shutdown Type: restart
    Levi Stevens | Technical Consultant Dell Services

    Use sc command to put Windows Module Installer to disabled in your script after Enabling Hyper-v Role. When the system completely restarts, change it to Manual or Automatic.
    Note: I have not tested it, it is just my thought, if it does not work or something unexpected happens, it means your issue cannot be fixed this way.
    Juke Chou
    TechNet Community Support

  • Static memberfunctions in threaded environment.

    How does static member functions behave in threaded environment? Do we have to do synchronize explicitly?
    Ex:
    Calss A{
         Public A(){ };
    public static Vector getData()
         // Read data into a Vector object
         return vector object;

    I think it depends on the senario. The main purpose of a static method is that any class can use it for similar function without initializing an object of the class that contains the method. It does not prevent threads from creating undesirable results. So, I guess synchronization is still necessary. But if you are using it to return some private static fields which will not be changed by any thread, then it won't be necessary to synchronize it.
    PC

  • SIGBUS 10 bus error Inconsistent thread

    Getting the SIGBUS 10 bus error Inconsistent thread randomly when running
    the server.
    Having read all the discussions it seems as if JDK 1.2.1_03 is the
    latest version of the JDK that will prevent this problem from arizing.
    Does anyone know any other fixes to the SIGBUS 10 bus error apart from reverting
    to JDK 1.2.1_03?
    Thanks
    Our Configuration:
    JDK 1.2.2_05a
    Solaris 2.7
    Weblogic 5.7 servicepack 4

    So far so good...
    Added the
    JVMARGS="inline_instrs_jit=0" export JVMARGS
    directive to startWebLogic.sh on 10/2/00 and have not seen any of the random core dumps we were experiencing before that.
    JDK 1.2.2_05a
    Solaris 2.7
    Weblogic 5.7 servicepack 4
    "Jesus M. Salvo Jr." <[email protected]> wrote:
    I can only tell you that it fixed our problem on this configuration:
    Solaris Sparc SunOS 2.7 (with all the Solaris patches required for
    JDK1.2.2_005a)
    JDK1.2.2_005a
    WLS 5.1 + SP5
    .... and JVMARGS is not a Java system property so using it with java -D
    will definitely not work.
    .... and we placed the code:
    JVMARGS="inline_instrs_jit=0"
    export JVMARGS
    .... within startWebLogic.sh ( near the top where all the other env.
    variables were declared ) to make the directive work.
    John Salvo
    Roberto Nanamura wrote:
    Hi,
    I am having the same problem but I set the JVMARGS in the command line like:
    java -D_JVM_ARGS="inline_instrs_jit=0" ....
    and it did not work.
    Now I going to use the:
    JVMARGS="inline_instrs_jit=0"
    export JVMARGS
    as suggested in the BEA page.
    Can you confirm that adding these lines to startWebLogic.sh file will fix the
    problem?
    Thanks in advance,
    Roberto N Nanamura
    Technical Consultant
    Summa Technologies
    "Jesus M. Salvo Jr." wrote:
    We also experienced this, with the following config:
    Solaris 2.7
    JDK 1.2.2_005a
    WLS 5.1 + SP5
    The workaround in our case was to include the JVMARGS directive
    specified in BEA's platform support document.
    John Salvo
    mic murphy wrote:
    Thanks Kumar, have you the Sun bug number for this?
    Kumar Allamraju <[email protected]> wrote:
    We already reported this problem to sun.
    The workaround is to turn-off JIT
    Kumar
    mic murphy wrote:
    Getting the SIGBUS 10 bus error Inconsistent thread randomly when running
    the server.
    Having read all the discussions it seems as if JDK 1.2.1_03 is the
    latest version of the JDK that will prevent this problem from arizing.
    Does anyone know any other fixes to the SIGBUS 10 bus error apart from reverting
    to JDK 1.2.1_03?
    Thanks
    Our Configuration:
    JDK 1.2.2_05a
    Solaris 2.7
    Weblogic 5.7 servicepack 4

  • Using store.sync in threaded environment

    Dear All,
    I just wanted to know what will happen during this condition.
    I have been using berkeley DB java edition for a while.
    I have this environment set
    private Environment myEnv;
    private EntityStore store;
    private PrimaryIndex pk;
    private SecondaryIndex sk;
    EnvironmentConfig myEnvConfig = new EnvironmentConfig();
    myEnvConfig.setAllowCreate(true);
    myEnvConfig.setSharedCache(true);
    myEnv = new Environment(envHome, myEnvConfig);
    StoreConfig storeConfig = new StoreConfig();
    storeConfig.setAllowCreate(true);
    storeConfig.setDeferredWrite(true);
    store = new EntityStore(myEnv, storeName, storeConfig);
    As you can see I have set deferredwrite as true .
    Due to this I have to use sync.store whenever inserts and delete take place.
    I have threaded environment . I just wanted to know .
    Due to the above setting during inserts and delete happening in together will my berkeley db cache ever get corrupted .
    I have not yet seen any issue .
    Is there by any chance cache would be corrupted. Please update me on this
    Regards
    Ashwin

    Ashwin,
    When you use deferred write, you are (a) running without transactions, and (b) reducing your durability guarantee. That is, if the environment goes down, you might lose some portion of the operations you were doing with deferred write.
    (b) only applies when the environment crashes and restarts. I think that you are asking about concurrent reads to the deferred write database while the environment is up. In that case, the issues you have to think about are the same as with regular non-transactional updates. Because you are not using transactions, there is a chance that a reading thread will see data that is logically inconsistent. For example, since you have secondary indices, an insert into the store will result in an insert both into the primary and the secondary index. Since the insert is non transactional, those two updates are not atomic, and another thread may happen to read the primary before the secondary index insert has completed.
    However, you should never see a data record that is physically corrupt. Each data record will be correct, which considered on its own.
    Regards,
    Linda

  • DB_LOCK_DEADLOCK: Using BerkeleyDB Xml in a threaded environment

    Hello,
    I'm having problems running a Berkeley DB application in a threaded environment. In summary, this is what I'm doing:
    I implemented the following class:
    ref class MyTestClass
    private:
         DbEnv* env;
         XmlManager* man;
         unsigned int ctr;
    public:
         MyTestClass()
              ctr = 0;
              env = new DbEnv(0);
              env->set_cachesize(0, 64*1024, 1);
              env->set_lk_max_lockers(1000);
              env->set_lk_max_locks(1000);
              env->set_lk_max_objects(1000);
              env->open("c:\\temp\\SampleDb",
    DB_CREATE | DB_INIT_LOCK | DB_INIT_LOG |
    DB_INIT_MPOOL | DB_INIT_TXN | DB_THREAD | DB_PRIVATE, 0);
              man = new XmlManager(env, DBXML_ALLOW_AUTO_OPEN);
         void MyTestWriter()
              while(true)
                   DbXml::XmlQueryContext *ctx;
                   DbXml::XmlTransaction *txn;
                   DbXml::XmlResults *res;
                   try
                        ctx = new XmlQueryContext(man->createQueryContext(XmlQueryContext::LiveValues, XmlQueryContext::Lazy));
                        txn = new XmlTransaction(man->createTransaction());
                        res = new XmlResults(man->query(*txn, "for $v in collection('test.dbxml')/sessions return insert nodes <A/> into$v", *ctx, DB_RMW));
                        txn->commit(DB_TXN_SYNC);
                   catch(XmlException& e)
                   finally
                        delete res;
                        delete txn;
                        delete ctx;
         void DeadlockUnblocker()
              while(true)
                   int ret;
                   env->lock_detect(0, DB_LOCK_DEFAULT, &ret);
                   Sleep(5000);
    Basically I create a shared MyTestClass object and then spawn 4 threads: 3 of them execute the MyTestWriter method and 1 executes the DeadlockUnblocker method.
    What happens is that the 3 threads block even before completing the first write. After 5 seconds the DeadlockUnblocker is executed and 1 thread is unblocked and throws a "DB_LOCK_DEADLOCK: Locker killed to resolve a deadlock" which is trapped by my catch block. However, the other threads are still hanging on the execution and the entire flow of the application is stopped.
    Anybody can tell me what I'm doing wrong ??
    Thanks
    Matteo

    Matteo,
    First, the C++ API works best if you avoid new/delete of Xml* objects. There are relatively few cases where that's necessary. Using scoped objects ensures their destruction.
    As for your hang the best tool to use is "db_stat -CA" in the environment directory at the time of the hang to find out what is going on. You'll have to not use DB_PRIVATE in the DbEnv::open() flags for it to work. While a deadlock thread is reasonable if you expect a lot of deadlocks (and concurrent write will do that) it is best to use DbEnv::set_lk_detect() to get immediate detection.
    Regards,
    George

Maybe you are looking for

  • Win 8.1 Pro Key Problem or not ?

    Okay so i just brought a new  computer with win 8.1 pro  Installed windows when it asked for the key i tried to type the numbers that where on the blue folder thingy i had win8 cd in an it wouldent let me use the number 0  so i couldent do any thing.

  • How to get tag group name?

    Hi experts, I am new in PCO Queries. I have requirement of fetching Tagname , Description and TagGroup name from OPC and  insert into Sybase db table. how can I write the PCO Query to fetch tag's  group name and tag description . Tagnames are configu

  • Kindle single-folio apps?

    Is it still not possible to build single-folio apps for Kindle? (And Android in general?) I'm assuming that hasn't changed but haven't paid attention. If not possible, is it on the horizon? (Is it a Kindle Store issue, or a viewer builder issue? Assu

  • BDC for change customer(XD02)

    Friends, Actually I need to write a BDC to chnage the customer telephone numbers in XD02, but strange that it doesn't get recorded in SHDB properly. How to change the existing telephone numbers as they are in the table control and no function code is

  • No drop box support??

    Any way to leverage the updated export options in conjunction with dropbox??