Native deadlock in PrintStream?
I've been working on a multi-threaded application where multiple threads are sending output to System.out. I've found what appears to be a native call that deadlocks on occassion, and I'm wondering if I might be doing something wrong.
I'm running JDK 1.4.1, Windows XP Pro
I doubt that it matters, but I'm running inside the Eclipse development environment.
Here is the stack trace of the deadlock:
Thread [WaitThread3] (Suspended)
java.io.FileOutputStream.writeBytes(byte[], int, int) line: not available [native method] [local variables unavailable]
java.io.FileOutputStream.write(byte[], int, int) line: 257
java.io.BufferedOutputStream.flushBuffer() line: 69
java.io.BufferedOutputStream.flush() line: 127
java.io.PrintStream.write(byte[], int, int) line: 260
sun.nio.cs.StreamEncoder$CharsetSE.writeBytes() line: 334
sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer() line: 402
sun.nio.cs.StreamEncoder$CharsetSE(sun.nio.cs.StreamEncoder).flushBuffer() line: 113
java.io.OutputStreamWriter.flushBuffer() line: 169
java.io.PrintStream.write(java.lang.String) line: 305
java.io.PrintStream.print(java.lang.String) line: 448
java.io.PrintStream.println(java.lang.String) line: 585
TestMultiThreadSystemOut$WaitThread.run() line: 37
and here is some sample code to reproduce:
import java.util.Random;
* @author Kevin Day
* A class used to reproduce native deadlock issue in System.out
public class TestMultiThreadSystemOut {
static Random rnd = new Random();
private class WaitThread extends Thread{
int minDelay = 1000;
int maxDelay = 1000;
int count = 0;
public WaitThread(String name, int minDelay, int maxDelay){
super(name);
this.minDelay = minDelay;
this.maxDelay = maxDelay;
if (this.minDelay >= this.maxDelay){
this.minDelay = this.maxDelay - 1;
* @see java.lang.Runnable#run()
public void run() {
try {
while (true){
count++;
long sleepFor = minDelay + rnd.nextInt(maxDelay - minDelay);
System.out.println(this.getName() + " : Call number " + count + " - sleeping for " + sleepFor);
Thread.sleep(sleepFor);
} catch (InterruptedException e) {
* Constructor for TestMultiThreadSystemOut.
public TestMultiThreadSystemOut() {
super();
public void doTest(){
//Create some threads that all print to System.out at random intervals
Thread t = null;
int numThreads = 5;
for (int i = 0; i < numThreads; i++){
t = new WaitThread("WaitThread" + i, 150, 500);
t.start();
// Let those threads run, and send my own message to System.out every 3 seconds
try {
while (true){
Thread.sleep(3000);
System.out.println("Main thread output");
} catch (InterruptedException e) {
public static void main(String[] args) {
TestMultiThreadSystemOut a = new TestMultiThreadSystemOut();
a.doTest();
Solved the problem. It turns out that the Eclipse IDE was the problem - once I upgraded to M5, the deadlock went away.
- K
I've been working on a multi-threaded application
where multiple threads are sending output to
System.out. I've found what appears to be a native
call that deadlocks on occassion, and I'm wondering if
I might be doing something wrong.
I'm running JDK 1.4.1, Windows XP Pro
I doubt that it matters, but I'm running inside the
Eclipse development environment.
Similar Messages
-
Blocked trying to get lock: java.io.PrintStream
hello,everybody
i have a problem with ejb deployed in weblogic 9.2
sometimes it throws exceptions as follows:
Blocked trying to get lock: java.io.PrintStream
is this io deadlock?
which is more than the configured time (StuckThreadMaxTime) of "600" seconds. Stack trace:
Thread-169 "[STUCK] ExecuteThread: '84' for queue: 'weblogic.kernel.Default (self-tuning)'" <alive, in native, suspended, blocked, priority=1, DAEMON> {
-- Blocked trying to get lock: java.io.PrintStream@23f1a60[fat lock]
org.hibernate.exception.NestableDelegate.printStackTrace(NestableDelegate.java:303)
org.hibernate.exception.NestableDelegate.printStackTrace(NestableDelegate.java:292)
org.hibernate.exception.NestableRuntimeException.printStackTrace(NestableRuntimeException.java:187)
com.test.bean.testBusinessBean.getInforByid(testBusinessBean.java:1628)
com.test.bean.testBusinessBean_cdq3cw_EOImpl.getInforByid(testBusinessBean_cdq3cw_EOImpl.java:2422)
com.test.bean.testBusinessBean_cdq3cw_EOImpl_WLSkel.invoke(Unknown Source)
weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:526)
weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:210)
weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:438)
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:350)
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:143)
weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:386)
weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:57)
weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:964)
weblogic.work.ExecuteThread.execute(ExecuteThread.java:206)
weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
}thanksI'm getting the same problem. What happens on my server is that sometimes when a thread tries to print a stack trace, it gets stuck at "FileOutputStream.writeBytes". All other threads will then stop at "printStackTrace" when they try to synchronize on the System.err, like yours. I have no idea why this is happening. However, I don't use weblogic or ejb, so it seems to be a more basic issue. As a workaround, I'm considering to set a custom System.err that writes all its output to a queue which then in turn gets written to the real System.err by a separate thread. That way, the worst that can happen is that that separate thread gets stuck.
This is quite annoying but I'm not sure if we have enough information yet to file a bug. I can't reproduce it yet. My server sometimes runs for weeks without this problem happening...
If anyone has updates on this, that would be much appreciated.
My system:
Java: Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_02-b05, mixed mode)
OS: Debian 4.0
Processor: AMD Athlon 64 X2 5600+ Dual Core -
Query update on each iteration problem (MS SQL Sever / ODBC / Native Driver
Hello,
I�ve been working to learn some Java and now JDBC over the past 10 or so months.
I think I have a general understanding of how to perform queries and work with data using JDBC. However, I�ve run into a problem. I�m trying to do a query of a set of data in a database based on the value of a status column. I want to loop over the messages and perform various functions with the data then update their status in the database. It�s preferable to do these 250 to 1000 rows at a time, but no more and no less.
I�m connecting to MS SQL Server 2000, currently with ODBC. I�ve also tried it with the Java SQL Server 2000 drivers provided by Microsoft with the same results.
I�ve found that I can do a one table query and loop though it with a while (rs.next()) {�} and run an Update statement with executeUpdate on each iteration without any problems, no matter the number of rows returned in query.
I have not been able to use the updateString and updateRow inside the while loop. I keep getting errors like this at the line with the updateRow():
Exception in thread "main" java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Row update failed.
This occurs no mater how many rows I select, 1 or more.
The real problem I�ve been having is that the query I need to loop though joins across several tables and returns some rows from some of those tables. This only seems to work when I query for 38 or less selected rows and I use an Update statement with executeUpdate on each iteration. The updateString and updateRow methods never work. Any number of rows selected greater than 38 causes a deadlock where the Update is waiting for the select to compete on the server and the Update can�t proceed until the Select is complete.
As I stated above I�ve tried both ODBC and the native SQL Server driver with the same results. I have not tried any other databases, but that�s moot as my data is already in MS SQL.
Questions:
How can I avoid or get around this 38 row limit without selecting each row, one at a time?
What am I doing wrong with the updateString and updateRow?
Is there a better approach that anyone can suggest?
Here�s some sample code with the problem:
import java.sql.*;
public class db1{
public static void main(String[] args) throws Exception{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url = "jdbc:odbc:eBrochure_live";
Connection con = DriverManager.getConnection(url, "sa", "d3v3l0p");
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
Connection con = DriverManager.getConnection("jdbc:microsoft:sqlserver://dcm613u2\\dcm613u2_dev:1433", "sa", "d3v3l0p");
Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
Statement stmt2 = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
stmt.executeUpdate("USE [myDatabase]");
stmt2.executeUpdate("USE [myDatabase]");
String qGetMessages = "SELECT TOP 250 t1.messageUUID, t1.subjectHeader, t2.emailAddress as toAddress " +
"FROM APP_Messages as t1 JOIN APP_addressBook_contacts as t2 " +
" On t1.toContactID = t2.contactID " +
"WHERE t1.statusID = 'queued'";
ResultSet rs = stmt.executeQuery(qGetMessages);
while (rs.next()) {
String messageUUID = rs.getString("messageUUID");
String subjectHeader = rs.getString("subjectHeader");
System.out.println(messageUUID + " " + subjectHeader);
String updateString = "UPDATE APP_Messages " +
"SET statusID = 'sent' " +
"WHERE messageUUID = '" + messageUUID + "' ";
stmt2.executeUpdate(updateString);
con.close();
Thanks for the help,
Doug Hughes// sorry, ps.close() should be outside of if condition
String sql = "UPDATE APP_Messages SET statusID = 'sent' WHERE messageUUID = ?";
Statement statement = con.createStatement();
PreparedStatement ps = con.prepareStatement(sql);
ResultSet rs = statement.executeQuery("your select SQL");
if ( rs.next() )
ps.clearParameters();
ps.setString(1, rs.getString("your column name"));
ps.executeUpdate();
ps.close();
rs.close();
statement.close(); -
ORA-00060: Deadlock detected
I getting error as "ORA-00060: Deadlock detected. More info in file /d01/oracle/VIS/db/tech_st/10.2.0/.................". Following are my observations on the occurence of this error.
The deadlock is encountered first time when trying to login to applications. I have R12 vision instance on linux.
Following the content of the alert_VIS.log file
Mon Jun 15 04:41:41 2009
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Picked latch-free SCN scheme 3
Using LOG_ARCHIVE_DEST_1 parameter default value as /d01/oracle/VIS/db/tech_st/10.2.0/dbs/arch
Autotune of undo retention is turned on.
IMODE=BR
ILAT =44
LICENSE_MAX_USERS = 0
SYS auditing is disabled
ksdpec: called for event 13740 prior to event group initialization
Starting up ORACLE RDBMS Version: 10.2.0.3.0.
System parameters with non-default values:
tracefiles_public = TRUE
processes = 200
sessions = 400
timed_statistics = TRUE
shared_pool_size = 419430400
shared_pool_reserved_size= 41943040
nls_language = american
nls_territory = america
nls_sort = binary
nls_date_format = DD-MON-RR
nls_numeric_characters = .,
nls_comp = binary
nls_length_semantics = BYTE
sga_target = 1073741824
control_files = /d01/oracle/VIS/db/apps_st/data/cntrl01.dbf, /d01/oracle/VIS/db/apps_st/data/cntrl02.dbf, /d01/oracle/VIS/db/apps_st/data/cntrl03.dbf
db_block_checksum = TRUE
db_block_size = 8192
compatible = 10.2.0
log_buffer = 14251008
log_checkpoint_interval = 100000
log_checkpoint_timeout = 1200
db_files = 512
log_checkpoints_to_alert = TRUE
dml_locks = 10000
undo_management = AUTO
undo_tablespace = APPS_UNDOTS1
db_block_checking = FALSE
O7_DICTIONARY_ACCESSIBILITY= FALSE
session_cached_cursors = 500
utl_file_dir = /usr/tmp, /usr/tmp, /d01/oracle/VIS/db/tech_st/10.2.0/appsutil/outbound/VIS_oracleebsr12, /usr/tmp
plsql_native_library_dir = /d01/oracle/VIS/db/tech_st/10.2.0/plsql/nativelib
plsql_native_library_subdir_count= 149
plsql_code_type = native
plsql_optimize_level = 2
job_queue_processes = 2
systemtrig_enabled = TRUE
cursor_sharing = EXACT
parallel_min_servers = 0
parallel_max_servers = 8
background_dump_dest = /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/bdump
user_dump_dest = /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/udump
max_dump_file_size = 20480
core_dump_dest = /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/cdump
db_name = VIS
open_cursors = 600
ifile = /d01/oracle/VIS/db/tech_st/10.2.0/dbs/VIS_oracleebsr12_ifile.ora
sortelimination_cost_ratio= 5
btree_bitmap_plans = FALSE
fastfull_scan_enabled = FALSE
sqlexecprogression_cost= 2147483647
likewith_bind_as_equality= TRUE
pga_aggregate_target = 1073741824
workarea_size_policy = AUTO
optimizer_secure_view_merging= FALSE
aq_tm_processes = 1
olap_page_pool_size = 4194304
Mon Jun 15 04:42:05 2009
WARNING:Oracle instance running on a system with low open file descriptor
limit. Tune your system to increase this limit to avoid
severe performance degradation.
PSP0 started with pid=3, OS id=6824
PMON started with pid=2, OS id=6822
MMAN started with pid=4, OS id=6826
DBW0 started with pid=5, OS id=6828
CKPT started with pid=7, OS id=6832
SMON started with pid=8, OS id=6834
RECO started with pid=9, OS id=6836
CJQ0 started with pid=10, OS id=6838
LGWR started with pid=6, OS id=6830
MMON started with pid=11, OS id=6840
MMNL started with pid=12, OS id=6842
Mon Jun 15 04:42:19 2009
ALTER DATABASE MOUNT
Mon Jun 15 04:42:25 2009
Setting recovery target incarnation to 2
Mon Jun 15 04:42:27 2009
Successful mount of redo thread 1, with mount id 243370348
Mon Jun 15 04:42:27 2009
Database mounted in Exclusive Mode
Completed: ALTER DATABASE MOUNT
Mon Jun 15 04:42:28 2009
ALTER DATABASE OPEN
Mon Jun 15 04:42:48 2009
Thread 1 opened at log sequence 16
Current log# 3 seq# 16 mem# 0: /d01/oracle/VIS/db/apps_st/data/log3.dbf
Successful open of redo thread 1
Mon Jun 15 04:42:48 2009
MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
Mon Jun 15 04:42:48 2009
SMON: enabling cache recovery
Mon Jun 15 04:42:48 2009
Incremental checkpoint up to RBA [0x10.a779.0], current log tail at RBA [0x10.a779.0]
Mon Jun 15 04:43:01 2009
Successfully onlined Undo Tablespace 18.
Mon Jun 15 04:43:01 2009
SMON: enabling tx recovery
Mon Jun 15 04:43:04 2009
Database Characterset is UTF8
Mon Jun 15 04:43:18 2009
replication_dependency_tracking turned off (no async multimaster replication found)
Mon Jun 15 04:43:44 2009
Starting background process QMNC
QMNC started with pid=14, OS id=6884
Mon Jun 15 04:46:48 2009
Completed: ALTER DATABASE OPEN
Mon Jun 15 05:03:23 2009
Incremental checkpoint up to RBA [0x10.b1bd.0], current log tail at RBA [0x10.b1f3.0]
Mon Jun 15 05:23:33 2009
Incremental checkpoint up to RBA [0x10.b5b3.0], current log tail at RBA [0x10.b5c2.0]
Mon Jun 15 05:45:12 2009
Incremental checkpoint up to RBA [0x10.b7b0.0], current log tail at RBA [0x10.fbce.0]
This is upto the point where all DB and application services has been started.
Once trying to login to applications following content got appended to the log file
Mon Jun 15 05:53:39 2009
ORA-00060: Deadlock detected. More info in file /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/udump/vis_ora_8149.trc.
Mon Jun 15 05:53:51 2009
ORA-00060: Deadlock detected. More info in file /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/udump/vis_ora_8149.trc.
Mon Jun 15 05:54:02 2009
ORA-00060: Deadlock detected. More info in file /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/udump/vis_ora_8149.trc.
Mon Jun 15 05:54:12 2009
ORA-00060: Deadlock detected. More info in file /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/udump/vis_ora_8149.trc.
Mon Jun 15 05:54:22 2009
ORA-00060: Deadlock detected. More info in file /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/udump/vis_ora_8149.trc.
Mon Jun 15 05:54:28 2009
ORA-00060: Deadlock detected. More info in file /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/udump/vis_ora_8149.trc.
Mon Jun 15 05:54:35 2009
ORA-00060: Deadlock detected. More info in file /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/udump/vis_ora_8149.trc.
Mon Jun 15 05:54:42 2009
ORA-00060: Deadlock detected. More info in file /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/udump/vis_ora_8149.trc.
Mon Jun 15 05:59:06 2009
Process J000 died, see its trace file
Mon Jun 15 05:59:11 2009
kkjcre1p: unable to spawn jobq slave process
Mon Jun 15 05:59:11 2009
Errors in file /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/bdump/vis_cjq0_6838.trc:
Mon Jun 15 05:59:23 2009
Process J000 died, see its trace file
Mon Jun 15 05:59:24 2009
kkjcre1p: unable to spawn jobq slave process
Mon Jun 15 05:59:24 2009
Errors in file /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/bdump/vis_cjq0_6838.trc:
Mon Jun 15 05:59:50 2009
Process J000 died, see its trace file
Mon Jun 15 05:59:50 2009
kkjcre1p: unable to spawn jobq slave process
Mon Jun 15 05:59:50 2009
Errors in file /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/bdump/vis_cjq0_6838.trc:
I did the TKPROF on .trc files but the tkprof file does not show any details as such except similar to :- (don't know if I am missing anything while issuing TKPROF as $ tkprof filename.trc
filename.txt explain=apps/apps)
TKPROF: Release 10.2.0.3.0 - Production on Mon Jun 15 06:07:14 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Trace file: /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/bdump/vis_cjq0_6838.trc
Sort options: default
count = number of times OCI procedure was executed
cpu = cpu time in seconds executing
elapsed = elapsed time in seconds executing
disk = number of physical reads of buffers from disk
query = number of buffers gotten for consistent read
current = number of buffers gotten in current mode (usually for update)
rows = number of rows processed by the fetch or execute call
0 statements EXPLAINed in this session.
Trace file: /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/bdump/vis_cjq0_6838.trc
Trace file compatibility: 10.01.00
Sort options: default
1 session in tracefile.
0 user SQL statements in trace file.
0 internal SQL statements in trace file.
0 SQL statements in trace file.
0 unique SQL statements in trace file.
22 lines in trace file.
0 elapsed seconds in trace file.
Yesterday, I did login to applications after multiple attempts and tried submitting a concurrent request of a standard report (after resolving the data block corrupt issue) and got the same ORA-00060 Error.
I have a fresh VISION R12 (12.0.4) installed without any customizations. My installation looks to be quite unstable, takes 2-3 attempts for successful login to apps.
Can you please give any clues on this and how to overcome the problem?
Thanks,
AmitI have run cmclean.sql as per :- Re: R12 Vision install - Unable to submit concurrent request
This is the only change made. No new patches etc. Before running cmclean.sql I believe the instance was working fine.
Now everytime I start the application services, its causing ORA=00060: Deadlock error. There are no issues with just DB services up and running.
And after apps services up, when trying to Login to apps it just hangs, get error as follows:
Tue Jun 23 02:04:55 2009
Process J001 died, see its trace file
Tue Jun 23 02:04:55 2009
kkjcre1p: unable to spawn jobq slave process
Tue Jun 23 02:04:55 2009
Errors in file /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/bdump/vis_cjq0_6747.trc:
Tue Jun 23 02:05:04 2009
Process q002 died, see its trace file
Tue Jun 23 02:05:04 2009
ksvcreate: Process(q002) creation failed
Tue Jun 23 02:05:55 2009
Process J000 died, see its trace file
Tue Jun 23 02:05:55 2009
kkjcre1p: unable to spawn jobq slave process
Tue Jun 23 02:05:55 2009
Errors in file /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/bdump/vis_cjq0_6747.trc:
Tue Jun 23 02:06:11 2009
Process J000 died, see its trace file
Tue Jun 23 02:06:11 2009
kkjcre1p: unable to spawn jobq slave process
Tue Jun 23 02:06:11 2009
Errors in file /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/bdump/vis_cjq0_6747.trc:
Tue Jun 23 02:08:51 2009
Process J000 died, see its trace file
Tue Jun 23 02:08:52 2009
kkjcre1p: unable to spawn jobq slave process
Tue Jun 23 02:08:52 2009
Errors in file /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/bdump/vis_cjq0_6747.trc:
The OS also hangs (Linux) and I have to exit abnormally everytime which is frustrating.
I am not sure the reason for the same. I have gone through the metalink notes pointed which says to install the health check engine.
Do you have any clues based on above information as to what might be causing this problem.
I have 4 GB RAM installed on my Windows and 2 GB has been allocated to Linux on VMware.
Please let me know if I need to upgrade the memory.
Any pointers would be really helpful.
Thanks,
Amit -
Multiple threads block each other, but its not a deadlock!
I have recently upgraded to Berkeley 2.4.16/DB 4.6.21 on Linux 2.6.9-68.9.ELsmp #1 SMP 2008 x86_64 GNU/Linux
Right away I noticed that when I run two threads, one doing a putDocument, another doing a query, they get stuck, as if they were deadlocked, however running db_deadlock does not change the quagmire.
Here is the simplest class I could come up with that produces the problem I have been dealing with:
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import com.sleepycat.db.DatabaseException;
import com.sleepycat.db.Environment;
import com.sleepycat.db.EnvironmentConfig;
import com.sleepycat.db.ReplicationManagerAckPolicy;
import com.sleepycat.db.ReplicationTimeoutType;
import com.sleepycat.dbxml.XmlContainer;
import com.sleepycat.dbxml.XmlContainerConfig;
import com.sleepycat.dbxml.XmlDocumentConfig;
import com.sleepycat.dbxml.XmlManager;
import com.sleepycat.dbxml.XmlManagerConfig;
import com.sleepycat.dbxml.XmlQueryContext;
import com.sleepycat.dbxml.XmlResults;
import com.sleepycat.dbxml.XmlUpdateContext;
import com.sleepycat.dbxml.XmlValue;
public class TestEnvironment
private XmlManager i_xmlManager = null;
private XmlContainer i_container = null;
private XmlContainerConfig i_xmlContainerConfig = null;
private XmlDocumentConfig i_docCfg = null;
public TestEnvironment(File dataDir, File dbErr, File dbOut)
throws DatabaseException, FileNotFoundException
final EnvironmentConfig cfg = new EnvironmentConfig();
cfg.setErrorStream(new FileOutputStream(dbErr));
cfg.setMessageStream(new FileOutputStream(dbOut));
cfg.setAllowCreate(true);
cfg.setInitializeLocking(true);
cfg.setInitializeLogging(true);
cfg.setInitializeCache(true);
cfg.setTransactional(true);
cfg.setRunRecovery(false);
cfg.setTxnNoSync(true);
cfg.setTxnNotDurable(false);
cfg.setTxnTimeout(60000000L);
cfg.setCacheSize(1073741824L);
cfg.setThreaded(true);
cfg.setInitializeReplication(false);
cfg.setReplicationLimit(1048576L);
cfg.setVerboseReplication(true);
cfg.setReplicationManagerAckPolicy(ReplicationManagerAckPolicy.NONE);
cfg.setMaxLockers(100000);
cfg.setMaxLockObjects(100000);
cfg.setMaxLocks(100000);
cfg.setLockDown(false);
cfg.setSystemMemory(false);
cfg.setInitializeCDB(false);
final Environment env = new Environment(dataDir, cfg);
env.setReplicationTimeout(ReplicationTimeoutType.ACK_TIMEOUT, 100000);
env.setReplicationTimeout(ReplicationTimeoutType.CONNECTION_RETRY, 100000);
env.setReplicationTimeout(ReplicationTimeoutType.ELECTION_RETRY, 100000);
env.setReplicationTimeout(ReplicationTimeoutType.ELECTION_TIMEOUT, 90000);
final XmlManagerConfig mgrCfg = new XmlManagerConfig();
mgrCfg.setAdoptEnvironment(true);
mgrCfg.setAllowAutoOpen(true);
mgrCfg.setAllowExternalAccess(false);
XmlManager.setLogCategory(XmlManager.CATEGORY_ALL, true);
XmlManager.setLogLevel(XmlManager.LEVEL_ALL, true);
i_xmlManager = new XmlManager(env, mgrCfg);
i_xmlManager.setDefaultContainerType(XmlContainer.NodeContainer);
i_xmlContainerConfig = new XmlContainerConfig();
i_xmlContainerConfig.setAllowValidation(false);
i_xmlContainerConfig.setIndexNodes(true);
i_xmlContainerConfig.setNodeContainer(true);
i_xmlContainerConfig.setTransactional(true);
if (i_xmlManager.existsContainer("container.dbxml") != 0)
i_container = i_xmlManager.openContainer("container.dbxml", i_xmlContainerConfig);
else
i_container = i_xmlManager.createContainer("container.dbxml", i_xmlContainerConfig);
i_docCfg = new XmlDocumentConfig();
i_docCfg.setGenerateName(true);
final TestEnvironment thisRef = this;
Runtime.getRuntime().addShutdownHook(new Thread()
public void run()
try
thisRef.close();
System.out.println("Shutting down the TestEnvironment.");
catch (Exception e)
e.printStackTrace();
public void close() throws DatabaseException
if (i_container != null)
i_container.close();
i_container = null;
if (i_xmlManager != null)
i_xmlManager.close();
i_xmlManager = null;
public void insert(String doc) throws DatabaseException
System.out.println('[' + Thread.currentThread().getName() +
"] insert received document to be inserted");
final long beforeT = System.currentTimeMillis();
final XmlUpdateContext ctxt = i_xmlManager.createUpdateContext();
i_container.putDocument(null, doc, ctxt, i_docCfg);
final long afterT = System.currentTimeMillis();
System.out.println('[' + Thread.currentThread().getName() +
"] insert took " + (afterT - beforeT) + " ms. ");
public String[] query(String xquery) throws DatabaseException
System.out.println('[' + Thread.currentThread().getName() +
"] query \"" + xquery + "\" received.");
String[] retVal = {};
final long beforeT = System.currentTimeMillis();
XmlQueryContext qctxt = null;
XmlResults rs = null;
XmlValue nextValue = null;
try
qctxt = i_xmlManager.createQueryContext();
qctxt.setQueryTimeoutSeconds(10);
rs = i_xmlManager.query(xquery, qctxt);
if (rs != null)
retVal = new String[rs.size()];
for (int i = 0; i < retVal.length && rs.hasNext(); i++)
nextValue = rs.next();
retVal[i] = nextValue.asString();
nextValue.delete();
nextValue = null;
finally
if (nextValue != null)
nextValue.delete();
if (qctxt != null)
qctxt.delete();
if (rs != null)
rs.delete();
final long afterT = System.currentTimeMillis();
System.out.println('[' + Thread.currentThread().getName() +
"] query \"" + xquery + "\" took " + (afterT - beforeT) + " ms. ");
return retVal;
}If I call the insert and the query methods in parallel from two different threads, they will both be stuck, the former in the method com.sleepycat.dbxml.dbxml_javaJNI.XmlContainer_putDocument__SWIG_0(Native Method) and the latter in the method com.sleepycat.dbxml.dbxml_javaJNI.XmlManager_query__SWIG_2(Native Method). I would really appreciate help with this issue, I've looked through all compilation flags for db and dbxml, and all runtime configuration parameters, and I can not figure out why this is not working. Thank you!
Edited by: gmfeinberg on Mar 26, 2009 10:41 AM for formattingUpon your suggestion, I added explicit transactions to my code, and now it looks like this:
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import com.sleepycat.db.DatabaseException;
import com.sleepycat.db.Environment;
import com.sleepycat.db.EnvironmentConfig;
import com.sleepycat.db.LockDetectMode;
import com.sleepycat.dbxml.XmlContainer;
import com.sleepycat.dbxml.XmlContainerConfig;
import com.sleepycat.dbxml.XmlDocumentConfig;
import com.sleepycat.dbxml.XmlException;
import com.sleepycat.dbxml.XmlManager;
import com.sleepycat.dbxml.XmlManagerConfig;
import com.sleepycat.dbxml.XmlQueryContext;
import com.sleepycat.dbxml.XmlResults;
import com.sleepycat.dbxml.XmlTransaction;
import com.sleepycat.dbxml.XmlValue;
public class TestEnvironment
private static final int DEADLOCK_DETECTOR_INTERVAL = 5000;
private XmlManager i_xmlManager = null;
private XmlContainer i_container = null;
private XmlContainerConfig i_xmlContainerConfig = null;
private XmlDocumentConfig i_docCfg = null;
private boolean i_shuttingDown = false;
public TestEnvironment(File dataDir, File dbErr, File dbOut)
throws XmlException, DatabaseException, FileNotFoundException
final EnvironmentConfig cfg = new EnvironmentConfig();
cfg.setErrorStream(new FileOutputStream(dbErr));
cfg.setMessageStream(new FileOutputStream(dbOut));
cfg.setAllowCreate(true);
cfg.setInitializeLocking(true);
cfg.setInitializeLogging(true);
cfg.setInitializeCache(true);
cfg.setTransactional(true);
cfg.setRunRecovery(false);
cfg.setTxnNoSync(true);
cfg.setTxnNotDurable(false);
//cfg.setTxnTimeout(500000L);
cfg.setCacheSize(1073741824L);
cfg.setThreaded(true);
cfg.setInitializeReplication(false);
cfg.setMaxLockers(100000);
cfg.setMaxLockObjects(100000);
cfg.setMaxLocks(100000);
cfg.setLockDown(false);
cfg.setSystemMemory(false);
cfg.setInitializeCDB(false);
final Environment env = new Environment(dataDir, cfg);
final XmlManagerConfig mgrCfg = new XmlManagerConfig();
mgrCfg.setAdoptEnvironment(true);
mgrCfg.setAllowAutoOpen(true);
mgrCfg.setAllowExternalAccess(false);
XmlManager.setLogCategory(XmlManager.CATEGORY_ALL, true);
XmlManager.setLogLevel(XmlManager.LEVEL_ALL, true);
i_xmlManager = new XmlManager(env, mgrCfg);
i_xmlManager.setDefaultContainerType(XmlContainer.NodeContainer);
i_xmlContainerConfig = new XmlContainerConfig();
i_xmlContainerConfig.setAllowValidation(false);
i_xmlContainerConfig.setIndexNodes(true);
i_xmlContainerConfig.setNodeContainer(true);
i_xmlContainerConfig.setTransactional(true);
i_xmlContainerConfig.setStatisticsEnabled(false);
if (i_xmlManager.existsContainer("container.dbxml") != 0)
i_container = i_xmlManager.openContainer("container.dbxml", i_xmlContainerConfig);
else
i_container = i_xmlManager.createContainer("container.dbxml", i_xmlContainerConfig);
i_docCfg = new XmlDocumentConfig();
i_docCfg.setGenerateName(true);
final TestEnvironment thisRef = this;
Runtime.getRuntime().addShutdownHook(new Thread()
public void run()
try
thisRef.close();
System.out.println("Shutting down the TestEnvironment.");
catch (Exception e)
e.printStackTrace();
final Thread deadLockDetector = new Thread("deadLockDetector") {
@Override
public void run()
while (!i_shuttingDown)
try
i_xmlManager.getEnvironment().detectDeadlocks(LockDetectMode.YOUNGEST);
System.out.println('[' + Thread.currentThread().getName() +
"] ran deadlock detector.");
Thread.sleep(DEADLOCK_DETECTOR_INTERVAL);
catch (XmlException e)
e.printStackTrace();
catch (DatabaseException e)
e.printStackTrace();
catch (InterruptedException e)
e.printStackTrace();
deadLockDetector.start();
public void close() throws XmlException
i_shuttingDown = true;
if (i_container != null)
i_container.close();
i_container = null;
if (i_xmlManager != null)
i_xmlManager.close();
i_xmlManager = null;
public void insert(String doc) throws XmlException
System.out.println('[' + Thread.currentThread().getName() +
"] insert received document to be inserted");
final long beforeT = System.currentTimeMillis();
final XmlTransaction txn = i_xmlManager.createTransaction();
try
i_container.putDocument(txn, null, doc, i_docCfg);
txn.commit();
catch (XmlException e)
txn.abort();
throw e;
finally
txn.delete();
final long afterT = System.currentTimeMillis();
System.out.println('[' + Thread.currentThread().getName() +
"] insert took " + (afterT - beforeT) + " ms. ");
public String[] query(String xquery) throws XmlException
System.out.println('[' + Thread.currentThread().getName() +
"] query \"" + xquery + "\" received.");
String[] retVal = {};
final long beforeT = System.currentTimeMillis();
XmlQueryContext qctxt = null;
XmlResults rs = null;
XmlValue nextValue = null;
final XmlTransaction txn = i_xmlManager.createTransaction();
try
qctxt = i_xmlManager.createQueryContext();
qctxt.setQueryTimeoutSeconds(10);
rs = i_xmlManager.query(txn, xquery, qctxt);
if (rs != null)
retVal = new String[rs.size()];
for (int i = 0; i < retVal.length && rs.hasNext(); i++)
nextValue = rs.next();
retVal[i] = nextValue.asString();
nextValue.delete();
nextValue = null;
txn.commit();
catch (XmlException e)
txn.abort();
throw e;
finally
txn.delete();
if (nextValue != null)
nextValue.delete();
if (qctxt != null)
qctxt.delete();
if (rs != null)
rs.delete();
final long afterT = System.currentTimeMillis();
System.out.println('[' + Thread.currentThread().getName() +
"] query \"" + xquery + "\" took " + (afterT - beforeT) + " ms. ");
return retVal;
}For the purpose of brevity I omitted the main method, but it merely runs two parallel threads -- one inserting a collection of different XML documents, the other -- querying. Each thread runs a semi-tight loop with a 10 millisecond sleep after each iteration. The documents being inserted are all fairly similar, and well-formed. Here is what happens: if I do not set a maximum transaction timeout, every SINGLE concurrent pair of inserts/queries results in a deadlock, that is only broken when the deadlock detector thread runs every five seconds. Our application does require massive inserts/quieries run in parallel sometimes. If I do set a maximum transaction timeout that expires before the deadlock detector thread runs, I get the following exception:
com.sleepycat.dbxml.XmlException: Error: DB_LOCK_NOTGRANTED: Lock not granted, errcode = DATABASE_ERROR
at com.sleepycat.dbxml.dbxml_javaJNI.XmlContainer_putDocument__SWIG_3(Native Method)
at com.sleepycat.dbxml.XmlContainer.putDocument(XmlContainer.java:736)
at com.sleepycat.dbxml.XmlContainer.putDocument(XmlContainer.java:232)
at com.sleepycat.dbxml.XmlContainer.putDocument(XmlContainer.java:218)
at TestEnvironment.insert(TestEnvironment.java:178)
at TestEnvironment$3.run(TestEnvironment.java:327)which does not seem to be a deadlock.
Now I understand that deadlocks are a fact of life, but I thought they were statistically rare, and in this scenario every single insert/query pair results in a deadlock. The same code works without any deadlocks in the Berkeley DB XML 2.3/Berkeley DB 4.5 combination
Could there be a patch or a bugfix that I missed? This seems very very suspicious. I also tried the same code on both Linux and Windows with the same result
Thank you,
Alexander. -
Deadlocked error message when running crystal report
Hi All,
I need a bit of guidance as to the following problem.
Seems there is a lock being created in SQL when running some crystal reports.
When trying to run a report the following message is displayed:
Database connection Error L 'ADO Error Code: 0x
Source: Microsoft SQL Native Client
Description: Transaction (Process ID 302) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
SQL State: 40001
Native Error: [Database Vendor Code: 1205 ]'
The error is happening intermittently when refreshing the report. It does not seem to happen when no users are using the system.
Is there any way to stop this from happening? Or is this some kind of limitation with crystal and how it accesses the database?
Many Thanks,
MattHi Matt
I have had this problem with long running queries as well. I ended up doing the main part of the query in a view using WITH (NOLOCK) for each table and then reporting on the view.
This had extra benefits of making the report much simpler and often making the query more efficient and easier to test as well.
Rob -
Invisible Deadlock caused by HashMap in AppContext
Hi All,
I have a strange behaviour where the AppContext.get() is waiting for lock of a HashMap that is not locked by any other task. This freezes my GUI because the AWT-EventQueue wants to stop a javax.swing.Timer that is locked by the TimerQueue Thread that is waiting for the HashMap (see dump beneath).
I have no idea how to catch problem. Am I am doing something wrong with the timer? Any hint how I can get more information about the reason? Any workaround?
Our application uses many trees and tables in some Frames that are updated via javax.swing.Timer because the burst load is to heave for an event driven update. The App must run all the time because it monitors network devices. A frozen GUI is the worst thing that could hapen to our App because normally there are no user actions and the user will not be aware of this. The App is running on serveral linux machines (debian, redhead, suse with different versions) with serveral JDK 1.4.xxx. Every where the same.
Can someone help me with this matter?
Thanks.
Peter
Here the full thread dump:
Full thread dump Java HotSpot(TM) Client VM (1.4.2_04-b05 mixed mode):
"JDWP Command Reader" daemon prio=1 tid=0x0838c3d8 nid=0x4e33 runnable [0..0]
"Thread-2" prio=1 tid=0x08277ce0 nid=0x4e33 runnable [5a148000..5a1488bc]
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.net.SocketInputStream.read(SocketInputStream.java:182)
at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2133)
at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2423)
at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2433)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1245)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at com.atecom.lib.network.impl.BlockingSocketThread.run(BlockingSocketThread.java:51)
"MemoryLabel" prio=1 tid=0x0828b8f0 nid=0x4e33 waiting on condition [599de000..599de8bc]
at java.lang.Thread.sleep(Native Method)
at com.atecom.lib.util.Misc.sleep(Misc.java:773)
at com.atecom.maya.client.gui.common.JButtonMemory$1.run(JButtonMemory.java:69)
"TimerQueue" daemon prio=1 tid=0x0835a228 nid=0x4e33 waiting for monitor entry [5a037000..5a0378bc]
at sun.awt.AppContext.get(AppContext.java:542)
- waiting to lock <0x45b687b0> (a java.util.HashMap)
at sun.awt.SunToolkit.getSystemEventQueueImplPP(SunToolkit.java:543)
at sun.awt.SunToolkit.getSystemEventQueueImpl(SunToolkit.java:537)
at java.awt.Toolkit.getEventQueue(Toolkit.java:1519)
at java.awt.EventQueue.invokeLater(EventQueue.java:792)
at javax.swing.SwingUtilities.invokeLater(SwingUtilities.java:1170)
at javax.swing.Timer.post(Timer.java:538)
- locked <0x45eaade0> (a javax.swing.Timer)
at javax.swing.TimerQueue.postExpiredTimers(TimerQueue.java:193)
- locked <0x45be7528> (a javax.swing.TimerQueue)
at javax.swing.TimerQueue.run(TimerQueue.java:229)
- locked <0x45be7528> (a javax.swing.TimerQueue)
at java.lang.Thread.run(Thread.java:534)
"Java2D Disposer" daemon prio=1 tid=0x08285b58 nid=0x4e33 in Object.wait() [59eff000..59eff8bc]
at java.lang.Object.wait(Native Method)
- waiting on <0x45ba3b58> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111)
- locked <0x45ba3b58> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
at sun.java2d.Disposer.run(Disposer.java:100)
at java.lang.Thread.run(Thread.java:534)
"AWT-EventQueue-0" prio=1 tid=0x0819d2d8 nid=0x4e33 waiting for monitor entry [59e7f000..59e7f8bc]
at javax.swing.TimerQueue.removeTimer(TimerQueue.java:135)
- waiting to lock <0x45be7528> (a javax.swing.TimerQueue)
at javax.swing.Timer.stop(Timer.java:509)
at javax.swing.ToolTipManager.initiateToolTip(ToolTipManager.java:468)
at javax.swing.ToolTipManager.mouseEntered(ToolTipManager.java:458)
at java.awt.Component.processMouseEvent(Component.java:5109)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.trackMouseEnterExit(Container.java:3323)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3180)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
"Maya Memory Watchdog" prio=1 tid=0x0818d250 nid=0x4e33 waiting on condition [59dff000..59dff8bc]
at java.lang.Thread.sleep(Native Method)
at com.atecom.lib.util.Misc.sleep(Misc.java:773)
at com.atecom.maya.client.ClientApplication$3.run(ClientApplication.java:338)
"MayaWorkerThread" prio=1 tid=0x0818cf48 nid=0x4e33 in Object.wait() [59d7f000..59d7f8bc]
at java.lang.Object.wait(Native Method)
at com.atecom.lib.util.WorkerThread.run(WorkerThread.java:72)
- locked <0x45b70928> (a com.atecom.maya.client.MayaWorkerThread)
"Thread-1" prio=1 tid=0x0816afa0 nid=0x4e33 runnable [59cff000..59cff8bc]
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.net.SocketInputStream.read(SocketInputStream.java:182)
at java.io.DataInputStream.readInt(DataInputStream.java:443)
at com.atecom.maya.protocol.AlarmConverter.readAlarm(AlarmConverter.java:98)
at com.atecom.maya.client.alarmserver.ConnectionAlarmServer.run(ConnectionAlarmServer.java:193)
at java.lang.Thread.run(Thread.java:534)
"AWT-Motif" daemon prio=1 tid=0x081892d0 nid=0x4e33 runnable [59c7f000..59c7f8bc]
at sun.awt.motif.MToolkit.run(Native Method)
at java.lang.Thread.run(Thread.java:534)
"AWT-Shutdown" prio=1 tid=0x08188f30 nid=0x4e33 in Object.wait() [59aff000..59aff8bc]
at java.lang.Object.wait(Native Method)
- waiting on <0x45b3ee78> (a java.lang.Object)
at java.lang.Object.wait(Object.java:429)
at sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:259)
- locked <0x45b3ee78> (a java.lang.Object)
at java.lang.Thread.run(Thread.java:534)
"Ping Thread" prio=1 tid=0x08140480 nid=0x4e33 waiting on condition [59a5e000..59a5e8bc]
at java.lang.Thread.sleep(Native Method)
at com.atecom.lib.util.Misc.sleep(Misc.java:773)
at com.atecom.maya.client.adminserver.PingThread.run(PingThread.java:70)
"DestroyJavaVM" prio=1 tid=0x080529e8 nid=0x4e33 waiting on condition [0..bfffbe84]
"LogLevelThread" prio=1 tid=0x0813dc48 nid=0x4e33 in Object.wait() [593ca000..593ca8bc]
at java.lang.Object.wait(Native Method)
- waiting on <0x45b3a0a8> (a de.qfs.lib.log.LogLevels$LogLevelThread)
at java.lang.Object.wait(Object.java:429)
at de.qfs.lib.log.LogLevels$LogLevelThread.run(LogLevels.java:869)
- locked <0x45b3a0a8> (a de.qfs.lib.log.LogLevels$LogLevelThread)
"Signal Dispatcher" daemon prio=1 tid=0x080909e8 nid=0x4e33 waiting on condition [0..0]
"JDWP Event Helper Thread" daemon prio=1 tid=0x0808f228 nid=0x4e33 runnable [0..0]
"JDWP Transport Listener: dt_socket" daemon prio=1 tid=0x0808e6f0 nid=0x4e33 runnable [0..58b70610]
"Finalizer" daemon prio=1 tid=0x08089f20 nid=0x4e33 in Object.wait() [58a08000..58a088bc]
at java.lang.Object.wait(Native Method)
- waiting on <0x45b1afd8> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111)
- locked <0x45b1afd8> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
"Reference Handler" daemon prio=1 tid=0x08088408 nid=0x4e33 in Object.wait() [58988000..589888bc]
at java.lang.Object.wait(Native Method)
- waiting on <0x45b1aff8> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:429)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:115)
- locked <0x45b1aff8> (a java.lang.ref.Reference$Lock)
"VM Thread" prio=1 tid=0x08087108 nid=0x4e33 runnable
"VM Periodic Task Thread" prio=1 tid=0x08093528 nid=0x4e33 waiting on condition
"Suspend Checker Thread" prio=1 tid=0x0808ff30 nid=0x4e33 runnableI have no idea how to catch problem. Am I am doing
something wrong with the timer? Any hint how I can get
more information about the reason? Any workaround?As you noted, there isn't an obvious deadlock (although I suppose one could be hidden in native code, the thread dump should show all deadlocks separate from the stack traces).
However, there may be some lock contention between threads. In particular, "TimerQueue", which uses the event thread to execute timed actions, and "AWT-EventQueue-0", which uses timers to control tooltip popups. The things that would drive this are (1) the rate at which new timers are added to the queue, and (2) the rate at which existing timers fire.
If you're using a very short timer to update your display (say every 50 ms), then I'd suggest increasing that time -- even 100 ms might give dramatically better results.
Also, take a series of thread dumps over a few seconds time. You should see those threads executing different pieces of code -- the event thread, in particular, should usually be waiting for another event on the queue. If is isn't, then you should start to worry that you've got an infinite loop happening with the event queue as mediator. -
SQL Server Management Studio and Native Client different behaviour on delete
I have a problem with transaction containing insert and delete to same table and some select/insert/update to some other tables. Problematic table has primary key defined as combination of column1 and column2.
When two different instances using Native Client execute simultaneously this code and make inserts to table then delete part of code causes deadlock. However this doesn't happen when trying this situation in MS SQL Server Management Studio query.
Is there some option that is missing from Native Client connection string which can cause this different behaviour?Hello,
I don't think there is a difference in the behavior. SSMS uses ADO.NET and that Provider base on the Native Client.
The difference will be more that way, when the transaction is commited and so the locks released. I guess your application keeps the transaction (much) longer open; you should commit a transaction as soon as possible to avoid long time locks and so
deadlocks.
Olaf Helper
[ Blog] [ Xing] [ MVP] -
Hi,
the Elements Organizer 11 creates a deadlock in the wait chain when generating thumbnails for more than a handful of MTS (AVCHD) files.
After importing AVCHD files from my Canon video camera, the organizer using default settings always crashes. I was able to narrow down the problem to be caused by thumbnail generating.
After deactivating the automatic generation of thumbnails, the organizer does not crash any more upon launching .
Of course, working without thumbnails is not very practical. The next resort is manual trigger of thumbnail generation by selecting "update thumbnail".
If I manually trigger updating of thumbnails for files one by one, then it works for quite many files before crashing again.
Selecting thumbnail update for multiple files at once has a much higher likelihood to crash.
This does not seem to be related to particular file contents: a file that leads to crashing once may be flawlessly get a thumbnail created at the next attempt.
The Windows event report looks as follows (German language Windows):
Name der fehlerhaften Anwendung: PhotoshopElementsOrganizer.exe, Version: 11.0.0.0, Zeitstempel: 0x505e9f67
Name des fehlerhaften Moduls: msvcrt.dll, Version: 7.0.9600.16384, Zeitstempel: 0x52158ff5
Ausnahmecode: 0xc0000005
Fehleroffset: 0x00009919
ID des fehlerhaften Prozesses: 0x13c8
Startzeit der fehlerhaften Anwendung: 0x01cfb676145d0c54
Pfad der fehlerhaften Anwendung: C:\Program Files (x86)\Adobe\Elements 11 Organizer\PhotoshopElementsOrganizer.exe
Pfad des fehlerhaften Moduls: C:\WINDOWS\SYSTEM32\msvcrt.dll
Berichtskennung: b8817e29-2269-11e4-bf2d-10bf487f7b28
Vollständiger Name des fehlerhaften Pakets:
Anwendungs-ID, die relativ zum fehlerhaften Paket ist:
Occasionally, a different module is listed as erroneous instead of msvcrt.dll.
My questions:
- has anyone experienced the same problem?
- is this a known issue with Organizer 11?
- is the issue solved with Organizer 12?
I have Premiere Elements 11, Photoshop Elements 11 installed and not experienced any other issues with these applications.
Playback of said AVCHD (*.mts) files works flawlessly, i.e. I do not have any codec or performance issue on my PC.
Deactivation of anti-virus software has no significant effect. I have excluded video directories from scanning anyways.
Have deactivated face recognition, visual search and smart tagging in the organizer.
Have also disabled hyperthreading in the BIOS.
Using Windows XP compatibility settings for PSE somewhat improved the stability, but did not completely eliminate crashes.
Additionally, it signnificantly slows down thumbnail generation and a progress indication window becomes visible during thumbnail generation, which is barely noticable in native Win 8.1 mode.
Officially, Elements 11 is compatible with Windows 8.1.
There is a knowledgebase article related to Elements 6, which recommends to disable multi-threading and to enforce execution of Organizer on more than one core.
This reduces the problem a little bit, but thumbnailing more than a handful of files still leads to crashing.
By means of the task manager, I analyzed the wait chain of the process PhotoshopElementsOrganizer.exe:
Every time the fault occurs, it is caused by a deadlock in the wait chain.
For example:
PhotoshopElementsOrganizer.exe (PID:6440) Thread: 6540
-- PhotoshopElementsOrganizer.exe (PID:6440) Thread: 5932
---- PhotoshopElementsOrganizer.exe (PID:6440) Thread: 6540
PhotoshopElementsOrganizer.exe (PID:6440) Thread: 5932
-- PhotoshopElementsOrganizer.exe (PID:6440) Thread: 6540
---- PhotoshopElementsOrganizer.exe (PID:6440) Thread: 5932
Regards
Oliver
Microsoft Windows 8.1 Pro, 64bit, 6.3.9600 Build 9600
Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz,
16 GB RAM
AMD Radeon HD5450, 1GB
256 GB SSD, Crucial M4-CT256 (Windows, Application, Swap and Temp files), NTFS
1.8 TB HDD, WesternDigital, WD2002FAEX-007BA0, NTFS (media store)Hi,
I'm experiencing the same problem after importing MTS files.
When you said that you unisntall all other codec, what do you mean?
Codec Inside element software?
I have desable the automatic thumbnail and it still crash.
I'M running the software and trying to import more video files and the program keep crashing during the process of selecting the files in the directory to be imported.
i went in my windows 7 journal and here is the error.
System
Provider
[ Name]
Application Error
EventID
1000
[ Qualifiers]
0
Level
2
Task
100
Keywords
0x80000000000000
TimeCreated
[ SystemTime]
2014-08-31T19:36:04.000000000Z
EventRecordID
244366
Channel
Application
Computer
Ordi-Denis
Security
EventData
PhotoshopElementsOrganizer.exe
11.0.0.0
503fdd1d
MSACM32.dll
6.1.7600.16385
4a5bda4e
c0000005
00004d91
1634
01cfc552c927dce5
C:\Program Files (x86)\Adobe\Elements 11 Organizer\PhotoshopElementsOrganizer.exe
C:\Windows\system32\MSACM32.dll
0b097e53-3146-11e4-a14e-bcaec51a14f7
Please i need help since Adobe is not helping us. -
Deadlock in TopLink when using JMS listener on WebLogic
I am experiencing a deadlock in TopLink 10.1.3 on WebLogic 9 in code that previously worked on TopLink 9.0.4 with WebLogic 8.1. As such, I'm not sure if it's due to the TopLink change, the WebLogic change or both. Anyway, we have a JMS listener (note, NOT a MessageDrivenBean) that is updating an existing TopLink cached domaing object. The JMS listener thread gets stuck when attempting to commit the transaction. The thread-dump shows that there is another thread which is blocked in the ConcurrencyManager waiting to obtain the lock on an object which is being updated by the listener thread. It appears to me that the root cause is that the Synchronization.afterCompletion() listener is running on a different thread than the one which owns the locks which were obtained beforeCompletion.
See stack traces.
First, the message listener thread which is waiting for participants in the transaction to commit:
"[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'" daemon prio=9 tid=0x3a4a4728 nid=0xa48 in Object.wait() [0x3a0cf000..0x3a0cfbec]
at java.lang.Object.wait(Native Method)
- waiting on <0x0c7a0908> (a weblogic.transaction.internal.ServerTransactionImpl)
at weblogic.transaction.internal.ServerTransactionImpl.globalRetryCommit(ServerTransactionImpl.java:2665)
- locked <0x0c7a0908> (a weblogic.transaction.internal.ServerTransactionImpl)
at weblogic.transaction.internal.ServerTransactionImpl.globalCommit(ServerTransactionImpl.java:2570)
at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:277)
at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:226)
at weblogic.ejb.container.internal.BaseEJBObject.postInvoke1(BaseEJBObject.java:539)
at weblogic.ejb.container.internal.StatelessEJBObject.postInvoke1(StatelessEJBObject.java:72)
at weblogic.ejb.container.internal.BaseEJBObject.postInvokeTxRetry(BaseEJBObject.java:374)
at com.avinamart.BusinessLogic.Bean.JobService.JobService_u1ylwo_EOImpl.submitJobAndRun(JobService_u1ylwo_EOImpl.java:1388)
at com.avinamart.Framework.Event.Task.OptimizationTaskListener._submitAsAJob(OptimizationTaskListener.java:253)
at com.avinamart.Framework.Event.Task.OptimizationTaskListener._submitAsAJob(OptimizationTaskListener.java:217)
at com.avinamart.Framework.Event.Task.OptimizationTaskListener.processMessage(OptimizationTaskListener.java:344)
at com.emptoris.base.event.EPASSMessageBaseListener.onMessage(EPASSMessageBaseListener.java:722)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:3824)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:3738)
at weblogic.jms.client.JMSSession.pushMessage(JMSSession.java:3253)
at weblogic.jms.client.JMSSession.invoke(JMSSession.java:4195)
at weblogic.messaging.dispatcher.Request.wrappedFiniteStateMachine(Request.java:674)
at weblogic.messaging.dispatcher.DispatcherServerRef.invoke(DispatcherServerRef.java:262)
at weblogic.messaging.dispatcher.DispatcherServerRef.handleRequest(DispatcherServerRef.java:134)
at weblogic.messaging.dispatcher.DispatcherServerRef.access$000(DispatcherServerRef.java:36)
at weblogic.messaging.dispatcher.DispatcherServerRef$1.run(DispatcherServerRef.java:105)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
Next, the other thread which is participating in the transaction which is stuck:
"[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'" daemon prio=5 tid=0x3adb80a0 nid=0xb30 in Object.wait() [0x3c7af000..0x3c7afd6c]
at java.lang.Object.wait(Native Method)
- waiting on <0x0c7a0000> (a oracle.toplink.internal.helper.ConcurrencyManager)
at java.lang.Object.wait(Object.java:474)
at oracle.toplink.internal.helper.ConcurrencyManager.acquire(ConcurrencyManager.java:76)
- locked <0x0c7a0000> (a oracle.toplink.internal.helper.ConcurrencyManager)
at oracle.toplink.internal.identitymaps.CacheKey.acquire(CacheKey.java:80)
at oracle.toplink.internal.identitymaps.FullIdentityMap.remove(FullIdentityMap.java:164)
at oracle.toplink.internal.identitymaps.HardCacheWeakIdentityMap.remove(HardCacheWeakIdentityMap.java:82)
at oracle.toplink.internal.helper.WriteLockManager.releaseAllAcquiredLocks(WriteLockManager.java:363)
at oracle.toplink.publicinterface.UnitOfWork.afterTransaction(UnitOfWork.java:2123)
at oracle.toplink.transaction.AbstractSynchronizationListener.afterCompletion(AbstractSynchronizationListener.java:135)
at oracle.toplink.transaction.JTASynchronizationListener.afterCompletion(JTASynchronizationListener.java:66)
at weblogic.transaction.internal.ServerSCInfo.callAfterCompletions(ServerSCInfo.java:862)
at weblogic.transaction.internal.ServerTransactionImpl.callAfterCompletions(ServerTransactionImpl.java:2913)
at weblogic.transaction.internal.ServerTransactionImpl.afterCommittedStateHousekeeping(ServerTransactionImpl.java:2806)
at weblogic.transaction.internal.ServerTransactionImpl.setCommittedUnsync(ServerTransactionImpl.java:2857)
at weblogic.transaction.internal.ServerTransactionImpl.ackCommit(ServerTransactionImpl.java:1097)
- locked <0x0c7a0908> (a weblogic.transaction.internal.ServerTransactionImpl)
at weblogic.transaction.internal.CoordinatorImpl.ackCommit(CoordinatorImpl.java:211)
at weblogic.transaction.internal.CoordinatorImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:517)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:407)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:403)
at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:56)
at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:934)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
Is this the same concurrency bug which was fixed in 10.1.3.1??? As I am writing this, I am attempting to build the application with the updated TopLink jar to test for myself. Has anyone else seen this scenario with WebLogic? I should also point out that the problem only occurs when the listener is running on a separate server than the one hosting the JMS queue it reads from. It may be that when the listener runs on the same server, it does not use multiple threads in the transaction.
Any ideas are greatly appreciated.
- BrunoWe've got the same kind of issue with toplink 10.1.3.0.0 and bea weblogic 8.1 SP5.
I 've not tried with 10.1.3.1.0, did you?
Do you have a new status for this issue.
Chris -
Deadlock issue in client communication WL5.1sp8
Howdy
I seem to have a reoccurring deadlocking in
weblogic.rjvm.ServerURL.findOrCreateRJVM.
It is happening using either t3 or http communication. We are using resin
as a JSP/Servlet engine, but all these lockups are occurring in the weblogic
classes. We are using WL5.1sp8 and I thought there was supposed to be a fix
in sp8 for this issue with the weblogic.jndi.WLInitialContextFactoryDelegate
being changed out.
I'm including a thread dump below.
Has anyone seen this issue before or know of a fix?
Thanks
-=Brian
-------------Thread Dump------------------
Fri Jan 19 15:45:37 2001
SIGSEGV received at 14458be5 in unknown. Processing terminated.
J2RE 1.3.0 IBM build cx130-20001124
/usr/local/java/jre/bin/exe/java -Dresin.home=/data/resin
com.caucho.server.http.RunnerServer -socketwait 2371 -conf
/data/admin/config/resin.conf -server a -stdout
/data/logs/resin/stdout.log -stderr /data/logs/resin/stderr.log
System Properties
Java Home Dir: /usr/local/java/jre
Java DLL Dir: /usr/local/java/jre/bin
Sys Classpath:
/usr/local/java/jre/lib/rt.jar:/usr/local/java/jre/lib/i18n.jar:/usr/local/j
ava/jre/classes
User Args:
-Djava.class.path=/data/classes/weblogic510sp8.jar:/data/classes/SmartUploa
d.jar:/data/classes/mail.jar:/data/classes/jce1_2-do.jar:/data/classes/NetCo
mponents.jar:/data/classes/xerces.jar:/data/classes/xalan.jar:/data/classes/
weblogicaux.jar:/usr/local/java/lib/tools.jar:/data/classes/cayenne.jar:/dat
a/classes/cayenneData.jar:/data/classes/util.jar:/data/classes/gumbo.jar:/da
ta/classes/weblogicclasses.jar:/data/classes/jambalaya.jar:/data/classes/tas
so.jar:/data/classes/jsse.jar:/data/classes/jcert.jar:/data/classes/jnet.jar
:/data/classes/imalldom.jar:/data/classes/ppsdk.jar:/data/classes/regexp.jar
:/data/classes/OracleJDBC12.jar:/data/resin/lib/resin.jar:/data/resin/lib/jd
bc2_0-stdext.jar:/data/resin/lib/jta-spec1_0_1.jar:/data/resin/lib/jndi.jar:
/data/resin/lib/dom.jar:/data/resin/lib/sax.jar:/data/resin/lib/jaxp.jar:/da
ta/resin/lib/webutil.jar:/usr/local/java/lib/tools.jar:/usr/local/java/jre/l
ib/rt.jar:/data/resin/lib/jsdk22.jar
-Dresin.home=/data/resin
Current Thread Details
"main" (TID:0x402e87e0, sys_thread_t:0x80505e8, state:R, native
ID:0x400) prio=5
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:104)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at com.caucho.server.http.ResinServer.waitForExit(ResinServer.java:658)
at com.caucho.server.http.ResinServer.main(ResinServer.java:800)
at com.caucho.server.http.RunnerServer.main(RunnerServer.java:87)
----- Native Stack -----
Operating Environment
Host : storm03.bid4real.com.
OS Level : 2.2.16-3smp.#1 SMP Mon Jun 19 19:00:35 EDT 2000
glibc Version : 2.1.3
No. of Procs : 2
Memory Info:
total: used: free: shared: buffers: cached:
Mem: 529514496 407732224 121782272 256684032 233717760 45092864
Swap: 718577664 1150976 717426688
MemTotal: 517104 kB
MemFree: 118928 kB
MemShared: 250668 kB
Buffers: 228240 kB
Cached: 44036 kB
BigTotal: 0 kB
BigFree: 0 kB
SwapTotal: 701736 kB
SwapFree: 700612 kB
User Limits (in bytes except for NOFILE and NPROC) -
RLIMIT_FSIZE : infinity
RLIMIT_DATA : infinity
RLIMIT_STACK : 2088960
RLIMIT_CORE : 0
RLIMIT_NOFILE : 1024
RLIMIT_NPROC : 2048
Application Environment
Signal Handlers -
SIGQUIT : ignored
SIGILL : intrDispatchMD (libhpi.so)
SIGTRAP : intrDispatchMD (libhpi.so)
SIGABRT : intrDispatchMD (libhpi.so)
SIGFPE : intrDispatchMD (libhpi.so)
SIGBUS : intrDispatchMD (libhpi.so)
SIGSEGV : intrDispatchMD (libhpi.so)
SIGUSR1 : sigusr1Handler (libhpi.so)
SIGUSR2 : sysThreadSetTypeImpl (libhpi.so)
Environment Variables -
LESSOPEN=|/usr/bin/lesspipe.sh %s
USERNAME=
HISTSIZE=1000
HOSTNAME=storm03.bid4real.com
LOGNAME=tomcat
JAVAHOME=/usr/local/java/jre
SSH_TTY=/dev/pts/0
MAIL=/var/spool/mail/btowles
LD_LIBRARY_PATH=/usr/local/java/jre/bin:/usr/local/java/jre/bin/classic::lib
exec
CLASSPATH=/data/classes/weblogic510sp8.jar:/data/classes/SmartUpload.jar:/da
ta/classes/mail.jar:/data/classes/jce1_2-do.jar:/data/classes/NetComponents.
jar:/data/classes/xerces.jar:/data/classes/xalan.jar:/data/classes/weblogica
ux.jar:/usr/local/java/lib/tools.jar:/data/classes/cayenne.jar:/data/classes
/cayenneData.jar:/data/classes/util.jar:/data/classes/gumbo.jar:/data/classe
s/weblogicclasses.jar:/data/classes/jambalaya.jar:/data/classes/tasso.jar:/d
ata/classes/jsse.jar:/data/classes/jcert.jar:/data/classes/jnet.jar:/data/cl
asses/imalldom.jar:/data/classes/ppsdk.jar:/data/classes/regexp.jar:/data/cl
asses/OracleJDBC12.jar:/data/resin/lib/resin.jar:/data/resin/lib/jdbc2_0-std
ext.jar:/data/resin/lib/jta-spec1_0_1.jar:/data/resin/lib/jndi.jar:/data/res
in/lib/dom.jar:/data/resin/lib/sax.jar:/data/resin/lib/jaxp.jar:/data/resin/
lib/webutil.jar:/usr/local/java/lib/tools.jar:/usr/local/java/jre/lib/rt.jar
:/data/resin/lib/jsdk22.jar
JAVA_COMPILER=NONE
TERM=vt100
HOSTTYPE=i386
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
HOME=/data/tomcat
INPUTRC=/etc/inputrc
SUDO_GID=500
SHELL=/bin/bash
SUDO_UID=500
USER=tomcat
SUDO_USER=btowles
JAVA_HOME=/usr/local/java
LANG=en_US
SSH_CLIENT=64.92.133.251 1023 22
OSTYPE=Linux
SHLVL=5
SUDO_COMMAND=/etc/rc.d/init.d/resin restart
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;
33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=0
1;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:
*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;
31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.
gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:
IBM_JAVA_COMMAND_LINE=/usr/local/java/jre/bin/exe/java -Dresin.home=/data/re
sin com.caucho.server.http.RunnerServer -socketwait 2371 -conf
/data/admin/config/resin.conf -server a -stdout
/data/logs/resin/stdout.log -stderr /data/logs/resin/stderr.log
Full Thread Dump
"tcpConnection-6802-49" (TID:0x402e7390, sys_thread_t:0x86a6458,
state:S, native ID:0xe83b) prio=5
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:182)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:195)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:148)
at
weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFact
ory.java:123)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:669)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:199)
at util.CTXFactory.getInitialContext(CTXFactory.java:66)
at util.CTXFactory.lookupHome(CTXFactory.java:36)
at
jsp.staging__bid4real__com._80_0._stormtest__jsp._jspService(_stormtest__j
sp.java:51)
at com.caucho.jsp.JavaPage.service(JavaPage.java:89)
at com.caucho.jsp.JavaPage.subservice(JavaPage.java:83)
at com.caucho.jsp.Page.service(Page.java:334)
at com.caucho.server.http.Invocation.service(Invocation.java:255)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:201)
at
com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:342)
at
com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:263
at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
at java.lang.Thread.run(Thread.java:498)
----- Native Stack -----
sysMonitorWait at 0x4029f277 in libhpi.so
lkMonitorEnter at 0x401ec773 in libjvm.so
mmipInvokeSynchronizedJavaMethodWithCatch at 0x402346d6 in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
iiq_doinvoke_I__ at 0x4020dfa2 in libjvm.so
iiq_doinvoke_I__ at 0x4020dfa2 in libjvm.so
isq_doinvoke_I__ at 0x4020de5c in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
invq_doinvoke_V__ at 0x4020dc5d in libjvm.so
isq_doinvoke_I__ at 0x4020de5c in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
invq_doinvoke_V__ at 0x4020dc5d in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
iiq_doinvoke_V__ at 0x4020df97 in libjvm.so
iiq_doinvoke_V__ at 0x4020df97 in libjvm.so
EJivq_doinvoke_V__ at 0x40208d29 in libjvm.so
"tcpConnection-6802-48" (TID:0x402e73d8, sys_thread_t:0x86a5190,
state:S, native ID:0xe43a) prio=5
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:182)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:195)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:148)
at
weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFact
ory.java:123)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:669)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:199)
at util.CTXFactory.getInitialContext(CTXFactory.java:66)
at util.CTXFactory.lookupHome(CTXFactory.java:36)
at
jsp.staging__bid4real__com._80_0._stormtest__jsp._jspService(_stormtest__j
sp.java:51)
at com.caucho.jsp.JavaPage.service(JavaPage.java:89)
at com.caucho.jsp.JavaPage.subservice(JavaPage.java:83)
at com.caucho.jsp.Page.service(Page.java:334)
at com.caucho.server.http.Invocation.service(Invocation.java:255)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:201)
at
com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:342)
at
com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:263
at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
at java.lang.Thread.run(Thread.java:498)
----- Native Stack -----
sysMonitorWait at 0x4029f277 in libhpi.so
lkMonitorEnter at 0x401ec773 in libjvm.so
mmipInvokeSynchronizedJavaMethodWithCatch at 0x402346d6 in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
iiq_doinvoke_I__ at 0x4020dfa2 in libjvm.so
iiq_doinvoke_I__ at 0x4020dfa2 in libjvm.so
isq_doinvoke_I__ at 0x4020de5c in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
invq_doinvoke_V__ at 0x4020dc5d in libjvm.so
isq_doinvoke_I__ at 0x4020de5c in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
invq_doinvoke_V__ at 0x4020dc5d in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
iiq_doinvoke_V__ at 0x4020df97 in libjvm.so
iiq_doinvoke_V__ at 0x4020df97 in libjvm.so
EJivq_doinvoke_V__ at 0x40208d29 in libjvm.so
"tcpConnection-6802-47" (TID:0x402e7420, sys_thread_t:0x86a3ec8,
state:S, native ID:0xe039) prio=5
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:182)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:195)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:148)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContext
Factory.java:123)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:669)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:199)
at util.CTXFactory.getInitialContext(CTXFactory.java:66)
at util.CTXFactory.lookupHome(CTXFactory.java:36)
at
jsp.staging__bid4real__com._80_0._stormtest__jsp._jspService(_stormtest__j
sp.java:51)
at com.caucho.jsp.JavaPage.service(JavaPage.java:89)
at com.caucho.jsp.JavaPage.subservice(JavaPage.java:83)
at com.caucho.jsp.Page.service(Page.java:334)
at com.caucho.server.http.Invocation.service(Invocation.java:255)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:201)
at
com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:342)
at
com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:263
at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
at java.lang.Thread.run(Thread.java:498)
----- Native Stack -----
sysMonitorWait at 0x4029f277 in libhpi.so
lkMonitorEnter at 0x401ec773 in libjvm.so
mmipInvokeSynchronizedJavaMethodWithCatch at 0x402346d6 in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
iiq_doinvoke_I__ at 0x4020dfa2 in libjvm.so
iiq_doinvoke_I__ at 0x4020dfa2 in libjvm.so
isq_doinvoke_I__ at 0x4020de5c in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
invq_doinvoke_V__ at 0x4020dc5d in libjvm.so
isq_doinvoke_I__ at 0x4020de5c in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
invq_doinvoke_V__ at 0x4020dc5d in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
iiq_doinvoke_V__ at 0x4020df97 in libjvm.so
iiq_doinvoke_V__ at 0x4020df97 in libjvm.so
EJivq_doinvoke_V__ at 0x40208d29 in libjvm.so
"tcpConnection-6802-46" (TID:0x402e7468, sys_thread_t:0x86a2c00,
state:S, native ID:0xdc38) prio=5
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:182)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:195)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:148)
at
weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFact
ory.java:123)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:669)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:199)
at util.CTXFactory.getInitialContext(CTXFactory.java:66)
at util.CTXFactory.lookupHome(CTXFactory.java:36)
at
jsp.staging__bid4real__com._80_0._stormtest__jsp._jspService(_stormtest__j
sp.java:51)
at com.caucho.jsp.JavaPage.service(JavaPage.java:89)
at com.caucho.jsp.JavaPage.subservice(JavaPage.java:83)
at com.caucho.jsp.Page.service(Page.java:334)
at com.caucho.server.http.Invocation.service(Invocation.java:255)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:201)
at
com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:342)
at
com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:263
at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
at java.lang.Thread.run(Thread.java:498)
----- Native Stack -----
sysMonitorWait at 0x4029f277 in libhpi.so
lkMonitorEnter at 0x401ec773 in libjvm.so
mmipInvokeSynchronizedJavaMethodWithCatch at 0x402346d6 in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
iiq_doinvoke_I__ at 0x4020dfa2 in libjvm.so
iiq_doinvoke_I__ at 0x4020dfa2 in libjvm.so
isq_doinvoke_I__ at 0x4020de5c in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
invq_doinvoke_V__ at 0x4020dc5d in libjvm.so
isq_doinvoke_I__ at 0x4020de5c in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
invq_doinvoke_V__ at 0x4020dc5d in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
iiq_doinvoke_V__ at 0x4020df97 in libjvm.so
iiq_doinvoke_V__ at 0x4020df97 in libjvm.so
EJivq_doinvoke_V__ at 0x40208d29 in libjvm.so
"tcpConnection-6802-45" (TID:0x402e74b0, sys_thread_t:0x86a1938,
state:S, native ID:0xd837) prio=5
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:182)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:195)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:148)
at
weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFact
ory.java:123)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:669)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:199)
at util.CTXFactory.getInitialContext(CTXFactory.java:66)
at util.CTXFactory.lookupHome(CTXFactory.java:36)
at
jsp.staging__bid4real__com._80_0._stormtest__jsp._jspService(_stormtest__j
sp.java:51)
at com.caucho.jsp.JavaPage.service(JavaPage.java:89)
at com.caucho.jsp.JavaPage.subservice(JavaPage.java:83)
at com.caucho.jsp.Page.service(Page.java:334)
at com.caucho.server.http.Invocation.service(Invocation.java:255)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:201)
at
com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:342)
at
com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:263
at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
at java.lang.Thread.run(Thread.java:498)
----- Native Stack -----
sysMonitorWait at 0x4029f277 in libhpi.so
lkMonitorEnter at 0x401ec773 in libjvm.so
mmipInvokeSynchronizedJavaMethodWithCatch at 0x402346d6 in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
iiq_doinvoke_I__ at 0x4020dfa2 in libjvm.so
iiq_doinvoke_I__ at 0x4020dfa2 in libjvm.so
isq_doinvoke_I__ at 0x4020de5c in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
invq_doinvoke_V__ at 0x4020dc5d in libjvm.so
isq_doinvoke_I__ at 0x4020de5c in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
invq_doinvoke_V__ at 0x4020dc5d in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
iiq_doinvoke_V__ at 0x4020df97 in libjvm.so
iiq_doinvoke_V__ at 0x4020df97 in libjvm.so
EJivq_doinvoke_V__ at 0x40208d29 in libjvm.so
"tcpConnection-6802-44" (TID:0x402e74f8, sys_thread_t:0x86a0670,
state:S, native ID:0xd436) prio=5
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:182)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:195)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:148)
at
weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFact
ory.java:123)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:669)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:199)
at util.CTXFactory.getInitialContext(CTXFactory.java:66)
at util.CTXFactory.lookupHome(CTXFactory.java:36)
at
jsp.staging__bid4real__com._80_0._stormtest__jsp._jspService(_stormtest__j
sp.java:51)
at com.caucho.jsp.JavaPage.service(JavaPage.java:89)
at com.caucho.jsp.JavaPage.subservice(JavaPage.java:83)
at com.caucho.jsp.Page.service(Page.java:334)
at com.caucho.server.http.Invocation.service(Invocation.java:255)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:201)
at
com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:342)
at
com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:263
at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
at java.lang.Thread.run(Thread.java:498)
----- Native Stack -----
sysMonitorWait at 0x4029f277 in libhpi.so
lkMonitorEnter at 0x401ec773 in libjvm.so
mmipInvokeSynchronizedJavaMethodWithCatch at 0x402346d6 in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
iiq_doinvoke_I__ at 0x4020dfa2 in libjvm.so
iiq_doinvoke_I__ at 0x4020dfa2 in libjvm.so
isq_doinvoke_I__ at 0x4020de5c in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
invq_doinvoke_V__ at 0x4020dc5d in libjvm.so
isq_doinvoke_I__ at 0x4020de5c in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
invq_doinvoke_V__ at 0x4020dc5d in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
iiq_doinvoke_V__ at 0x4020df97 in libjvm.so
iiq_doinvoke_V__ at 0x4020df97 in libjvm.so
EJivq_doinvoke_V__ at 0x40208d29 in libjvm.so
"tcpConnection-6802-43" (TID:0x402e7540, sys_thread_t:0x869f3a8,
state:S, native ID:0xd035) prio=5
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:182)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:195)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:148)
at
weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFact
ory.java:123)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:669)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:199)
at util.CTXFactory.getInitialContext(CTXFactory.java:66)
at util.CTXFactory.lookupHome(CTXFactory.java:36)
at
jsp.staging__bid4real__com._80_0._stormtest__jsp._jspService(_stormtest__j
sp.java:51)
at com.caucho.jsp.JavaPage.service(JavaPage.java:89)
at com.caucho.jsp.JavaPage.subservice(JavaPage.java:83)
at com.caucho.jsp.Page.service(Page.java:334)
at com.caucho.server.http.Invocation.service(Invocation.java:255)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:201)
at
com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:342)
at
com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:263
at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
at java.lang.Thread.run(Thread.java:498)
----- Native Stack -----
sysMonitorWait at 0x4029f277 in libhpi.so
lkMonitorEnter at 0x401ec773 in libjvm.so
mmipInvokeSynchronizedJavaMethodWithCatch at 0x402346d6 in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
iiq_doinvoke_I__ at 0x4020dfa2 in libjvm.so
iiq_doinvoke_I__ at 0x4020dfa2 in libjvm.so
isq_doinvoke_I__ at 0x4020de5c in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
invq_doinvoke_V__ at 0x4020dc5d in libjvm.so
isq_doinvoke_I__ at 0x4020de5c in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
invq_doinvoke_V__ at 0x4020dc5d in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
iiq_doinvoke_V__ at 0x4020df97 in libjvm.so
iiq_doinvoke_V__ at 0x4020df97 in libjvm.so
EJivq_doinvoke_V__ at 0x40208d29 in libjvm.so
"tcpConnection-6802-42" (TID:0x402e7588, sys_thread_t:0x869e0e0,
state:S, native ID:0xcc34) prio=5
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:182)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:195)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:148)
at
weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFact
ory.java:123)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:669)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:199)
at util.CTXFactory.getInitialContext(CTXFactory.java:66)
at util.CTXFactory.lookupHome(CTXFactory.java:36)
at
jsp.staging__bid4real__com._80_0._stormtest__jsp._jspService(_stormtest__j
sp.java:51)
at com.caucho.jsp.JavaPage.service(JavaPage.java:89)
at com.caucho.jsp.JavaPage.subservice(JavaPage.java:83)
at com.caucho.jsp.Page.service(Page.java:334)
at com.caucho.server.http.Invocation.service(Invocation.java:255)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:201)
at
com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:342)
at
com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:263
at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
at java.lang.Thread.run(Thread.java:498)
----- Native Stack -----
sysMonitorWait at 0x4029f277 in libhpi.so
lkMonitorEnter at 0x401ec773 in libjvm.so
mmipInvokeSynchronizedJavaMethodWithCatch at 0x402346d6 in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
iiq_doinvoke_I__ at 0x4020dfa2 in libjvm.so
iiq_doinvoke_I__ at 0x4020dfa2 in libjvm.so
isq_doinvoke_I__ at 0x4020de5c in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
invq_doinvoke_V__ at 0x4020dc5d in libjvm.so
isq_doinvoke_I__ at 0x4020de5c in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
invq_doinvoke_V__ at 0x4020dc5d in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
iiq_doinvoke_V__ at 0x4020df97 in libjvm.so
iiq_doinvoke_V__ at 0x4020df97 in libjvm.so
EJivq_doinvoke_V__ at 0x40208d29 in libjvm.so
"tcpConnection-6802-41" (TID:0x402e75d0, sys_thread_t:0x869ce18,
state:S, native ID:0xc833) prio=5
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:182)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:195)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:148)
at
weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFact
ory.java:123)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:669)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:199)
at util.CTXFactory.getInitialContext(CTXFactory.java:66)
at util.CTXFactory.lookupHome(CTXFactory.java:36)
at
jsp.staging__bid4real__com._80_0._stormtest__jsp._jspService(_stormtest__j
sp.java:51)
at com.caucho.jsp.JavaPage.service(JavaPage.java:89)
at com.caucho.jsp.JavaPage.subservice(JavaPage.java:83)
at com.caucho.jsp.Page.service(Page.java:334)
at com.caucho.server.http.Invocation.service(Invocation.java:255)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:201)
at
com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:342)
at
com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:263
at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
at java.lang.Thread.run(Thread.java:498)
----- Native Stack -----
sysMonitorWait at 0x4029f277 in libhpi.so
lkMonitorEnter at 0x401ec773 in libjvm.so
mmipInvokeSynchronizedJavaMethodWithCatch at 0x402346d6 in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
iiq_doinvoke_I__ at 0x4020dfa2 in libjvm.so
iiq_doinvoke_I__ at 0x4020dfa2 in libjvm.so
isq_doinvoke_I__ at 0x4020de5c in libjvm.so
ivq_doinvoke_I__ at 0x4020db71 in libjvm.so
ivq_doinvoke_V__ at 0x4020db66 in libjvm.so
invq_doinvoke_V__ at 0x4020dc5d in libjvm.so
isq_doinvoke_I__ at 0x4020de5c in libjvm.so
ivq_doinvoke_I__I'm facing the same problem. SIGSEGV when trying to connect after a system panic on weblogic server. The client crashes on SIGSEGV.
I would like to know how you have managed to resolve this SIGSEGV.
Thanks. -
ReentrantLock is missing wake signals resulting in a deadlock
We are hitting an issue with ReentrantLock where it is missing the awake signal resulting in a deadlock. Here is the thread dump for the same. As you can see, Thread-55 is blocked on acquiring the lock, which is not locked by any other thread. This issue is very similar to
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6822370 which happens in Sunspot JVM.
"Thread-55" id=143 idx=0x2a4 tid=9388 prio=5 alive, parked, native_blocked
-- Parking to wait for: java/util/concurrent/locks/ReentrantLock$NonfairSync@0x00000001A21AC9A8
at jrockit/vm/Locks.park0(J)V(Native Method)
at jrockit/vm/Locks.park(Locks.java:2230)[inlined]
at jrockit/proxy/sun/misc/Unsafe.park(Unsafe.java:616)[inlined]
at java/util/concurrent/locks/LockSupport.park(LockSupport.java:156)[inlined]
at java/util/concurrent/locks/AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:811)[inlined]
at java/util/concurrent/locks/AbstractQueuedSynchronizer.doAcquireInterruptibly(AbstractQueuedSynchronizer.java:867)[inlined]
at java/util/concurrent/locks/AbstractQueuedSynchronizer.acquireInterruptibly(AbstractQueuedSynchronizer.java:1201)[inlined]
at java/util/concurrent/locks/ReentrantLock.lockInterruptibly(ReentrantLock.java:312)[inlined]
at java/util/concurrent/LinkedBlockingQueue.take(LinkedBlockingQueue.java:396)[optimized]
at java/util/concurrent/ExecutorCompletionService.take(ExecutorCompletionService.java:164)[inlined]
at com/teneo/esa/common/textengine/expander/StemIndexManager.isStemPresent(StemIndexManager.java:1345)[optimized]
at com/teneo/esa/common/textengine/expander/StemIndexManager.buildStemIndex(StemIndexManager.java:425)[optimized]
at com/teneo/esa/common/textengine/expander/StemIndexManager.buildStemIndex(StemIndexManager.java:825)
at com/teneo/esa/analytics/stemindex/StemIndexAnalyticsImpl.process(StemIndexAnalyticsImpl.java:155)
at com/teneo/esa/analytics/stemindex/StemIndexAnalyticsService$1.run(StemIndexAnalyticsService.java:128)
at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)
-- end of trace
"pool-7-thread-1" id=170 idx=0x310 tid=5524 prio=5 alive, parked, native_blocked
-- Parking to wait for: java/util/concurrent/locks/AbstractQueuedSynchronizer$ConditionObject@0x00000001D2094E90
at jrockit/vm/Locks.park0(J)V(Native Method)
at jrockit/vm/Locks.park(Locks.java:2230)[inlined]
at jrockit/proxy/sun/misc/Unsafe.park(Unsafe.java:616)[inlined]
at java/util/concurrent/locks/LockSupport.park(LockSupport.java:156)[inlined]
at java/util/concurrent/locks/AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)[optimized]
at java/util/concurrent/LinkedBlockingQueue.take(LinkedBlockingQueue.java:399)[optimized]
at java/util/concurrent/ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)[optimized]
at java/util/concurrent/ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java/lang/Thread.run(Thread.java:662)
at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)
-- end of trace
"pool-7-thread-2" id=171 idx=0x314 tid=15588 prio=
2012-10-04 13:18:37,908 INFO [STDOUT] (RMI TCP Connection(1465)-10.65.59.167:) 5 alive, parked, native_blocked
-- Parking to wait for: java/util/concurrent/locks/AbstractQueuedSynchronizer$ConditionObject@0x00000001D2094E90
at jrockit/vm/Locks.park0(J)V(Native Method)
at jrockit/vm/Locks.park(Locks.java:2230)[inlined]
at jrockit/proxy/sun/misc/Unsafe.park(Unsafe.java:616)[inlined]
at java/util/concurrent/locks/LockSupport.park(LockSupport.java:156)[inlined]
at java/util/concurrent/locks/AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)[optimized]
at java/util/concurrent/LinkedBlockingQueue.take(LinkedBlockingQueue.java:399)[optimized]
at java/util/concurrent/ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)[optimized]
at java/util/concurrent/ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java/lang/Thread.run(Thread.java:662)
at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)
-- end of trace
"pool-7-thread-3" id=172 idx=0x318 tid=6056 prio=5 alive, parked, native_blocked
-- Parking to wait for: java/util/concurrent/locks/AbstractQueuedSynchronizer$ConditionObject@0x00000001D2094E90
at jrockit/vm/Locks.park0(J)V(Native Method)
at jrockit/vm/Locks.park(Locks.java:2230)[inlined]
at jrockit/proxy/sun/misc/Unsafe.park(Unsafe.java:616)[inlined]
at java/util/concurrent/locks/LockSupport.park(LockSupport.java:156)[inlined]
at java/util/concurrent/locks/AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)[optimized]
at java/util/concurrent/LinkedBlockingQueue.take(LinkedBlockingQueue.java:399)[optimized]
at java/util/concurrent/ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)[optimized]
at java/util/concurrent/ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java/lang/Thread.run(Thread.java:662)
at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)
-- end of trace
"pool-7-thread-4" id=173 idx=0x31c tid=6312 prio=5 alive, parked, native_blocked
-- Parking to wait for: java/util/concurrent/locks/AbstractQueuedSynchronizer$ConditionObject@0x00000001D2094E90
at jrockit/vm/Locks.park0(J)V(Native Method)
at jrockit/vm/Locks.park(Locks.java:2230)[inlined]
at jrockit/proxy/sun/misc/Unsafe.park(Unsafe.java:616)[inlined]
at java/util/concurrent/locks/LockSupport.park(LockSupport.java:156)[inlined]
at java/util/concurrent/locks/AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)[optimized]
at java/util/concurrent/LinkedBlockingQueue.take(LinkedBlockingQueue.java:399)[optimized]
at java/util/concurrent/ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)[optimized]
at java/util/concurrent/ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java/lang/Thread.run(Thread.java:662)
at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)
-- end of trace
"pool-7-thread-5" id=174 idx=0x320 tid=15132 prio=5 alive, parked, native_blocked
-- Parking to wait for: java/util/concurrent/locks/AbstractQueuedSynchronizer$ConditionObject@0x00000001D2094E90
at jrockit/vm/Locks.park0(J)V(Native Method)
at jrockit/vm/Locks.park(Locks.java:2230)[inlined]
at jrockit/proxy/sun/misc/Unsafe.park(Unsafe.java:616)[inlined]
at java/util/concurrent/locks/LockSupport.park(LockSupport.java:156)[inlined]
at java/util/concurrent/locks/AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)[optimized]
at java/util/concurrent/LinkedBlockingQueue.take(LinkedBlockingQueue.java:399)[optimized]
at java/util/concurrent/ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)[optimized]
at java/util/concurrent/ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java/lang/Thread.run(Thread.java:662)
at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)
-- end of trace
"pool-7-thread-6" id=175 idx=0x324 tid=10636 prio=5 alive, parked, native_blocked
-- Parking to wait for: java/util/concurrent/locks/AbstractQueuedSynchronizer$ConditionObject@0x00000001D2094E90
at jrockit/vm/Locks.park0(J)V
2012-10-04 13:18:37,908 INFO [STDOUT] (RMI TCP Connection(1465)-10.65.59.167:) (Native Method)
at jrockit/vm/Locks.park(Locks.java:2230)[inlined]
at jrockit/proxy/sun/misc/Unsafe.park(Unsafe.java:616)[inlined]
at java/util/concurrent/locks/LockSupport.park(LockSupport.java:156)[inlined]
at java/util/concurrent/locks/AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)[optimized]
at java/util/concurrent/LinkedBlockingQueue.take(LinkedBlockingQueue.java:399)[optimized]
at java/util/concurrent/ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)[optimized]
at java/util/concurrent/ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java/lang/Thread.run(Thread.java:662)
at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)
-- end of trace
"pool-7-thread-7" id=176 idx=0x328 tid=17820 prio=5 alive, parked, native_blocked
-- Parking to wait for: java/util/concurrent/locks/AbstractQueuedSynchronizer$ConditionObject@0x00000001D2094E90
at jrockit/vm/Locks.park0(J)V(Native Method)
at jrockit/vm/Locks.park(Locks.java:2230)[inlined]
at jrockit/proxy/sun/misc/Unsafe.park(Unsafe.java:616)[inlined]
at java/util/concurrent/locks/LockSupport.park(LockSupport.java:156)[inlined]
at java/util/concurrent/locks/AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)[optimized]
at java/util/concurrent/LinkedBlockingQueue.take(LinkedBlockingQueue.java:399)[optimized]
at java/util/concurrent/ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)[optimized]
at java/util/concurrent/ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java/lang/Thread.run(Thread.java:662)
at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)
-- end of trace
"pool-7-thread-8" id=177 idx=0x32c tid=6516 prio=5 alive, parked, native_blocked
-- Parking to wait for: java/util/concurrent/locks/AbstractQueuedSynchronizer$ConditionObject@0x00000001D2094E90
at jrockit/vm/Locks.park0(J)V(Native Method)
at jrockit/vm/Locks.park(Locks.java:2230)[inlined]
at jrockit/proxy/sun/misc/Unsafe.park(Unsafe.java:616)[inlined]
at java/util/concurrent/locks/LockSupport.park(LockSupport.java:156)[inlined]
at java/util/concurrent/locks/AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)[optimized]
at java/util/concurrent/LinkedBlockingQueue.take(LinkedBlockingQueue.java:399)[optimized]
at java/util/concurrent/ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)[optimized]
at java/util/concurrent/ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java/lang/Thread.run(Thread.java:662)
at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)
-- end of trace
Environment:
VM Version: Jrockit R28.2.3
JDK: 1.6.0_31
OS: Windows 2008
Let me know if you need any details.
Thanks,
Snehal
Edited by: 957943 on Oct 4, 2012 11:38 AMHi,
Open a ticket with support to file a BUG with JVM team.
Or try to upgrade your JVM to avoid this issue.
Regards,
Kal -
Deadlock in 9.2.0.3 thin driver
I'm using 9.2.0.3 Thin for JDK 1.4 to connect to a 9.2.0.1 database (since the 9.2.0.1 driver gives me really hard time with some "unexpected packet" errors). However, with the newer driver I stumbled upon the following deadlock (it was quite incidental, probably can't reproduce it...).
Can anyone give info whether TechNet forums get reviewed by Oracle staff, and is there a way to officialy report customer-found bugs to Oracle ? Thanks in advance !
Deadlock follows:
Found one Java-level deadlock:
=============================
"Thread-31":
waiting to lock monitor 0x8fecdc (object 0x54044f0, a oracle.jdbc.driver.OracleConnection),
which is held by "Console Reader Thread"
"Console Reader Thread":
waiting to lock monitor 0x8fec9c (object 0x5404fe8, a oracle.jdbc.ttc7.TTC7Protocol),
which is held by "Thread-31"
Java stack information for the threads listed above:
===================================================
"Thread-31":
at oracle.jdbc.driver.OracleConnection.needLine(OracleConnection.java:2389)
- waiting to lock <054044F0> (a oracle.jdbc.driver.OracleConnection)
at oracle.jdbc.ttc7.TTC7Protocol.lobRead(TTC7Protocol.java:2407)
- locked <05404FE8> (a oracle.jdbc.ttc7.TTC7Protocol)
at oracle.sql.LobDBAccessImpl.getBytes(LobDBAccessImpl.java:242)
- locked <05419570> (a oracle.sql.LobDBAccessImpl)
at oracle.sql.BLOB.getBytes(BLOB.java:340)
at oracle.jdbc.driver.OracleBlobInputStream.needBytes(OracleBlobInputStream.java:232)
at oracle.jdbc.driver.OracleBufferedStream.read(OracleBufferedStream.java:158)
- locked <059658F0> (a oracle.jdbc.driver.OracleBlobInputStream)
at oracle.jdbc.driver.OracleBufferedStream.read(OracleBufferedStream.java:131)
at com.prosyst.mprm.util.jdbc.DatabaseUtils.readBytes(DatabaseUtils.java:186)
at com.prosyst.mprm.backend.impl.database.certificate.CertificateDBService.getCertificate(Ce
rtificateDBService.java:915)
at com.prosyst.mprm.backend.impl.certificate.CertificateManagerBEImpl.getCertificate(Certifi
cateManagerBEImpl.java:155)
at com.prosyst.mprm.admin.impl.certificate.CertificateManagerImpl.getCertificate(Certificate
ManagerImpl.java:42)
at com.prosyst.mprm.backend.impl.bundles.binventory.BundleInventoryService.getPermissions(Bu
ndleInventoryService.java:884)
at com.prosyst.mprm.backend.impl.bundles.binventory.BundleInventoryService.setBEFields(Bundl
eInventoryService.java:2366)
at com.prosyst.mprm.backend.impl.bundles.binventory.BundleInventoryService.addBundleEdition(
BundleInventoryService.java:1238)
at com.prosyst.mprm.backend.impl.bundles.binventory.BundleInventoryService.addEdition(Bundle
InventoryService.java:1140)
at com.prosyst.mprm.backend.impl.bundles.BundlesActivator.addBackendBundles(BundlesActivator
.java:263)
at com.prosyst.mprm.backend.impl.bundles.BundlesActivator.registerInventory(BundlesActivator
.java:174)
at com.prosyst.mprm.backend.impl.bundles.BundlesActivator.setConfiguratorManager(BundlesActi
vator.java:302)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.prosyst.mprm.util.tracker.SingleServiceTracker.setRequestor(SingleServiceTracker.java
:149)
at com.prosyst.mprm.util.tracker.SingleServiceTracker.setService(SingleServiceTracker.java:1
14)
- locked <053D1220> (a com.prosyst.mprm.util.tracker.SingleServiceTracker)
at com.prosyst.mprm.util.tracker.SingleServiceTracker.serviceChanged(SingleServiceTracker.ja
va:92)
at com.prosyst.mbs.impl.framework.EventsManager.serviceChanged(EventsManager.java:443)
at com.prosyst.mbs.impl.framework.BundleContextImpl.registerService(BundleContextImpl.java:2
25)
at com.prosyst.mbs.impl.framework.BundleContextImpl.registerService(BundleContextImpl.java:2
42)
at com.prosyst.mprm.admin.impl.system.local.Activator.initRefs(Activator.java:83)
at com.prosyst.mprm.admin.impl.system.local.Activator.serviceChanged(Activator.java:52)
- locked <052425A0> (a com.prosyst.mprm.admin.impl.system.local.Activator)
at com.prosyst.mbs.impl.framework.EventsManager.serviceChanged(EventsManager.java:443)
at com.prosyst.mbs.impl.framework.BundleContextImpl.registerService(BundleContextImpl.java:2
25)
at com.prosyst.mbs.impl.framework.BundleContextImpl.registerService(BundleContextImpl.java:2
42)
at com.prosyst.mprm.backend.impl.system.ConfigurationChangeManager.start(ConfigurationChange
Manager.java:80)
- locked <05241FA8> (a com.prosyst.mprm.backend.impl.system.ConfigurationChangeManager)
at com.prosyst.mprm.backend.impl.system.ConfigurationManager.notifyObservers(ConfigurationMa
nager.java:324)
at com.prosyst.mprm.backend.impl.system.ConfigurationManager.access$900(ConfigurationManager
.java:40)
at com.prosyst.mprm.backend.impl.system.ConfigurationManager$CT.run(ConfigurationManager.jav
a:1098)
- locked <052205C0> (a com.prosyst.mprm.backend.impl.system.ConfigurationManager)
at java.lang.Thread.run(Thread.java:536)
"Console Reader Thread":
at oracle.jdbc.ttc7.TTC7Protocol.close(TTC7Protocol.java:667)
- waiting to lock <05404FE8> (a oracle.jdbc.ttc7.TTC7Protocol)
at oracle.jdbc.driver.OracleStatement.close(OracleStatement.java:700)
- locked <0596A388> (a oracle.jdbc.driver.OracleStatement)
- locked <054044F0> (a oracle.jdbc.driver.OracleConnection)
at com.prosyst.mprm.backend.impl.dbconnection.jdbc.JDBCStatement.close(JDBCStatement.java:10
5)
at com.prosyst.mprm.backend.impl.dbconnection.jdbc.Validator.isTableFormat(Validator.java:44
5)
at com.prosyst.mprm.backend.impl.dbconnection.jdbc.Validator.parseNext(Validator.java:354)
at com.prosyst.mprm.backend.impl.dbconnection.jdbc.TableCreator.validateTables(TableCreator.
java:212)
at com.prosyst.mprm.backend.impl.dbconnection.jdbc.ConnectionManagerImpl.validateTables(Conn
ectionManagerImpl.java:864)
at com.prosyst.mprm.backend.impl.dbconnection.jdbc.ConnectionManagerImpl.validateTables(Conn
ectionManagerImpl.java:854)
at com.prosyst.mprm.backend.impl.event.scheduler.EventManager.setConnectionManager(EventMana
ger.java:155)
at com.prosyst.mprm.backend.impl.dbconnection.jdbc.ConnectionManagerImpl.addDBConnectionUser
(ConnectionManagerImpl.java:280)
at com.prosyst.mprm.backend.impl.dbconnection.jdbc.DBServerConnectorImpl.setConnectionManage
r(DBServerConnectorImpl.java:197)
at com.prosyst.mprm.backend.impl.dbconnection.jdbc.DBConnectorActivator.serviceChanged(DBCon
nectorActivator.java:77)
at com.prosyst.mbs.impl.framework.EventsManager.serviceChanged(EventsManager.java:443)
at com.prosyst.mbs.impl.framework.BundleContextImpl.registerService(BundleContextImpl.java:2
25)
at com.prosyst.mbs.impl.framework.BundleContextImpl.registerService(BundleContextImpl.java:2
42)
at com.prosyst.mprm.backend.impl.event.scheduler.EventManager.registerAsDBConnectionUser(Eve
ntManager.java:200)
at com.prosyst.mprm.backend.impl.event.scheduler.EventManager.setConfiguration(EventManager.
java:146)
at com.prosyst.mprm.backend.impl.system.DBServicesConfigurator$ConfigureDBService.run(DBServ
icesConfigurator.java:290)
at com.prosyst.mprm.backend.impl.system.DBServicesConfigurator$ConfigureDBService.<init>(DBS
ervicesConfigurator.java:282)
at com.prosyst.mprm.backend.impl.system.DBServicesConfigurator.configureDBService(DBServices
Configurator.java:247)
at com.prosyst.mprm.backend.impl.system.DBServicesConfigurator.serviceChanged(DBServicesConf
igurator.java:142)
at com.prosyst.mbs.impl.framework.EventsManager.serviceChanged(EventsManager.java:443)
at com.prosyst.mbs.impl.framework.BundleContextImpl.registerService(BundleContextImpl.java:2
25)
at com.prosyst.mbs.impl.framework.BundleContextImpl.registerService(BundleContextImpl.java:2
42)
at com.prosyst.mprm.backend.impl.event.scheduler.EventManager.start(EventManager.java:113)
at com.prosyst.mprm.backend.impl.event.scheduler.EventSchedulerImpl.start(EventSchedulerImpl
.java:53)
- locked <0596A730> (a com.prosyst.mprm.backend.impl.event.scheduler.EventSchedulerImpl)
at com.prosyst.mbs.impl.framework.BundleImpl.startIt(BundleImpl.java:1377)
at com.prosyst.mbs.impl.framework.BundleImpl.simpleStart(BundleImpl.java:467)
at com.prosyst.mbs.impl.framework.BundleImpl.start0(BundleImpl.java:459)
at com.prosyst.mbs.impl.framework.BundleImpl.initialResolve(BundleImpl.java:222)
at com.prosyst.mbs.impl.framework.BundleImpl.update0(BundleImpl.java:823)
at com.prosyst.mbs.impl.framework.BundleImpl.update(BundleImpl.java:697)
at com.prosyst.mbs.impl.framework.BundleImpl.update0(BundleImpl.java:724)
at com.prosyst.mbs.impl.framework.BundleImpl.update(BundleImpl.java:697)
at com.prosyst.mbs.impl.framework.BundleImpl.update(BundleImpl.java:638)
at com.prosyst.util.impl.parser.DefaultFrameworkPlugable.updateBundle(DefaultFrameworkPlugab
le.java:814)
at com.prosyst.util.impl.parser.DefaultFrameworkPlugable.update(DefaultFrameworkPlugable.jav
a:796)
at com.prosyst.util.impl.parser.DefaultFrameworkPlugable.executeCommand(DefaultFrameworkPlug
able.java:382)
at com.prosyst.util.impl.parser.ParserServiceImpl.parseCommand(ParserServiceImpl.java:303)
at com.prosyst.util.impl.console.ConsoleService.run(ConsoleService.java:92)
- locked <05173370> (a java.io.BufferedInputStream)
Found 1 deadlock.These forums aren't monitored by Oracle support. Bug reports and support requests are made at metalink.oracle.com.
Justin -
Deadlock victim while concurrent users...
Hello-
I'm using Weblogic 6.1 SP3 and SQL Server 2000. In our application user create
packages...When concurrent users click at the same time to create the package,
application gets an error.
Create Package Functionality Overview: we've got the table called pt_package(package_id,
package_name, create_date, user_id). it has got relevant entity bean(PackageBean)
and we call ejbCreate...that go into the table and generete the maximum id and
then assign/create the package and write the details to the table.
Err Clip from console:
PackageBean : ejbCreate : java.sql.SQLException: [Microsoft][SQLServer 2000 Driv
er for JDBC][SQLServer]Transaction (Process ID 69) was deadlocked on lock resour
ces with another process and has been chosen as the deadlock victim. Rerun the
t
ransaction.
Created Package Id : 3175
====> InterviewSession: createUniquePackage Remote Exception..
java.rmi.RemoteException: EJB Exception:; nested exception is:
javax.ejb.EJBException: ejbCreate: [Microsoft][SQLServer 2000 Driver for
JDBC][SQLServer]Transaction (Process ID 69) was deadlocked on lock resources
wi
th another process and has been chosen as the deadlock victim. Rerun the transac
tion.
javax.ejb.EJBException: ejbCreate: [Microsoft][SQLServer 2000 Driver for JDBC][S
QLServer]Transaction (Process ID 69) was deadlocked on lock resources with anoth
er process and has been chosen as the deadlock victim. Rerun the transaction.
at ejb.entity.Package.PackageBean.ejbCreate(PackageBean.java:173)
at ejb.entity.Package.PackageBean_sf9ki2_Impl.ejbCreate(PackageBean_sf9k
i2_Impl.java:197)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.ejb20.manager.DBManager.create(DBManager.java:519)
at weblogic.ejb20.manager.DBManager.remoteCreate(DBManager.java:489)
at weblogic.ejb20.internal.EntityEJBHome.create(EntityEJBHome.java:190)
at ejb.entity.Package.PackageBean_sf9ki2_HomeImpl.create(PackageBean_sf9
ki2_HomeImpl.java:116)
at ejb.session.InterviewSessionBean.createUniquePackage(InterviewSession
Bean.java:2035)
at ejb.session.InterviewSessionBean_834tdn_EOImpl.createUniquePackage(In
terviewSessionBean_834tdn_EOImpl.java:4856)
at ejb.session.InterviewSessionBean_834tdn_EOImpl_WLSkel.invoke(Unknown
Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:274)
at weblogic.rmi.internal.BasicServerRef.dispatch(BasicServerRef.java:167
at weblogic.rmi.internal.ServerRequest.sendOneWayRaw(ServerRequest.java:
92)
at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:11
2)
at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:136)
at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)
at $Proxy174.createUniquePackage(Unknown Source)
at jsp_servlet._ppro._interview.__sitecheck._jspService(__sitecheck.java
:192)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2546)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2260)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
If you have any idea abt this, please let me know. I read bea documents, where
it says its due to insufficient number of connection. But I'm not very positive
abt it. Cause we conducted the test on our develeopement server as we had initial
5 connection and 15 as a max number of connection. We were only 4 person to test
that...Still we got the same err.......???
Thanx,
AshishAshish wrote:
Hello-
I'm using Weblogic 6.1 SP3 and SQL Server 2000. In our application user create
packages...When concurrent users click at the same time to create the package,
application gets an error.
Create Package Functionality Overview: we've got the table called pt_package(package_id,
package_name, create_date, user_id). it has got relevant entity bean(PackageBean)
and we call ejbCreate...that go into the table and generete the maximum id and
then assign/create the package and write the details to the table.
Err Clip from console:
PackageBean : ejbCreate : java.sql.SQLException: [Microsoft][SQLServer 2000 Driv
er for JDBC][SQLServer]Transaction (Process ID 69) was deadlocked on lock resour
ces with another process and has been chosen as the deadlock victim. Rerun the
transaction.
If you have any idea abt this, please let me know. I read bea documents, where
it says its due to insufficient number of connection. But I'm not very positive
abt it. Cause we conducted the test on our develeopement server as we had initial
5 connection and 15 as a max number of connection. We were only 4 person to test
that...Still we got the same err.......???Hi Ashsish. This Exception is coming directly from the DBMS itself, and has nothing to do
with weblogic. The issue is a DBMS deadlock, where one DBMS client has locked some
page or database resource (let's call it resource A), and is going to try to lock some other
resource B. Some other DBMS client has already locked resource B, and now wants
to lock resource A. These two DBMS clients are deadlocked, and the DBMS recognises this,
and chooses to kill one client's transaction in order to at least let the other survive.
You should go over your tranasaction logic and DBMS locking to identify the locks
involved in the deadlock, and then decide if you can alter your logic to ensure that
every transaction locks A first, then B. It may also be an artifact of page-level locking,
where one tx may inadvertantly lock logically unrelated data, just because it is on the
same page as the logically relevant stuff.
Joe Weinstein.
>
>
Thanx,
Ashish -
Hi
i am getting these errors in sharepoint server event viewer, and when i see the sql server the log files disk is full memory only some mbs left out of 1 TB
Log Name: Application
Source: Microsoft-SharePoint Products-SharePoint Server Search
Date: 7/12/2014 9:56:04 PM
Event ID: 57
Task Category: Search service
Level: Warning
Keywords:
User: XYZ\svc-mc-sps3eServsear
Computer: SPFIND01.xyz.gov.local
Description:
A database error occurred. Source: Microsoft SQL Server Native Client 10.0 Code: 1205 occurred 1 time(s) Description: Transaction (Process ID 193) was deadlocked on lock
resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
Context: Application 'XYZSP_SearchApp'
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-SharePoint Products-SharePoint Server Search" Guid="{C8263AFE-83A5-448C-878C-1E5F5D1C4252}" />
<EventID>57</EventID>
<Version>14</Version>
<Level>3</Level>
<Task>136</Task>
<Opcode>0</Opcode>
<Keywords>0x4000000000000000</Keywords>
<TimeCreated SystemTime="2014-07-12T18:56:04.665684900Z" />
<EventRecordID>225666</EventRecordID>
<Correlation />
<Execution ProcessID="3408" ThreadID="2932" />
<Channel>Application</Channel>
<Computer>SPFIND01.xyz.gov.local</Computer>
<Security UserID="S-1-5-21-1537596049-1164153464-4201862467-47315" />
</System>
<EventData>
<Data Name="string0">Microsoft SQL Server Native Client 10.0</Data>
<Data Name="string1">1205</Data>
<Data Name="string2">1</Data>
<Data Name="string3">Transaction (Process ID 193) was deadlocked on lock resources with another process and has been chosen as the deadlock
victim. Rerun the transaction.</Data>
<Data Name="string4">
Context: Application 'XYZSP_SearchApp'</Data>
</EventData>
</Event>
A database error occurred. Source: Microsoft SQL Server Native Client 10.0 Code: 9002 occurred 1 time(s) Description: The transaction log for database 'tempdb' is full due to 'ACTIVE_TRANSACTION'.
Context: Application 'XYZSP_SearchApp'
adilIf you've run out of disk space for your SQL databases then of course you'll get errors. Fix SQL then look to see if you're still getting errors.
Maybe you are looking for
-
After upgrading to Lion the bookmarks in Preview returns error message.
After upgrading to Lion the bookmarks in Preview returns error message : The File "****" couldn't be opened because you don't have permission to view it. To change the perimssion, select the item in finder and Choose File info. I have bookmarked ple
-
I have photo element premiere version 8 and I am courts(courses,prices,yards) on the version 10. I do not manage to work with the version 8. Nothing works. I cannot bring manual corrections. How much costs the putting has in the daytime to the versio
-
On July 21 I bought a 20" ACD from our local apple store, I got it home and hooked it up to find multiple stuck + dead pixels as well as a pink hue on the right side of the screen and a cyan hue on the left with a blue vertical band running down the
-
How to export Keychain Access in 10.7.3?
Hello. How to export Keychain Access in 10.7.3? In Leopard user was able to exort it easily with one click. Then in 10.7.1 I would go to Library>Keychain>and copy the folders. Now there are no folders just a couple of files. Is that it?
-
Repaired inbox folder and messages disappeared
Some inbox messages were corrupted so I clicked "repair folder". All messages prior to the one highlighted went away. Dropped from 1500+ messages to 46. Using POP3 and messages are still on server. Have successfully repaired folder many times. How di