Java Package Invalid?

Recently I have upgraded Oracle database to 10g from 9i.
How to check whether any java code is invalid in backend

Here:
Re: Java Package Invalid?

Similar Messages

  • Combination of support packages invalid.

    I am getting the following error in RSPOR_SETUP, but according to note 1013369
    this stack is supported. This system is a fresh SR2 install , then I applied
    SPS12 , then finally applied SAPKW70014.
    Is the error referring to the version 11 of the java classes? How did those even get there?
    The Systeminfo shows all java components correctly at SPS12....
    Status for Step 2 - Create RFC Destination for Portal
       Status 1: Create RFC Destination In J2EE Engine         Okay
       Status 2: Create RFC Destination for Portal             Different ABAP and Java support packages. Combination of support packages invalid.
       Status 3: Maintain Portal Server Settings for Portal    Okay
       Status 4: Maintain Single Sign-On in BI                 Okay
       Status 5: Export BI Certificate into BI                 Okay
       Status 6: Import BI Certificate into Portal             Okay
       Status 7: Create BI Sytem in Portal                     Existence of BI System in Portal cannot be checked automatically.
       Status 8: Configure User Management in Portal           Okay
       Status 9: Export Portal Certificate into Portal         Okay
       Status 10: Import Portal Certificate into BI            Okay
       Status 11: Set Up Repository Manager for BI in Portal   Setup of Repository Manager for BI in Portal cannot be checked automatically.
       Status 12: Maintain User Assignment in Portal           Okay
       Status 13: Import SAP NetWeaver Plug-In into BI         Okay
    Entries for Step 2 - Create RFC Destination for Portal
    BI Transaction Display and Maintenance of RFC Destinations (SM59)
    Create
    Name of RFC destination:             (redacted)
    Connection type:                     T (TCP/IP connection)
    Description of RFC destination:      (redacted)
    Technical settings
    Activation type:                     Registered Server Program
    Program ID:                          (redacted)
    Gateway host:                        (redacted)
    Gateway service:                     (redacted)
    Logon/security
    Send SAP Logon Ticket                active
    Checks for Step 2 - Create RFC Destination for Portal
    1. Check existance of RFC destination
       Check of RFC destination  (redacted)  with RFC_READ_TCPIP_DESTINATION successful
    2. Check RFC destination with RFC Call
       RFC Call RFC_PING, destination  (redacted)  successful
    3. Check Number of registered Processes
       GWY_GET_NO_REG_PROGRAMS
       Number of registered processes:       20
    4. Check existance of com.sap.ip.bi Java classes
       RFC Call RSWR_RFC_SERVICE_TEST, destination  (redacted)  successful
        BI test service for user (redacted) called successfully with parameter RSPOR_SETUP.
    5. Check version information of com.sap.ip.bi Java classes
       RFC Call RSWR_RFC_VERSION_INFO_GET, destination  (redacted) successful
       com.sap.ip.bi.base.application.par           7.0012.20070801085802.0000
       com.sap.ip.bi.base.par                       7.0012.20070801085802.0000
       com.sap.ip.bi.base.portal.par                7.0012.20070801085802.0000
       com.sap.ip.bi.bics.cmi.par                   7.0012.20070426205038.0000
       com.sap.ip.bi.bics.os.impl.par               7.0011.20070131173855.0000
       com.sap.ip.bi.bics.os.par                    7.0011.20070131173855.0000
       com.sap.ip.bi.bics.par                       7.0012.20070801085802.0000
       com.sap.ip.bi.broadcasting.base.par          7.0012.20070801085802.0000
       com.sap.ip.bi.broadcasting.par               7.0011.20070131173855.0000
       com.sap.ip.bi.conv.backendaccess.par         7.0011.20070131173855.0000
       com.sap.ip.bi.conv.dac.res.bi.os.par         7.0011.20070131173855.0000
       com.sap.ip.bi.conv.dac.res.bi.par            7.0012.20070801085802.0000
       com.sap.ip.bi.conv.dac.res.dll.par           7.0011.20070131173855.0000
       com.sap.ip.bi.conv.dac.res.oqqv.par          7.0012.20070801085802.0000
       com.sap.ip.bi.conv.dac.res.trex.par          7.0011.20070131173855.0000
       com.sap.ip.bi.dataaccessservice.par          7.0012.20070426205038.0000
       com.sap.ip.bi.export.lib.par                 7.0012.20070426205038.0000
       com.sap.ip.bi.export.model.par               7.0012.20070801085802.0000
       com.sap.ip.bi.export.office.par              7.0012.20070801085802.0000
       com.sap.ip.bi.export.printformats.par        7.0012.20070801085802.0000
       com.sap.ip.bi.export.xfa.par                 7.0012.20070801085802.0000
       com.sap.ip.bi.folderpickerpcd.par            7.0012.20070426205038.0000
       com.sap.ip.bi.km.base.par                    7.0012.20070801085802.0000
       com.sap.ip.bi.km.documentmigration.par       7.0012.20070426205038.0000
       com.sap.ip.bi.km.integration.par             7.0012.20070801085802.0000
       com.sap.ip.bi.km.propertyrenderer.par        7.0011.20070201072627.0000
       com.sap.ip.bi.km.repositorymanager.par       7.0012.20070801085802.0000
       com.sap.ip.bi.metadata.par                   7.0012.20070426205038.0000
       com.sap.ip.bi.objectservices.oqqv.par        7.0011.20070201072627.0000
       com.sap.ip.bi.objectservices.par             7.0011.20070201072627.0000
       com.sap.ip.bi.offlinenavigation.par          7.0011.20070201072627.0000
       com.sap.ip.bi.portal.rfc.dispatcher.par      7.0012.20070426205038.0000
       com.sap.ip.bi.portalheartbeat.par            7.0010.20061024165340.0000
       com.sap.ip.bi.portallogger.par               7.0010.20061024165340.0000
       com.sap.ip.bi.portalnavigation.par           7.0011.20070131173855.0000
       com.sap.ip.bi.portalrfc.par                  7.0010.20061024165340.0000
       com.sap.ip.bi.portalrfctest.par              7.0010.20061024165340.0000
       com.sap.ip.bi.ranges.par                     7.0012.20070801085802.0000
       com.sap.ip.bi.repositorymanager.par          7.0010.20061024165340.0000
       com.sap.ip.bi.service.bics.par               7.0012.20070426205038.0000
       com.sap.ip.bi.service.generic.par            7.0012.20070801085802.0000
       com.sap.ip.bi.service.km.os.par              7.0012.20070426205038.0000
       com.sap.ip.bi.service.portal.os.par          7.0010.20061024142635.0000
       com.sap.ip.bi.supportdesk.par                7.0013.20070620182001.0000
       com.sap.ip.bi.web.advancedcontrols.par       7.0012.20070801085802.0000
       com.sap.ip.bi.web.broadcasterstart.par       7.0011.20070201072627.0000
       com.sap.ip.bi.web.composites.par             7.0011.20070201072627.0000
       com.sap.ip.bi.web.dataprovider.par           7.0012.20070801085802.0000
       com.sap.ip.bi.web.deploytime.par             7.0012.20070426205038.0000
       com.sap.ip.bi.web.dialogs.conditions.par     7.0012.20070801085802.0000
       com.sap.ip.bi.web.dialogs.exceptions.par     7.0012.20070801085802.0000
       com.sap.ip.bi.web.dialogs.formula.par        7.0011.20070201072627.0000
       com.sap.ip.bi.web.dialogs.generic.par        7.0011.20070201072627.0000
       com.sap.ip.bi.web.dialogs.opensave.par       7.0012.20070801085802.0000
       com.sap.ip.bi.web.dialogs.selector.par       7.0012.20070801085802.0000
       com.sap.ip.bi.web.dialogs.statistic.par      7.0012.20070801085802.0000
       com.sap.ip.bi.web.dialogs.variablescreen     7.0012.20070801085802.0000
       com.sap.ip.bi.web.dialogsframework.par       7.0012.20070801085802.0000
       com.sap.ip.bi.web.items.analysis.par         7.0012.20070801085802.0000
       com.sap.ip.bi.web.items.bodyattributes.p     7.0012.20070426205038.0000
       com.sap.ip.bi.web.items.broadcastindex.p     7.0011.20070201072627.0000
       com.sap.ip.bi.web.items.buttongroup.par      7.0012.20070426205038.0000
       com.sap.ip.bi.web.items.chart.par            7.0012.20070801085802.0000
       com.sap.ip.bi.web.items.command.par          7.0012.20070426205038.0000
       com.sap.ip.bi.web.items.container.par        7.0012.20070426205038.0000
       com.sap.ip.bi.web.items.contextmenu.par      7.0012.20070801085802.0000
       com.sap.ip.bi.web.items.dataproviderinfo     7.0012.20070426205038.0000
       com.sap.ip.bi.web.items.filter.par           7.0012.20070801085802.0000
       com.sap.ip.bi.web.items.filterpane.par       7.0012.20070801085802.0000
       com.sap.ip.bi.web.items.generic.par          7.0012.20070426205038.0000
       com.sap.ip.bi.web.items.group.par            7.0011.20070201072627.0000
       com.sap.ip.bi.web.items.hierarchfilter.p     7.0012.20070801085802.0000
       com.sap.ip.bi.web.items.htmlattributes.p     7.0011.20070201072627.0000
       com.sap.ip.bi.web.items.infofield.par        7.0012.20070801085802.0000
       com.sap.ip.bi.web.items.inputfield.par       7.0012.20070426205038.0000
       com.sap.ip.bi.web.items.km.par               7.0012.20070801085802.0000
       com.sap.ip.bi.web.items.map.par              7.0012.20070426205038.0000
       com.sap.ip.bi.web.items.menu.par             7.0012.20070426205038.0000
       com.sap.ip.bi.web.items.messageslist.par     7.0012.20070426205038.0000
       com.sap.ip.bi.web.items.mime.par             7.0012.20070426205038.0000
       com.sap.ip.bi.web.items.navigation.par       7.0012.20070426205038.0000
       com.sap.ip.bi.web.items.persistency.par      7.0011.20070201072627.0000
       com.sap.ip.bi.web.items.properties.par       7.0012.20070801085802.0000
       com.sap.ip.bi.web.items.report.par           7.0012.20070801085802.0000
       com.sap.ip.bi.web.items.structural.par       7.0011.20070201072627.0000
       com.sap.ip.bi.web.items.text.par             7.0012.20070801085802.0000
       com.sap.ip.bi.web.items.ticker.par           7.0012.20070426205038.0000
       com.sap.ip.bi.web.items.variables.par        7.0011.20070201072627.0000
       com.sap.ip.bi.web.objectservices.par         7.0011.20070201072627.0000
       com.sap.ip.bi.web.pageexport.par             7.0011.20070201072627.0000
       com.sap.ip.bi.web.portal.deployment.par      7.0011.20070201072627.0000
       com.sap.ip.bi.web.portal.integration.par     7.0012.20070801085802.0000
       com.sap.ip.bi.web.portal.mimes.par           7.0012.20070801085802.0000
       com.sap.ip.bi.web.preexecution.par           7.0012.20070426205038.0000
       com.sap.ip.bi.web.runtime.par                7.0012.20070801085802.0000
       com.sap.ip.bi.web.runtime.scripting.par      7.0012.20070801085802.0000
       com.sap.ip.bi.web.runtime.template.par       7.0012.20070426205038.0000
       com.sap.ip.bi.web.scripting.par              7.0012.20070426205038.0000
       com.sap.ip.bi.web.ui.dragdrop.par            7.0012.20070426205038.0000
       com.sap.ip.bi.web.ui.queryviewactions.pa     7.0012.20070426205038.0000
       com.sap.ip.bi.web.uiframework.par            7.0012.20070426205038.0000
       com.sap.ip.bi.web.uiitem.par                 7.0011.20070201072627.0000
       com.sap.ip.bi.web.unifiedrendering.par       7.0012.20070801085802.0000
       com.sap.ip.bi.webdynpro.alv.pdf.par          7.0011.20070201072627.0000
    6. Compare version information of Java support package (com.sap.ip.bi classes) with ABAP support package (SAP BI)
       ABAP Support Package:                  14
       Java Support Package:                  11

    Hi,
    I have the same problem. I´ve installed a fresh netweaver SR3, and the patch level is the next,
    6. Compare version information of Java support package (com.sap.ip.bi classes) with ABAP support package(SAP BI)
    ABAP Support Package:           19
    Java Support Package:              16
    More thanks

  • Import Java package in JSP

    I hope this is an appropriate forum for this query.
    I want to be able to access a user-created Java package in JSP.
    I have this code:
    <%@page import="TPClass.*" %>
    <%
    xxx = TPClass
    session.setAttribute("response",xxx.GetTPResponse());
    %>
    The error display points to TPClass in the import statement with the message "TPClass not found".
    TPClass files are in the same location as the other project files.
    I have creatyed and compiled the TPClass package.
    Is there more I need to do?
    Brenton

    I think you are very new to java....
    anyway
    <%@page import="class name with full qualified package name"%>
    like
    <%@page import="com.x1.x2.TPClass"%>
    <%
    TPClass cls =new TPClass();
    //then do whatever you want...
    %>
    hope u understand now.....

  • JAVA PACKAGES and JSP

    i Have two problems one is i am designing a website which consists of a form. I am trying to write the Connectiviy and all other insert statements in seperate java packages and include them in JSP files.
    i Have two java packages one is DBUtil(having two java files both dealing with connectovity) and another one is StudentUtIl which has java files that open the connections with database connection and insert data into DB., I am having a big Problem here. How can i call the function in the other java package in the files in this java package. i have openDB()and Close() in the other Db and i want to call these functions in JAVA classes in the other package. How to include a package. Both these packages are in the same File system mounted on a Local directory

    Thank you for the reply. I am giving the code i have given the full class name . and now it is giving the following error :
    Cannot reference a non-static method connectDB() in a static context.
    I am also giving the code. Please do help me on this. i am a beginner in java.
    import java.sql.*;
    import java.util.*;
    import DButil.*;
    public class StudentManager {
    /** Creates a new instance of StudentManager */
    public StudentManager() {
    Connection conn = null;
    Statement cs = null;
    public Vector getStudent(){
    try{
    dbutil.connectDB();
    String Query = "Select St_Record, St_L_Name, St_F_Name, St_Major, St_Email_Address, St_SSN, Date, St_Company, St_Designation";
    cs = conn.createStatement();
    java.sql.ResultSet rs = cs.executeQuery(Query);
    Vector Studentvector = new Vector();
    while(rs.next()){
    Studentinfo Student = new Studentinfo();
    Student.setSt_Record(rs.getInt("St_Record"));
    Student.setSt_L_Name(rs.getString("St_L_Name"));
    Student.setSt_F_Name(rs.getString("St_F_Name"));
    Student.setSt_Major(rs.getString("St_Major"));
    Student.setSt_Email_Address(rs.getString("St_Email_Address"));
    Student.setSt_Company(rs.getString("St_Company"));
    Student.setSt_Designation(rs.getString("St_Designation"));
    Student.setDate(rs.getInt("Date"));
    Studentvector.add(Student);
    if( cs != null)
    cs.close();
    if( conn != null && !conn.isClosed())
    conn.close();
    return Studentvector;
    }catch(Exception ignore){
    return null;
    }finally {
    dbutil.closeDB();
    import java.sql.*;
    import java.util.*;
    public class dbutil {
    /** Creates a new instance of dbutil */
    public dbutil() {
    Connection conn;
    public void connectDB(){
    conn = ConnectionManager.getConnection();
    public void closeDB(){
    try{
    if(conn != null && !conn.isClosed())
    conn.close();
    }catch(Exception excep){
    The main error is occuring at the following lines connectDB() and closeDB() in the class student manager. The class dbutil is in an another package.with an another file called connectionManager which establishes the connection with DB. The dbutil has the openconnection and close connection methods. I have not yet written the insert statements in StudentManager. PLease do Help me

  • NoClassDefFound error when using custom Java package in scripting QPAC

    Hi,
    I compiled a little Java-package (.jar), which contains a class that uses
    com.adobe.workflow.datatype.form.FormDataTypeInstanceImpl.
    I put my library in the lib folder of JBoss (...\server\all\lib).
    Then I'm was trying to invoke my custom class in the scripting QPAC. But I'm constantly getting the error message
    NoClassDefFound com\adobe\workflow\datatype\form\FormDataTypeInstanceImpl. I already put
    adobe-wkf.jar (and various others) in the lib folder of JBoss. Without ever succeeding. Unfortunately.
    I'm going mad about this.
    Is there a way to address a custom package in the scripting QPAC, which uses
    FormDataTypeInstanceImpl?
    Steve

    Removing the LiceCycle jars from the lib folder did not work. I still get the same error message.
    What I wanted to do is provide some basic utilities, without having to spend a lot of time designing QPAC user interfaces.
    My utility class contains methods like this one:
    @param 
    pFormData
    @return
    @throws 
    ParserConfigurationException
    @throws 
    SAXException
    @throws 
    IOException
    public static 
    org.w3c.dom.Document formToXml
    FormDataTypeInstanceImpl pFormData
    throws 
    ParserConfigurationException, SAXException, IOException 
    byte
    data = pFormData.getXFAData
    InputStream objXMLInputStream = 
    new 
    ByteArrayInputStream
    data
    // create new Document object
    DocumentBuilderFactory objFactory = DocumentBuilderFactory.newInstance
    DocumentBuilder objBuilder = objFactory.newDocumentBuilder
    org.w3c.dom.Document objDocument = objBuilder.parse
    objXMLInputStream
    return 
    objDocument;
    Even without ever invoking the aforementioned method, I get the error
    NoClassDefFound: FormDataTypeInstanceImpl. Which is pretty weird.
    Do I have to write my own classloader?
    Steve

  • How to find classes in a java package

    i am writing a java IDE. i want to extract all class names from a java package eg. java.lang (through coding). how can i do that.
    Thanks in advance

    File file = new File("path to your jar file");
    JarFile jf = new JarFile(file);
    Enumeration e = jf.entries();
    ZipEntry ze = null;
    while(e.hasMoreElements()){
    ze = (ZipEntry) e.nextElement();
    ze.toString(); // gives you the file name
    you have to understand java.util.jar java.util.zip packages for working with jar/zip files.
    Hope this helps

  • How to import java package in form 10g

    hello
    i have make a java package but its not looking so far possible to include it in java import list, how i can import it in form 10 g

    hi,
    if classpath does not work you can try to add your jar file at this registry key :
    HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_DevSuiteHome\FORMS_BUILDER_CLASSPATH
    Engin.

  • Problem with Java-Packages in JavaFX-Scripts

    Hello!
    What I'm trying to do is using a class I've built in my project in a JavaFX-Script, my problem is that the compiler keeps telling me my package wouldn't exist.
    My filestructure is basically the following:
    src
    |-com.foo.java
    |-- MyClass.java
    |-com.foo.javafx
    |-- MyFXScript.fx
    I've tried importing the package or just writing the fully qualified classname when trying to create an instance, the messages didn't differ. I'm not at home right now so I don't remember the exact compiler-message, but it was something like "Package does not exist: com.foo.java".
    Any ideas? :-)
    Kind regards,
    Joshua
    Edited by: gnrx on Jan 12, 2009 5:55 AM

    It works on my system.
    MyClass.java
    package com.foo.java;
    public class MyClass {
        @Override
        public String toString() {
            return "My Class";
    MyFXScript.fx
    package com.foo.javafx;
    import com.foo.java.*;
    var myClass = new MyClass();
    println(myClass);standard-run:
    My Class
    browser-run:
    jws-run:
    midp-run:
    run:
    BUILD SUCCESSFUL (total time: 3 seconds)

  • Java packages and dependency

    When java was being developed, what was the philosophy behind allowing packages to be mutually dependent?

    Hello Steve,
    The Acyclic Dependencies Principle tells us that no cycles should exit in a model depicting the dependencies between packages. From what I can gather this is useful when developing large software systems, as each package becomes a viable work unit for an engineer or small group of engineers to control as a series of releases. If the ADP is not complied with, cycles may exist in the dependencies between packages. If a change is made to one of those packages within a cycle, then an ugly situation develops as the repercussions of the change are looped through the cycle back to its source and so on.
    The thing is though, during my readings I came across a statement that said Java packages were mutually dependent. I was just wanting to know why a language that utilises object oriented technology, left the practice of the ADP up to the descretion of the developer? Is the full implementation of ADP on a software system an ideal world scenario?
    Anders.

  • Java package and c++ header files

    What is the difference between importing java package and including header files in c++?

    I do not know .. have been away from C/C++ for a long time...
    As much as I remember you can only import one header file each time... also when you import a header file you can just call methods from the header file automatically ...
    However I could be very wrong on this .. really lost touch from C/C++ ...
    regards,
    Sim085

  • Error occured while running .java package in BPEL

    Hi All,
    I'm trying to run .java package which is using RIDC components (GET_FILE) option.
    I have set my local IP address in the config.cfg file also and restarted.
    Still i'm getting below error in Jdeveloper when I run the package.....
    oracle.stellent.ridc.protocol.ProtocolException: Unable to initialize connection idc://tgreenspence:4444
    *     at oracle.stellent.ridc.protocol.intradoc.socket.SocketConnectionManager.initializeConnection(SocketConnectionManager.java:35)*
    *     at oracle.stellent.ridc.protocol.intradoc.socket.SocketConnectionManager.initializeConnection(SocketConnectionManager.java:22)*
    *     at oracle.stellent.ridc.protocol.impl.SimpleConnectionPool.acquireConnection(SimpleConnectionPool.java:44)*
    *     at oracle.stellent.ridc.IdcClient.sendRequest(IdcClient.java:151)*
    *     at test.TestRIDC.TestRIDCGetFile.main(TestRIDCGetFile.java:52)*
    Caused by: oracle.stellent.ridc.protocol.ProtocolException: java.net.ConnectException: Connection timed out: connect
    *     at oracle.stellent.ridc.protocol.intradoc.socket.SocketConnection.connect(SocketConnection.java:52)*
    *     at oracle.stellent.ridc.protocol.intradoc.socket.SocketConnectionManager.initializeConnection(SocketConnectionManager.java:33)*
    *     ... 4 more*
    Caused by: java.net.ConnectException: Connection timed out: connect
    *     at java.net.PlainSocketImpl.socketConnect(Native Method)*
    *     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)*
    *     at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)*
    *     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)*
    *     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)*
    at java.net.Socket.connect(Socket.java:529)
    *     at java.net.Socket.connect(Socket.java:478)*
    *     at java.net.Socket.<init>(Socket.java:375)*
    *     at java.net.Socket.<init>(Socket.java:189)*
    *     at oracle.stellent.ridc.protocol.intradoc.socket.SocketConnection.createSocket(SocketConnection.java:126)*
    *     at oracle.stellent.ridc.protocol.intradoc.socket.SocketConnection.connect(SocketConnection.java:44)*
    *     ... 5 more*
    What will be the solution ??
    Thanks,
    Nir

    take the code out of bpel. run it standalone. does it work?
    -ryan

  • Just Starting out with java packages

    Hello,
    I'm a beginner and I'm starting out with java packages.
    I wrote two simple .java files, one test program and one containing a simple class.
    Both files are compiling without errors but When I run the program I get an error NoClassDeffoundError.
    I use the import <package> statement And I think I'm using the CLASSPATH variable correctly.
    SET CLASSPATH=d:\nopol
    path for the .java containing the test class is:
    d:\nopol\utilities \myapp.
    In the test file I use "import utilities.myapp.*.
    I would be very happy if anyone could help me
    Thanks beforehand
    Nopol.

    The test file should be in d:\nopol, if it's not a part of your package utilities.myapp. Everything should be compiled from d:\nopol, the test class with "javac ClassName.java" and the class in the package with "javac utilities/myapp/ClassName.java".
    Your classpath seems fine for now, though. But yes, do add the period there, otherwise you could run into problems later.

  • Problem finding native methods in java packages

    Hi,
    I have a java class which uses some native methods written in OCamL. I wrote a C file which calls the OCamL code, and created the corresponding shared library using the jni. I then tested my java file and everything works fine, I can nicely call the OCamL functions. However, I need this java file to be included in a package, but whenever I add the line:
    package somepackage;
    on top of the java code, my java file simply doesn't seem to find the C and OCamL implementation anymore :
    javac -cp :./path/of/somepackage
    -Djava.library.path=/full/path/of/somepackage MyProgram args
    Exception in thread "main" java.lang.UnsatisfiedLinkError:functionName
    at somepackage.ClassName.functionName(NativeMethod)
    I have of course put everything (java, C, .h , libsomelibrary.so, and OCamL files) in a directory called somepackage, and written another java file which creates an instance of the first one from outside the package, imports the package, and calls its methods in main(). It just doesn't work anymore.
    I then added a simple hello-world function (not C nor OCamL code) to the java file inside the package. And when invoked from outside, it worked. Question is then... Am I forgetting something to be done, in order to get C and CamL files efectively included in the java package (same as "package somepackage;" in C or OCaml, perhaps)??? Why isn't the java file able to find them inside its very own directory (having into account that without the package definition it worked well)?
    Thanks,
    PS Im using jsdk 1.4.1 on lunyx redhat 8.0

    Did you change the name of the function in the library, too?
    If the function name was
    "Java_YourClass_functionname",
    it should be now
    "Java_path_to_your_package_YourClass_functionname".

  • When should be package invalidated?

    Hello guys,
    I would need again some help...
    My question is: When exactly should be package invalidated?
    Consider following situation:
    We have two packages, one contains constants (in its specification), the other is reading these constants. Package is reading these constants in package body and package spec as well. Now, when I add a new constant to the first package and recompile it, should this invalidate the other package??? The new added constant is not used in the other package.
    In reality, we have a Constant package, containing all constants in its specification. One package (test_pkg) is reading some constant let say form line 100. Now we add new constant let say to line 50. When we recompile the constant package, planty of packages get invalidated because they are reading from it. We recompile all invalid packages. However test_pkg is not invalidated!!! Now if we run the code from test_pkg, it is still reading the constant from line 100, so it is reading it from wrong place and the constant has wrong value! The only thing what help is to recompile the test_pkg.
    So it looks like the reference to Constant package wasn't updated.
    Why isn't test_pkg invalidated???
    Oracle version:
    SELECT * FROM V$VERSION;
    Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    "CORE     11.2.0.1.0     Production"
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production

    From my standard library of responses...
    Packages tend to fail because of their "package state". A package has a "state" when it contains package level variables/constants etc. and the package is called. Upon first calling the package, the "state" is created in memory to hold the values of those variables etc. If an object that the package depends upon e.g. a table is altered in some way e.g. dropped and recreated, then because of the database dependencies, the package takes on an INVALID status. When you next make a call to the package, Oracle looks at the status and sees that it is invalid, then determines that the package has a "state". Because something has altered that the package depended upon, the state is taken as being out of date and is discarded, thus causing the "Package state has been discarded" error message.
    If a package does not have package level variables etc. i.e. the "state" then, taking the same example above, the package takes on an INVALID status, but when you next make a call to the package, Oracle sees it as Invalid, but knows that there is no "state" attached to it, and so is able to recompile the package automatically and then carry on execution without causing any error messages. The only exception here is if the thing that the package was dependant on has changes in such a way that the package cannot compile, in which case you'll get an Invalid package type of error.
    And if you want to know how to prevent discarded package states....
    Move all constants and variables into a stand-alone package spec and reference those from your initial package. Thus when the status of your original package is invlidated for whatever reason, it has no package state and can be recompiled automatically, however the package containing the vars/const will not become invalidated as it has no dependencies, so the state that is in memory for that package will remain and can continue to be used.
    As for having package level cursors, you'll need to make these local to the procedures/functions using them as you won't be able to reference cursors across packages like that (not sure about using REF CURSORS though.... there's one for me to investigate!)
    This first example shows the package state being invalided by the addition of a new column on the table, and causing it to give a "Package state discarded" error...
    SQL> set serveroutput on
    SQL>
    SQL> create table dependonme (x number)
      2  /
    Table created.
    SQL>
    SQL> insert into dependonme values (5)
      2  /
    1 row created.
    SQL>
    SQL> create or replace package mypkg is
      2    procedure myproc;
      3  end mypkg;
      4  /
    Package created.
    SQL>
    SQL> create or replace package body mypkg is
      2    v_statevar number := 5; -- this means my package has a state
      3
      4    procedure myproc is
      5      myval number;
      6    begin
      7      select x
      8      into myval
      9      from dependonme;
    10
    11      myval := myval * v_statevar;
    12      DBMS_OUTPUT.PUT_LINE('My Result is: '||myval);
    13    end;
    14  end mypkg;
    15  /
    Package body created.
    SQL>
    SQL> exec mypkg.myproc
    My Result is: 25
    PL/SQL procedure successfully completed.
    SQL>
    SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
      2  /
    OBJECT_NAME
    OBJECT_TYPE         STATUS
    MYPKG
    PACKAGE             VALID
    MYPKG
    PACKAGE BODY        VALID
    SQL>
    SQL>
    SQL> alter table dependonme add (y number)
      2  /
    Table altered.
    SQL>
    SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
      2  /
    OBJECT_NAME
    OBJECT_TYPE         STATUS
    MYPKG
    PACKAGE             VALID
    MYPKG
    PACKAGE BODY        INVALID
    SQL>
    SQL> exec mypkg.myproc
    BEGIN mypkg.myproc; END;
    ERROR at line 1:
    ORA-04068: existing state of packages has been discarded
    ORA-04061: existing state of package body "SCOTT.MYPKG" has been invalidated
    ORA-06508: PL/SQL: could not find program unit being called: "SCOTT.MYPKG"
    ORA-06512: at line 1
    SQL>
    SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
      2  /
    OBJECT_NAME
    OBJECT_TYPE         STATUS
    MYPKG
    PACKAGE             VALID
    MYPKG
    PACKAGE BODY        INVALID
    SQL>
    SQL> exec mypkg.myproc
    PL/SQL procedure successfully completed.
    SQL>
    SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
      2  /
    OBJECT_NAME
    OBJECT_TYPE         STATUS
    MYPKG
    PACKAGE             VALID
    MYPKG
    PACKAGE BODY        VALIDAnd this next example shows how having the package variables in their own package spec, allows the package to automatically recompile when it is called even though it became invalidated by the action of adding a column to the table.
    SQL> drop table dependonme
      2  /
    Table dropped.
    SQL>
    SQL> drop package mypkg
      2  /
    Package dropped.
    SQL>
    SQL> set serveroutput on
    SQL>
    SQL> create table dependonme (x number)
      2  /
    Table created.
    SQL>
    SQL> insert into dependonme values (5)
      2  /
    1 row created.
    SQL>
    SQL> create or replace package mypkg is
      2    procedure myproc;
      3  end mypkg;
      4  /
    Package created.
    SQL>
    SQL> create or replace package mypkg_state is
      2    v_statevar number := 5; -- package state in seperate package spec
      3  end mypkg_state;
      4  /
    Package created.
    SQL>
    SQL> create or replace package body mypkg is
      2    -- this package has no state area
      3
      4    procedure myproc is
      5      myval number;
      6    begin
      7      select x
      8      into myval
      9      from dependonme;
    10
    11      myval := myval * mypkg_state.v_statevar;  -- note: references the mypkg_state package
    12      DBMS_OUTPUT.PUT_LINE('My Result is: '||myval);
    13    end;
    14  end mypkg;
    15  /
    Package body created.
    SQL>
    SQL> exec mypkg.myproc
    My Result is: 25
    PL/SQL procedure successfully completed.
    SQL>
    SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
      2  /
    OBJECT_NAME
    OBJECT_TYPE         STATUS
    MYPKG
    PACKAGE             VALID
    MYPKG
    PACKAGE BODY        VALID
    SQL>
    SQL> alter table dependonme add (y number)
      2  /
    Table altered.
    SQL>
    SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
      2  /
    OBJECT_NAME
    OBJECT_TYPE         STATUS
    MYPKG
    PACKAGE             VALID
    MYPKG
    PACKAGE BODY        INVALID
    SQL>
    SQL> exec mypkg.myproc
    My Result is: 25
    PL/SQL procedure successfully completed.

  • Use of Java packages in Java stored procedures? (Oracle 10.2)

    Hi all-
    Does Oracle's Java stored procedures support Java packages? In all the examples I've seen, packages are never used, and when I added one to a test file, it compiled it just fine, but referencing the class from the package itself resulted in a compiling error.
    In other words, it seems to make absolutely no difference if I preface my Java class with
    package com.mycompany.whatever;
    and while I can "import com.mycompany.whatever.MyClass" in another Java file, it seems to not care at all whether I do so or not.
    Thanks for any clarification,
    Ilford

    Hi Ilford:
    Sure you can use fully package notation in your Java classes.
    Look at this Java source code:
    http://dbprism.cvs.sourceforge.net/dbprism/cms-2.1/src/com/prism/cms/core/
    All of them are Java Stored procedures.
    Best regards, Marcelo.

Maybe you are looking for

  • Help Required Setting up a Network with 2 Wireless Routers

    My network is based on 2 hubs: Room 1 - Main Hub Phone socket (where line enters my house) Modem WRT610N router Homeplug connected by ethernet cable to router Room 2 - Media Centre Homeplug Netgear DG834G v1 Room 2 includes a NAS and media streamer w

  • Creation of query extract

    Hello All, Via the rscrm_bapi transaction I am trying to create a query extract but I receive the following error message "Error when scheduling the query (JOB_CLOSE)". Please advise on what the problem is and how to rectify. Regards, Keith Kibuuka

  • Importing Oracle Virtual Box VM into OVS 2.2

    Hi All, 1] We bought a New Dell PowerEdge Server. we installed the OVS 2.2 onto the same. 2] Now I have couple of VM that are riunning inside VirtualBox S/w. I created these m/c for POC's. 3] I want to move these machines to OVS 2.2 server so that it

  • Can't Find Camera Profile in Camera RAW Plug-In

    I own a GoPro Hero 3 Black camera.  I saw the Russell Brown demonstration of Camera RAW to correct lens distortion (http://tv.adobe.com/watch/take-flight-into-the-adobe-creative-cloud/creating-aerial-panora mas-from-gopro-hero-3-images/).  In this in

  • Program Running from Long Time

    Hi Friends, There is a program running from long time. Can anybody let me know how can i analyse this program other than SM50, SM51, SM66. Its a CRM Program.....there are no logs....... Points will be rewarded.... Thanks, Nagesh.