Loadjava Problems !!
Hi All,
I'm experiencing some problems trying to load the SSOHash.class file to the schema that I created just like the same in the Install guide...
The error String follows :
E:\Projetos\Portal_SSO\lib\packages\oracle\security\sso>loadjava -user partner/[email protected]:1521:o817
-thin -verbose -resolve -force SSOHash.class
initialization complete
loading : oracle/security/sso/SSOHash
creating : oracle/security/sso/SSOHash
Error while creating class oracle/security/sso/SSOHash
ORA-00604: error occurred at recursive SQL level 1
ORA-01405: fetched column value is NULL
ORA-06512: at "LBACSYS.LBAC_EVENTS", line 29
ORA-06512: at line 2
resolver :
resolving: oracle/security/sso/SSOHash
Error while resolving class oracle/security/sso/SSOHash
ORA-04043: object oracle/security/sso/SSOHash does not exist
loadjava: 2 errors
Could Anyone help me ?? I have no idea of what could it be !!
P.S: Please, reply to my e-mail because I'm not part of this list !!!!
Thanks in Advance !!
Ilan
Looks like either your database is not java enabled or database is not configured properly.
You may check your database if it is Java enabled
sqlplus sys/change_on_install
select object_name from all_objects where object_name like 'JAVA%';
You must see various java objects name if your database is Java enabled.
(Result for 8.1.7.0.0 database query )
OBJECT_NAME
JAVA$CLASS$MD5$TABLE
JAVA$HTTP$DEPLOYMENT$DIGEST$
JAVA$HTTP$LOG$
JAVA$HTTP$REALM$GROUP$
JAVA$HTTP$REALM$ID$
JAVA$HTTP$REALM$MAPPING$
JAVA$HTTP$REALM$POLICY$
JAVA$HTTP$REALM$PRINCIPAL$
JAVA$HTTP$REALM$P_SEQ$
JAVA$POLICY$
JAVA$POLICY$SEQUENCE$
JAVA$POLICY$SHARED$00000002
JAVA$POLICY$SHARED$00000004
JAVA$POLICY$SHARED$00000005
JAVA$POLICY$SHARED$TABLE
JAVA$RMJVM$AUX
JAVA$RMJVM$AUX2
JAVA$RMJVM$AUXI
JAVA$RMJVM$AUXI2
JAVASNM
JAVASNM$
JAVA_AUTONOMOUS_TRANSACTION
JAVA_AUTONOMOUS_TRANSACTION
JAVA_XA
JAVA_XA
JAVASNM
JAVA_AUTONOMOUS_TRANSACTION
JAVA_XA
JAVA$HTTP$DEPLOYMENT$DIGEST$
JAVA$HTTP$LOG$
JAVA$HTTP$REALM$GROUP$
JAVA$HTTP$REALM$ID$
JAVA$HTTP$REALM$MAPPING$
JAVA$HTTP$REALM$POLICY$
JAVA$HTTP$REALM$PRINCIPAL$
JAVA$HTTP$REALM$P_SEQ$
JAVA$CLASS$MD5$TABLE
JAVA$CLASS$MD5$TABLE
38 rows selected.
null
Similar Messages
-
Hi,
I've Oracle 8.1.6 on Debian 2.2 rel.2.
I'm trying to load java classes to my database.
I can do it with PL/SQL package: "DBMS_JAVA".
When I try to use command line utility: "loadjava" I get the message:
loadjavasu: /ora/app/oracle/product/8.1.6/bin/loadjava: No such file or directory
ls -l /ora/app/oracle/product/8.1.6/bin/loadjava-rwxr-xr-x 1 oracle oinstall 679 Feb 2 23:27 loadjava
what's wrong? ..Hello,
The problem is that the script loadjava is made to use Korn Shell.
Assuming you haven't installed it (wich would prevent that error), edit the script, and change the first line from ksh to sh. -
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 -
Loadjava Problem (NoClassDefFoundError)
Hello,
I got a problem when loading the java using Loadjava command under dos prompt
the error is:
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/lite/loadjava/Main
How can i solve it? I have checked the classpath. It includes OLITE40.JAR already. Any other classpath should i set in the dos environment before using Loadjava commandCheck the JDK 1.3. Make sure the classpath includes the java class you want to load.
-
Loadjava problem in Jdev v10.1.3.3
Hi,
I just upgraded to v10.1.3.3.
And have a problem loading java classes:
Invoking loadjava on connection 'pr01u12' with arguments:
-order -resolve -debug -definer -force -thin -verbose
creating : class customclient/CustomClient$1TskIter
loading : class customclient/CustomClient$1TskIter
Oracle Jdbc tracing is not avaliable in a non-debug zip/jar file
creating : class customclient/CustomClient$1TskIter2
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:473)
at oracle.jdevimpl.deploy.StoredProcHandler.doDeploy(StoredProcHandler.java:360)
at oracle.jdevimpl.deploy.StoredProcHandler.doDeploy(StoredProcHandler.java:284)
at oracle.jdevimpl.deploy.StoredProcProfileDt$Action$1.run(StoredProcProfileDt.java:383)
#### Deployment incomplete. #### Jul 25, 2007 12:29:05 PM
*** Note ***
One possibility for the deployment failure is that the target Database may not support JDK version 1.3. Updating your Project Properties compiler Source & Target to an earlier release could fix this problem.
OK. Now, I downloaded JVM 1.3 and recompiled and loadJAVA still fails on me.
Any idea?
Sun
Message was edited by:
user522531Hi,
you can set the desired java version in project properties / compiler. Change the settings from source and target "default" to the required version.
HTH
Carsten
By the way: Sometimes JDeveloper gets confused by being used and throws that messages even if the database supports the selected java version. Restarting JDeveloper solved that for me. -
Loadjava Problems Help me.....
i have load a .jar file whit this utility but i can't load this, i try and show this error
$HORA_HOME\bin>loadjava -user US_LOCAL/PASS_LOCAL -resolve genpdf1.1.jar
Error while creating JAVA$CLASS$MD5$TABLE
ORA-01950: no privileges on tablespace 'USERS'
Error while getting old MD5 of META-INF/MANIFEST.MF
ORA-00942: table or view does not exist
However, whit SYS USER show this error
$HORA_HOME\bin>loadjava -user SYS/PASS_SYS -resolve genpdf1.1.jar
Error while creating class oracle/sql/ARRAY
ORA-01031: insufficient privileges
Error while creating class oracle/sql/DatumWithConnection
ORA-01031: insufficient privileges
Error while creating class oracle/sql/ArrayDescriptor
ORA-01031: insufficient privileges
Any suggestions? and thank for you atention.
Edited by: cchar00 on Dec 23, 2009 2:37 PMuser3027513 wrote:
i have load a .jar file whit this utility but i can't load this, i try and show this error
$HORA_HOME\bin>loadjava -user US_LOCAL/PASS_LOCAL -resolve genpdf1.1.jar
Error while creating JAVA$CLASS$MD5$TABLE
ORA-01950: no privileges on tablespace 'USERS'
Error while getting old MD5 of META-INF/MANIFEST.MF
ORA-00942: table or view does not exist
However, whit SYS USER show this error
$HORA_HOME\bin>loadjava -user SYS/PASS_SYS -resolve genpdf1.1.jar
Error while creating class oracle/sql/ARRAY
ORA-01031: insufficient privileges
Error while creating class oracle/sql/DatumWithConnection
ORA-01031: insufficient privileges
Error while creating class oracle/sql/ArrayDescriptor
ORA-01031: insufficient privileges
.....The space of the tablespace is not the issue here but the space quota probably is not there with this user to use the tablespace Users. Run the command,
{alter user your-user-name-here quota unlimited on users{quota}
After this retry and post feedback.
Aman.... -
OCI8 driver and LoadJava problem
we have Oracle 10g ,Win 2003 server,Apex 3.1 running successfully.
I want to run the following from command line
loadjava -u XMPP/XMPP -resolve lib/smack.jar
but we have error that
OCI8 driver is not configured propely
regardsI have requested help as loadjava works successfully before APEX installation
but after Installing the APEX 3.1 we have the said message for loadjava
Regards
Jazib -
Pls help me settle the loadjava problem
I try to load helloword sample java store procedure into oracle server,
and got the following error messages. Please help! Thanks.
loadjava -u scott/tiger@daviddb -r -v testj.java
The error messages :
internal error: unanticipated exception:
java.lang.NoClassDefFoundError: oracle/aurora/sqljdecl/SqljDecl
java.lang.NoClassDefFoundError: oracle/aurora/sqljdecl/SqljDecl
at
oracle.aurora.server.tools.SourceFileReader.getScanner(SourceFile
Reader.java:52)
at
oracle.aurora.server.tools.SourceFileReader.getFirstName(SourceFi
leReader.java:61)
at
oracle.aurora.server.tools.LoadJava.processLoadAndCreate(LoadJava
.java:1094)
at
oracle.aurora.server.tools.LoadJava.process(LoadJava.java:1021)
at
oracle.aurora.server.tools.LoadJavaMain.run(LoadJavaMain.java:193
at
oracle.aurora.server.tools.LoadJavaMain.main(LoadJavaMain.java:49
resolver :
loadjava: 1 errors
nullsounds like your on win nt when executing this command.
add the translator.zip file found in the sqlj folder or its subfolder to your classpath on the platform running the "loadjava" command.
if no "classpath" variable exists in the "environment" tab of the "system" icon in the "control panel" -- then add it.
make sure you shutdown and restart your dos command line window to pickup the change.
i hope this helps ... -
Hello,
everytime i use the "loadjava" utility, to upload Java class files into my Oracle database, an error occurs.
This is an example of the error-message:
D:\Programme>loadjava -user test/test -oci8 -force JTest.class
Error while retrieving errors for JDelete
ORA-00904: Invalid Columnname
Error while resolving errors for JDelete
ORA-00904: Invalid Columnname
loadjava: 2 errors
Could avyone give me a solution for this problem?
Thanks!
JBl
nullActually, as I created my user "like" an existing user that has been assigned JAVAUSERPRIV, my users have been assigned to the role. I've even gone and assigned my users to the JAVASYSPRIV role as well. I'm actually running loadjava with the SYS user in all my cases specifying the specific schema I'm interested in.
I have spent a lot of time reading the documentation on loadjava and the Java Developer's Guide in general. I've also spent quite some time "Googling" this as well. Like I said, as I'm new to this, I'm sure it's something straightforward. I'm just looking for some tips or hints. -
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 -
When trying to load compiled java classes, I always get the following:
Error while retrieving errors for BradTest
ORA-00904: invalid column name
resolver :
Error while resolving class BradTest
ORA-00904: invalid column name
loadjava: 2 errors
I get this error no matter what, even if I have an empty class with no methods or variables. I am using the following syntax for the loadjava:
loadjava -user id/password@host:1521:SID -t -r -v BradTest.class
Any ideas what the problem is?
Thanks,
BradSounds as though the JVM may not be correctly or completely installed. You may need to rerun the INITJVM.SQL script (as sys) and check the alert log for errors.
-
Deployment problem in loadjava
Hello Raghu,
Thank You for you help.
I selected JDk 1.1 from Project Properties. Still I am getting
the error at the same point except for the fact that the content
of Error Message is slightly modified. Instead of "Cannot Load
Java Classes into Data Base:Null Output Stream " it now gives
"Cannot Load Java Classes into Data Base: 1 errors"
Please help me.
Thank You,
Pravin
JDeveloper Team (guest) wrote:
: Hi
: Make sure that your JDK version is 1.1 and not 1.2. The
problem
: occurs when you have your JDK set as 1.2
: This can be set through the project properties.
: regards
: raghu
: Seema (guest) wrote:
: : Hello,
: : I am using Jeveloper 2.0. I created a java class
containing
: a
: : public static method. Then I tried to deploy it to Oracle 8i
: : Database, using the Deployment wizard. I tried to deploy
: : a 'Java stored procedure'. There was no error with the
: connection
: : to Oracle Database. Also I could do the same with direct
: commands
: : from command line utility (loadjava and publish [from sql
: : prompt]).
: : I got the following error -
: : "cannot load java classes into database: null output
stream"
: : at the point of -
: : "invoking Oracle 8i deployment Utility"
: : I would very much appreciate if someone could throw some
light
: : on
: : this problem / or give a site where I can find listing of
such
: : errors and their causes and/or remedies.
: : With Thanks ,
: : Pravin
nullHi
I could not replicate the error. Would it be possible to send a
small test case.
Also If you are able to load the same java class succesfully thru
loadjava command line utility, what are the parameters that you
specified for loadjava.
Any other differences between the command line and JDev IDE can
be useful (such as classpath)
regards
raghu
Pravin Sonsale (guest) wrote:
: Hello Raghu,
: Thank You for you help.
: I selected JDk 1.1 from Project Properties. Still I am getting
: the error at the same point except for the fact that the
content
: of Error Message is slightly modified. Instead of "Cannot Load
: Java Classes into Data Base:Null Output Stream " it now gives
: "Cannot Load Java Classes into Data Base: 1 errors"
: Please help me.
: Thank You,
: : : Hello,
: : : I am using Jeveloper 2.0. I created a java class
: containing
: : a
: : : public static method. Then I tried to deploy it to Oracle
8i
: : : Database, using the Deployment wizard. I tried to deploy
: : : a 'Java stored procedure'. There was no error with the
: : connection
: : : to Oracle Database. Also I could do the same with direct
: : commands
: : : from command line utility (loadjava and publish [from sql
: : : prompt]).
: : : I got the following error -
: : : "cannot load java classes into database: null output
: stream"
: : : at the point of -
: : : "invoking Oracle 8i deployment Utility"
: : : I would very much appreciate if someone could throw some
: light
: : : on
: : : this problem / or give a site where I can find listing of
: such
: : : errors and their causes and/or remedies.
: : : With Thanks ,
: : : Pravin
null -
A problem with loadjava(install of plxml parser)
Hi,
I'm working on :
NT4 SP5 (with an oracle816 client)
the database server is running under unix
I'm trying to install the parser plxml and I've a problem when I want to run :
'loadjava -thin -user/[email protected]:port:instance xmlparserv2.jar'
I've 31 errors of this kind :
Error while creating resource : oracle/xml/parser/v2/mesg/XMLErrorMesg_zh_CN.properties (error...oracle/aurora/rdbms/Compiler)
I have run before initjvm.sql and initsqlj.sql.
Thanks a lot for your response
Regards
Christine
nullThank you for answer.
Unhappily I have already done what you suggest (many times) without any success.
Do you have an other suggestion ? -
try to test AQEJBHotelSample , everything go fine until this step:
loadjava -user travel/travel@linux2:1521:ORCL1 -v -f -r -t $ORACLE_HOME/rdbms/jlib/aqapi.jar
Error while opening or reading
Exception java.io.FileNotFoundException:
SQL Error while connecting with thin driver to linux2:1521:ORCL1: The Network Adapter could not establish the connection
could not open connection
nullInsufficient 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 -
Problem in loadjava using sys account
Hello
When I load a jar file into the database using loadjava command using sys account like
loadjava -user sys/<password> -resolve -order weblogic.jar
it gave the following error
loading : oracle/jdbc/driver/OracleResultSetCache
creating : oracle/jdbc/driver/OracleResultSetCache
Error while creating class oracle/jdbc/driver/OracleResultSetCache
ORA-01031: insufficient privileges
I have seen in the table that sys account has the right to loadclassinpackage oracle.jdbc.*.
Please tell me what is the error and how can I rectify the error.
PrashantPrashant,
If I'm not mistaken, this is exactly the same question as you
posted 10 minutes earlier -- but with a different title. The title
of the earlier question is...
calling EJB installed on weblogic from PL/SQL
Is there a reason why you did this?
Anyway, seeing as I'm sure this is the same as your previous question,
I suggest you look at the answer I gave to that question -- it will
probably be relevant to this question {;-)
Good Luck,
Avi.
Maybe you are looking for
-
my daughter's ipod only displays the apple on the screen and we can't get it to do anything. any suggestions ?
-
Larger font in executable than in source code
The object to the left originates from the executable , and the object to the right is the same, but from the source code. It seems when I compile, LabVIEW 2013 converts from font size 14 to 15 in this front panel. I have never experienced anything s
-
Mail running +100% of my CPU!
Every since I installed Snow Leopard and then Lion on Sunday, Mail has been taking up over 100% of my CPU. Even when I go offline, when I turn off my wireless, it runs over 100% of my CPU. I run a lot of RSS feeds through Mail - a couple hundred.
-
Hyperlink column with link parameters as region column values
On my APEX page i have region which has sql query as source and it displays as HTML table the query result to the user. I want to display addinonal column with a hyperlink inside, and that hyperlink would have CGI/URL-parameters which contains the ot
-
Why did Adobe UI Designers ruin the PS 6 crop tool?
I've been paying for every upgade for PhotoShop since version 2,5 on a Mac SE 30. Now the most essential tool, the crop tool, is totally broken. Is anyone at Adobe today still a photographer or designer? How do I make you see the error of your ways?