Error in loadjava
The following message is shown after using loadjava:
initialization complete
loading: myclass
creating: myclass
error while retrieving error for myclass
ORA-00904: invalid column name
resolver :
error while retrieving error for myclass
ORA-00904: invalid column name
loadjava : 2 errors
How can i do?
null
Hi,
I hope in yourcase initjvm.sql is not run
or it is not run properly.Check whether
dbms_java package is present if not initjvm.sql should be run.
Regards
Anand
null
Similar Messages
-
Can anyone help me?
I always got a error message while calling loadjava. I want to a simple class into database.
The error message is:
Error while creating class myPackage/myClass
ORA-09922: error Option
How can I solve this problem? I've installed the Oracle9i JDeveloper on WINDOWS NT and JDK1.3. Should I update my JDK?
Thanks a lot
LuciaWhat are the versions of JDeveloper and the database?
Are you deploying only the class or calss along with the source?
Try not using the option under Resolver:
Compile and resolve the classes after loading (-resolve)
Try to get a simple test case that can be used to reproduce.
Thank you -
Hi.
I have a problem loading jar file: oracle 9.2.0.7.0 on unix server with jvm 1.3.1
Using sqlplus I didn't receive any error (PL/SQL procedure successfully completed.) on loading log4j-1.2.14.jar with the following command 6 java class (org/apache/log4j/jmx/...)are invalid:
call dbms_java.loadjava(' -r -v -schema NameOfSchema /orabkp/java/log4j-1.2.14.jar');
Executing the same command from unix command line
loadjava -r -v -u user/password@database -schema NameOfSchema /orabkp/java/log4j-1.2.14.jar
i received the following errors:
For class AbstractDynamicMBean (org/apache/log4j/jmx/)
errors : class NameOfSchema.org/apache/log4j/jmx/AbstractDynamicMBean
ORA-29521: referenced name javax/management/RuntimeOperationsException could not be found
ORA-29521: referenced name javax/management/AttributeList could not be found
ORA-29521: referenced name javax/management/Attribute could not be found
ORA-29521: referenced name javax/management/DynamicMBean could not be found
ORA-29521: referenced name javax/management/MBeanRegistration could not be found
ORA-29521: referenced name javax/management/MBeanException could not be found
ORA-29521: referenced name javax/management/ReflectionException could not be found
ORA-29521: referenced name javax/management/AttributeNotFoundException could not be found
ORA-29521: referenced name javax/management/InvalidAttributeValueException could not be found
ORA-29521: referenced name javax/management/MBeanServer could not be found
ORA-29521: referenced name javax/management/ObjectName could not be found
ORA-29521: referenced name javax/management/MBeanInfo could not be found
same error for the following java class:
org/apache/log4j/jmx/Agent
org/apache/log4j/jmx/AppenderDynamicMBean
org/apache/log4j/jmx/HierarchyDynamicMBean
org/apache/log4j/jmx/LayoutDynamicMBean
org/apache/log4j/jmx/LoggerDynamicMBean
If I didn't insert -r (resolve) option, I will have a list of 50/60 java class invalid
Much appreciated, any help to understand why on sqlplus I didn't receive any message and a help to solve ORA error.
Thanks.Hi Paolo:
These classes are part of JDK1.5 stack for JMX services, for example:
http://java.sun.com/j2se/1.5.0/docs/api/javax/management/MBeanInfo.html
If log4j.jar includes these classes may be is compiled with jdk 1.5, check if the essential classes of log4j do not returns invalid class format error.
JMX classes are not required if you use FileAppender or ConsoleAppender loggers.
Best regards, Marcelo.
PD: If you get invalid class format error you must to compile log4j sources using a JDK 1.3 compiler which is the JDK included into 9.x databases. -
In Oracle8i.15, I tried to install xmlparserv2.jar after I downloaded xdk_plsql_9_2_0_2_0.zip and upzip to local machine.
However, when I issued the follwoing command:
loadjava -v -r -user SYSTEM/manager -force xmlparserv2.jar
For each class, it has the following error message:
resolving: oracle/xml/async/DOMBuilderErrorListener
Error while resolving class oracle/xml/async/DOMBuilderErrorListener
ORA-04043: object oracle/xml/async/DOMBuilderErrorListener does not exist
resolving: oracle/xml/comp/CXMLParser
Error while resolving class oracle/xml/comp/CXMLParser
ORA-04043: object oracle/xml/comp/CXMLParser does not exist
How can I solve this problem?
Thanks in advance.Do you mean you use 8.1.5? You can't directly load the xmlparserv2.jar to it.
-
Hi everyone.
I'm typing the following line in a HP-UX terminal in order to load the Sybase Type-4 JDBC driver:
loadjava -user scott/tiger -o -r -v -f -noverify /u01/app/oracle/product/8.1.7/jdbc/lib/Sybasedrv.zipHowever, it thorws the following exception and I don't know what is wrong:
SIGBUS 10* bus error
stackbase=7F7F0DD4, stackpointer=7F7F4028, pc=C5D688C4
Full thread dump:
"SIGQUIT handler" (TID:0x7e9ff238, sys_thread_t:0x400936f8 [lwp_id:6751], state:R, thread_t: t@5, stack_base:0x7e5bf000, stack_size:0x20000, pc: 0xc01f7d28) prio=7
"JIT Compiler" (TID:0x7e9ff280, sys_thread_t:0x40093380 [lwp_id:6750], state:CW, thread_t: t@4, stack_base:0x7e5e0000, stack_size:0x100000, pc: 0xc01f29d0) prio=8
"Finalizer thread" (TID:0x7e9ff068, sys_thread_t:0x40093038 [lwp_id:6749], state:CW, thread_t: t@3, stack_base:0x7e6e1000, stack_size:0x20000, pc: 0xc01f29d0) prio=8
"main" (TID:0x7e9ff090, sys_thread_t:0x4006cb48 [lwp_id:0], state:R, thread_t: t@1, stack_base:0x7f7f0dd4, stack_size:0x800000, pc: 0x0) prio=5 current thread
oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:354)
oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:246)
oracle.jdbc.driver.OracleDriver.getConnectionInstance(Compiled Code)
oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
java.sql.DriverManager.getConnection(Compiled Code)
oracle.aurora.server.tools.loadjava.DatabaseOptions.getConnection(DatabaseOptions.java:104)
oracle.aurora.server.tools.loadjava.DatabaseOptions.connect(DatabaseOptions.java:53)
oracle.aurora.server.tools.loadjava.LoadJava.getConnection(LoadJava.java:621)
oracle.aurora.server.tools.loadjava.LoadJava.load(Compiled Code)
oracle.aurora.server.tools.loadjava.LoadJava.load(LoadJava.java:1016)
oracle.aurora.server.tools.loadjava.LoadJava.loadAndCreateJar(Compiled Code)
oracle.aurora.server.tools.loadjava.LoadJava.processLoadAndCreate(Compiled Code)
oracle.aurora.server.tools.loadjava.LoadJava.process(LoadJava.java:1422)
oracle.aurora.server.tools.loadjava.LoadJavaMain.run(LoadJavaMain.java:299)
oracle.aurora.server.tools.loadjava.LoadJavaMain.main(LoadJavaMain.java:58)
Monitor Cache Dump:
java.lang.Class@7EA091A8/7EB000B0: sys_mon = 0x400077dc, owner "main" (0x4006cb48, 1 entry)
oracle.jdbc.oci8.OCIDBAccess@7EA09808/7EB01EE8: sys_mon = 0x4000709c, owner "main" (0x4006cb48, 1 entry)
Registered Monitor Dump:
JIT thread lock: sys_mon = 0x40093680, <unowned>
Waiting to be notified:
"JIT Compiler" (0x40093380)
Thread queue lock: sys_mon = 0x4006c810, <unowned>
utf8 hash table: sys_mon = 0x4000c708, <unowned>
String intern lock: sys_mon = 0x4000c648, <unowned>
JNI pinning lock 31: sys_mon = 0x4000c588, <unowned>
JNI pinning lock 30: sys_mon = 0x4000c4c8, <unowned>
JNI pinning lock 29: sys_mon = 0x4000c408, <unowned>
JNI pinning lock 28: sys_mon = 0x4000c348, <unowned>
JNI pinning lock 27: sys_mon = 0x4000c288, <unowned>
JNI pinning lock 26: sys_mon = 0x4000c1c8, <unowned>
JNI pinning lock 25: sys_mon = 0x4000c108, <unowned>
JNI pinning lock 24: sys_mon = 0x4000c048, <unowned>
JNI pinning lock 23: sys_mon = 0x4000bf88, <unowned>
JNI pinning lock 22: sys_mon = 0x4000bec8, <unowned>
JNI pinning lock 21: sys_mon = 0x4000be08, <unowned>
JNI pinning lock 20: sys_mon = 0x4000bd48, <unowned>
JNI pinning lock 19: sys_mon = 0x4000bc88, <unowned>
JNI pinning lock 18: sys_mon = 0x4000bbc8, <unowned>
JNI pinning lock 17: sys_mon = 0x4000bb08, <unowned>
JNI pinning lock 16: sys_mon = 0x4000ba48, <unowned>
JNI pinning lock 15: sys_mon = 0x4000b988, <unowned>
JNI pinning lock 14: sys_mon = 0x4000b8c8, <unowned>
JNI pinning lock 13: sys_mon = 0x4000b808, <unowned>
JNI pinning lock 12: sys_mon = 0x4000b748, <unowned>
JNI pinning lock 11: sys_mon = 0x4000b688, <unowned>
JNI pinning lock 10: sys_mon = 0x4000b5c8, <unowned>
JNI pinning lock 9: sys_mon = 0x4000b508, <unowned>
JNI pinning lock 8: sys_mon = 0x4000b448, <unowned>
JNI pinning lock 7: sys_mon = 0x4000b388, <unowned>
JNI pinning lock 6: sys_mon = 0x4000b2c8, <unowned>
JNI pinning lock 5: sys_mon = 0x4000b208, <unowned>
JNI pinning lock 4: sys_mon = 0x4000b148, <unowned>
JNI pinning lock 3: sys_mon = 0x4000b088, <unowned>
JNI pinning lock 2: sys_mon = 0x4000afc8, <unowned>
JNI pinning lock 1: sys_mon = 0x4000af08, <unowned>
JNI pinning lock 0: sys_mon = 0x4000ae48, <unowned>
JNI global reference lock: sys_mon = 0x4000ad80, <unowned>
BinClass lock: sys_mon = 0x4000acc8, <unowned>
Class loading lock: sys_mon = 0x4000ac08, <unowned>
Java stack lock: sys_mon = 0x4000ab50, <unowned>
Code rewrite lock: sys_mon = 0x4000aa90, <unowned>
Heap lock: sys_mon = 0x4000a9d8, <unowned>
Has finalization queue lock: sys_mon = 0x4000a910, <unowned>
Finalize me queue lock: sys_mon = 0x4000a850, <unowned>
Waiting to be notified:
"Finalizer thread" (0x40093038)
Monitor registry: sys_mon = 0x40004ae0, owner "main" (0x4006cb48, 1 entry)
Abort(coredump)
I don't have ideia of what is going on.
Can anyone help me?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. -
I got an error message
"The procedure entry point OCIConnectionPoolDestroy could not be located in the dynamic link library OCI.dll".
What is the reason for this error and how can I overcome this error.
For the first time I using LOADJAVA command . My platform is window2000.
Can you help me Sir??
Thanx in advance.Check this link:
http://www.oracle.com/technology/pub/notes/technote_php_instant.html
This link should help:
Problem creating connections in EA rel 4
Edited by: user545846 on Aug 3, 2009 2:51 AM -
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 -
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 Error while opening file: –resolve Exception java.io.FileNotFound
Dears,
I'm having Oracle 11gr2 on Windows 2008r2. I have very strange issue while trying to load ordinary Java source. I get error that loadjava can't open file. I'm using the following command in loading:
%ORACLE_HOME%\dbhome_1\BIN\loadjava -thin -user ORAMQ/***@localhost:1521:DEVAR -verbose -fileout %C:\temp\loadjava-9-MQReasonCodeResolver.java.log C:\src\MQReasonCodeResolver.java –resolve-----
I got the following error in the verbose file out:
arguments: '-user' 'ORAMQ/***@localhost:1521:DEVAR' '-thin' '-verbose' '-fileout' 'C:\temp\loadjava-9-MQReasonCodeResolver.java.log' 'C:\src\MQReasonCodeResolver.java' '–resolve'
creating : source MQReasonCodeResolver
loading : source MQReasonCodeResolver
Error while opening file: –resolve
Exception java.io.FileNotFoundException: –resolve (The system cannot find the file specified)
creating : –resolve
The following operations failed
–resolve: opening file-----
The code is very simple and doesn't have any issue:
import java.lang.reflect.Field;
public class MQReasonCodeResolver
public MQReasonCodeResolver()
public static final String MQ_EXCEPTION_CLASS = "com.ibm.mq.MQException";
public static final String RC_FIELD_PREFIX = "MQRC_";
public static final String RC_VALUE_FIELD = "reasonCode";
public static String resolve( Exception mqex )
if ( !canResolve( mqex ) )
return mqex.getClass().toString() + mqex.getMessage();
Class class1 = mqex.getClass();
try
Field field = class1.getField( RC_VALUE_FIELD );
Object key = field.get( mqex );
Field[] fields = class1.getFields();
for ( int i = 0; i < fields.length; i++ )
Field ff = fields;
String name = ff.getName();
if ( name.startsWith( RC_FIELD_PREFIX ) && ff.get( null ).equals( key ) )
return mqex.getMessage() + " " + name;
catch ( Exception ex )
return "unknown";
public static boolean canResolve( Exception exx )
Class class1 = exx.getClass();
while ( Exception.class.isAssignableFrom( class1 ) )
if ( MQ_EXCEPTION_CLASS.equals( class1.getName() ) )
return true;
class1 = class1.getSuperclass();
return false;
I load other classes and no issue, even jar files, I don't know what is the problem with this file? Also, it is strange is creating class and loading it has no issue, but the issue comes when resolve.
Can anyone help?Hi:
Put your -resolve flag at the beginning of the list of arguments.
Latest arguments should be files to be uploaded by loadjava.
Best regards, Marcelo. -
Error while deploying a Java Stored Procedure using JDeveloper
Hi,
I was going thru the Oracle By Example article: "Developing SQL and PL/SQL with JDeveloper". (http://www.oracle.com/technology/obe/obe9051jdev/ide1012/plsqlobe/obeplsql.htm)
One of the items in this article is - "Creating and Deploying a Java Stored Procedure"
I was able to create a java class, compile it. Created a deployment profile. created a pl/sql wrapper. While trying to deploy the java stored procedure, I am getting the following error:
Invoking loadjava on connection 'hr_conn' with arguments:
-order -resolve -thin
errors : class package1/mypackage/JavaStoredProc
ORA-29521: referenced name java/lang/StringBuilder could not be found
The following operations failed
class package1/mypackage/JavaStoredProc: resolution
oracle.aurora.server.tools.loadjava.ToolsException: Failures occurred during processing
at oracle.aurora.server.tools.loadjava.LoadJava.process(LoadJava.java:863)
at oracle.jdeveloper.deploy.tools.OracleLoadjava.deploy(OracleLoadjava.java:116)
at oracle.jdeveloper.deploy.tools.OracleLoadjava.deploy(OracleLoadjava.java:46)
at oracle.jdevimpl.deploy.OracleDeployer.deploy(OracleDeployer.java:97)
at oracle.jdevimpl.deploy.StoredProcHandler.doDeploy(StoredProcHandler.java:474)
at oracle.jdevimpl.deploy.StoredProcHandler.doDeploy(StoredProcHandler.java:361)
at oracle.jdevimpl.deploy.StoredProcHandler.doDeploy(StoredProcHandler.java:285)
at oracle.jdevimpl.deploy.StoredProcProfileDt$Action$1.run(StoredProcProfileDt.java:383)
#### Deployment incomplete. #### Oct 27, 2005 1:38:56 PM
Appreciate your help on this..I am using Jdeveloper 10.1.3 Early Access Version. JDK comes with it. I also have another JDK on my machine (JDK1.4.2_09)
-
Error loading dbwsclient.jar
I downloaded the dbws-callout-utility-10R2.zip to install the dbwsclient.jar as instructed in the readme file.
The database version is 10.1.0.4.2
The command used is:
loadjava -user sys/vector -r -v -f -s -grant public -noverify -genmissing dbwsclient.jar
I get the following response with error message:
arguments: '-user' 'sys/vector' '-r' '-v' '-f' '-s' '-grant' 'public' '-noverify' '-genmissing' 'dbwsclient.jar'
genmissing: com/sun/msv/datatype/xsd/UnsignedIntType
Exception in thread "main" java.lang.UnsatisfiedLinkError: t2cParseExecuteDescribe
at oracle.jdbc.driver.T2CStatement.t2cParseExecuteDescribe(Native Method)
at oracle.jdbc.driver.T2CCallableStatement.executeForDescribe(T2CCallableStatement.java:519)
at oracle.jdbc.driver.T2CCallableStatement.executeForRows(T2CCallableStatement.java:764)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1159)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3284)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3389)
at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4222)
at oracle.aurora.server.tools.loadjava.GenMissing.lookFor(GenMissing.java:528)
at oracle.aurora.server.tools.loadjava.GenMissing.classReference(GenMissing.java:503)
at oracle.aurora.server.tools.loadjava.GenMissing.add(GenMissing.java:436)
at oracle.aurora.server.tools.loadjava.GenMissing.add(GenMissing.java:398)
at oracle.aurora.server.tools.loadjava.CommonClassObject.genMissing(CommonClassObject.java:137)
at oracle.aurora.server.tools.loadjava.ClientClassObject.genMissing(ClientClassObject.java:120)
at oracle.aurora.server.tools.loadjava.SchemaObject.process1(SchemaObject.java:205)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:532)
at oracle.aurora.server.tools.loadjava.LoadJava.addClass(LoadJava.java:586)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:436)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:380)
at oracle.aurora.server.tools.loadjava.LoadJava.addJar(LoadJava.java:727)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:432)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:380)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:349)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:652)
at oracle.aurora.server.tools.loadjava.LoadJava.processDeferredFiles(LoadJava.java:617)
at oracle.aurora.server.tools.loadjava.LoadJava.process(LoadJava.java:818)
at oracle.aurora.server.tools.loadjava.LoadJava.command(LoadJava.java:251)
at oracle.aurora.server.tools.loadjava.LoadJavaMain.run(LoadJavaMain.java:103)
at oracle.aurora.server.tools.loadjava.LoadJavaMain.main(LoadJavaMain.java:28)
Any suggestions as for what's going wrong?
Regards, RobWhen I try to follow the Readme.Callout.htm instructions on a 10gR1 instance, I get an error on running jpub to generate the proxy. All previous objects were loaded into SCOTT rather than SYS (if that makes a difference). The error is:
C:\Projects\_RESEARCH\WebServices\oracle\javacallout>jpub -u scott/tiger -sysuser sys/oracle -proxywsdl="http://localhost:8888/javacallout/javacallout?WSDL"
tmp\src\genproxy\HttpSoap11ClientJPub.java
plsql_wrapper.sql
plsql_dropper.sql
plsql_grant.sql
plsql_revoke.sql
Executing plsql_dropper.sql
Executing plsql_wrapper.sql
Executing plsql_grant.sql
Loading sqlj/lib/dbwsclient.jar (about 5 minutes)...
Error loading dbwsclient.jar, please check the database trace file and make sure dbwsclient.jar exists in ORACLE_HOME/sqlj/lib.
Loading plsql_proxy.jarI'm really not sure what dbwsclient.jar it's talking about since this is NOT included with the latest callout utility. There is a dbwsclientws.jar which I placed into that same folder and RENAMED it.
If I examine the trace file location for my local 10gR1 instance, there is a ~1300K trace file in the folder: C:\Oracle\product\10.1.0\admin\orcl\udump. This file contains NUMEROUS ORA-29534 errors, i.e. ORA-29534: referenced object SYS.com/evermind/util/OpmnHelper could not be resolved. Later, the same trace file says: The following operations failed, and lists about 500+ entries followed by an error:
exiting : Failures occurred during processing
oracle.aurora.server.tools.loadjava.ToolsError: Error during loadjava: Failures occurred during processing. Check trace file for details
at oracle.aurora.server.tools.loadjava.LoadJavaMain.serverMain(LoadJavaMain.java:68)
at oracle.aurora.server.tools.loadjava.LoadJavaMain.serverMain(LoadJavaMain.java:42)I don't know what else I'm to examine.
It does appear to work when logged in as SCOTT in sql*plus:
scott@localhost> select jpub_plsql_wrapper.sayhello('hey there') from dual;
JPUB_PLSQL_WRAPPER.SAYHELLO('HEYTHERE')
HELLO!! You just said :hey there
1 row selected.Can these errors be ignored?
Eric -
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 -
Deploy errors in JDeveloper 11g
Hi,
I am on a Oracle 10.2.0.2 database. I have no previous experience with Java and started using the JDeveloper 11g version. I have created a sample java class and when I am trying to deploy the code from JDeveloper, I get the following errors.
My Database connection works and the schema HR also fine. These are the grants that the HR has,
create user HR
identified by ""
default tablespace USERS
temporary tablespace TEMP
profile DEFAULT
quota unlimited on users;
-- Grant/Revoke role privileges
grant connect to HR;
grant resource to HR;
-- Grant/Revoke system privileges
grant alter session to HR;
grant create database link to HR;
grant create sequence to HR;
grant create session to HR;
grant create synonym to HR;
grant create view to HR;
grant debug any procedure to HR;
grant debug connect session to HR;
grant unlimited tablespace to HR;
Here are the errors
Invoking loadjava on connection 'CapRockDEV' with arguments:
-order -resolve -thin -schema hr
Error while testing for existence of "HR".JAVA$CLASS$MD5$TABLE
ORA-01031: insufficient privileges
Error while testing for existence of "HR".CREATE$JAVA$LOB$TABLE
ORA-01031: insufficient privileges
Error while testing for existence of "HR".CREATE$JAVA$LOB$TABLE
ORA-01031: insufficient privileges
Error while creating "HR".CREATE$JAVA$LOB$TABLE
ORA-01031: insufficient privileges
Error while getLoadLOB HR
ORA-01031: insufficient privileges
The following operations failed
class HR.MyWork/JavaStoredProc: creation (createFailed)
oracle.aurora.server.tools.loadjava.ToolsException: Failures occurred during processing
at oracle.aurora.server.tools.loadjava.LoadJava.process(LoadJava.java:1057)
at oracle.jdeveloper.deploy.tools.OracleLoadjava.deploy(OracleLoadjava.java:120)
at oracle.jdeveloper.deploy.tools.OracleLoadjava.deploy(OracleLoadjava.java:51)
at oracle.jdevimpl.deploy.OracleDeployer.deploy(OracleDeployer.java:98)
at oracle.jdevimpl.deploy.StoredProcHandler.doDeploy(StoredProcHandler.java:492)
at oracle.jdevimpl.deploy.StoredProcHandler.doDeploy(StoredProcHandler.java:373)
at oracle.jdevimpl.deploy.StoredProcHandler.doDeployToMostRecent(StoredProcHandler.java:269)
at oracle.jdevimpl.deploy.StoredProcProfileDt$1.run(StoredProcProfileDt.java:216)
#### Export incomplete. #### Jun 12, 2007 4:18:28 PM
*** Note ***
One possibility for the database export failure is that the target Database may not support JDK version 1.5. Updating your Project Properties compiler Source & Target to an earlier release could fix this problem.
Any help on this, is greatly appreciated.
Thanks,
SujithSujith,
It looks like you are trying to load a java class into the database.
This forum is for Java ServerPages (JSP), not Java Stored Procedures (JSP).
[Damn acronyms ;-]
The Java in the Oracle Database is for questions regarding java in the database.
In any case, you have not granted any java permissions user HR.
Please refer to the Java Developer’s Guide, which is part of the Oracle documentation, for more details.
Good Luck,
Avi. -
Error while trying to use oci driver
hi all,
When trying to use the utility loadjava for oci driver i get the following error
d:\>loadjava -user jar/jar -oci8 -oracleresolver checkoci.jar
SQL Error while connecting with oci8 driver to default database: Error while try
ing to retrieve text for error ORA-12538
Any idea
pl mail to [email protected]
or tell me how to connectHi,
For OPTIONAL support in 11.1.0.7.0, you need the following patch
Patch 7600122: CURLY BRACE SYNTAX,VIRTUAL MODELS, NETWORK INDEXES AND HINTO FRAMEWORK SUPPORT
Support for SPARQL FILTERs in SEM_MATCH is not available for 11.1.0.7.0. You will need version 11.2.0.1.0 or later for FILTER support. With 11.2.0.1.0, we recommend that you apply our latest patch set:
Patch 9819833: SEMANTIC TECHNOLOGIES 11G R2 FIX BUNDLE 2
All of the above patches are available through My Oracle Support.
Thanks,
Matt -
I just installed iFS, but when the iFS Configuration Assistant runs, I get the following error:
The following error occured: oracle.ifs.utils.action.
ActionFailedException: Error executing loadjava process. The output given was:
Error while computing shortname of oracle/ifs/installer/TestJava
ORA-06550: line 1, column 13:
PLS-00201: identifier 'DBMS_JAVA.SHORTNAME' must be declared
ORA-06550: line1, column 7: PL/SQL: Statement ignored
Error while computing shortname of oracle/ifs/installer/TestJava
ORA-06550: line 1, column 13:
PLS-00201: identifier 'DBMS_JAVA.SHORTNAME' must be declared
ORA-06550: line1, column 7: PL/SQL: Statement ignored
Error while computing shortname of oracle/ifs/installer/TestJava
ORA-06550: line 1, column 13: PLS-00201: identifier 'DBMS_JAVA.SHORTNAME' must be declared
ORA-06550: line1, column 7: PL/SQL: Statement ignored
ORA-29521: referenced name java/lang/Object could not be found
loadjava: 4 errors
My configuration consists of two SuSE 7.0 Linux boxes, one for the database, and another for iFS. In the iFS box I have installed the Oracle Client and Oracle HTTP Server, as the installation guide slightly says.
I've read reported answers about this same problem, but occured with Windows 20000. They say it was solved by re-installing the JServer component in the database.
Which JServer should I re-install? That in the database box, or that in the iFS box? I re-installed both but it didn fix it.
When I re-install the HTTP [Apache] Server, I am asked about the jdk to be used. Which jdk should I give? Sun jdk1.2.2 or IBM jdk1.1.8?
I am asked literally for "jdk 1.1.8" during the installation, but I read in the iFS Installation Guide for Linux that Sun jdk1.2.2 is needed for HTTP Server.
I make a hard link /usr/local/java to my jdk and I answer with it to the installation question. Should I re-install the JServer or HTTP Server if I re-link it to try another jdk?
This problem keeps coming up, and I don't know how to get around it. Can someone please help me get past this? I just want to get started with the API and get to coding...
nullJuanma,
Looks like the problem is with the Oracle JVM inside the database. To install the JVM for 8.1.7, you need to run the following scripts:
-- Setup a database for running Java and the ORB
spool jvminst.log;
@?/javavm/install/initjvm.sql;
spool off
-- Loads xml components into the JServer
spool initxml.log;
@?/oracore/admin/initxml.sql
spool off
-- loads the XMLSQL Utility (XSU) into the database
spool catxsu.log;
@?/rdbms/admin/catxsu.sql
spool off
-- JIS (OSE) installation
spool init_jis.log;
@?/javavm/install/init_jis.sql
spool off
-- Turn on JAccelerator (ncomp) for JIS
spool jisja.log;
@?/javavm/install/jisja.sql
spool off
-- Adds the set of default end points to the server
-- with hardcoded values for the admin service
spool jisaephc.log;
@?/javavm/install/jisaephc.sql
spool off
-- Load PLSQL Gateway Servlet jar files into the database
spool initplgs.log;
@?/rdbms/admin/initplgs.sql
spool off
-- Isntall Oracle JSP
spool initjsp.log;
@?/jsp/install/initjsp.sql
spool off
-- Turn on JAccelerator for JSP libs
spool jspja.log;
@?/jsp/install/jspja.sql
spool off
-- Initializes Java library needed by PL/SQL
spool initplsj.log;
@?/rdbms/admin/initplsj.sql
spool off
-- Load AQ/JMS jar files into the database
spool initjms.log;
@?/rdbms/admin/initjms.sql
spool off
-- Load RepAPI server classes and publish 'repapi' obj
spool initrepapi.log;
@?/rdbms/admin/initrepapi.sql
spool off
-- loads sql, objects, extensibility and xml related java
spool initsoxx.log;
@?/rdbms/admin/initsoxx.sql
spool off
-- Configure OSE defauls admin Web Service
spool jisaep.log;
@?javavm/install/jisaep admin 8080 9090
spool off
exit;
This is done on the database.
Thank You
Brian Ball
null
Maybe you are looking for
-
While Loading Master data from BW Info Object
Hi, What is the difference between the two options "set filters by Attributes AND Hierarchies" and "set filters by Attributes OR Hierarchies" when we load master data attributes/texts from BW Info Object. can someone please explain in detail with exa
-
Problem with the light on after effects CS5
Hey, I have a problem with light in after effects, the quality is low. I don't find the solution .. Thanks and scuse me for my bad english, i'm french !
-
Hi All, I am facing an issue in using an API hz_cust_account_site_v2pub.update_cust_site_use. I want to update WAREHOUSE_ID from the table HZ_CUST_SITE_USES_ALL (R12), the below code is what i am using the procedure shows as completed successfully bu
-
Hi Experts, i'm using SQL Loader for loading data from an XML file into the DB , my control file was some thing like that : load data infile 'D:data.xml' "str '</dataNode>'" replace into table MY_TABLE where dataNode is the records' separator, this w
-
I photo does not open always says Loading photos
I have a similar problem to a previous post and found where the photos are on my hard drive. However when I open I photo all I get is "loading photos" I am new to the Mac and need to load new photos from my camera as well as sort the old files and pe