Problem Compiling JAR Loaded in Oracle 10g

I have loaded a JAR file into my Oracle 10g database using the following command-line:
Loadjava -force -oci8 -order -resolve -schema "MYSCHEMA" -user "USER/PASSWORD@HOST" -verbose "JarFile.jar"
Unfortunately, after loading the JAR contents, the resolution of the individual files never completes. The process runs for >24 hours. Is there a better way to complete this task? I have even tried compiling portions of the JAR file via Toad, but it appears the recursive nature of the dependencies causes the process to essentially hang.
Unless the JAR files compiles successfully, I can load my Java source code but my resulting Java stored procedures cannot compile because of my import references to the JAR file. My java code was compiled for JDK1.3 using JDeveloper 10.1.3.0.0 to eliminate conflicts with the Oracle JDK (JDK1.4). Is there a setting or a flag which would allow compilation of my source code without compiling the JAR file to utilize the Oracle JIT compiler?
Any assistance/suggestions would be greatly appreciated. Thank you.

Avi,
Thank you for the suggestion. As a result, I found how to load my JAR (iText JAR file) file without decompressing using loadjava -jarasresource MYJAR.jar but now the issue of referrencing this resource within my Java class so that it will compile once loaded into the database. Here is sample of my objects:
Oracle User-Defined Type:
CREATE OR REPLACE TYPE schema."BLOB_ARRAY" as varray(20) of BLOB
Java Source:
CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED schema."JavaSource" AS
import com.lowagie.text.Document;
import com.lowagie.text.pdf.PdfCopy;
import java.io.ByteArrayOutputStream;
import java.io.*;
public class JavaSource{
public static Document doc;
public static ByteArrayOutputStream baos = new ByteArrayOutputStream();
public JavaSource(){}
public static PdfCopy getDoc(oracle.sql.BLOB[] docs){
PdfCopy writer = new PdfCopy(doc, baos);
return writer;
LOADJAVA:
loadjava -force -schema "SCHEMA" -user "user/password@sid" -verbose -resolve -unresolvedok -genmissing -jarasresource -genmisingjar "C:\JavaSource.java" "C:\iText.jar"
Oracle Package:
CREATE OR REPLACE PACKAGE schema."JavaSource" AS
FUNCTION getDoc(param1 schema.BLOB_ARRAY) return PdfCopy AS Language Java Name 'JavaSource.getDoc(oracle.sql.BLOB[]) return PdfCopy';
Oracle Function to query Database populating User-Defined type argument:
CREATE OR REPLACE FUNCTION schema.TestRun() RETURN schema.BLOB_ARRAY AS
tmpArray schema.BLOB_ARRAY := null;
BEGIN
tmpArray schema.BLOB_ARRAY := BLOB_ARRAY();
cursor c_blob is select blob_content from schema.doc_table;
BEGIN
for blob_rec in c_blob loop
tmpArray.extend;
tmpArray(tmpArray.count) := blob_rec.blob_content;
end loop;
END;
return tmpArray;
END;
I cannot get my class JavaSource to compile as VALID and therefore the Oracle Function schema.TestRun does not execute properly. Am I missing something? Assistance is greatly appreciated. Thank you.

Similar Messages

  • Is there any difference in Oracle 9i SQL Loader and Oracle 10g SQL Loader

    Hi
    Can anyone tell me whether is there any difference in Oracle 9i SQL Loader and Oracle 10g SQL Loader?
    I am upgrading the 9i db to 10g and wanted to run the 9i SQL Loader control files on upgraded 10g db. So please let me know is there any difference which I need to consider any modifications in the control files..
    Thank you in advance
    Adi

    answered

  • Failier in loading jar files in oracle 10g

    Hi All,
    I am not sure if I should post my problem in this forum or Java one.I am trying to use jasper report inside my apex application.The first thing I did was to develop the report example in NetBeans and it worked.Now I try to do the same and compile my report inside oracle database.The problem is the libraries that I have to load in db.For example when in try to compile
    call dbms_java.loadjava('-force -resolve D:\jdt-compiler-3.1.1.jar');it returns
    errors   : class org/eclipse/jdt/internal/compiler/SourceElementParser$LocalDeclarationVisitor
        ORA-29534: referenced object MBA.org/eclipse/jdt/internal/compiler/SourceElementParser could not be resolved
    errors   : class org/eclipse/jdt/internal/compiler/SourceElementParser
        ORA-29534: referenced object MBA.org/eclipse/jdt/internal/compiler/parser/SourceTypeConverter could not be resolved
    errors   : class org/eclipse/jdt/internal/compiler/parser/SourceTypeConverter
        ORA-29521: referenced name org/eclipse/jdt/core/JavaModelException could not be found
        ORA-29521: referenced name org/eclipse/jdt/internal/core/SourceTypeElementInfo could not be found
        ORA-29521: referenced name org/eclipse/jdt/core/IType could not be found
        ORA-29521: referenced name org/eclipse/jdt/internal/core/JavaElement could not be found
        ORA-29521: referenced name org/eclipse/jdt/internal/core/CompilationUnitElementInfo could not be found
        ORA-29521: referenced name org/eclipse/jdt/core/ICompilationUnit could not be found
        ORA-29521: referenced name org/eclipse/jdt/core/IJavaElement could not be found
        ORA-29521: referenced name org/eclipse/jdt/internal/core/ImportDeclaration could not be found
        ORA-29521: referenced name org/eclipse/jdt/internal/core/SourceType could not be found
        ORA-29521: referenced name org/eclipse/jdt/internal/core/InitializerElementInfo could not be found
        ORA-29521: referenced name org/eclipse/jdt/internal/core/SourceField could not be found
        ORA-29521: referenced name org/eclipse/jdt/internal/core/SourceFieldElementInfo could not be found
        ORA-29521: referenced name org/eclipse/jdt/internal/core/SourceMethod could not be found
        ORA-29521: referenced name org/eclipse/jdt/internal/core/SourceMethodElementInfo could not be found
        ORA-29521: referenced name org/eclipse/jdt/internal/core/SourceAnnotationMethodInfo could not be found
        ORA-29521: referenced name org/eclipse/jdt/core/Signature could not be found
        ORA-29521: referenced name org/eclipse/jdt/core/IImportDeclaration could not be found
    The following operations failed
        class org/eclipse/jdt/internal/compiler/SourceElementParser$LocalDeclarationVisitor: resolution
        class org/eclipse/jdt/internal/compiler/SourceElementParser: resolution
        class org/eclipse/jdt/internal/compiler/parser/SourceTypeConverter: resolution
    exiting  : Failures occurred during processing
    oracle.aurora.server.tools.loadjava.ToolsError: Error during loadjava: Failures occurred during processing. Check trace file for details
         at oracle.aurora.server.tools.loadjava.LoadJavaMain.serverMain(LoadJavaMain.java:129)
         at oracle.aurora.server.tools.loadjava.LoadJavaMain.serverMain(LoadJavaMain.java:103)and this is same with other libraries i try to compile.So I came up with another idea to put all my libraries inside class path like below.However, it didnt changed anything.
    D:\commons-beanutils-1.8.0.jar;D:\commons-collections-2.1.1.jar;D:\commons-digester-1.7.jar;D:\commons-logging-1.0.4.jar;D:\iText-2.1.7.jar;D:\jasperreports-4.1.1.jar;D:\jdt-compile.jarCan you plz tell me where I am wrong?
    Edited by: SARA3 on Aug 16, 2011 1:14 AM
    Edited by: SARA3 on Aug 16, 2011 1:15 AM

    Correct name resolver or address resolution problems in the referenced class, or correct compilation problems in its source.

  • Problem with JDBC driver for Oracle 10g

    Hi.
    I've successfully accessed a MySQL database via a DataSource from a servlet (that uses a DAO). However, when I try to do the same with an Oracle 10g Database, I get the error message:
    Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver'
    I'm using J2SE1.5.0/5.0 and ojdbc14.jar, the latter of which I downloaded this afternoon as the latest driver JAR available on the Oracle site. As with the MySQL driver, I've placed it in the commons\lib folder within Tomcat. (I've also, of course, made the necessary modifications to server.xml and web.xml.)
    Upon examining the ReadMe file at the top of the Oracle download page, I found that the oracle.jdbc.driver package is now deprecated and all references to oracle.jdbc.driver should be replaced with oracle.jdbc. However, I got a similar error message when I tried this modification. Upon examining the contents of ojdbc.jar, I found that the driver was there and that it was, in fact, still oracle\jdbc\driver\OracleDriver!
    It appears as though the Oracle site has not been updated with a driver that matches its latest documentation. However, this does not explain why the driver is not even being loacted when it is in the correct place. Can anybody shed any light on this? Any help would be much appreciated.
    Thanks in anticipation.
    Cheers.
    Jan

    I've successfully accessed a MySQL database via a
    DataSource from a servlet (that uses a DAO). However,
    when I try to do the same with an Oracle 10g
    Database, I get the error message:
    Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver'
    That's different from a ClassNotFoundException.
    >
    I'm using J2SE1.5.0/5.0 and ojdbc14.jar, the latter
    of which I downloaded this afternoon as the latest
    driver JAR available on the Oracle site. So you got ojdbc14.jar or ojdbc14_g.jar under the 10g drivers?
    As with the
    MySQL driver, I've placed it in the commons\lib
    folder within Tomcat. I think it's a better idea to put in the WEB-INF/lib directory of your Web app rather than commons/lib. WAR files are a very good idea, too.
    (I've also, of course, made the
    necessary modifications to server.xml and web.xml.)So you're using a JNDI data source? It sounds to me like that's where the problem is.
    You should not have to edit the server.xml at all. If you put the <ResourceParams> in a context XML file with the same name as your WAR file into the TOMCAT_HOME/webapps directory it'll be picked up automatically. (It might also be accessible in the META-INF directory for your app, but I haven't done it that way.)
    Upon examining the ReadMe file at the top of the
    Oracle download page, I found that the
    oracle.jdbc.driver package is now deprecated and all
    references to oracle.jdbc.driver should be replaced
    with oracle.jdbc.
    However, I got a similar error
    message when I tried this modification. Upon
    examining the contents of ojdbc.jar, I found that the
    driver was there and that it was, in fact, still
    oracle\jdbc\driver\OracleDriver! The fully-resolved class name you should be using MUST match the class that's in the ojdbc14.jar that you're using. Look in the JAR for the definitive answer: the one that I downloaded is still using the oracle.jdbc.driver package for OracleDriver.class. Ignore the docs - use the name that's in the JAR.
    It appears as though the Oracle site has not been
    updated with a driver that matches its latest
    documentation. That often happens with docs.
    However, this does not explain why the
    driver is not even being loacted when it is in the
    correct place. Can anybody shed any light on this?
    Any help would be much appreciated.I think the problem lies in your web.xml and server.xml
    I'd recommend that you decouple the JDBC from the Web app for now. See if you can connect to Oracle using a simple desktop app and leave the Web piece out of the equation for now. Once you can do that, you'll be certain that the parameters you're using are correct and you can turn your attention to getting the Tomcat configuration right.
    PS - I'm using Oracle 9.2.0.1 and Tomcat successfully right now, so it can be done.

  • Loading data by sql loader in oracle 10g on linux

    I am trying to load data in Oracle 10g on linux by using sql loader, but getting error
    Problem in log showing that field length of SURNAME field is more than table field size.
    Following is the error in log file of sql loader
    Record 21: Rejected - Error on table TABLE1, column
    SURNAME.
    ORA-12899: value too large for column SURNAME (actual: 65, maximum: 64)
    and it is evident from following controlfile that i am using trim to discard any space then why it is giving an error.
    LOAD DATA
    TRUNCATE
    INTO TABLE TABLE1
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
    ID INTEGER EXTERNAL,
    OPTION1 CHAR,
    REF1 CHAR,
    OTHER_REF CHAR,
    TITLE "TRIM(:TITLE)",
    FORENAME "TRIM(:FORENAME)",
    SURNAME "TRIM(:SURNAME)",
    JOINT_TITLE "TRIM(:JOINT_TITLE)",
    JOINT_FORENAME "TRIM(:JOINT_FORENAME)",
    JOINT_SURNAME "TRIM(:JOINT_SURNAME)",
    I checked the bad file and count number of characters, they are 64 characters.
    When i am inserting individual record from bad file by sql loader, it is loading

    Probably your database character set is multi-byte. That is %UTF8 or AL16UTF16%
    Post your NLS Database Parameters value
    select * from nls_database_parameters;
    In General varchar2(65) by default means 65 BYTES unless
    you have changed your Defalut NLS_LENGTH_SEMANTICS parameter from BYTE to CHAR.
    With best regards
    Shan

  • Two problems in BSBM benchmark of Oracle 10g with Jena Adaptor 2.0

    Hi, all.
    I'm proceeding BSBM benchmark for Oracle 10g with Jena Adaptor 2.0.
    I'm using the codes that were introduced in Jena Adaptor 2.0 guide document, and I've applied Jena patches to Oracle 10g (10.2.0).
    But, two problems are occured in benchmark process.
    The first problem is
         that 250k dataset(consisted of 250030 triples) loading time elapses over several hours, (See below code snippet.)
    and the other is
         that exceptions are occured in some sparql query execution.
    I used below queries which have no error in query syntax.
    I confirmed that through other benchmark tests.
    In case of oracle benchmark test, quey1 is ok. but, query2 makes exception.
    Please, look about the Exception message below.
    What should I do for getting much better benchmark result?
    I appreciate any help or any hint.
    Best regards ~
    ### Query 1 ###
    PREFIX bsbm-inst: <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/>
    PREFIX bsbm: <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/>
    PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
    PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
    SELECT DISTINCT ?product ?label
    WHERE {
    ?product rdfs:label ?label .
    ?product a <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/ProductType18> .
    ?product bsbm:productFeature <http://www4.wiwiss.fu-
    berlin.de/bizer/bsbm/v01/instances/ProductFeature833> .
    ?product bsbm:productFeature <http://www4.wiwiss.fu-
    berlin.de/bizer/bsbm/v01/instances/ProductFeature61> .
    ?product bsbm:productPropertyNumeric1 ?value1 .
         FILTER (?value1 > 136)
    ORDER BY ?label
    LIMIT 10
    ### Query 2 ###
    PREFIX bsbm-inst: <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/>
    PREFIX bsbm: <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/>
    PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
    PREFIX dc: <http://purl.org/dc/elements/1.1/>
    SELECT ?label ?comment ?producer ?productFeature ?propertyTextual1 ?propertyTextual2 ?
    propertyTextual3
    ?propertyNumeric1 ?propertyNumeric2 ?propertyTextual4 ?propertyTextual5 ?propertyNumeric4
    WHERE {
    <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer11/Product536>
    rdfs:label ?label .
    <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer11/Product536>
    rdfs:comment ?comment .
    <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer11/Product536>
    bsbm:producer ?p .
    ?p rdfs:label ?producer .
    <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer11/Product536>
    dc:publisher ?p .
    <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer11/Product536>
    bsbm:productFeature ?f .
    ?f rdfs:label ?productFeature .
    <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer11/Product536>
    bsbm:productPropertyTextual1 ?propertyTextual1 .
    <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer11/Product536>
    bsbm:productPropertyTextual2 ?propertyTextual2 .
    <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer11/Product536>
    bsbm:productPropertyTextual3 ?propertyTextual3 .
    <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer11/Product536>
    bsbm:productPropertyNumeric1 ?propertyNumeric1 .
    <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer11/Product536>
    bsbm:productPropertyNumeric2 ?propertyNumeric2 .
    OPTIONAL { <http://www4.wiwiss.fu-
    berlin.de/bizer/bsbm/v01/instances/dataFromProducer11/Product536> bsbm:productPropertyTextual4 ?
    propertyTextual4 }
    OPTIONAL { <http://www4.wiwiss.fu-
    berlin.de/bizer/bsbm/v01/instances/dataFromProducer11/Product536> bsbm:productPropertyTextual5 ?
    propertyTextual5 }
    OPTIONAL { <http://www4.wiwiss.fu-
    berlin.de/bizer/bsbm/v01/instances/dataFromProducer11/Product536> bsbm:productPropertyNumeric4 ?
    propertyNumeric4 }
    ### Exception Message (in query 2 execution) ###
    Exception in thread "main" java.sql.SQLException: ORA-00936: missing expression
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:216)
    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe
    (T4CPreparedStatement.java:799)
    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1038)
    at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe
    (T4CPreparedStatement.java:839)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1133)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal
    (OraclePreparedStatement.java:3285)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery
    (OraclePreparedStatement.java:3329)
    at oracle.spatial.rdf.client.jena.Oracle.executeQuery(Oracle.java:255)
    at oracle.spatial.rdf.client.jena.OracleSemQueryPlan.executeBindings
    (OracleSemQueryPlan.java:302)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIterBlockTriplesQH$StagePattern.<init>
    (QueryIterBlockTriplesQH.java:89)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIterBlockTriplesQH.nextStage
    (QueryIterBlockTriplesQH.java:55)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.makeNextStage
    (QueryIterRepeatApply.java:92)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.hasNextBinding
    (QueryIterRepeatApply.java:54)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext
    (QueryIteratorBase.java:69)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.makeNextStage
    (QueryIterRepeatApply.java:85)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.hasNextBinding
    (QueryIterRepeatApply.java:54)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext
    (QueryIteratorBase.java:69)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.makeNextStage
    (QueryIterRepeatApply.java:85)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.hasNextBinding
    (QueryIterRepeatApply.java:54)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext
    (QueryIteratorBase.java:69)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.makeNextStage
    (QueryIterRepeatApply.java:85)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.hasNextBinding
    (QueryIterRepeatApply.java:54)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext
    (QueryIteratorBase.java:69)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIterConvert.hasNextBinding
    (QueryIterConvert.java:47)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext
    (QueryIteratorBase.java:69)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorWrapper.hasNextBinding
    (QueryIteratorWrapper.java:29)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext
    (QueryIteratorBase.java:69)
    at com.hp.hpl.jena.sparql.engine.ResultSetStream.hasNext(ResultSetStream.java:62)
    at benchmark.repository.oracle.OracleQuerying.getSelectQueryResult
    (OracleQuerying.java:148)
    at benchmark.repository.oracle.OracleQuerying.doSparqlQuery(OracleQuerying.java:101)
    at benchmark.repository.oracle.OracleQuerying.queryingData(OracleQuerying.java:90)
    at benchmark.repository.oracle.OracleQuerying.querying(OracleQuerying.java:49)
    at benchmark.repository.oracle.OracleQuerying.<init>(OracleQuerying.java:44)
    at benchmark.Benchmark.runTest(Benchmark.java:113)
    at benchmark.Benchmark.main(Benchmark.java:56)
    ### Loading Code Snippet ###
              String jdbcURL = "jdbc:oracle:thin:@" + Constants.HOST + ":1521:orcl";
              OracleDataSource ds = new OracleDataSource();
              ds.setURL(jdbcURL);
              ds.setUser(Constants.ORACLE_USER);
              ds.setPassword(Constants.ORACLE_PASSWORD);
              OracleConnection conn = (OracleConnection) ds.getConnection();
              oracle = new Oracle(conn);
              modelOracleSem = ModelOracleSem.createOracleSemModel(oracle, modelName);
              graphOracleSem = modelOracleSem.getGraph();
              graphOracleSem.createTables();
              graphOracleSem.clearRepository();
              for (int i = 0; i < fileList.length; i++) {
                   file = fileList;
                   if (file.isDirectory())
    continue;
                   inputFilePath = file.getAbsolutePath();
                   InputStream in = null;
                   try {
                        in = FileManager.get().open(inputFilePath);
                        if (in == null) {
                             throw new IllegalArgumentException("File: " + inputFilePath + " not found");
                        modelOracleSem.read(in, "", "N-TRIPLE");
                        modelOracleSem.commit();
                   } finally {
                        if (in != null)
                             in.close();

    Hi,
    The data loading was slow because incremental loading API was used. Please take a look at OracleBulkUpdateHandler. There is an addInBatch API that you can use.
    Now regarding queries, Jena Adaptor v2.0 was primarily designed for Oracle Database 11g Release 1.
    Recently, a new version of Jena Adaptor has been released and it's optimized for Oracle Database 11g
    Release 2.
    Is it possible to run your BSBM benchmark tests against Oracle Database 11g Release 2 using the latest
    Jena Adaptor (http://forums.oracle.com/forums/ann.jspa?annID=1179) ?
    Thanks,
    Zhe Wu

  • Issue while loading itext jar loaded in oracle

    Hi Guys,
    I have implemented the pdf generation using itextpdf 5.1.0. Its working in java and I could generate the pdf. But when I try to lod the jar file most of them are found to be uncompiled. when I investigated the error , I got the following
    PDFGENERATOR:10: cannot access com.itextpdf.text.Element
    class file has wrong version 49.0, should be 48.0
    import com.itextpdf.text.Element;
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    I am using Oracle database 10 G. and my JVM is 1.4. Is it possible to upgrade only the jvm of Oracle 10g from 1.4 to 1.5 or higher??
    Regard,
    Rahim P.K
    Edited by: user7733307 on 20-Dec-2011 03:06

    user7733307 wrote:
    Hi Guys,
    I have implemented the pdf generation using itextpdf 5.1.0. Its working in java and I could generate the pdf. But when I try to lod the jar file most of them are found to be uncompiled. when I investigated the error , I got the following
    PDFGENERATOR:10: cannot access com.itextpdf.text.Element
    class file has wrong version 49.0, should be 48.0
    import com.itextpdf.text.Element;
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    I am using Oracle database 10 G. and my JVM is 1.4. Is it possible to upgrade only the jvm of Oracle 10g from 1.4 to 1.5 or higher??
    Regard,
    Rahim P.K
    Edited by: user7733307 on 20-Dec-2011 03:06You are on the right track thinking it is a JDK version problem. But this is seriously not a Java programming question, but an Oracle administration one.

  • Problem In Enterprise manager with Oracle 10g AS 10.1.3.1.0

    dear all,
    I installed Oracle Application server 10g (10.1.3.1.0) on REDHAT Enterprise Linux 4 AS Update 4, so evrything done throu installation , but after installing when i try to open EM with browser http://localhost:7778/em not working and appear mesage (The Request URL/em was not found on this server) so i tried with ip-addressand with FQDN but not working, opmnctl service all running successfuy !!! (OC4J ,HTTP all working done - i made restat to all opmn services and the same result!!!!)
    how can i solve this problem????
    Thanks

    Thanks Dear Jacco,
    but i installed only OC4j and HTTP components , so control is working opmnctl working every think and components working good , but the strange in this case when i tried to fine emctl file but its not found !!!! (emctl start iasconsole) in this version of Oracle 10g AS .
    what u think?

  • Problem with retrieving data from Oracle 10g / PHP4.3 / Apache 1.3.27

    Hi,
    I re-open a new thread following the opened post 'Getting RPMs for php-oracle for PHP4.3 on RHEL 4.0 and issue with OCI8 '
    I could re-installed PHP4.3 and apache 1.3.27 from the normal tar package (./configure then make) - I had some issues with the RPMs packages before.
    I could connect successfully PHP4.3 to my Oracle 10g DB with no issues by using some of the (deprecated) functions contained in oracle.so library in command line mode by executing a simple PHP script ;-)
    But ...when I try to execute the same script (a simple log on to the DB) or the application throught my web browser there are some errors in the apache error_log file that crash the process:
    [Wed Jul 25 13:19:23 2007] [notice] child pid 25450 exit signal Segmentation fault (11)
    [Wed Jul 25 13:19:31 2007] [notice] child pid 25451 exit signal Segmentation fault (11)
    *** glibc detected *** realloc(): invalid size: 0x08338898 ***
    [Wed Jul 25 13:19:42 2007] [notice] child pid 25441 exit signal Aborted (6)
    *** glibc detected *** realloc(): invalid size: 0x08338898 ***
    [Wed Jul 25 13:54:52 2007] [notice] child pid 25508 exit signal Aborted (6)
    [Fri Jul 27 04:39:56 2007] [notice] child pid 20550 exit signal Segmentation fault (11)
    After some investigations it looks like this is due to the connection of Oracle 10G and php.
    I tried to recompile Apache as the following:
    # cd /usr/src/apache_1.3.xx
    # make clean
    # LIBS=-lpthread ./config.status
    # make
    # make install
    but the issue is the same ...
    How can I workaround that issue and fix it in order to connect to Oracle 10 G by using PHP4.3 / apache 1.3.27 ?
    I need to use the oracle.so library to avoid to re-rewrite all my application ...
    Any help much very appreciated !
    Cheers
    Dominique

    You are in unchartered territory. But check the common "gotcha" and
    make sure that all the Oracle environment variables are set in the
    shell that starts Apache. Load the script <?php phpinfo(); ?> in a
    browser and see that whatever variables you need are set in the
    Environment section. See the section "Oracle Environment Variables
    for Connections" in Underground PHP and Oracle Manual
    I suspect it would be beneficial to migrate the PHP code to oci8.
    Check table 16-1 in Underground PHP and Oracle Manual for the mapping
    between 'oracle' and 'oci8' functions.
    -- cj

  • Problem in importing data in oracle 10g from 9i backup

    Hi ,
    Am trying to import data in oracle 10g..but it does not importing constraints, and stop doing anything by the msg.
    About to enable constraints.....
    after this msg it does not work.
    plz help,
    Regards,
    Neha

    Hi Neha,
    You have a lot of options. I'll supose you can test first, and you're using an export file.
    First forget about the data, think in your database structure. So you can do this:
    exp userid=... file=exp_norows.dmp full=y rows=n statistics=none
    Now you have the structure of your database. Create the database, in 10g, empty, check you have all filesystem, etc. for you new datafiles. And do the import with parameter ignore=y, you'll see a lot off errors on SYSTEM schema, don't worry about it.
    Now you have the structure of you database in 10g. You can take a look in the import log file, looking for some possible errors come from your schemas. so check the objects, and check the schemas.
    Bear in mind things like CONNECT role in 9i it's different in 10g, you can't create db_links in 10g with "IDENTIFIED BY VALUES" because you'll get an ORA-00600, etc.
    Well, fix all problems on source database (9i) and repeate this procedure until you don't recieve any more errors (not a SYSTEM schema errors).
    When you have everything solved, you can try to import the data.
    I hope, this method can help you. If you have any problem do not hesitate to ask me.
    John Ospino Rivas

  • Problem storing Russian Characters in Oracle 10g

    We are facing an issue in one of our sites which is in Russian Language. Whenever data is submitted with Russian Characters it saves it as Question mark(upside down) in the database. Database is not supporting these characters.The character encoding is done in UTF-8 format from the front end.
    This code use to work fine with Oracle 9i database but after the upgradation to Oracle 10g this problem has started occuring. We have not made any changes to the code after the upgradation of the database.
    How can we resolve this and what are the settings that we can do to make this work fine?

    What is your database character set and national character set?
    SELECT *
      FROM v$nls_parameters
    WHERE parameter like '%CHARACTERSET';Are you storing the data in CHAR/ VARCHAR2/ CLOB columns? Or NCHAR/ NVARCHAR2/ NCLOB?
    Justin

  • Problem accessing j2ee application in oracle 10g AS

    Hi,
    I have Oracle 10g AS installed on a Linux 4.0 system. I have deployed an ear file in the AS. The problem is while accessing the application, the login screen is showing, but after submitting it says "Page can not be displayed". The control is not passed to the Action class.
    Please help me ...
    Santosh

    Hi Santosh,
    This problem does not sound like an OC4J issue (unless this is a set up issue), it sounds more like your code is not passing the control to your Action class. Please check your struts configuration and make sure your mappings are set up correctly.
    Hope this helps.
    Deepak

  • SQL*LOADER IN Oracle 10g Release 2

    Hi,
    Recently i installed oracle 10g release 2 on windows vista.I want to use sqlloader utility.Where can i found it.I checked for sqlldr.exe in oracle home folder,but i didn't find it.Any one plz help me regarding this..

    You would better to look here
    Using:
    http://download.oracle.com/docs/cd/B19306_01/win.102/b14304/tools.htm#i1006973
    It will be also good to look at:
    Concepts
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/ldr_concepts.htm#SUTIL003
    SQL*Loader Control File Reference
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/ldr_control_file.htm#SUTIL005

  • Problems in demo maps in Oracle 10g

    Hi everybody,
    I migrated from oracle 9i to oracle 10g and installed mapviewer using installation kit for 10g. Now I am able to run mapviewer and able to define the data source but when I clicking on any of the demos I get PAGE CANNOT BE DISPLAYED ERROR page. The log snapshot of OC4J is as below
    C:\JDeveloper10g\j2ee\home>java -jar oc4j.jar
    05/07/14 10:42:21 INFO [oracle.lbs.mapserver.oms] oms root path: C:\oracle\prod
    uct\10.1.0\db_1\lbs\mapviewer\web\
    05/07/14 10:42:21 Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)
    initialized
    05/07/14 10:42:21 INFO [oracle.lbs.mapserver.core.MapperConfig] using default co
    nfig file: C:\oracle\product\10.1.0\db_1\lbs\mapviewer\web\WEB-INF\conf\mapViewe
    rConfig.xml
    05/07/14 10:42:21 WARN [oracle.lbs.mapserver.core.MapperPool] destroying ALL map
    maker instances.
    05/07/14 10:42:23 INFO [oracle.lbs.mapserver.core.MapperConfig] Map Recycling th
    read started.
    05/07/14 10:42:23 INFO [oracle.lbs.mapserver.oms] *** Oracle MapViewer started.
    05/07/14 10:43:20 INFO [oracle.lbs.mapserver.MapServerImpl] redefining datasourc
    e mvdemo
    05/07/14 10:43:22 INFO [oracle.sdovis.CacheMgr2] Spatial Data Cache opened. Regi
    on=SDOVIS_DATA.
    05/07/14 10:43:22 INFO [oracle.sdovis.CacheMgr2] max_cache_size=32 MB.
    05/07/14 10:43:22 INFO [oracle.sdovis.CacheMgr2] sub region sdovis_subreg_mdsys_
    jdbc:oracle:thin:@localhost:1521:orcl created in cache.
    05/07/14 10:43:22 INFO [oracle.lbs.mapserver.core.MapperPool] added a mapper ins
    tance to the pool [data src=mvdemo]
    05/07/14 10:43:22 INFO [oracle.lbs.mapserver.core.MapperPool] added a mapper ins
    tance to the pool [data src=mvdemo]
    05/07/14 10:43:22 INFO [oracle.lbs.mapserver.core.MapperPool] added a mapper ins
    tance to the pool [data src=mvdemo]
    05/07/14 10:43:22 INFO [oracle.lbs.mapserver.core.MapperPool] added a mapper ins
    tance to the pool [data src=mvdemo]
    05/07/14 10:43:22 INFO [oracle.lbs.mapserver.core.MapperPool] added a mapper ins
    tance to the pool [data src=mvdemo]
    Earlier I worked with 9i and have handsome experience on that but now in 10g I dont know what has happend.
    Please help me.
    Thank you.

    Hi Priya,
    I guess you are using other OC4J (the command is from a JDeveloper10g folder). When you install the MapViewer kit, there is a OC4J directory there. Try to use this OC4J.

  • Problems with the installation if oracle 10g

    hi everybody,
    I am using windows xp pro service pack 2. While trying install
    oracle 10g. I faced a problem 'Error in writing to
    directiory c:\document and settings\Owner\Local
    Settings\TEMP\OraInstall. Please ensure that this
    directory is writable and has at least 45 MB of disk
    space. Installation cannot continue.' I have 40GB disk
    space left and i am logged in as an administrator with all privileges.
    thanks
    mfg RR

    I think I remember encountering something similar on the very same platform (XP pro, 10g (or 9i second ed.) and 2nd service pack). I am using Windows Services for Unix (SFU - a free download from Microsoft @ http://www.microsoft.com/windows/sfu/default.asp ). I used SFU from within a command tool to change the privileges. If you are a unix person who are trying to do things like installing/managing Oracle on windows, I highly recommend installing SFU. After I changed the privileges, it worked just fine. Currently I am running 9.2.0.5 on windows xp pro and testing 10g on another xp pro box. Both installation was successful.
    hope this proves useful

Maybe you are looking for

  • PDF page not showing in browser window in Safari

    When I click on a pdf link while in Safari browser, for instance "download full equipment list", I get a blank page. I have downloaded the latest PDF Flash Player. I am using Safari 4.0.3. I use OS 10.5. I didn't have this problem before 10.5. I don'

  • Full Screen mode - global y co-ordinate

    Hi I seem to be having some problems with a Flash 2.1 App across different resolutions. I am developing using a generic 176 x 208 but deploying on a Nokia N71 in full screen mode. I am using the Stage object to calculate sizing a x,y cordinates etc..

  • Error while installing juicer on oracle linux 6

    Hi Team, I have juicer installation on my plate, i installed ruby and rubygem as pre-requisite for juicer but while running below command after successful installation i am getting error stating "cannot load such file -- nokogiri/nokogiri". while i h

  • How will be sap output in super market

    hi, i have a doubt, how to identify that the super market is using the sap application? with seeing at one glance how to make out that the super market is using the sap application for his invoice? and sap application which used in super market will

  • Help with multiple images

    I am new to Final Cut Express. I am trying to make a clip that has multiple images on the screen at one time. For instance one picture in each corner and then one in the middle that all have separate effects. Any help would be appreciated. Thanks in