Loadjava versus DBMS_JAVA
Is there any difference wich method to use when loading java to a database - loadjava utility or DBMS_JAVA package?
When it is better to put all the jars to the server, and use DBMS_JAVA instead of loading directly from a client PC using loadjava utility?
For example in the JSSE use case (http://www.oracle.com/technology/tech/java/jsp/pdf/JavaDB_Use_Case.pdf) for a Oracle 8i, to load JSSE libs they are using loadjava, but to complete the same task in a Oracle 9iR2, they suggest putting libraries directly to the server and then using DBMS_JAVA.
Could anybody describe why is it so?
Hi, I have very different behaviour between loadjava command line tool and the dbms_java.loadjava function. By the command line all the .jar-files are loaded both on the local database and also on a remote database. But any try loading the same files with CALL dbms_java.loadjava( '...') is failing, however differently on the local and the remote database. Locally, there is no exception, but only a warning, the .jar-file would be empty, what is definitely wrong. But in fact no Java classes are loaded. The same call to a remote database leads to an error:
Error while opening file: C:\apache-tomcat-5.5.25\temp\DatSec15888_install\activation.jar
Exception java.io.FileNotFoundException: No such file or directory
[from .trc-file]
and:
java.sql.SQLException: ORA-29532: Java-Aufruf durch nicht abgefangene Java-Excep
tion beendet: oracle.aurora.server.tools.loadjava.ToolsError: Error during loadj
ava: Failures occurred during processing. Check trace file for details
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:145)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:745)
at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:210)
at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:1126
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
nt.java:1311)
at oracle.jdbc.driver.OracleStatement.executeUpdateInternal(OracleStatem
ent.java:1909)
at oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java
:1878)
[from tomcat-log]
The platform is WinXP SP2. Oracle Version: Database 10g Enterprise Edition Release 10.2.0.1.0 - Production.
I'd appreciate any hint, what is going wrong with the usage of the DBMS_JAVA package, because I don't see any other way to load java from a java application running in a servlet engine.
Similar Messages
-
Dbms_java.loadjava problem on Oracle9i
I'm having trouble with the dbms_java.loadjava() procedure. It completes successfully but the java class never appears in the user_objects table. If I use the standard loadjava utility everything works fine and the java class appears in the user_objects table as expected.
I can successfully run other functions in the dbms_java package which leads me to believe that everything is ok with permissions.
Is this an Oracle9i issue? Any ideas?
Thank you!
.. juneI have the same problem... any ideas? after loading the java class, I also called DBMS_JAVA.GRANT_PERMISSION('<USER>', 'java.io.FilePermission', '<FILENAME WITH PATH>', 'read, write, exec')
thanks
Ranganath Samudrala -
DBMS_JAVA.LOADJAVA file issue
Hi,
I need help related to load Java class in DB.
I have Java application which is creating database. I want to load java class in DB from java application and i am using
String path = someBasePath + "\\MyClass.java";
File file = new File(path);
*CallableStatement stmt = connection.prepareCall("{CALL DBMS_JAVA.LOADJAVA(' " + file + "')}");*
*stmt.execute();*
File always will be local, but DB may be remote.
When DB is local there is no problem
When DB is remote an exception is raised:
+ORA-29532: Java call terminated by uncaught Java exception: oracle.aurora.server.tools.loadjava.ToolsError:+
+Error during loadjava: Failures occurred during processing.+
+Check trace file for details+
+ORA-06512: at "SYS.DBMS_JAVA", line 704+
+ORA-06512: at line 1+
I understand that it is file (remote DB can't open the Java file) related, but I can't figure out how to solve this.
ThanksHi,
run command line and run loadjava as:
loadjava -user user/password@dbs yourfile.jar
if you just run loadjava without any parameters it gives you a parameter list you can specify.
Rado -
Error when trying to load jar file (loadjava)
I have been struggling with this issue for a few days. I read all the old threads and solutions online but none of them worked. I wrote some java stored procedures and have been trying to load the required jar files. The error message I keep getting is this:
ORA-29532: Java call terminated by uncaught Java exception: oracle.aurora.server.tools.loadjava.ToolsError: Error during loadjava: Failures occurred during processing. Check trace file for details
I have tried to load them using Enterprise Manager Console and the following:
call dbms_java.loadjava(' -force -resolve
c:\javacog\cognosClient.jar', ' -resolver "((* PUBLIC) (*
SYS) )"')
Any ideas? We are using Oracle 10gr2, and trying to load Cognos 8.3 SDK jar files. According to Cognos, Java 1.4 is supported.
Edited by: user10406501 on Oct 8, 2008 2:26 PMSorry to respond to an old message, I was just looking for the solution for the totally different problem.
Key word 'Cognos' got me here.
I've menage to load Cognos SDK onto Oracle 10.2.0.2 on Windows XP.
I've used simple loadjava script. After that it requires some additional GRANTs, and it works.
If you still are looking for the solution for this problem, respond to this message, and I'll post the scripts.
Thomas -
In SQLJ Developer's Guide and Reference ppt. 11-12,
Step 1, create a .jar, naming niter-server,jar, complete
Step 2, load .jar file into the server,
loadjava -oci8 -force -user user1/test@oracle niter-server.jar
then the error message is:
Error while creating class NamedIterDemo_SJProfile0
ORA-29545: badly formed class: User has attempted to load a class (NamedIterDemo_S
JProfile0) into a restricted package. Permission can be granted using dbms_java
.grant_permission(<user>, LoadClassInPackage...
(and 3 more error messages, the same error)
what's wrong....Solution in:
Topic,
ORA 29547
Name,
David Pickering ([email protected])
Date,
October 26, 2000
Forum/Archive,
Oracle Help for Java -
Loadjava error - loading JAR file
Hi,
I am trying to load a JAR file into the DB and am getting these errors:
$ loadjava -force -user user/pass javaTelnet.jar
Error while creating class javaTelnet/ScriptHandler
ORA-29537: class or resource cannot be created or dropped directly
Error while creating class javaTelnet/TelnetClient$ReaderThread
ORA-29537: class or resource cannot be created or dropped directly
Error while creating class javaTelnet/TelnetClient
ORA-29537: class or resource cannot be created or dropped directly
Error while creating class javaTelnet/TelnetWrapper
ORA-29537: class or resource cannot be created or dropped directly
Error while creating class javaTelnet/TelnetProtocolHandler
ORA-29537: class or resource cannot be created or dropped directly
The following operations failed
class javaTelnet/ScriptHandler: creation
class javaTelnet/TelnetClient$ReaderThread: creation
class javaTelnet/TelnetClient: creation
class javaTelnet/TelnetWrapper: creation
class javaTelnet/TelnetProtocolHandler: creation
exiting : Failures occurred during processing
These are the only other Java class I have in the DB.
SQL> select dbms_java.longname(object_name),status
2 from user_objects
3 where object_type='JAVA CLASS'
4 /
DBMS_JAVA.LONGNAME(OBJECT_NAME)
STATUS
PBoot
VALIDThe JAR contains all class files within a package named javaTelnet.
I am able to execute the JAR successfully from command line.
ThanksHi,
I am not able to load a simple java source/class(either one, not both) file into the DB.
$ dropjava -user user/pass -v A.java
dropping: source A
$ loadjava -user user/[email protected] -v -resolve A.java
arguments: '-user' 'user/[email protected]' '-v' '-resolve' 'A.java'
creating : source A
loading : source A
creating : A
resolving: source A
$
SQL> select dbms_java.longname(object_name),status
2 from user_objects
3 where object_type like 'JAVA %'
4 /
DBMS_JAVA.LONGNAME(OBJECT_NAME)
STATUS
PBoot
VALIDAny guess how I may be able to resolve this issue?.
Any trace files about loadjava written anywhere ?
Thanks -
Hi all,
I am unable to get loadjava working with 10g. Even simple examples from the docs fail. Details are below.
There appears to be an internal error (joe_well_known_internal), but I'm hoping it's my mistake.
Any wisdom would be appreciated.
thanks,
David
===== Command line
loadjava -user sys/pw@<<snip>>
Oscar.class
Error while testing for existence of dbms_java.handleMd5
ORA-03113: end-of-file on communication channel
Error while getting old MD5 of Oscar
Closed Connection
Error while creating class Oscar
ORA-03113: end-of-file on communication channel
The following operations failed
class Oscar: creation (createFailed)
exiting : Failures occurred during processing
=====
===== From alert.log
Errors in file /u01/app/oracle/admin/ciw/udump/ciw_ora_18777.trc:
ORA-07445: exception encountered: core dump
[joe_well_known_internal()+102] [SIGSEGV] [Address not mapped to object] [0x196E180C] [] []
Tue Apr 27 15:22:39 2004
sdtcs_getexecname: ignored overriding value [oracleciw]
=====
===== From ...ciw_ora_18777.trc
/u01/app/oracle/admin/ciw/udump/ciw_ora_18777.trc
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
ORACLE_HOME = /u01/app/oracle/product/10.1.0/db_1
System name: Linux
Node name: <<<snip>>>
Release: 2.4.22-1.2115.nptl
Version: #1 Wed Oct 29 15:42:51 EST 2003
Machine: i686
Instance name: <<snip>>
Redo thread mounted by this instance: 1
Oracle process number: 18
Unix process pid: 18777, image: <<snip>>
>>>
*** SERVICE NAME:(ciw) 2004-04-27 15:22:39.154
*** SESSION ID:(264.139) 2004-04-27 15:22:39.154
Exception signal: 11 (SIGSEGV), code: 1 (Address not mapped to object), addr: 0x196e180c, PC: [0x120319c, joe_well_known_internal()+102]
Registers:
%eax: 0x012ded58 %ebx: 0x0158abb4 %ecx: 0xbf2c3d8b
%edx: 0xbf2c3d8b %edi: 0x5690769e %esi: 0xbf2c3d88
%esp: 0xbff0ff54 %ebp: 0xbff0ff74 %eip: 0x0120319c
%efl: 0x00210286
joe_well_known_internal()+91 (0x1203191) mov 0xfffffffc(%ebp),%edx
joe_well_known_internal()+94 (0x1203194) mov %edx,%esi
joe_well_known_internal()+96 (0x1203196) and $-8,%esi
joe_well_known_internal()+99 (0x1203199) mov %esi,0xffffffec(%ebp)
joe_well_known_internal()+102 (0x120319c) mov 0xc(%esi,%edi,4),%esijoe_well_known_internal()+106 (0x12031a0) cmp %edx,%esi
joe_well_known_internal()+108 (0x12031a2) jz 0x1203294
joe_well_known_internal()+114 (0x12031a8) test %esi,%esi
joe_well_known_internal()+116 (0x12031aa) jz 0x1203239
*** 2004-04-27 15:22:39.169
ksedmp: internal or fatal error
ORA-07445: exception encountered: core dump
[joe_well_known_internal()+102] [SIG
SEGV] [Address not mapped to object] [0x196E180C] [] []
Current SQL statement for this session:
create or replace java class using blob LOB from
CREATE$JAVA$LOB$TABLE where
name ='LOADJAVA/LOB/KEY'
----- PL/SQL Call Stack -----
object line object
handle number name
0x56d43fa8 1 anonymous block
----- Call Stack Trace -----
calling call entry argument values in hex
location type point (? means dubious value)
sdtcs_getexecname: use overriding value for executable
sdtcs_getexecname: ignored overriding value [oracleciw]
ksedmp()+493 call ksedst()+0 1 ? 0 ? 1 ? 1 ? 0 ? 0 ?
ssexhd()+1132 call ksedmp()+0 3 ? 0 ? 0 ? 0 ? 0 ? 0 ?
joe_well_known_inte signal ssexhd()+0 B ? BFF0FBE8 ? BFF0FC68 ?
rnal()+102
joe_well_known()+18 call joe_well_known_inte BF2B4FBF ? 12DED58 ? 1 ?
rnal()+0
eorealize_xref()+83 call joe_well_known()+0 BF2B4FBF ? 12DED58 ?
eoref_resolve_xdesc call eorealize_xref()+0 BF2B4FBF ? 54801F2F ?
()+133 54801180 ? 158ABB4 ?
=====With that sort of error, it has to be a bug. Probably platform specific (although you don't mention a specific platform).
-
Trace File / EJB / dbms_java.grant_permission
I am trying to deploy a simple Hello World EJB onto Oracle 8.1.7 using Jdeveloper 3.2.
I get the following error when deploying :
Loading EJB Jar file and Comm Stubs Jar file...
error: loadJava has failed to load some classes; Please check trace file!
*** Errors occurred while deploying the EJB to 8i JVM ***
*** Deployment completed ***
My trace file has the following in it :
*** 2001-05-03 17:33:29.531
*** SESSION ID:(14.2397) 2001-05-03 17:33:29.531
Error while creating class oracle/aurora/jndi/sess_iiop/ActivationException
ORA-29545: badly formed class: User has attempted to load a class (oracle.aurora.jndi.sess_iiop.ActivationException) into a restricted package. Permission can be granted using dbms_java.grant_permission(<user>, LoadClassInPackage...
could not find oracle/aurora/jndi/sess_iiop/ActivationException in WILLOW2K
could not find oracle/aurora/jndi/sess_iiop/ActivationException in WILLOW2K
ORA-29534: referenced object WILLOW2K.javax/naming/InitialContext could not be resolved
ORA-29545: badly formed class: at offset 128 of packagessb.ssbClient2.main expecting a class-javax.naming.NamingException but encountered a class-oracle.aurora.jndi.sess_iiop.ActivationException.
ORA-29545: badly formed class: at offset 4 of javax.naming.spi.NamingManager.createObjectFromFactories expecting a class-javax.naming.Context but encountered a class-javax.naming.Context.
at offset 4 of javax.naming.spi.NamingManager.getStateToBind expecting a class-javax.naming.Context but encountered a class-javax.naming.Context.
at offset 38 of javax.naming.spi.NamingManager.getStateToBind expecting a class-javax.naming.Context but encountered a class-javax.naming.Context.
at offset 38 of javax.naming.spi.NamingManager.getStateToBind expecting a class-javax.naming.Name but encountered a class-javax.naming.Name.
at offset 37 of javax.naming.spi.NamingManager.getURLObject expecting a class-javax.naming.Context but encountered a class-javax.naming.Context.
ORA-29534: referenced object WILLOW2K.javax/naming/spi/NamingManager could not be resolved
ORA-29534: referenced object WILLOW2K.javax/naming/spi/NamingManager could not be resolved
Error while resolving class oracle/aurora/jndi/sess_iiop/ActivationException
ORA-04043: object /889d46b7_ActivationException does not exist
I think the error stems from the line :
(oracle.aurora.jndi.sess_iiop.ActivationException) into a restricted package. Permission can be granted using dbms_java.grant_permission(<user>, LoadClassInPackage...
Doe anyone know how I can grant the user permission to the above library. How exactly is it done using Oracle 8.1.7 ?
nulldid you read the install notes (install.htm) or release notes(readme.htm) files for known issues ?
see the release notes for the following :
Problems Deploying Business Components for Java Libraries in Different Schema (1095107)
Attempting to deploy a Business Components for Java library in a different schema from the JDeveloper IDE generates the following error:
Generating Jar File...done
Loading EJB Jar file and Comm Stubs Jar file...
error: loadJava has failed to load some classes; Please check trace file!
*** Errors occurred while deploying the EJB to 8i JVM *** -
Issues with loadjava utility on oracle database 10.2.0.4.0
Hi all
Hoping if this is a known issue, am approaching you here .. We have an oracle database in 10.2.0.4.0 version. This database functionality of Websphere Process Server, a product from IBM. In the course we are expected to load a JAR file for a one schema and it fails for some reason with ORA - 07445 errors. I happen to set out SGA_MAX_SIZE and SGA_TARGET at 1024 MB and JAVA_POOL_SIZE at 768MB to allow this loadjava command to run successfully. I also happen to set the LD_LIBRARY_PATH as $ORACLE_HOME/lib on this solaris 10 machine. Below is the command and the error message we are receiving. Please do advice us if this is a known issue or guide us to any information which might help us resolve this issue while we continue searching for a solution.. Many thanks in advance.
Regards!
Sarat
loadjava -user BPCDB/[email protected]:1521:WPSDB -resolve /opt/IBMProc/WebSphere/ProcServer/lib/bpcodbutil.jar -thin -schema BPCDB
Error while testing for existence of dbms_java.handleMd5
No more data to read from socket
Error while testing for existence of "BPCDB".JAVA$CLASS$MD5$TABLE
OALL8 is in an inconsistent state
Error while testing for existence of "BPCDB".JAVA$CLASS$MD5$TABLE
OALL8 is in an inconsistent state
Error while creating "BPCDB".JAVA$CLASS$MD5$TABLE
No more data to read from socket
Error while getting old MD5 of META-INF/MANIFEST.MF
Io exception: Broken pipe
Error while testing for existence of "BPCDB".CREATE$JAVA$LOB$TABLE
Closed Connection
Error while testing for existence of "BPCDB".CREATE$JAVA$LOB$TABLE
Closed Connection
Error while creating "BPCDB".CREATE$JAVA$LOB$TABLE
Closed Connection
Error while getLoadLOB BPCDB
Closed Connection
Error while deleting MD5 of META-INF/MANIFEST.MF
Closed Connection
Error while getting old MD5 of com/ibm/bpe/observer/dbutil/TimestampUtil
Closed Connection
Error while processing com/ibm/bpe/observer/dbutil/TimestampUtil
Exception java.lang.NullPointerException
Error while deleting MD5 of META-INF/MANIFEST.MF
Closed Connection
Error while getShortFromLongnameStmt
Closed Connection
Error while processing class BPCDB.com/ibm/bpe/observer/dbutil/TimestampUtil
Exception java.lang.NullPointerException
Error while getShortFromLongnameStmt
Closed Connection
Exception in thread "main" java.lang.NullPointerException
at oracle.aurora.server.tools.loadjava.ClientSchemaObject.getShortname(C
lientSchemaObject.java:65)
at oracle.aurora.server.tools.loadjava.ClientSchemaObject.status(ClientS
chemaObject.java:91)
at oracle.aurora.server.tools.loadjava.SchemaObject.failure(SchemaObject
.java:799)
at oracle.aurora.server.tools.loadjava.LoadJava.process(LoadJava.java:85
1)
at oracle.aurora.server.tools.loadjava.LoadJava.command(LoadJava.java:25
1)
at oracle.aurora.server.tools.loadjava.LoadJavaMain.run(LoadJavaMain.jav
a:103)
at oracle.aurora.server.tools.loadjava.LoadJavaMain.main(LoadJavaMain.ja
va:28)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ORA-07445 is an untrapped exception, an error, in Oracle's own code.
Open an SR at metalink and update an RDA along with your description of what happened. -
Hi all,
I'm trying to load dbws-callout-utility in a oracle9i Enterprise Edition Realease 9.2.0.5.0 data base.
To do that, I've follow these instructions "http://www.oracle.com/technology/sample_code/tech/java/jsp/callout_users_guide.htm" step by step:
- I've set shared_pool_size to 96M (then, even to 150M) in my spfile.
- I've set java_pool_size to 80M in my spfile.
- I've tested this changes were well done.
- Then, I've download oc4j_extended 10.1.2 version, as said the link.
- manual says that I must load this jar files:
jssl-1_2.jar, soap.jar, dms.jar, servlet.jar, ejb.jar, mail.jar
- I've could to load these jars without any error using these commands:
cd $ORACLE_HOME/lib
dropjava -u wsuser/pass mail.jar
dropjava -u wsuser/pass activation.jar
cd $ORACLE_HOME/oc4j_extended/j2ee/home/lib
loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass ejb.jar
cd $ORACLE_HOME/lib
loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass activation.jar
loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass mail.jar
cd ${ORACLE_HOME}/oc4j_extended/j2ee/home/lib
loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass servlet.jar
cd ${ORACLE_HOME}/jlib
loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass jssl-1_2.jar
but when I try to load dms.jar with this command:
cd ${ORACLE_HOME}/oc4j_extended/lib
loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass dms.jar
loadjava's process hangs just compiling (resolving) this class: "oracle/dms/address/Optic", so I've got to kill process.
Then, I try to load dms.jar with the same command but without "-resolve" option. This way, I've been able to load all class from
this jar including the named before "oracle/dms/address/Optic". Then I compile all java class by hand except "oracle/dms/address/Optic"
because everytime I try to compile (-resolve) this class, it hangs. So this is my first question: why?.
As I've could to load almost all java class, I said, I'm going to try to load last jar: soap.jar
cd ${ORACLE_HOME}/oc4j_extended/soap/lib
loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass soap.jar
but when this command finish, it shows me these errors:
errors : class org/apache/soap/messaging/Message
ORA-29534: el objeto WSUSER.oracle/soap/transport/http/OracleSOAPHTTPConnection al que se hace referencia no se ha podido resolver
synonym : org/apache/soap/messaging/Message
The following operations failed
class oracle/soap/client/ProviderManagerClient: resolution
class oracle/soap/client/ServiceManagerClient: resolution
class oracle/soap/server/http/SOAPServlet: resolution
class oracle/soap/providers/JavaProvider: resolution
class oracle/soap/providers/ejbprov/EntityEJBProvider: resolution
class oracle/soap/providers/ejbprov/StatefulEJBProvider: resolution
class oracle/soap/providers/ejbprov/StatelessEJBProvider: resolution
class oracle/soap/providers/sp/SpProvider: resolution
class oracle/soap/transport/http/OracleSOAPHTTPConnection$1: resolution
class oracle/soap/transport/http/OracleSOAPHTTPConnection: resolution
class org/apache/soap/rpc/Call: resolution
class org/apache/soap/rpc/RPCMessage: resolution
class org/apache/soap/rpc/Response: resolution
class org/apache/soap/messaging/Message: resolution
exiting : Failures occurred during processing
but this has no sense, because this class oracle/soap/transport/http/OracleSOAPHTTPConnection do exists in the jar file and it can be loaded.
so I don't understand..... I try to load class by class to see dependencies or whatever using this command:
I choose this class to begin:
loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass org/apache/soap/rpc/Call.class
it shows me:
creating : class org/apache/soap/rpc/Call
loading : class org/apache/soap/rpc/Call
granting : execute on class org/apache/soap/rpc/Call to PUBLIC
resolving: class org/apache/soap/rpc/Call
errors : class org/apache/soap/rpc/Call
ORA-29534: el objeto WSARR.oracle/soap/transport/http/OracleSOAPHTTPConnection al que se hace referencia no se ha podido resolver
synonym : org/apache/soap/rpc/Call
The following operations failed
class org/apache/soap/rpc/Call: resolution
exiting : Failures occurred during processing
so I try to load the class which it had could not find:
loadjava -resolve -verbose -synonym -grant PUBLIC -user wsarr/wsarr oracle/soap/transport/http/OracleSOAPHTTPConnection.class
it shows me:
creating : class oracle/soap/transport/http/OracleSOAPHTTPConnection
loading : class oracle/soap/transport/http/OracleSOAPHTTPConnection
granting : execute on class oracle/soap/transport/http/OracleSOAPHTTPConnection to PUBLIC
resolving: class oracle/soap/transport/http/OracleSOAPHTTPConnection
errors : class oracle/soap/transport/http/OracleSOAPHTTPConnection
ORA-29545: clase especificada incorrectamente: at offset 445 of oracle.soap.transport.http.OracleSOAPHTTPConnection.getHTTPConnection expecting a class-oracle.security.ssl.OracleSSLCredential but encountered a class-oracle.security.ssl.OracleSSLCredential.
synonym : oracle/soap/transport/http/OracleSOAPHTTPConnection
The following operations failed
class oracle/soap/transport/http/OracleSOAPHTTPConnection: resolution
exiting : Failures occurred during processing
o_o ...... but this could be endless!!!!!
Is there someone in this planet who had could to load this jars files without errors?????? :´(
Please, I need help!!!! it's urgent!
Thanks in advance!
MaríaThe error messages you are getting means that the JAR you loaded into the database is invalid.
ORA-29534: referenced object string.string could not be resolved
Cause: Name resolution determined that the indicated object is referenced but could not be resolved.
Action: Correct name resolver or address resolution problems in the referenced class, or correct compilation problems in its source.
Oracle extracts all classes from the jar file by the time you load the jar file and processes each class individually. I suggest you to run this query against the user_objects or dba_objects view to determine the status of your classes
select DBMS_JAVA.LONGNAME(OBJECT_NAME) as OBJECT_NAME
,STATUS
from USER_OBJECTS
where OBJECT_TYPE like 'JAVA%'
On the other hand, I see you are at 9.2.0.5.0, in order for you to avoid hitting known bugs, I suggest you to apply, if possible, the latest 9.2.0.8.0 + July CPU patch
~ Madrid -
Hello, im trying to import some classes to my oracle 11g database. I`m loging as sys and calling this :
SQL> call sys.dbms_java.loadjava('administrator/xxxxx -resolve c:\mgr\biojava3-
core-3.0.3.jar');
call sys.dbms_java.loadjava('administrator/xxxxx -resolve c:\mgr\biojava3-core-
3.0.3.jar')
BúąD w linii 1:
ORA-29532: wywo│anie Javy zatrzymane przez nieprzechwycony wyj╣tek Javy:
oracle.aurora.server.tools.loadjava.ToolsError:
Error during loadjava: Failures occurred during processing.
Check trace file for details
ORA-06512: przy "SYS.DBMS_JAVA", linia 704
can someone help me to resolve that problem?ORA-29532: Java call terminated by uncaught Java exception: string
Cause: A Java exception or error was signaled and could not be resolved by the Java code.
Action: Modify Java code, if this behavior is not intended. -
Loadjava protocol adapter error
Hello all,
I am developing a program using Java Stored Procedures with Oracle 9.2.0.1 using an oracle client and am having difficulty with the loadjava utility.
When attempting to load a class using loadjava I get unresolvable errors no matter what driver I use (thin, oci, oci8). When using the oci or oci8 drivers I get a "protocol adapter" error. When I use the thin driver I get a "null username or password" error even though I specify the username/password in the call.
These are the messages I am receiving through the DOS command prompt:
//using OCI8
P:\>loadjava -v -user username\password HiThere.class
arguments: '-v' 'user' 'username\password' 'HiThere.class'
SQL Error while connecting with oci8 driver to default database: ORA-12560: TNS:
protocol adapter error
//specifying OCI
P:\>loadjava -v -user username\password -oci HiThere.class
arguments: 'v' 'user' 'username\password' 'oci' 'HiThere.class'
SQL Error while connecting with oci8 driver to default database: ORA-12560: TNS:
protocol adapter error
//using thin driver
P:\>loadjava -v -thin -user username\[email protected]:1521:cnfi HiThere.
class arguments: '-v' '-thin' '-user' 'username\[email protected]:1521:cnfi' 'H
iThere.class'
SQL Error while connecting with thin driver to gaia.nfis.org:1521:cnfi: Null user or password not supported in THIN driver
exiting : could not open connection
I can connect to the database using a JDBC connection and the thin driver but have no idea how to get the loadjava command using the thin driver to use the username\password that I provide instead of saying that there cannot be a null username\password.
Any suggestions on how I can get loadjava to connect to Oracle would be much appreciated.
Thankyou,
Matt
ps: I am also having difficulties using the dbms_java.loadjava utility using SQL*Plus (java.security.AccessControlException) which might be resolved through my DBA.Matt,
This is just a guess, but try using a forward slash ("/") instead of a backslash ("\"), to separate the "username" from the "password", as in:
loadjava -v -thin -user username/[email protected]:1521:cnfi HiThere.classGood Luck,
Avi. -
Loadjava "Insufficient privileges" problem
I am attempting to use loadjava (8.1.7) to load some classes into another schema. It works fine, until I add the -grant option. Then, I get an "insufficient privileges" error. The target schema owner has the RESOURCE role, and I've granted EXECUTE ANY TYPE, EXECUTE ANY PROCEDURE, CREATE ANY TYPE, CREATE ANY PROCEDURE, etc., with and without the WITH ADMIN OPTION suffix, directly to both the creating account and the schema owner, all to no avail.
Any ideas would be appreciated.Insufficient privileges is a rather generic problem. In this case in may be referring to java privileges. I suggest you read up on DBMS_JAVA.GRANT_PERMISSION and see what privileges are necessary to run your JSP.
Cheers, APC -
Ive just learned that i can use loadjava to load jsp pages into the database.
Ive just learned that i can use loadjava to load jsp pages into the database. How is that possible. How can someone go to my lets say, index.jsp page and actually see it if its inside the database? What authenticates it? Where would you set the parameters to tell http(apache) to look inside the db for the pages?
Any ideas?Thanks for the reply. If I put the file on the database, does it have to be in a particular location? I've put it on the database server, launched sql*plus (as APPS) and ran the following:
execute dbms_java.loadjava('-v', 'ZebraGetPrinterFromXML.class');
PL/SQL procedure successfully completed.Then when I try to run a process that uses this I get this:
ORA-29540: class ZebraGetPrinterFromXML does not exist -
Hi!
I´m Trying to load the mysql connector into oracle database.
I create a package to connect to mysql and all that is missing is the jdbc driver.
So i executed loadjava, but i´m getting the error bellow. Can anyone help me?
Oracle database 10g
arguments: '-u' 'vendas/***@idev10g' '-v' '-resolve' '/ora10g/app/oracle/product/10.2.0/db_1/jlib/mysql-connector-java-5.1.12.jar'
dropped : JAVA$CLASS$MD5$TABLE
Exception in thread "main" java.lang.UnsatisfiedLinkError: getClassContext
at com.ibm.jvm.classloader.ClassLoaderUtils.getLastClassLoader(ClassLoaderUtils.java:38)
at java.security.Provider.loadProvider(Provider.java:209)
at java.security.Security$2.run(Security.java:434)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java:351)
at java.security.Security.getProviderAt(Security.java:431)
at java.security.Security.getAlgClassName(Security.java:583)
at java.security.Security.getAlgClassName(Security.java:637)
at java.security.Security.getImpl(Security.java:1118)
at java.security.MessageDigest.getInstance(MessageDigest.java:135)
at oracle.aurora.server.tools.loadjava.SchemaObject.MD5OfStream(SchemaObject.java:730)
at oracle.aurora.server.tools.loadjava.SchemaObject.getNewMD5(SchemaObject.java:418)
at oracle.aurora.server.tools.loadjava.SchemaObject.doCreate(SchemaObject.java:174)
at oracle.aurora.server.tools.loadjava.SchemaObject.process1(SchemaObject.java:215)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:548)
at oracle.aurora.server.tools.loadjava.LoadJava.addObject(LoadJava.java:529)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:467)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:396)
at oracle.aurora.server.tools.loadjava.LoadJava.addJar(LoadJava.java:743)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:448)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:396)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:365)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:668)
at oracle.aurora.server.tools.loadjava.LoadJava.processDeferredFiles(LoadJava.java:633)
at oracle.aurora.server.tools.loadjava.LoadJava.process(LoadJava.java:834)
at oracle.aurora.server.tools.loadjava.LoadJava.command(LoadJava.java:267)
at oracle.aurora.server.tools.loadjava.LoadJavaMain.run(LoadJavaMain.java:164)
at oracle.aurora.server.tools.loadjava.LoadJavaMain.main(LoadJavaMain.java:89)I solved it.
I had to increase the java pool memory (first time i run the server complained about it) and then load the mysql jdbc driver executing in sqlplus:
dbms_java.loadjava('path to jdbc driver file');
When executing from console, the loadjava command require extra information (LD_LIBRARY_PATH etc) giving the error i mention above.
Executing from sqlplus it is all set.
Maybe you are looking for
-
How to connect I pad 2 to skype and use the video talk ?
can I connect I pad 2 to Skype;if yes kindly guide me how? Thanks
-
Selecting the particular cell in the datatable
hi all, sorry for such a stupid question. i have a datatable component. i can get the rowid of the particular row. but how can i identify the particular cell in that row so that i can update its value? is it possible to update the cell's value in jav
-
'Gather Schema Statistics' concurrent request question
Hello, I just have a question about the 'Gather Schema Statistics' concurrent request. We run this every evening on ALL schemas, however our SYS and SYSTEM schemas aren't registered in the application so therefore stats aren't gathered for these. Sho
-
Where is the download link for SCEP Client Offline installer for x86 & x64 latest greatest version (4.6.305 as of today)? The answer IS NOT IT AND NEVER WILL BE "DOES NOT EXIST"!!!!!! MUST NEVER NEED TO RUN UPDATES TO GET IT!!!!!!!!! THE ONLY ACCEPTA
-
Hi every body, I am a very happy E71 user. Everything is good with this phone but I still have one problem using Nokia Maps. Nokia Maps is unable to go online when I use it with my cell phone provider connection. When I use it with a WLAN connection,