473,767 Members | 2,131 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

loadjava error loading classes

I need to insert rows into MySql database from oracle, which I imagine is a
rather common task. The path I decided to take is write a java procedure, as
recommended in the manual. However, java expects a driver to connect to
mysql, so I use the driver that everyone is using,
mysql-connector-java-3.0.11-stable-bin.jar that can be downloaded from
www.mysql.com. There are sources that come with it, but they are rather
complex to build and they use an ant file to produce this jar, so I'm not
sure how to get them all into the oracle so they resolve. It seems like
loadjava tool that allows to import jars is my only option.

I'm trying to run

loadjava -v -user player/player -r
mysql-connector-java-3.0.11-stable-bin.jar

and getting

arguments: '-v' '-user' 'player/player' '-r'
'mysql-connector-java-3.0.11-stable-bin.jar'

creating : resource META-INF/MANIFEST.MF

loading : resource META-INF/MANIFEST.MF

Error while creating resource META-INF/MANIFEST.MF

ORA-29516: Aurora assertion failure: Assertion failure at eox.c:232
Uncaught exception Root of all Java exceptions:
java.lang.NullP ointerException

....

The following operations failed

resource META-INF/MANIFEST.MF: creation

....

class com/mysql/jdbc/Driver: creation

Thus, if fails to load the class com.mysql.jdbc. Driver that I need in order
to insert into Oracle.
This is happening on 9i. On 10g it doesn't resolve the class
java.sql.SavePo int used in the mysql jar. I tried to import rt.jar that
contains it from sun's jdk, but it gave me a bunch of errors like

ORA-06152: errors during recompilation/revalidation of
AUTHOR.sun/io/CharToByteCp125 2

So I need instructions what to do either on 9i or 10g. Any help from anyone
who has connected to mysql from oracle via java would be greatly
appreciated.

Thanks-

Jul 19 '05 #1
1 11477
"Cindy Lee" <da*******@hotm ail.com> wrote in message
news:4a******** *************** *******@news.me ganetnews.com.. .
I need to insert rows into MySql database from oracle, which I imagine is a rather common task. The path I decided to take is write a java procedure, as recommended in the manual. However, java expects a driver to connect to
mysql, so I use the driver that everyone is using,
mysql-connector-java-3.0.11-stable-bin.jar that can be downloaded from
www.mysql.com. There are sources that come with it, but they are rather
complex to build and they use an ant file to produce this jar, so I'm not
sure how to get them all into the oracle so they resolve. It seems like
loadjava tool that allows to import jars is my only option.

I'm trying to run

loadjava -v -user player/player -r
mysql-connector-java-3.0.11-stable-bin.jar

and getting

arguments: '-v' '-user' 'player/player' '-r'
'mysql-connector-java-3.0.11-stable-bin.jar'

creating : resource META-INF/MANIFEST.MF

loading : resource META-INF/MANIFEST.MF

Error while creating resource META-INF/MANIFEST.MF

ORA-29516: Aurora assertion failure: Assertion failure at eox.c:232
Uncaught exception Root of all Java exceptions:
java.lang.NullP ointerException

...

The following operations failed

resource META-INF/MANIFEST.MF: creation

...

class com/mysql/jdbc/Driver: creation

Thus, if fails to load the class com.mysql.jdbc. Driver that I need in order to insert into Oracle.
This is happening on 9i. On 10g it doesn't resolve the class
java.sql.SavePo int used in the mysql jar. I tried to import rt.jar that
contains it from sun's jdk, but it gave me a bunch of errors like

ORA-06152: errors during recompilation/revalidation of
AUTHOR.sun/io/CharToByteCp125 2

So I need instructions what to do either on 9i or 10g. Any help from anyone who has connected to mysql from oracle via java would be greatly
appreciated.

Thanks-


Cindy,

In "Expert One-on-One Oracle" by Thomas Kyte (A-Press:2003), Thomas
recommends, on p.1237, that jar files be unzipped by WinZip and then zipped
by WinZip prior to using the loadjava command. The reason he gives for this
procedure is that the "...jar files are compressed in a format that are not
understood by the database byte code interpreter." (p.1236)

Douglas Hawthorne
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4391
by: Chris | last post by:
I have seen the posts on various places on the internet about .NET framework mismatch issues and I don't think that is my problem. ; ) When I execute the following C++.NET code: String *ipAddress = S""; IDictionary *server_config = dynamic_cast<IDictionary*>(ConfigurationSettings::GetConfig("ServerAddress") ); ipAddress = dynamic_cast<String*>(server_config->get_Item(S"IP"));
0
1703
by: piyushc | last post by:
Hi, I am having problem creating new project using VS.Net 2003. Whenever I am trying to create new project (any type) it shows error message "Error writing the project file. Error loading type library/DLL". I faced this problem before and it was solved when I reinstall the
1
3128
by: Martin Schneider | last post by:
Hi! I created a database form with a simple Form_Load procedure and a simple Form_resize procedure. Both work fine on one machine. On a second machine I get a "Error loading DLL" on these procedures, even if i comment out all the code inside these procedures. This is very weird! On a third machine, everything works fine again.
0
1166
by: Jeff | last post by:
Hello, I've run into a problem with my asp.net application and would like to know whether the error is likely with my remote host. The problem is an unhandled exception, and the exception details are as follows: System.Configuration.ConfigurationException: Error loading XML file c:\winnt\microsoft.net\framework\v1.0.3705\Config\machine.config Request for the permission of type System.Security.Permissions.StrongNameIdentityPermission,...
2
1804
by: Jeff | last post by:
Hello, I've run into a problem with my asp.net application and would like to know whether the error is likely with my remote host. The problem is an unhandled exception, and the exception details are as follows: System.Configuration.ConfigurationException: Error loading XML file c:\winnt\microsoft.net\framework\v1.0.3705\Config\machine.config Request for the permission of type System.Security.Permissions.StrongNameIdentityPermission,...
0
2533
by: Erwan | last post by:
I have a strange (but very blocking) result when using the smtpmail class from an ASPX page : here is the (very simple !) code... '-------------------------------------------------- mail.To = "el@illico.fr" mail.From = "el@illico.fr" mail.Subject = "test envoi de mail" mail.Body = "test envoi de mail"
1
2700
by: campwes | last post by:
Hey, all! We're having trouble displaying SQL Server data in a web site as XML, using a transform. The query is a simple SELECT statement. When running the query, we get the following error from the web site: <error> Microsoft.Data.SqlXml.Common.ISQLXMLCommandManagedInterface.ExecuteToOutputStream() +0 Microsoft.Data.SqlXml.SqlXmlCommand.innerExecute(Stream strm) +137
1
2478
by: TC | last post by:
Anyone know what this means Parser Error Message: Error loading XML file E:\Inetpub\wwwroot\web.config Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks. Parameter name: ticks. windows 2000 server with Microsoft .NET Framework Version:2.0.40607.42; ASP.NET Version:2.0.40607.42 I get this error on any aspx file even hello world
3
1383
by: ravisc | last post by:
Hi, I had .Net 2005 framework installed in my system. I had uninstalled the same. Now I have been working with .Net 2003 develpment environment. when I try to debug any .Net 2003 project, it gives me following error before starting the application in debug mode. error while trying to run the project : unable to start debugging error loading type library/dll OS - Win XP. Can somebody help me here urgently. Kind Regards,
0
9571
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9405
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10169
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10013
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9960
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9841
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
3930
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3533
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2807
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.