Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 54131 invoked from network); 2 Oct 2010 09:55:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Oct 2010 09:55:14 -0000 Received: (qmail 19985 invoked by uid 500); 2 Oct 2010 09:55:14 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 19703 invoked by uid 500); 2 Oct 2010 09:55:11 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 19692 invoked by uid 99); 2 Oct 2010 09:55:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Oct 2010 09:55:10 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [74.6.228.93] (HELO n13.bullet.mail.ac4.yahoo.com) (74.6.228.93) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 02 Oct 2010 09:55:01 +0000 Received: from [76.13.12.66] by n13.bullet.mail.ac4.yahoo.com with NNFMP; 02 Oct 2010 09:54:40 -0000 Received: from [74.6.228.81] by t7.bullet.mail.ac4.yahoo.com with NNFMP; 02 Oct 2010 09:54:40 -0000 Received: from [127.0.0.1] by omp1002.mail.ac4.yahoo.com with NNFMP; 02 Oct 2010 09:54:40 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 142284.95816.bm@omp1002.mail.ac4.yahoo.com Received: (qmail 13359 invoked by uid 60001); 2 Oct 2010 09:54:40 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s1024; t=1286013279; bh=klkALe5z4CRxwdrkx/aexoKk0mDgI0SIuHIp0Kmn0GQ=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=SrZ6sdcl5ud7v3n05aQmXXFtuinhWxfq8hwK/PaFTtcbpoWivIyiHg5ADPBT+FaT+JirwcopvtGP+M6Aaej8csX/X0p1SsdOYPcBd0IjmYQp8HcvSTRPg4ju43AjpHwrDp5nma0uZ0bSsSQOGiayoVBHAyz/omwbxxcZHujnlkU= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=ymail.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=VJDKRNwByOGn/uybUKiJgA2z/CXz5WMDNsyb5YAq7uD+TSyttVsFFFmZY1qW8j4FYAvqMBCEb2kIB2/lCoHjBDSmNsgAyQQWbPO3aDcSLjzbJ58h32GFF0pZ2YvCRMdAuJOncVu3amnDypAuk49lVXQ/QfJrI2R2l2blnZ6u2Uc=; Message-ID: <936976.9821.qm@web59502.mail.ac4.yahoo.com> X-YMail-OSG: XkO99YMVM1nftZj7bdQiZKOefYGKLUa1XkihLocvwFKpgRN 5GRhiTf0NQvpUXhE7xRAcdVKISsAREvl76q_1Rcz0mWdni.TS9DmORnUmvuM 0CCCvJVoH.1VUbSG8KbgUjCRUZZFXTwjJUc2czD8N8NWtK0npf1kHnXQG4AF nVnLSwy9ICjsb3ns6w7pYwNvk.hd3r52lMth9tlITEG1mWlu9csdTuBJtPN9 86gdZL7UZ8Om7Kbcf9s4POv2lm5VyYMQ- Received: from [122.168.157.118] by web59502.mail.ac4.yahoo.com via HTTP; Sat, 02 Oct 2010 02:54:39 PDT X-Mailer: YahooMailClassic/11.4.9 YahooMailWebService/0.8.105.279950 Date: Sat, 2 Oct 2010 02:54:39 -0700 (PDT) From: Dinesh Bajaj Subject: Error in creating database schema on the fly using ij To: Derby Mailing List MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-694696183-1286013279=:9821" X-Virus-Checked: Checked by ClamAV on apache.org --0-694696183-1286013279=:9821 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi All, I am using Derby 10.6.1.0=A0 and am calling ij from my java application to = create a database schema on the fly. The database contains a jar file and the error reported concerns this jar f= ile. The .sql file read by ij contains this command: CALL SQLJ.INSTALL_JAR('file:DERBYROUTINES.jar.G1286008959877', '"schemaname= "."DERBYROUTINES"', 0); ij doesn't throw any error while executing this line and shows the output a= s: "0 rows inserted/updated/deleted". As a result of executing the line a jar = file named DERBYROUTINES.jar.G1286010997266 is added under the folder dbnam= e\jar\schemaname\. The problem occurs when ij is executing a DDL statement for creating a trig= ger that calls the function defined in the jar file. It then reports the er= ror: "ERROR 42X51: The class 'accountant.DerbyMethods' does not exist or is inac= cessible. This can happen if the class is not public. ERROR XJ001: Java exception: 'accountant.DerbyMethods: java.lang.ClassNotFo= undException'." I am perplexed when the jar has been added to the database, why it is still= not able to recognize the class defined in the jar file? Please suggest some solution for the problem. Regards, Dinesh =0A=0A --0-694696183-1286013279=:9821 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Hi All,

I am using Derby 10.6.1.0 = ; and am calling ij from my java application to create a database schema on= the fly.

The database contains a jar file and the error reported co= ncerns this jar file.

The .sql file read by ij contains this command= :

CALL SQLJ.INSTALL_JAR('file:DERBYROUTINES.jar.G1286008959877', '"s= chemaname"."DERBYROUTINES"', 0);

ij doesn't throw any error while ex= ecuting this line and shows the output as:
"0 rows inserted/updated/dele= ted". As a result of executing the line a jar file named DERBYROUTINES.j= ar.G1286010997266 is added under the folder dbname\jar\schemaname\.
=
The problem occurs when ij is executing a DDL statement for creating a = trigger that calls the function defined in the jar file. It then reports th= e error:

"ERROR 42X51: The class 'accountant.DerbyMethods' does not exist or is inaccessible. This can happen if the class is not public.
E= RROR XJ001: Java exception: 'accountant.DerbyMethods: java.lang.ClassNotFou= ndException'."

I am perplexed when the jar has been added to the dat= abase, why it is still not able to recognize the class defined in the jar f= ile?

Please suggest some solution for the problem.

Regards,Dinesh



--0-694696183-1286013279=:9821--