Matthew Kaiser

Greenhorn
+ Follow
since Aug 23, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Matthew Kaiser

yep, already did,
The exact code is as above in the Tuesday, August 09, 2011 14:53:36 post
13 years ago
I'm afraid not:

13 years ago
okay



works (making sure I dropped the previous "ThrowAnError" class in favor of "throwAnError/ThrowAnError" beforehand)

I'm still unclear as to how to call it as it get the following results trying to use it



the code (to recap) being



i'm still missing the proper syntax
13 years ago
I tried entering the java code via sqlplus as your suggested with the "create or replace and compile" using a package name and curiously enough when I try to create the wrapper



It reports it can't find the class even though I can query all_objects and see the source and class java objects

I don't seem to understand how oracle resolves the java names.
13 years ago
Okay, I found the class in all_objects.

But, why can't I find it in user_objects and why can't Oracle's jvm see it?
And when I run my routine it can't find the class (after figuring out how to get java errors to show up in the first place):



My entire code is the following:


I've verfied all the classes are loaded, all the jar files are resolved and valid. Is there something else I'm missing?

13 years ago

I'm loading a vendor's jar file in oracle with loadjava with the -v -f -r flags and the classes I need and I see them either getting resolved or skipped:

c:\loadjava -r -f -v -genmissing -u "uid/pwd@mydbatrain" ekahau-engine-sdk.jar
...
resolving: class com/ekahau/common/sdk/EConnection
skipping : class com/ekahau/common/sdk/EErrorCodes
skipping : class com/ekahau/common/sdk/EException
...
Classes Loaded: 114
Resources Loaded: 1
Sources Loaded: 0
Published Interfaces: 0
Classes generated: 0
Classes skipped: 0
Synonyms Created: 0
Errors: 0

but when I query user_objects to see if EConnection is in there,

SQL> column object_name format a30
SQL> column object_type format a20
SQL> select object_name,object_type, status from user_objects where object_name like '%ekahau%';

OBJECT_NAME OBJECT_TYPE STATUS
------------------------------ -------------------- -------
com/ekahau/common/sdk/EMsg JAVA CLASS VALID
com/ekahau/common/sdk/IMsg JAVA CLASS VALID
com/ekahau/engine/sdk/Asset JAVA CLASS VALID
com/ekahau/engine/sdk/Device JAVA CLASS VALID
com/ekahau/engine/sdk/Event JAVA CLASS VALID
com/ekahau/engine/sdk/Location JAVA CLASS VALID
com/ekahau/engine/sdk/Model JAVA CLASS VALID
com/ekahau/engine/sdk/ModelMap JAVA CLASS VALID
com/ekahau/engine/sdk/TagMenu JAVA CLASS VALID

9 rows selected.

SQL>

it's not there -
can anyone help an oracle noob?

Matthew
13 years ago
Okay, now that Sun has been absorbed by Oracle let's see who knows about both,

Because, I can make Oracle tables, view, trigger, sequences and synonyms with the rest of the Oracle community ,code threads and objects in Java, and I know you can run Java in a Oracle database trigger, but I'm not certified in Oracle enough to know how to solve this problem.

I've been an to run basic example of Java in Oracle trigger, but I'm having a dependency issue with some the basic commons-logging-1.1.jar file while loading it into Oracle via the following command.

$ loadjava -f -v -r -user "<DB_User>/<DB_PASSWORD>" Constant.class

Ought not Oracle have the basics of Java already? Is this a database configuration issue or am I just missing another jar file here?

Help - this ought to be simple


I'm experiencing a com.sun.deploy.net.JARSigningException on my jna.jar file only when I turn off the local storage of temporary internet files in the Java control panel.

I have signed the jna.jar file for local use, but the exception does not occur when I am storing the jars files locally.
Only when I uncheck the "Keep temporary files on my computer" option under Temporary Files Settings in the Java Control Panel.



That doesn't make sense. Can someone tell me what's going on here?

Thanks
14 years ago
I'm experiencing a com.sun.deploy.net.JARSigningException on my jna.jar file only when I turn off the local storage of temporary internet files in the Java control panel.

I have signed the jna.jar file for local use, but the exception does not occur when I am storing the jars files locally.
Only when I uncheck the "Keep temporary files on my computer" option under Temporary Files Settings in the Java Control Panel.



That doesn't make sense. Can someone tell me what's going on here?

Thanks
14 years ago