Exceptions in oracle::occi::Environment's class terminate methods
Could terminateEnvironment or terminateConnection oracle::occi::Environment's throw an Exception?
I want to call this methods from a destructor and I must to know it (the doc say nothing)
Thanks in advance!
Best regards
Hi,
No, I just installed the application on one machine, so i can't reproduce it on another machine.What is the OS?
Can you please explain what you mean by:
see if the solution in (Note: 1076817.1 - Cannot Launch FDHM IN DBI, It Shows Blank Screen) helps.This is a My Oracle Support document -- https://support.oracle.com
Thanks,
Hussein
Similar Messages
-
I got this error when i try to run sample database access using OCCI libraries.
test.cpp:21: undefined reference to `oracle::occi::Environment::createEnvironment(oracle::occi::Environment::Mode, void*, void* (*)(void*, unsigned int), void* (*)(void*, void*, unsigned int), void (*)(void*, void*))'
Following link contains same problem but there is no answer.
#include <iostream>
#include <occi.h>
using oracle::occi::Connection;
using oracle::occi::Environment;
using oracle::occi::Statement;
using oracle::occi::ResultSet;
using namespace std;
int main() {
Environment *environment;
Connection *con;
Statement* stmt;
ResultSet* res;
try {
//std::cout << "dasfasfafa";
environment = Environment::createEnvironment(oracle::occi::Environment::DEFAULT);
con = environment->createConnection("aaa", "aaa", "Caaa");
stmt = con->createStatement("select * from emp");
res = stmt->executeQuery();
while (res->next())
std::cout << res->getInt(1) << " " << res->getString(2) << std::endl;
stmt->closeResultSet(res);
con->terminateStatement(stmt);
environment->terminateConnection(con);
} catch (oracle::occi::SQLException &e) {
std::cout << e.what();
return 0;
}The demos have this:
#include <iostream>
#include <occi.h>
using namespace oracle::occi;
using namespace std;
... -
I'm trying to compile an hello world example on my computer. I've read the documentation for requirements occi on the site
http://docs.oracle.com/cd/E11882_01/install.112/e24322/pre_install.htm#CHDHFGBJ
It says that the g++ compiler 3.4.6 or later is supported. I have:
Ubuntu 12.04
gcc 4.6.3
oracle instant client 11.2
and the error is below, does anyone have a suggestion?
g++ main.cpp -c -I/home/tim/skrivbord/bin/oracle/instantclient_11_2/include/ -D_REENTRANT -g -Wall
g++ -o pippo -L/home/tim/skrivbord/bin/oracle/instantclient_11_2/ -locci -lclntsh -lociei -lnnz11 main.o
main.o: In function `main':
/home/tim/skrivbord/dev/cpp/main.cpp:21: undefined reference to `oracle::occi::Environment::createEnvironment(oracle::occi::Environment::Mode, void*, void* (*)(void*, unsigned int), void* (*)(void*, void*, unsigned int), void (*)(void*, void*))'
collect2: ld returned 1 exit status
make: *** [buildocci] Error 1
main.cpp:
#include <iostream>
#include <occi.h>
using namespace std;
using namespace oracle::occi;
int main(){
Environment *environment;
environment = Environment::createEnvironment();
return 0;
}For correctness I will close this question. I had made some errors with my environment variables LD_LIBRARY_PATH and specially I did not have libaio installed which is well documented that it has to be.
-
I am working on R12.1.3 multi node shared appltop installtion on OEL 5.4. installations were successful and running fine since 10 days , today suddnly i have got the error stack on login screen. please help.
Error Page
Exception Details.
oracle.apps.fnd.framework.OAException: Illegal method call because there is no database connection.
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1251)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:2195)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
at OA.jspService(_OA.java:212)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
at OA.jspService(_OA.java:221)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
at OA.jspService(_OA.java:221)
if any one got same issue pls help.
Thx
RBHussain,
No Errors found in Db alert log files.
same issue in all client systems.
only Apache service is showing as down in adopmnctl stattus
You are running adopmnctl.sh version 120.6.12010000.5
Checking status of OPMN managed processes...
--------------------------------------------------------------+---------
ias-component | process-type | pid | status
--------------------------------------------------------------+---------
OC4JGroup:default_group | OC4J:oafm | 3839 | Alive
OC4JGroup:default_group | OC4J:forms | 3770 | Alive
OC4JGroup:default_group | OC4J:oacore | 3623 | Alive
HTTP_Server | HTTP_Server | 1802 | Stop
Thx
RB -
Occi::environment createConnection throws exception
Hi there,
I tried connecting to my Oracle 11g database in debug mode but was unsuccessful. I am developing an ActiveX plugin using Visual Studio 2008. I downloaded OCCI 11.1.0.6.0 and instant client 11.2.0.1.0, extracted the the lib and dll files to my project directory, included the header files as part of my project include directory. Release mode works fine but it's debug that I am having issues with. When I link against oraocci11d.lib in debug mode, it gives me the error "error PRJ0050: Failed to register output. Please ensure you have the appropriate permissions to modify the registry." So then I linked against oraocci11.lib and was able to build successfully. However, I get the following error:
try
env = Environment::createEnvironment(Environment::DEFAULT);
conn = env->createConnection("SYSTEM", "pwd", "remoteserver:1521/TEST"); //fails here
env->terminateConnection(conn);
Environment::terminateEnvironment(env);
catch (SQLException& e)
std::cout<<e.what();
First-chance exception at 0x7c812afb in iexplore.exe: Microsoft C++ exception: oracle::occi::SQLException at memory location 0x0013a748..
First-chance exception at 0x7c812afb in iexplore.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
I see that others are having slightly different issues with Debug mode but I did not see a resolution for any of them. Any help would be much appreciated!
Edited by: user13168246 on Jun 25, 2010 4:08 PMMake sure you include th directory that contains all the necessary header files in your project. It should be in your installed oracle directory (eg. d:\app\oracle\product\11.2.0\dbhome_1\OCI\include) so point to that in Project Properties->C/C++->General->Additional Include Directories. Then link it to oraocci11d.lib under Project Properties->Linker->Input->Additional Dependencies. Also include the following DLLs oraociei11.dll, oraocci11d.dll, oraocci11.dll, orannzsbb11.dll in your debug and release directories.
-
64 bit Windows Vista Oracle Client Environment::createEnvironment exception
Platform: 64 bit Windows Vista Business
Oracle : oraocci10.dll version 10.2.0.3
Oci.dll version 10.2.0.1
Both of these were downloaded from Oracle packages:
Instantclient-basic-win-x86-64-10.2.0.3.0.zip
Instantclient-sdk-win-x86-64-10.2.0.3.0.zip
A call to Environment::createEnvironment(Environment::DEFAULT)
Throws and exception oracle::occi::SQLException with garbled text.
The programs works (unchanged) in 32 bit windows environments with different instant client versions.
Any help is appreciated.Is this not supported on 10G?
At this point it is not feasible to upgrade the server to 11G. -
Oracle Java Environment Error - Not enough java classes defined ?
I'm using 11gR1, and recently ran into a problem with Java Stored Procedures.
It was working fine last week, and then this week at runtime I started getting an error:
Error in Oracle java environment: ops1 - java.lang.Exception: Not enough java classes defined in the database. Java Stored Procedures are not installed properly.
I checked both the SYS schema and my user schema's Java classes. Neither had any invalid classes. For my user schema, the number of java classes seems right. For the SYS schema, I haven't figured out how to get past the 2000 rows fetch limit, so it will max out at 2000 - none of which are invalid.
I cleared out my user schema and re-loaded its classes, and they all compiled/validated fine.
A google search found no help...
TIA
Update (results of class count query):
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select count (*) from dba_objects where object_type like '%JAVA%';
COUNT(*)
28895
Edited by: GDub on Aug 18, 2010 2:37 PMI'm using 11gR1, and recently ran into a problem with Java Stored Procedures.
It was working fine last week, and then this week at runtime I started getting an error:
Error in Oracle java environment: ops1 - java.lang.Exception: Not enough java classes defined in the database. Java Stored Procedures are not installed properly.
I checked both the SYS schema and my user schema's Java classes. Neither had any invalid classes. For my user schema, the number of java classes seems right. For the SYS schema, I haven't figured out how to get past the 2000 rows fetch limit, so it will max out at 2000 - none of which are invalid.
I cleared out my user schema and re-loaded its classes, and they all compiled/validated fine.
A google search found no help...
TIA
Update (results of class count query):
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select count (*) from dba_objects where object_type like '%JAVA%';
COUNT(*)
28895
Edited by: GDub on Aug 18, 2010 2:37 PM -
Java concurrent program class not found Exception in oracle apps
Hi all,
I done java concurrent program as per steps given by oracle.I am getting class not exception when i am submitting that concurrent program.
My java file is under $JAVA_TOP specified folder.Those path from $JAVA_TOP i set in apps (System Adminstrator -->Executable) Execution file path.Can any body have faced this issue?
ThanksAlso go through the metalink Note:250964.1
It goes through the complete process of creating a sample java conc process and implementing it.
--Shiv -
Mac OS X SQL Developer Exception initializing 'oracle.dbtools.raptorDBAddin
I can't get the DB Connnection wizard to startup, probably because Raptor didn't initialize properly. I've cleaned out ~/.sqldeveloper, I've added the
appropriate NLS lines to sqldeveloper.conf:
AddVMOption -Duser.language=en
AddVMOption -Duser.country=US
AddVMOption -Duser.region=US
and I'm using the latest download sqldeveloper-5783-macosx.tar.gz.
Java is:
java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode)
Mac OS Version is 10.5.6 on a MacBook Pro.
I also have Instant_client_10_2 installed. Perhaps the libraries from this are interfering in some way?
Can anyone please help?
Exception stack follows. This stack was displayed in a terminal window:
cd /Applications/SQLDeveloper.app/Contents/MacOS
bash ./sqldeveloper.sh
Exception initializing 'oracle.dbtools.raptor.RaptorDBAddin' in extension 'Oracle SQL Developer': java.lang.NoSuchMethodError: oracle.i18n.util.GDKOracleMetaData.getDataPath()Ljava/lang/String;
at oracle.i18n.text.OraBoot.<clinit>(OraBoot.java:72)
at oracle.i18n.util.OraLocaleInfo.<init>(OraLocaleInfo.java:197)
at oracle.i18n.util.OraLocaleInfo.getInstance(OraLocaleInfo.java:272)
at oracle.dbtools.raptor.config.DBConfig.<clinit>(DBConfig.java:286)
at oracle.dbtools.raptor.RaptorDBAddin.initialize(RaptorDBAddin.java:111)
at oracle.ideimpl.extension.AddinManagerImpl.initializeAddin(AddinManagerImpl.java:405)
at oracle.ideimpl.extension.AddinManagerImpl.initializeAddins(AddinManagerImpl.java:214)
at oracle.ideimpl.extension.AddinManagerImpl.initProductAndUserAddins(AddinManagerImpl.java:128)
at oracle.ide.IdeCore.initProductAndUserAddins(IdeCore.java:1804)
at oracle.ide.IdeCore.startupImpl(IdeCore.java:1481)
at oracle.ide.Ide.startup(Ide.java:662)
at oracle.ideimpl.DefaultIdeStarter.startIde(DefaultIdeStarter.java:35)
at oracle.ideimpl.Main.start(Main.java:110)
at oracle.ideimpl.Main.main(Main.java:72)
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:597)
at oracle.ide.boot.PCLMain.callMain(PCLMain.java:66)
at oracle.ide.boot.PCLMain.main(PCLMain.java:58)
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:597)
at oracle.classloader.util.MainClass.invoke(MainClass.java:128)
at oracle.ide.boot.IdeLauncher.bootClassLoadersAndMain(IdeLauncher.java:190)
at oracle.ide.boot.IdeLauncher.launchImpl(IdeLauncher.java:90)
at oracle.ide.boot.IdeLauncher.launch(IdeLauncher.java:66)
at oracle.ide.boot.IdeLauncher.main(IdeLauncher.java:55)
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:597)
at oracle.ide.boot.Launcher.invokeMain(Launcher.java:729)
at oracle.ide.boot.Launcher.launchImpl(Launcher.java:115)
at oracle.ide.boot.Launcher.launch(Launcher.java:68)
at oracle.ide.boot.Launcher.main(Launcher.java:57)
Exception initializing 'oracle.dbtools.raptor.standalone.RaptorStandaloneAddin' in extension 'Oracle SQL Developer Extras': java.lang.NoClassDefFoundError: Could not initialize class oracle.dbtools.raptor.config.DBConfig
at oracle.dbtools.raptor.utils.URLChooserShortcuts.<clinit>(URLChooserShortcuts.java:39)
at oracle.dbtools.raptor.standalone.RaptorStandaloneAddin.initialize(RaptorStandaloneAddin.java:182)
at oracle.ideimpl.extension.AddinManagerImpl.initializeAddin(AddinManagerImpl.java:405)
at oracle.ideimpl.extension.AddinManagerImpl.initializeAddins(AddinManagerImpl.java:214)
at oracle.ideimpl.extension.AddinManagerImpl.initProductAndUserAddins(AddinManagerImpl.java:128)
at oracle.ide.IdeCore.initProductAndUserAddins(IdeCore.java:1804)
at oracle.ide.IdeCore.startupImpl(IdeCore.java:1481)
at oracle.ide.Ide.startup(Ide.java:662)
at oracle.ideimpl.DefaultIdeStarter.startIde(DefaultIdeStarter.java:35)
at oracle.ideimpl.Main.start(Main.java:110)
at oracle.ideimpl.Main.main(Main.java:72)
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:597)
at oracle.ide.boot.PCLMain.callMain(PCLMain.java:66)
at oracle.ide.boot.PCLMain.main(PCLMain.java:58)
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:597)
at oracle.classloader.util.MainClass.invoke(MainClass.java:128)
at oracle.ide.boot.IdeLauncher.bootClassLoadersAndMain(IdeLauncher.java:190)
at oracle.ide.boot.IdeLauncher.launchImpl(IdeLauncher.java:90)
at oracle.ide.boot.IdeLauncher.launch(IdeLauncher.java:66)
at oracle.ide.boot.IdeLauncher.main(IdeLauncher.java:55)
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:597)
at oracle.ide.boot.Launcher.invokeMain(Launcher.java:729)
at oracle.ide.boot.Launcher.launchImpl(Launcher.java:115)
at oracle.ide.boot.Launcher.launch(Launcher.java:68)
at oracle.ide.boot.Launcher.main(Launcher.java:57)
Exception in thread "XML Action Loader" java.lang.NoClassDefFoundError: Could not initialize class oracle.dbtools.raptor.config.DBConfig
at oracle.dbtools.raptor.dialogs.actions.XMLBasedObjectAction$1$1.run(XMLBasedObjectAction.java:148)
Exception in thread "EditorLoader" java.lang.NoClassDefFoundError: Could not initialize class oracle.dbtools.raptor.config.DBConfig
at oracle.dbtools.raptor.oviewer.base.ViewerAddin.loadXMLEditors(ViewerAddin.java:235)
at oracle.dbtools.raptor.oviewer.base.ViewerAddin$1$1.run(ViewerAddin.java:142)
at java.lang.Thread.run(Thread.java:637)
tethys:MacOS mbs$Setting ORACLE_HOME as below made no difference in the exception stack (same as reported above).
$ echo $ORACLE_HOME
/Applications/SQLDeveloper.app/Contents/Resources/sqldeveloper
ls $ORACLE_HOME
BC4J jdbc raptor_image.jpg sqldeveloper
dvt jdev rdbms sqldeveloper.sh
icon.png jlib relnotes.html timingframework
ide lib sqlcli
j2ee otn_new.css sqlcli.bat
Was this the correct ORACLE_HOME value to try?
Does anyone know the names and locations of the libraries that are likely to be conflicting (if that
is indeed the problem...)? -
Does Oracle occi have any memory bugs when writing blobs using streams?
The function below will produce some kind of memory corruption that will cause an exception (which cannot be identified since memory is corrupted) while doing another call:
ora::Statement stmt(__cn);
string sql("BEGIN Pckg.Sp_procA(:1, :2, :3, :4, :5, :6, :7, :8, "
":9, :10, :11, :12, ":13, :14, :15, :payload); END;");
occi::Blob payload(__cn.getConnection());
occi::Environment* tempEnv = occi::Environment::createEnvironment();
occi::Timestamp reportTime(tempEnv);
reportTime.fromText(__report.report_time), "yyyy-mm-ddH24:mi:ss.ff");
stmt.setSQL(sql);
stmt.setString (1, "");
stmt.setString (2, "");
stmt.setString (3, __report.varA);
stmt.setString (4, __report.varB);
stmt.setInt (5, __report.varC);
stmt.setString (6, __report.varD);
stmt.setString (7, __report.varE);
stmt.setString (8, __report.varF);
stmt.setTimestamp(9, reportTime);
stmt.setNull (10, occi::OCCITIMESTAMP);
stmt.setString (11, __report.varG);
stmt.setString (12, __report.varH);
stmt.setString (13, __report.varI);
stmt.setString (14, __report.varK);
stmt.setString (15, __report.varX);
stmt.setBinaryStreamMode(16, __report.payload.Size(), true);
stmt.executeUpdate();
occi::Stream* streamedData = stmt.getStream(16);
streamedData->writeLastBuffer(__report.payload.GetPtr(), __report.payload.Size());
stmt.closeStream(streamedData);
occi::Environment::terminateEnvironment(tempEnv);
return true;
The function below works perfectly unless the code above is executed and looks like this:
ora::Statement stmt(__cn);
string sql("BEGIN "
"Pckg.Sp_procB(:1, :2, :3, :4, :5, :6, :7, :8, :9, :10, :11); END;");
occi::Environment* tempEnv = occi::Environment::createEnvironment();
occi::Timestamp reportTime(tempEnv);
reportTime.fromText(__report.report_time, "yyyy-mm-dd HH24:mi:ss.ff");
stmt.setSQL(sql);
stmt.setString (1, "");
stmt.setString (2, "");
stmt.setString (3, __report.varA);
stmt.setString (4, __report.varB);
stmt.setInt (5, __report.varB);
stmt.setString (6, __report.varD);
stmt.setString (7, __report.varE);
stmt.setString (8, __report.varF);
stmt.setString (9, __report.varG);
stmt.setTimestamp(10, reportTime);
stmt.setNull (11, occi::OCCITIMESTAMP);
stmt.executeUpdate();
occi::Environment::terminateEnvironment(tempEnv);
return true;
I got the blob insert example from Oracle's documentation and can't see anything wrong with it. The second function also seems to be ok which got me thinking that Oracle's occi might have some kind of bug that corrupts memory. Anyone knows anything about this or has done anything similar?Does anyone insert blobs this way? Or just using the "insert -> select for update" way?
-
Crash in oracle::occi::Statement::execute
Hello,
Application essentially:
Environment *environment = Environment::createEnvironment(Environment::DEFAULT);
Connection *connection = environment->createConnection(...);
Statement *statement = connection->createStatement( < as below>);
statement->setPrefetchMemorySize(0);
statement->setPrefetchRowCount(100);
statement->execute(); // crash occurs here
Library v. 11.2.0.3, Linux, 64bit.
My program works fine with Statement::execute("select FEATURE_UID from PSV_FIELDS");
My program crashes with Statement::execute("select * from PSV_FIELDS");
The application works fine with other tables
Does anyone know what the problem is, is it in my code, in the library, somewhere else. And is there a way I can write this so that it works ?
Best Regards,
Even
SQL> describe PSV_FIELDS
Name Null? Type
MI_PRINX NUMBER
FEATURE_UID NOT NULL VARCHAR2(38)
FIELD VARCHAR2(100)
COUNTRY VARCHAR2(100)
OPERATOR VARCHAR2(100)
STATUS VARCHAR2(100)
DISCOVERY_ VARCHAR2(100)
DEVELOPMEN VARCHAR2(100)
PRODUCTION VARCHAR2(100)
TYPE VARCHAR2(100)
ABANDONED_ VARCHAR2(100)
FEATURE_GEOMETRY MDSYS.SDO_GEOMETRY
This is the valgrind report
==4285== Invalid read of size 8
==4285== at 0xF435929: ttca2p (in /usr/lib64/oracle/11.2.0.3/client/lib64/libclntsh.so.11.1)
==4285== by 0xDC021F1: ttcfopr (in /usr/lib64/oracle/11.2.0.3/client/lib64/libclntsh.so.11.1)
==4285== by 0xF41602A: ttcdrv (in /usr/lib64/oracle/11.2.0.3/client/lib64/libclntsh.so.11.1)
==4285== by 0xF3BF480: nioqwa (in /usr/lib64/oracle/11.2.0.3/client/lib64/libclntsh.so.11.1)
==4285== by 0xF3AD190: upirtrc (in /usr/lib64/oracle/11.2.0.3/client/lib64/libclntsh.so.11.1)
==4285== by 0xF3B37E1: kpurcsc (in /usr/lib64/oracle/11.2.0.3/client/lib64/libclntsh.so.11.1)
==4285== by 0xF3B07D2: kpuexec (in /usr/lib64/oracle/11.2.0.3/client/lib64/libclntsh.so.11.1)
==4285== by 0xF3ADCCC: OCIStmtExecute (in /usr/lib64/oracle/11.2.0.3/client/lib64/libclntsh.so.11.1)
==4285== by 0xC0DC05C: oracle::occi::StatementImpl::doOCIExecute() (in /usr/lib64/oracle/11.2.0.3/client/lib64/libocci.so.11.1)
==4285== by 0xC0DBFE3: oracle::occi::StatementImpl::do_execute() (in /usr/lib64/oracle/11.2.0.3/client/lib64/libocci.so.11.1)
==4285== by 0xC0DBF97: oracle::occi::StatementImpl::execute(std::string const&) (in /usr/lib64/oracle/11.2.0.3/client/lib64/libocci.so.11.1)
==4285== by 0xC0DC2ED: oracle::occi::StatementImpl::executeQuery(std::string const&) (in /usr/lib64/oracle/11.2.0.3/client/lib64/libocci.so.11.1)
==4285== Address 0xb0 is not stack'd, malloc'd or (recently) free'dThe problem was that the environment had to be created with Environment::OBJECT and not Environment::DEFAULT. An exception would have been nice though.
Best Regards,
Even -
Creating Fault Handling and Exception in Oracle BPEL
I am following BPELtutorial-Orderbooking.pdf and have successfully reached chapter 6 i.e. Creating Fault Handling and Exception in Oracle BPEL. Everything went fine except this one... i.e. after implementing the Fault Handling and Exception in Oracle BPEL when I execute my process and enter CustId that begins with 0.... the invokeCR generates error message as follows as expected:
<NegativeCredit xmlns="http://services.otn.com">
<part name="payload">
<error xmlns="http://services.otn.com">Bankruptcy Report</error>
</part>
</NegativeCredit>
However, the execution proceeds ahead instead of terminating. The tutorial states that the BPEL process should terminate as the SSN is invalid, can anyone please tell me whats going wrong.. ?Well not exactly.... but when click on the 'Audit' sheet under BPEL Console for this instance, I can see the following:
invokeCR (faulted)
[2006/03/20 10:35:07] "{http://services.otn.com}NegativeCredit" has been thrown. less
<NegativeCredit xmlns="http://services.otn.com">
<part name="payload">
<error xmlns="http://services.otn.com">Bankruptcy Report</error>
</part>
</NegativeCredit>
The above is exactly what the tutorial states will be the output, so I presumed that the exception must have fired ! -
Oracle AppsAdaptor causing Missing class error
Hi
Can any one help with the error we are encountering below. We have a production process that uses an Oracle Apps adaptor to call one of the supplied Oracle API's to insert data into the fnd_flex_values table from a BPEL process. Originally the adaptor was working but recently it stopped working when inserting records causing the errors below.
<bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>file:/nas/orasoft/delta/product/10.1.3/soaas/bpel/domains/default/tmp/.bpel_InsertProjectCodesOracle_1.4_6f5863e8891810138c841b2d8fbe166b.tmp/InsertFlexValues.wsdl [ InsertFlexValues_ptt::InsertFlexValues(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'InsertFlexValues' failed due to: Could not instantiate InteractionSpec oracle.tip.adapter.soa_erp.AppsStoredProcedureInteractionSpec due to:
Missing class: oracle.tip.adapter.soa_erp.AppsStoredProcedureInteractionSpec
Dependent class: oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA
Loader: oracle.bpel.common:10.1.3
Code-Source: /nas/orasoft/delta/product/10.1.3/soaas/bpel/lib/orabpel.jar
Configuration: <code-source> in /nas/orasoft/delta/product/10.1.3/soaas/j2ee/oc4j_soa/config/server.xml
This load was initiated at orabpel.root:0.0.0 using the Class.forName() method.
The missing class is not available from any code-source or loader in the system.; nested exception is:
oracle.classloader.util.AnnotatedClassNotFoundException:
Missing class: oracle.tip.adapter.soa_erp.AppsStoredProcedureInteractionSpec
Dependent class: oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA
Loader: oracle.bpel.common:10.1.3
Code-Source: /nas/orasoft/delta/product/10.1.3/soaas/bpel/lib/orabpel.jar
Configuration: <code-source> in /nas/orasoft/delta/product/10.1.3/soaas/j2ee/oc4j_soa/config/server.xml
This load was initiated at orabpel.root:0.0.0 using the Class.forName() method.
The missing class is not available from any code-source or loader in the system.; nested exception is:
org.collaxa.thirdparty.apache.wsif.WSIFException: Could not instantiate InteractionSpec oracle.tip.adapter.soa_erp.AppsStoredProcedureInteractionSpec due to:
Missing class: oracle.tip.adapter.soa_erp.AppsStoredProcedureInteractionSpec
Dependent class: oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA
Loader: oracle.bpel.common:10.1.3
Code-Source: /nas/orasoft/delta/product/10.1.3/soaas/bpel/lib/orabpel.jar
Configuration: <code-source> in /nas/orasoft/delta/product/10.1.3/soaas/j2ee/oc4j_soa/config/server.xml
This load was initiated at orabpel.root:0.0.0 using the Class.forName() method.
The missing class is not available from any code-source or loader in the system.; nested exception is:
oracle.classloader.util.AnnotatedClassNotFoundException:
Missing class: oracle.tip.adapter.soa_erp.AppsStoredProcedureInteractionSpec
Dependent class: oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA
Loader: oracle.bpel.common:10.1.3
Code-Source: /nas/orasoft/delta/product/10.1.3/soaas/bpel/lib/orabpel.jar
Configuration: <code-source> in /nas/orasoft/delta/product/10.1.3/soaas/j2ee/oc4j_soa/config/server.xml
This load was initiated at orabpel.root:0.0.0 using the Class.forName() method.
The missing class is not available from any code-source or loader in the system.</summary>
</part><part name="detail"><detail>org.collaxa.thirdparty.apache.wsif.WSIFException: Could not instantiate InteractionSpec oracle.tip.adapter.soa_erp.AppsStoredProcedureInteractionSpec due to:
Missing class: oracle.tip.adapter.soa_erp.AppsStoredProcedureInteractionSpec
Dependent class: oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA
Loader: oracle.bpel.common:10.1.3
Code-Source: /nas/orasoft/delta/product/10.1.3/soaas/bpel/lib/orabpel.jar
Configuration: <code-source> in /nas/orasoft/delta/product/10.1.3/soaas/j2ee/oc4j_soa/config/server.xml
This load was initiated at orabpel.root:0.0.0 using the Class.forName() method.
The missing class is not available from any code-source or loader in the system.; nested exception is:
oracle.classloader.util.AnnotatedClassNotFoundException:
Missing class: oracle.tip.adapter.soa_erp.AppsStoredProcedureInteractionSpec
Dependent class: oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA
Loader: oracle.bpel.common:10.1.3
Code-Source: /nas/orasoft/delta/product/10.1.3/soaas/bpel/lib/orabpel.jar
Configuration: <code-source> in /nas/orasoft/delta/product/10.1.3/soaas/j2ee/oc4j_soa/config/server.xml
This load was initiated at orabpel.root:0.0.0 using the Class.forName() method.
The missing class is not available from any code-source or loader in the system.</detail>
</part></bindingFault>Hi,
This issue occurs if any tag is missing in one of the following files
oc4-ra.xml
application.xml
server.xml
check manually in oc4j-ra.xml and server.xml if any tags are missing particularly <connector-factory> tag
%ORACLE_HOME%\j2ee\oc4j_soa\application-deployments\default\ AppsAdapter\oc4j-ra.xml if any tag is missing.
once modified restart oc4j server and test
Regards,
Deepa -
Oracle::occi::SQLException ORA-01804
I'm trying to connect to my oracle server using OCCI, my code runs when I run it from any client. but when I try to run it under the server itself, I get this error:
terminate called after throwing an instance of 'oracle::occi::SQLException'
what(): Error while trying to retrieve text for error ORA-01804
It seems to be somehow a timezone problem, but my server time zone is equal to the database time zone and both are +0330.
Using JDBC connection I can connect to the oracle server from the server itself. I confirmed it using sqldeveloper.
How can I solve the problem?This is from babelfish
I am migrating a data base 8i to 10g I am in the change of pro*c to occi, when I compile leaves the following thing to me: : undefined reference to ` oracle::occi::SQLException::SQLException(oracle::occi::SQLException const&) ' and other things the problem is that not if is a problem of path with librerias since it lowers librerias occi and it places in several sides but nothing, ademas I see that the file occiObjects.h has a problem in 146 line sera that what is the problem if alguin has solved to this please me envie the answer thanks. Daniel
Best regards
Maxim -
We are migrating from incubator 11.x to 12.2.0.
I noticed that com.oracle.coherence.environment.extensible.ExtensibleEnvironment is not available anymore.
We used it to load custom cache configs filenames based on standard coherence environment properties.
Something like:
If local storage enabled
load cache-config-a.xml
else
locad cache-config-b.xml
Setting factory and getting cache was like:
ConfigurableCacheFactory fctry = new ExtensibleEnvironment(cacheConfigName, this.getClass().getClassLoader());
NamedCache namedCache = fctry.ensureCache(myCacheName, this.getClass().getClassLoader());
This allowed us to have auto-discovery of cache config filename on client side (thus minimizing JVM settings and simplifying dev environment setup). Note that we are not using GARs on either client side or Coherence server side.
What would be the simplest alternative with Coherence 12.1.2 / incubator 12.2 without the com.oracle.coherence.environment.extensible.ExtensibleEnvironment class?
Tks
Message was edited by: 962259Here is the alternative I found:
// Let's say I want to programmatically load custom named cache-config-a.xml and pof-config-a.xml
XmlElement xmlConfig = XmlHelper.loadFileOrResource("cache-config-a.xml", (new StringBuilder()).append("Cache Configuration from:").append(defaultCacheConfigFilename).toString(), null);
ExtensibleConfigurableCacheFactory.Dependencies coherenceDependencies = ExtensibleConfigurableCacheFactory.DependenciesHelper.newInstance(xmlConfig, null, "pof-config-a.xml");
ConfigurableCacheFactory fctry = new ExtensibleConfigurableCacheFactory(coherenceDependencies);
NamedCache namedCache = fctry.ensureCache(myCacheName, this.getClass().getClassLoader());
Maybe you are looking for
-
We are using a view which comprises of 5 to 6 union queries.Each union query of the view returns large number of rows when we do a normal select without any where clause on that view it takes a long time any clue ???. Also our main requirement is to
-
Export / import with logical system
Re: AC 5.3 - RAR - SP17 I have DEV and QA connected to GRC DEV\QA and am defining my ruleset here. The ruleset is defined against a logical system. I have PRD connected to GRC PRD and want to import the ruleset that I have developed in GRC DEV\QA. I
-
Key Chain will not open any info on items
Hello all. I would be greatful to know how I can fix my Key Chain Items, Passwords, Secure Passwords etc. I can open my Key Chain but when I double click or try to open the Item info nothing happens? I have tried the First Aid but nothing? Why will
-
Web Questionnaire Error - uws_form_service
Hi experts, I am trying to open a vendor evaluation questionnaire after having pushed the 'Evaluate' button during a GR confirmation. The header page starts correctly (so I could see the 'Vendor Evaluation' title at the top) and then the following er
-
Video demo - how to put on a slide
I recorded a new video demo in my adobe captivate 8 project. It's shows up as a separate project. How do I import it to the correct slide? (When I go to insert a video, and try to select the cpt file, it's greyed out.)