Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6566171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:11:05+00:00 2026-05-25T14:11:05+00:00

I’m trying to make a Java Stored Procedure in Oracle 11g which retrieve Google

  • 0

I’m trying to make a Java Stored Procedure in Oracle 11g which retrieve Google Analytics information.

Working on this for three days now, but without success. Here is step by step what I did:

Uploaded the 5 required JAR files, here link, to the database using:

loadjava -user scott/tiger@WH01 gdata-analytics-2.1.jar

Then i created java source file (in pl/sql developer IDE) and used the example code in the link above. Compiled it (f8) and it appeared in the Java Classes Tree (same for the classes created with the jar files).

After I wrote the procedure to call the java class:

create or replace procedure KEVIN_PROCEDURE_ANALYTICS
AS LANGUAGE JAVA
NAME 'Kevin_Analytics.main(java.lang.String[])';

Finally I call the procedure:

exec KEVIN_PROCEDURE_ANALYTICS();

and i get the error:

ORA-29532: Java call terminated by uncaught Java exception: java.lang.IllegalStateException: Cannot call dirty() without holding the lock on the registry.

Using google I found this link (the java code of a class where there is a method which prints this error message exactly) and I figured that I had to use an synchronized method, please check the link and I think you will find out too.

Now the problem is, I have really no idea how and where I must put this synchronized code. If someone of you can show me this I will be really.

Thanks for reading this post, please, if someone can help me, it will be greatly appreciated.

Kevin Vermaat

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:11:06+00:00Added an answer on May 25, 2026 at 2:11 pm

    Well, Downloading the jars and the example from the link above I loaded everything into my Oracle database and got exactly the same error. Even though the error is due to synchronization issue for sure, there is nothing I had to add. The code is the code from the example and no where in did I find a direct usage of a “registryBuilder” object any object from the class.

    well, It will get long to write everything in Detail. so I will write the steps I performed to overcome various errors encountered while loading the jars and running the code. maybe performing the same steps will solve the issue for you too.

    1- give grants to the user to create tables and procedures and also increase its quota on users table space. I will try to use data provided by you for user and database. to give grants, connect as sysdba:

      sqlplus sys/password@WH01 as sysdba 
    

    after you are connected, give grants to user scott and increase its quota:

      grant create any table to scott;
    
      grant create any procedure to scott;
    
      alter user scott quota unlimited on users;
    

    (and please consult your DBA regarding the above as it might not be suitable to give unlimited grants like I did out of laziness)

    2- now load the files again. I load all 5 jars at once. also, add option -f and -genmissing to your command as without them it did not work:

    loadjava -genmissing -f -user scott/tiger@WH01 gdata-analytics-2.1.jar gdata-analytics-meta-2.1.jar gdata-core-1.0.jar google-collect-1.0-rc1.jar jsr305.jar
    

    this is what I did to make it run for me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I used javascript for loading a picture on my website depending on which small
this is what i have right now Drawing an RSS feed into the php,
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I have a text area in my form which accepts all possible characters from
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.