UnsatisfiedLinkError when using berkeley db in java
Hi,
I downloaded the Berkeley db version 5.1.19 and wanted to use java to access the db.
However, when constructing the Environment object, an exception was thrown:
Exception in thread "main" java.lang.UnsatisfiedLinkError: E:\java\Test\libdb_java51.dll: Can't find dependent libraries
What should I do?
Thanks.
I am having the same error message with 5.1.25. I am 100% sure my db.jar is in classpath and my libdb_java51.dll and libdb51.dll are in PATH. I even recompiled the dlls in Visual Studio 2010 with /MT flag to make sure no runtime libraries are needed. Nothing works, still "Can't find dependent libraries".
I would like to know WHICH libraries it is missing. I used DependencyWalker, which only finds delay-loaded modules that should not matter (GPSVC.DLL, IEFRAME.DLL, SHLWAPI.DLL).
Is this a common problem?
If I use the DLL's of berkeley found in the MSI installer, which runtime libraries do I need to add to make things work?
Regards,
Johan
Similar Messages
-
Commenting a Line in ABAP Editor when using SAP GUI for java
Hi,
In ABAP editor we can highlight the line which are to be comment and use cmd+< sign to comment those lines. What will be the command to be used to achieve the same functionality when using SAP GUI for JAVA on an iMac.Hello Kedar,
please check with SAP GUI for Java 7.20 rev 5 before submitting a bug report.
Also please verify, that cmd-< and cmd-> are not assigned as "Keyboard Shortcuts" in the "Keyboard" control panel of "System Preferences".
Bug reports can be submitted with the [SAP Message Wizard|http://service.sap.com/message], for SAP GUI for Java please use component BC-FES-JAV.
Best regards
Rolf-Martin -
(HelP)got an unsatisfiedlinkerror when using the jni
I am now working on a jni project and get the unsatisfiedlinkerror. But after I browse this forum, I do not get any useful information.
my java code:
package graphmining.cliquer;
public class WClique {
* @param args
public static void main(String[] args) {
// TODO Auto-generated method stub
WClique wc = new WClique();
wc.buildGraph(4);
static
System.loadLibrary("WClique");
public native static void buildGraph(int vertexNumber);
public native static void addEdge(int i, int j);
public native static void setEdgeNumber(int e);
public native static int isAboveThreshold(int threshold);
I use "javah -jni graphmining.cliquer. WClique" get the WClique.h file.
// begin of WClique.h file;
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class graphmining_cliquer_WClique */
#ifndef Includedgraphmining_cliquer_WClique
#define Includedgraphmining_cliquer_WClique
#ifdef __cplusplus
extern "C" {
#endif
* Class: graphmining_cliquer_WClique
* Method: buildGraph
* Signature: (I)V
JNIEXPORT void JNICALL Java_graphmining_cliquer_WClique_buildGraph
(JNIEnv *, jclass, jint);
* Class: graphmining_cliquer_WClique
* Method: addEdge
* Signature: (II)V
JNIEXPORT void JNICALL Java_graphmining_cliquer_WClique_addEdge
(JNIEnv *, jclass, jint, jint);
* Class: graphmining_cliquer_WClique
* Method: setEdgeNumber
* Signature: (I)V
JNIEXPORT void JNICALL Java_graphmining_cliquer_WClique_setEdgeNumber
(JNIEnv *, jclass, jint);
* Class: graphmining_cliquer_WClique
* Method: isAboveThreshold
* Signature: (I)I
JNIEXPORT jint JNICALL Java_graphmining_cliquer_WClique_isAboveThreshold
(JNIEnv *, jclass, jint);
#ifdef __cplusplus
#endif
#endif
// end the wclique.h file
Then, I build the .c file.
//the .c file
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
#include "WClique.h"
/* Header for class graphmining_cliquer_WClique */
#ifndef Includedgraphmining_cliquer_WClique
#define Includedgraphmining_cliquer_WClique
#ifdef __cplusplus
extern "C" {
#endif
* Class: graphmining_cliquer_WClique
* Method: buildGraph
* Signature: (I)V
JNIEXPORT void JNICALL Java_graphmining_cliquer_WClique_buildGraph
(JNIEnv * env, jclass cl, jint i){
int z = i;
* Class: graphmining_cliquer_WClique
* Method: addEdge
* Signature: (II)V
JNIEXPORT void JNICALL Java_graphmining_cliquer_WClique_addEdge
(JNIEnv * env, jclass cl, jint i, jint j){
int zz = i;
int zz
* Class: graphmining_cliquer_WClique
* Method: setEdgeNumber
* Signature: (I)V
JNIEXPORT void JNICALL Java_graphmining_cliquer_WClique_setEdgeNumber
(JNIEnv * env, jclass cl, jint j){
* Class: graphmining_cliquer_WClique
* Method: isAboveThreshold
* Signature: (I)I
JNIEXPORT jint JNICALL Java_graphmining_cliquer_WClique_isAboveThreshold
(JNIEnv * env, jclass cl, jint j){
return 0;
#ifdef __cplusplus
#endif
#endif
//end the WClique. c file
My program is running in a linux pc.
And I use the commands
"gcc -I"/java/include" -I"/java/include/linux" -o WClique.o -c WClique.c
gcc -shared -o WClique.so WClique.o "
to get the .so file.
Then, I call the .so file from the original java file. However, it always returns the "unsatisfiedlinkerror". Note that I have used the correct library path and function name. I do not know what's wrong with it. Any one can help it?I have named the generated file as libWClique.so.
-
Multiple Email Recepients when using mail pacakging in JAVA AMpping
Hello Experts,
i am new to the PI and i am trying to implement a file to mail scenario. i am following Stefan Grube's blog (/people/stefan.grube/blog/2007/04/17/xi-mail-adapter-an-approach-for-sending-emails-with-attachment-with-help-of-java-mapping) to send email using JAVA Mapping. i am able to send email to one recepient and i want to send to multiple recepients. i have tried with semicolon between two email Ids and it is not working. Any thoughts or help in this regard will be highly appreciated.
public void execute(InputStream in, OutputStream out)
throws StreamTransformationException {
String mailSubject = "=?utf-8?Q?Auftragsbest=C3=A4tigung?=";
String mailSender = "\"My Address\"<my address>";
String mailReceiver = "\"Your Address\"<address1;address2>";
Thanks & Regards
- Siva.String mailReceiver = "\"Your Address\"<address1;address2>";
I hope that in your actual java mapping you are using the below mentioned format in the blog:
String mailReceiver = "\"Your Address\"<your.address+at+company.com>";
check usage of lt / gt for < / >
An email id needs to be separated using a semicolon only:)
Regards,
Abhishek.
format getting changed:(
Edited by: abhishek salvi on May 5, 2009 1:24 PM -
Problem when using Ctr-Z in Java editor
If I create a component in the Desgin view, the switch to Java Editor and uze Cancel (or Ctrl+Z), it cancle the op�ration, ie remove the code added when the component was created. The component is also removed in Design view. However, it is stil present in the JSP code. Under deployment, it produces an error. The stacktrace says the error is about a component which is not present in the design view, wich is a bit confusing.
Looks like a bug.
To fix just remove the jsp tag for the component -
Problem when using XSLT Mapping with Java Methods.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:javamap="java:at.pi.mapping.besoldung.BesoldungMapping">
<xsl:template match="Messages">
<Messages>
<Message1>
<xsl:apply-templates></xsl:apply-templates>
</Message1>
</Messages>
</xsl:template>
<xsl:template match="Message1">
<test></test>
<xsl:param name="inputparam"></xsl:param>
<xsl:for-each select="MT_BesoldungConversions">
<test1></test1>
<!-- Prüfen ob die subtractDates Methode verfügbar ist -->
<xsl:if test="function-available('javamap:createWhitespace')">
<xsl:if test="function-available('javamap:extendTextWithWhitespaces')">
<MT_BesoldungOut>
<EDI_DC40>
<xsl:param name="tablename">
<xsl:value-of select="tablename"></xsl:value-of>
</xsl:param>
<xsl:variable name="constTen">10</xsl:variable>
<xsl:value-of select="javamap:extendTextWithWhitespaces($tablename,$tablename, $inputparam)"></xsl:value-of>
</EDI_DC40>
</MT_BesoldungOut>
</xsl:if>
</xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>incomplete post
-
What's disadvantages when using bind variables always in java?
Hello everyone .. Could someone tell me what's the disadvantage when using bind variable in java ? I heard it somecases since before.. Thanks in advance!
99% of the time, you should be using bind variables. If you have columns which are highly skewed, however, you may want to consider using literals (assuming CURSOR_SHARING=EXACT), since that may allow the CBO to make a better decision.
If you have an orders table, for example, you may have a status column that specifies whether the order is complete, in transit, or new. If you've been running for a while, 99% of your orders will be complete, so
SELECT COUNT(*)
FROM orders
WHERE status = :1should do a full table scan if you specify 'COMPLETE'. If you passed in 'IN TRANSIT', though, an index scan might be more appropriate. If you want to pass in different values and get different query plans, you need to use literals. 99% of the time, though, you want the same plan, so you want to use bind variables.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
-When I click on a picture on some sites it will go to the next page with a large view of the picture and then when I go back one page to do the same with another picture (or even the same picture) nothing happens.
-Videos don't show up or on some sites the videos do show up and work but you can't make them full screen. (YouTube works fine).
-Sometimes I have to click "Reload" to get my saved codes to show up.
-It won't let me log onto some sites unless I right click where it says "sign in" and click "open link in new tab".
-In some Forums the tool bars, smileys, etc. don't work when using Firefox or IE9 and they worked before with IE9.
-Some of my letters when viewed with IE9 are now in some kind of code (maybe html?).
I never had these problems before when using IE9 alone!
Java was updated before I installed Firefox and I installed the Adobe Flash Player 10 plugin right after installing Firefox. My OS is Windows 7 64-bit.
Please Help. Thank YouClear Cookies & Cache
* https://support.mozilla.com/en-US/kb/Template:clearCookiesCache
Clear the Network Cache
* https://support.mozilla.com/en-US/kb/How%20to%20clear%20the%20cache#w_clear-the-cache
Reload web page(s) and bypass the cache.
* Press and hold Shift and left-click the Reload button.
* Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
* Press "Cmd + Shift + R" (MAC)
Troubleshooting extensions and themes
* https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes
Check and tell if its working. -
Hi,
I am using db-6.0.20 on debian 7 64bit, build with --enable-o_direct.
When set DB_DIRECT_DB using dbenv::set_flags() and/or DB_LOG_DIRECT dbenv::log_set_config(), I got DB_EVENT_WRITE_FAILED in dbenv::repmgr_start().
It seems that the the address specified in buf and the value specified in count is not suitably aligned to the value requested by O_DIRECT flag.
# Log file created/rotated Monday, 9 Sep 13 05:14:05 GMT
[51140/51140] [1378703645.687] [N] [Srv] Server starting up.
[51140/51140] [1378703645.694] [I] [stdout] Server: Terminal output redirected to log.
[51140/51140] [1378703645.695] [E] [stderr] Server pid: 51140
[51140/51140] [1378703645.747] [I] [DB.DbMsg] [1378703645:747728][51140/51140] REP_UNDEF: EID 0 is assigned for site 192.168.101.148:8866
[51140/51140] [1378703645.748] [I] [DB.DbMsg] [1378703645:748012][51140/51140] REP_UNDEF: EID 1 is assigned for site 192.168.101.148:6666
[51140/51140] [1378703645.756] [I] [DB.DbMsg] BDB2525 No log files found
[51140/51140] [1378703645.760] [I] [DB.DbMsg] [1378703645:760280][51140/51140] REP_UNDEF: set membership for 192.168.101.148:8866 4 (was 0)
[51140/51140] [1378703645.760] [I] [DB.DbMsg] [1378703645:760605][51140/51140] REP_UNDEF: Check view. Exist 0, cb 0
[51140/51140] [1378703645.760] [E] [DB.DbErr] BDB0137 write: 0x7fffffffd430, 1: Invalid argument
[51140/51140] [1378703645.760] [F] [DB.Event] DB_EVENT_WRITE_FAILED
[51140/51140] [1378703645.760] [E] [DB.DbErr] BDB0137 write: 0x7ffff6c8f0c8, 32000: Invalid argument
[51140/51140] [1378703645.760] [F] [DB.Event] DB_EVENT_WRITE_FAILED
[51140/51140] [1378703645.760] [E] [DB.DbErr] BDB0137 write: 0x7ffff6c690d0, 28: Invalid argument
[51140/51140] [1378703645.760] [F] [DB.Event] DB_EVENT_WRITE_FAILED
[51140/51140] [1378703645.760] [E] [DB.DbErr] BDB3673 rep_start: Invalid argument
[51140/51140] [1378703645.762] [E] [DB.DbErr] BDB0137 write: 0x7fffffffd910, 1: Invalid argument
[51140/51140] [1378703645.762] [F] [DB.Event] DB_EVENT_WRITE_FAILED
[51140/51140] [1378703645.762] [E] [DB.DbErr] BDB0137 write: 0x7ffff6c8f0c8, 32000: Invalid argument
[51140/51140] [1378703645.762] [F] [DB.Event] DB_EVENT_WRITE_FAILED
[51140/51140] [1378703645.762] [E] [DB.DbErr] BDB0137 write: 0x7ffff6c690d0, 28: Invalid argument
[51140/51140] [1378703645.762] [F] [DB.Event] DB_EVENT_WRITE_FAILED
[51140/51140] [1378703645.774] [E] [Srv] DbEnv::repmgr_start: Invalid argument
[51140/51140] [1378703645.774] [N] [Srv] Server shutdown done.
My settings:
dbenv.set_flags(DB_DIRECT_DB |
DB_REGION_INIT |
DB_TIME_NOTGRANTED,
1);
dbenv.log_set_config(DB_LOG_AUTO_REMOVE |
DB_LOG_DIRECT |
DB_LOG_ZERO,
1);
dbenv.rep_set_config(DB_REP_CONF_BULK |
DB_REP_CONF_LEASE,
1);
dbenv.open(db_home.c_str(),
DB_PRIVATE |
DB_CREATE |
DB_RECOVER | DB_FAILCHK |
DB_THREAD |
DB_INIT_REP |
DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_TXN |
DB_INIT_MPOOL ,
S_IRUSR | S_IWUSR | S_IRGRP);
Thanks for any help,
KevinHi Kevin,
Thanks for reporting this. I can reproduce the issue on our Linux testing machine.
An internal ticket has been created for this issue, and we will try to fix it.
Please avoid using the direct i/o currently when using Berkeley DB currently.
Regards,
Winter, Oracle Berkeley DB -
Trying to Install RMS application 13.2.2 and I get past the pre-installation checks and when I get to the Data Source details and enter the data source details with the check box checked to validate the schema/Test Data Source I get the following error:
Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver. Please check that the library path is set up properly or switch to the JDBC thin client oracle/jdbc/driver/T2CConnection.getLibraryVersioNumber()
Checks performed:
RMS Application code location and directory contents:
[oracle@test-rms-app application]$ pwd
/binary_files/STAGING_DIR/rms/application
[oracle@test-rms-app application]$ ls -ltr
total 144
-rw-r--r-- 1 oracle oinstall 272 Dec 7 2010 version.properties
-rw-r--r-- 1 oracle oinstall 405 Jan 16 2011 expected-object-counts.properties
-rw-r--r-- 1 oracle oinstall 892 May 13 2011 ant.install.properties.sample
-rw-r--r-- 1 oracle oinstall 64004 Jun 6 2011 build.xml
drwxr-xr-x 9 oracle oinstall 4096 Jun 16 2011 rms13
drwxr-xr-x 3 oracle oinstall 4096 Jun 16 2011 installer-resources
drwxr-xr-x 3 oracle oinstall 4096 Jun 16 2011 antinstall
drwxr-xr-x 2 oracle oinstall 4096 Jun 16 2011 ant-ext
drwxr-xr-x 5 oracle oinstall 4096 Jun 16 2011 ant
-rw-r--r-- 1 oracle oinstall 11324 Dec 18 09:18 antinstall-config.xml.ORIG
-rwxr-xr-x 1 oracle oinstall 4249 Dec 18 10:01 install.sh
drwxr-xr-x 4 oracle oinstall 4096 Dec 18 10:06 common
-rw-r--r-- 1 oracle oinstall 16244 Dec 19 10:37 antinstall-config.xml
-rw-r--r-- 1 oracle oinstall 689 Dec 19 10:37 ant.install.log
[oracle@test-rms-app application]$
Application installation:
[oracle@test-rms-app application]$ ./install.sh
THIS IS the driver directory
Verified $ORACLE_SID.
Verified SQL*Plus exists.
Verified write permissions.
Verified formsweb.cfg read permissions.
Verified Registry.dat read permissions.
Verified Java version 1.4.2.x or greater. Java version - 1.6.0
Verified Tk2Motif.rgb settings.
Verified frmcmp_batch.sh status.
WARNING: Oracle Enterprise Linux not detected. Some components may not install properly.
Verified $DISPLAY - 172.16.129.82:0.0.
This installer will ask for your "My Oracle Support" credentials.
Preparing installer. This may take a few moments.
Your internet connection type is: NONE
Integrating My Oracle Support into the product installer workflow...
[move] Moving 1 file to /binary_files/STAGING_DIR/rms/application
Installer preparation complete.
MW_HOME=/u01/app/oracle/Middleware/NewMiddleware1034
ORACLE_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/as_1
ORACLE_INSTANCE=/u01/app/oracle/Middleware/NewMiddleware1034/asinst_1
DOMAIN_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/user_projects/domains/rmsClassDomain
WLS_INSTANCE=WLS_FORMS
ORACLE_SID=rmsdbtst
JAVA_HOME=/u01/app/oracle/jrockit-jdk1.6.0_45-R28.2.7-4.1.0
Launching installer...
To make sure I have connectivity from the app server to the database (on a database server) here are the steps followed:
[oracle@test-rms-app application]$ tnsping rmsdbtst
TNS Ping Utility for Linux: Version 11.1.0.7.0 - Production on 19-DEC-2013 10:41:40
Copyright (c) 1997, 2008, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = test-rms-db.vonmaur.vmc)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = rmsdbtst)))
OK (0 msec)
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ sqlplus rms13@rmsdbtst
SQL*Plus: Release 11.1.0.7.0 - Production on Thu Dec 19 10:46:18 2013
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ ping test-rms-db
PING test-rms-db.vonmaur.vmc (192.168.1.140) 56(84) bytes of data.
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=1 ttl=64 time=0.599 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=2 ttl=64 time=0.168 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=3 ttl=64 time=0.132 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=4 ttl=64 time=0.158 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=5 ttl=64 time=0.135 ms
--- test-rms-db.vonmaur.vmc ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4001ms
rtt min/avg/max/mdev = 0.132/0.238/0.599/0.181 ms
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ uname -a
Linux test-rms-app.vonmaur.vmc 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ cat /etc/*-release
Enterprise Linux Enterprise Linux Server release 5.3 (Carthage)
Red Hat Enterprise Linux Server release 5.3 (Tikanga)
[oracle@test-rms-app application]$
The database is created and all the batch file scripts have been successfully deployed. Now working on the application server. The Weblogic server is installed and 11g forms and reports are installed successfully.
Any help would be helpful.
Thanks,
Ram.Please check MOS Notes:
FAQ: RWMS 13.2 Installation and Configuration (Doc ID 1307639.1) -
How to use Thread.sleep() with Java Berkeley Base API?
Hi,
I have explained the weird problem about the server was too busy to response to SSH but it continued to finish to run (Server not response when inserting millions of records using Java Base API
Even I tried to increase CachSize and renice Java program, but it did not work. So, I am thinking to set sleeping time for threads in Java Berkeley Base API (using “ps” command, there were 18 light weight processes created). My program did not implement transaction or concurrency because it simply creates (millions) databases records only. Is it possible and correct to do like this in the code:
try{
//do create a db record
Thread.currentThread().sleep(1000);//sleep for 1000 ms
catch(ItrerruptedException ie){
Thank you for your kindly suggestion.
Nattiyawhere can I get the help doc about use AT commands in java.
Can you give me some code example about this. It is
difficulty to me to write it myself.You simply have to send the characters and receive the characters via the comm extension. Here is the ITU standard command set - http://ridge.trideja.com/wireless/atcommands/v250.pdf. Various modems and other devices extend this in a number of ways, you may need to find documentation specific to your device as well. But start with the standard. -
Berkeley db lost data when using autocommit
I has written an app which uses berkeley db 4.5.20(libdb_cxx-4.5.so). There are serveral threads reading and writing the same db using autocommit. All the reading threads share one db handle and All writing threads have their own db handles. In reading threads, cursor and explicit transaction are used to retrieve data. In write thread, the db->put method is used to write data. In the app, the return value of put is checked to see whether success.
After serveral days running, the app definitely lost some data(there is a thread to dump the imcomming data to disk for comparison), and the return value of put method seems all ok. Can someone point out the possible reason or how to debug this from log files or something else?
The DBENV is opened with flags,
DB_INIT_TXN | DB_INIT_MPOOL |
DB_INIT_LOCK | DB_INIT_LOG |
DB_CREATE | DB_RECOVER |
DB_THREAD
The DB handle is opened with flags, DB_CREATE | DB_AUTO_COMMIT | DB_THREAD
thanks
Edited by: user13262865 on 2010-8-19 下午10:20
Edited by: user13262865 on 2010-8-19 下午10:28Hi,
Thanks for your reply. Actually i got no hint from the link :). Today, i found the db->put method throw DB_RUNRECOVERY exception when a check point thread is on-going after the app runs about ten days. The check point thread stack is as follows,
Thread 12 (Thread 26744):
#0 0x000000368accc5f2 in select () from /lib64/libc.so.6
#1 0x00002b367aa29043 in __os_sleep ()
from /usr/local/BerkeleyDB.4.5/lib/libdb_cxx-4.5.so
#2 0x00002b367aa24090 in __memp_sync_int ()
from /usr/local/BerkeleyDB.4.5/lib/libdb_cxx-4.5.so
#3 0x00002b367aa2470e in __memp_sync ()
from /usr/local/BerkeleyDB.4.5/lib/libdb_cxx-4.5.so
#4 0x00002b367aa316aa in __txn_checkpoint ()
from /usr/local/BerkeleyDB.4.5/lib/libdb_cxx-4.5.so
#5 0x00002b367aa319f1 in __txn_checkpoint_pp ()
from /usr/local/BerkeleyDB.4.5/lib/libdb_cxx-4.5.so
#6 0x00002b367a965257 in DbEnv::txn_checkpoint(unsigned int, unsigned int, unsigne
d int) () from /usr/local/BerkeleyDB.4.5/lib/libdb_cxx-4.5.so
#7 0x0000000000437e1f in DBEnv::checkPoint (this=0x676ae0)
at ../source/DBEnv.cpp:46
#8 0x000000000043e436 in thread_check_point (arg=0x7fffcce2b6b0)
at ../source/ChkPointer.cpp:43
#9 0x000000368b806367 in start_thread () from /lib64/libpthread.so.0
#10 0x000000368acd30ad in clone () from /lib64/libc.so.6
My Berkeley version is db-4.5.20.NC
Edited by: user13262865 on 2010-8-31 上午4:50
Edited by: user13262865 on 2010-8-31 上午4:51 -
App crash when using JAVA callbacks from native threads in solaris
Hi all,
Sorry for putting the thread here. I did use the native methods forum, I wasnt lucky. I Hope more people would look into this forum, which brings me here.
I have a solaris application which crashes when I try to callback the JAVA methods and variables from the native code. The description of the problem is below
Written a native library, the library is multithreaded (i.e) I create a thread using pthread_create() in the native code which performs the operation of calling a JAVA method from the native code. The routine of calling the JAVA method works perfectly elsewhere outside the new thread.
There are two scenarios I've tested it in
1. I created a thread (say X) from the main thread (say Y) and made the y to wait until the X is complete using the pthread_join(). The JAVA callbacks works fine when called from Y but the app crashes if done from X.
2. Did not make the Y to wait until the X is complete, hoping that both will run paralelly and even the the App crashes.
And to be precise the Y is the thread where the native method is called from JAVA.
I have tested for any memory leaks or stack corruption by removing the JAVA callbacks and bulding a executable and using purify, the report doesnot hint any such occurances.
The linker options used for building the shared library is as follows
${GPP} ${INC} -G ${LIB} -mt -g -lCstd -lCrun -lpthread ${OBJS} -o <lib-name>
I wonder if we can create threads in the native code when using JAVA callbacks and even if we can whether it would be appropiate to use the callbacks with in the threads
Looking forward for any help.
Regards,
VamsiGuys... can't any one help me with this problem :(
-
Java Heap Error when using Stateless Session Timer Bean deployed in Oracle
Hi,
Am getting following Java Heap Error when using Stateless Session Timer Bean deployed in Oracle 10g AS R3 (Oracle Containers for J2EE 10g (10.1.3.0.0) (build 060119.1546.05277) ):
06/08/02 14:58:43 javax.ejb.EJBException: java.lang.OutOfMemoryError: Java heap space
06/08/02 14:58:43 at com.evermind.server.ejb.EJBUtils.getLocalUserException(EJBUtils.java:304)
06/08/02 14:58:43 at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:67)
06/08/02 14:58:43 at com.evermind.server.ejb.interceptor.system.TxNotSupportedInterceptor.invoke(TxNotSupportedInterceptor.java:45)
06/08/02 14:58:43 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
06/08/02 14:58:43 at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:86)
06/08/02 14:58:43 at com.evermind.server.ejb.StatelessSessionEJBHome.invokeTimer(StatelessSessionEJBHome.java:71)
06/08/02 14:58:43 at com.evermind.server.ejb.EJBContainer.invokeTimer(EJBContainer.java:1624)
06/08/02 14:58:43 at oracle.ias.container.scheduler.TimerTask.runBeanTimer(TimerTask.java:92)
06/08/02 14:58:43 at oracle.ias.container.scheduler.TimerTask.run(TimerTask.java:184)
06/08/02 14:58:43 at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:819)
06/08/02 14:58:43 at java.lang.Thread.run(Thread.java:595)
06/08/02 14:58:43 Caused by: java.lang.OutOfMemoryError: Java heap space
I had tried using -Xms / -Xmx options (upto 1 GB).
The trace of exception gets delayed (from being displayed on the console) as the memory size is increased; but after sometime it starts getting displayed on the console.
Even though this exception is displayed on the console, the Timer Bean continues to execute upto sometime before it finally crashes!
If anyone has encountered such problem; would appreciate if you could share the solution.
Regards, VidyadharHi guys, I have the same problem. I have an application EAR file with two modules (EJB and WAR starting in this order). The application can schedule a process via EJB timer. In this case restarting the server I receive the error above. If I change the modules start order --> WAR - EJB the server start correctly, but the application scheduler fails (the persistency is not working) with this error:
07/10/09 10:30:54 FINISSIMO: TimerTask.runBeanTimer java.lang.NullPointerException; nested exception is: java.lang.NullPointerExceptionjavax.ejb.TransactionRolledbackLocalException: java.lang.NullPointerException; nested exception is: java.lang.NullPointerException
java.lang.NullPointerException
at java.util.ListResourceBundle.handleGetObject(ListResourceBundle.java:107)
at java.util.ResourceBundle.getObject(ResourceBundle.java:319)
at java.util.ResourceBundle.getString(ResourceBundle.java:285)
at java.util.logging.Formatter.formatMessage(Formatter.java:108)
at oracle.j2ee.util.TraceLogFormatter.format(TraceLogger.java:124)
at oracle.j2ee.util.TraceLogger$TraceLoggerHandler.publish(TraceLogger.java:105)
at java.util.logging.Logger.log(Logger.java:428)
at java.util.logging.Logger.doLog(Logger.java:450)
at java.util.logging.Logger.log(Logger.java:539)
at oracle.ias.container.timer.TimerEntry.readObjFromBytes(TimerEntry.java:308)
at oracle.ias.container.timer.TimerEntry.getInfo(TimerEntry.java:107)
at oracle.ias.container.timer.Timer.getInfo(Timer.java:367)
at oracle.ias.container.timer.EJBTimerImpl.getInfo(EJBTimerImpl.java:89)
at com.finantix.foundation.integration.ejbtimer.EJBTimerServiceExecutorBean.ejbTimeout(EJBTimerServiceExecutorBean.java:42)
at com.evermind.server.ejb.interceptor.joinpoint.EJBTimeoutJoinPoint.invoke(EJBTimeoutJoinPoint.java:20)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxBeanManagedInterceptor.invoke(TxBeanManagedInterceptor.java:53)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at com.evermind.server.ejb.StatelessSessionEJBHome.invokeTimer(StatelessSessionEJBHome.java:38)
at com.evermind.server.ejb.EJBContainer.invokeTimer(EJBContainer.java:1714)
at oracle.ias.container.scheduler.TimerTask.runBeanTimer(TimerTask.java:106)
at oracle.ias.container.scheduler.TimerTask.run(TimerTask.java:220)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
javax.ejb.TransactionRolledbackLocalException: java.lang.NullPointerException; nested exception is: java.lang.NullPointerException
at com.evermind.server.ejb.EJBUtils.getLocalUserException(EJBUtils.java:309)
at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:73)
at com.evermind.server.ejb.interceptor.system.TxBeanManagedInterceptor.invoke(TxBeanManagedInterceptor.java:55)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at com.evermind.server.ejb.StatelessSessionEJBHome.invokeTimer(StatelessSessionEJBHome.java:38)
at com.evermind.server.ejb.EJBContainer.invokeTimer(EJBContainer.java:1714)
at oracle.ias.container.scheduler.TimerTask.runBeanTimer(TimerTask.java:106)
at oracle.ias.container.scheduler.TimerTask.run(TimerTask.java:220)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at java.util.ListResourceBundle.handleGetObject(ListResourceBundle.java:107)
at java.util.ResourceBundle.getObject(ResourceBundle.java:319)
at java.util.ResourceBundle.getString(ResourceBundle.java:285)
at java.util.logging.Formatter.formatMessage(Formatter.java:108)
at oracle.j2ee.util.TraceLogFormatter.format(TraceLogger.java:124)
at oracle.j2ee.util.TraceLogger$TraceLoggerHandler.publish(TraceLogger.java:105)
at java.util.logging.Logger.log(Logger.java:428)
at java.util.logging.Logger.doLog(Logger.java:450)
at java.util.logging.Logger.log(Logger.java:539)
at oracle.ias.container.timer.TimerEntry.readObjFromBytes(TimerEntry.java:308)
at oracle.ias.container.timer.TimerEntry.getInfo(TimerEntry.java:107)
at oracle.ias.container.timer.Timer.getInfo(Timer.java:367)
at oracle.ias.container.timer.EJBTimerImpl.getInfo(EJBTimerImpl.java:89)
at com.finantix.foundation.integration.ejbtimer.EJBTimerServiceExecutorBean.ejbTimeout(EJBTimerServiceExecutorBean.java:42)
at com.evermind.server.ejb.interceptor.joinpoint.EJBTimeoutJoinPoint.invoke(EJBTimeoutJoinPoint.java:20)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxBeanManagedInterceptor.invoke(TxBeanManagedInterceptor.java:53)
... 9 more
Any idea?
Thx Auro -
ERROR MESSAGE WHEN USING PACK COMMAND Missing file ////presenter.css Command then fails
Also: "This course requires JavaScript to be enabled in your browser. Please enable JavaScript, then relaunch the course." I have Java enabled in all browsers
Thoughts? Using Presenter 10 Win 8.1 Intel I7 new HP with plenty of memory
ThanksI had saved one copy as an .asp but then resaved it to .xhtml
I'm assuming this is a static web site. Rename (F2) all your pages with .html or .htm extension.
.xhtml is not a valid extension.
Nancy O.
Maybe you are looking for
-
Does anyone know of any good accesories for the zen touch and which website i could find them on. Thanks
-
Snow Leopard indexing - mail and documents.
Mail index is seriously broken and document index seems to be failing. Is there a simple way to force Snow Leopard to rebuild all indexes?
-
Process description : Invoice Reduction
Hi I hope someone can explain the process Invoice Reduction. I have made a PO for 10 pc of 100 EUR each - total 1000 EUR. I make a GR for the PO. Then I register an Invoice (MIRO) for 1100 EUR from the vendor and park it because this is wrong. I chan
-
I use Adobe Acrobat 8 professional for Mac, and the OCR function stopped working. Installing updates hasn't helped. Any suggestions?
-
how am I to be able a user to grant access only to see a procedure / function without execute,compile,edit and drop?