ORA-29541: impossible de risoudre la classe SYSTEM.jsearch

Hello,
I explain my trouble
I have created a class Java jsearch.class
1) first try (it works !)
jsearch.java
import java.util.Locale;
import java.util.Date;
import java.io.*;
import oracle.ifs.beans.DirectoryUser;
import oracle.ifs.beans.DocumentDefinition;
import oracle.ifs.beans.Document;
import oracle.ifs.beans.Selector;
import oracle.ifs.common.SortSpecification;
import oracle.ifs.beans.LibraryObject;
import oracle.ifs.beans.PublicObject;
import oracle.ifs.beans.Folder;
import oracle.ifs.beans.LibraryService;
import oracle.ifs.beans.LibrarySession;
import oracle.ifs.beans.PrimaryUserProfile;
import oracle.ifs.beans.PublicObject;
import oracle.ifs.common.CleartextCredential;
import oracle.ifs.common.ConnectOptions;
import oracle.ifs.common.AttributeValue;
import oracle.ifs.common.IfsException;
public class jsearch {
//public static String buildsearch (String filename) throws IfsException
public static String buildsearch (String filename)
     filename=filename+" de la fonction buildsearch";
     return filename;
public static String search (String filename)
//      try {
          filename=buildsearch(filename);
//catch(IfsException e) { };
return filename;
j'exicute cette classe dans mon environnement Oracle IFS
(system/manager)
sous SQLPLUS en utilisant le script suivant :
-- @jsearch.sql
set serveroutput on
set echo off
spool jsearch.log
call dbms_java.loadjava('-f -r -v c:\YTW\myclasses\jsearch.class');
CREATE OR REPLACE function fsearch (s1 in VARCHAR2) return VARCHAR2
AS LANGUAGE JAVA
NAME 'jsearch.search(java.lang.String) return string';
spool off
set echo on
exec dbms_output.put_line(fsearch('ceci provient'));
l'exicution de ce script donne :
SQLPLUS>@jsearch
Appel termini.
Fonction criie.
SQL> exec dbms_output.put_line(fsearch('ceci provient'));
ceci provient de la fonction buildsearch
Procidure PL/SQL terminie avec succhs.
SQL>
ok it works
2) second try (it doesn't work...)
search.java
import java.util.Locale;
import java.util.Date;
import java.io.*;
import oracle.ifs.beans.DirectoryUser;
import oracle.ifs.beans.DocumentDefinition;
import oracle.ifs.beans.Document;
import oracle.ifs.beans.Selector;
import oracle.ifs.common.SortSpecification;
import oracle.ifs.beans.LibraryObject;
import oracle.ifs.beans.PublicObject;
import oracle.ifs.beans.Folder;
import oracle.ifs.beans.LibraryService;
import oracle.ifs.beans.LibrarySession;
import oracle.ifs.beans.PrimaryUserProfile;
import oracle.ifs.beans.PublicObject;
import oracle.ifs.common.CleartextCredential;
import oracle.ifs.common.ConnectOptions;
import oracle.ifs.common.AttributeValue;
import oracle.ifs.common.IfsException;
public class jsearch {
public static String buildsearch (String filename) throws IfsException
//public static String buildsearch (String filename)
     filename=filename+" de la fonction buildsearch";
     return filename;
public static String search (String filename)
     try {
          filename=buildsearch(filename);
catch(IfsException e) { };
return filename;
SQLPLUS>@jsearch
Appel termini.
Fonction criie.
SQL> exec dbms_output.put_line(fsearch('ceci provient'));
BEGIN dbms_output.put_line(fsearch('ceci provient')); END;
ERREUR ` la ligne 1 :
ORA-29541: impossible de risoudre la classe SYSTEM.jsearch
ORA-06512: ` "SYSTEM.FSEARCH", ligne 0
ORA-06512: ` ligne 1
SQL>
Why I don't understand !!!

ok :)
my class does import many others, it is in fact a bit of code that sends an email using javamail api, the two packages used are mail.jar and activation.jar which i 've downloaded from javasun.and i think my problem is in these classes, in fact i've compiled myclass with javac, after having included the two packages (mail and activation), and it generated no error.
i have used sql*plus to load these packages :
exec sys.dbms_java.loadjava('-v -r -grant PUBLIC -synonym /lib/jaf-1_0_2/activation.jar');
exec sys.dbms_java.loadjava('-v -r -grant PUBLIC -synonym /lib/javamail-1_3/mail.jar');
is there any problem in these commands? sql*plus said 'Procidure PL/SQL terminie avec succhs.' :))
if the jars are successfully loaded, where can i find them in oracle ? how can i verify they are really loaded in the database ?
thanks for help

Similar Messages

  • Ora-29541 could not resolve class

    Bear with me if I sound stupid. Can't help it (because I am)! I am running this code in Java and I keep getting this error: ORA-29541 AFATDS.joeycode could not be resolved.
    connection=java.sql.DriverManager.getConnection(url, username, password);
    stmt=connection.prepareStatement("Create or replace directory Bfile_dir as '/comp_order/joey/trig/trig/bin');
    stmt.execute();
    stmt.execute("Create or replace JAVA CLASS using BFILE (Bfile_dir, 'joeycode.class')");
    stmt.execute("Create or replace procedure Before_update as language JAVA name 'joeycode.printmsg()';");
    stmt.execute("Create or replace trigger pre_upd_trigger BEFORE UPDATE on table_name CALL Before_update");
    stmt.execute("Update table_name SET column1 = 0");

    Thanks for replying. I tried running the command you gave but an exception was thrown, specifally "Exception in thread "main" java.lang.NoClassDefFoundError: oracle/aurora/util/Wrapper"
    Also, the reason I was trying to do it the way I was trying to do it, was because the program needs to automatically put the java code in the Oracle database at the system startup.

  • ORA-29541: class ORDSYS.oracle/ord/media/img/PropsAdapter could not be reso

    When running the demo for the product_media (pm) schema I get:<br><br>
    ERROR at line 1:
    ORA-29541: class ORDSYS.oracle/ord/media/img/PropsAdapter could not be resolved
    ORA-06512: at "ORDSYS.ORDIMG_PKG", line 814
    ORA-06512: at "ORDSYS.ORDIMAGE", line 89
    ORA-06512: at "ORDSYS.ORDIMG_PKG", line 901
    ORA-06512: at "ORDSYS.ORDIMAGE", line 572
    ORA-06512: at line 22I ran this code directly from the docs(section 2.1.4):<br><br>
    DECLARE
      img ORDImage;
      aud ORDAudio;
      vid ORDVideo;
      ctx RAW(64) := NULL;
    BEGIN
      -- Insert a new row into the pm.online_media table
      DELETE FROM pm.online_media WHERE product_id = 3003;
      INSERT INTO pm.online_media
             (product_id,
              product_photo,
              product_audio,
              product_video)
      VALUES (3003,
              ORDImage.init('FILE', 'MEDIA_DIR', 'laptop.jpg'),
              ORDAudio.init('FILE', 'MEDIA_DIR', 'laptop.mpa'),
              ORDVideo.init('FILE', 'MEDIA_DIR', 'laptop.rm'))
      RETURNING product_photo, product_audio, product_video
      INTO img, aud, vid;
      -- Bring the media into the database and populate the attributes 
      img.import(ctx);
      -- ORDImage.import also calls ORDImage.setProperties;
      aud.import(ctx);
      aud.setProperties(ctx);
      vid.import(ctx);
      vid.setProperties(ctx);
      -- update the table with the properties we have extracted
      UPDATE pm.online_media
      SET    product_photo = img,
             product_audio = aud,
             product_video = vid
      WHERE  product_id = 3003;
      COMMIT;
    END;
    /I did narrow it down to the Annotator.jar I believe, but I am not sure. I have uninstalled the ord schema and the JVM and then resinstalled...anyone have a clue?
    chet

    while running ord\im\admin\imchk.sql:
    ...snipped
    com.sun.media.jai.* Java package                   VALID
    com.sun.media.jai.mlib.* Java package              VALID
    com.sun.medialib.mlib.* Java package               VALID
    javax.media.jai.* Java package                     VALID
    oracle.ord.media.* Java package                    INVALID
    262 rows selected.
    interMedia installation is invalid
    PL/SQL procedure successfully completed.when installing (ord\im\admin\iminst.sql):<br><br>
    ...snipped
    BEGIN dbms_java.loadjava('-synonym -schema ORDSYS -resolve -grant PUBLIC ord/jlib/ordimann.jar'); END;
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception:
    oracle.aurora.server.tools.loadjava.ToolsError: Error during loadjava: Failures
    occurred during processing. Check trace file for details
    ORA-06512: at "SYS.DBMS_JAVA", line 222
    ORA-06512: at line 1
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    BEGIN dbms_java.loadjava('-synonym -resolve -schema ORDSYS ord/jlib/jai_core.jar ord/jlib/mlibwrapper_jai.jar ord/jlib/jai_codec.jar ord/jlib/ordimimg.jar'); END;
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception:
    oracle.aurora.server.tools.loadjava.ToolsError: Error during loadjava: Failures
    occurred during processing. Check trace file for details
    ORA-06512: at "SYS.DBMS_JAVA", line 222
    ORA-06512: at line 1ordimimg.jar has the PropsAdapter class. The trace file just say that it (each class) can't be resolved, with no other error message. I followed the README in the ord\Annotator directory setting up environment variables as well...

  • ORA-29541 class could not be resolved

    Bear with me if I sound stupid. Can't help it (because I am)! I am running this code in Java and I keep getting this error: ORA-29541 AFATDS.joeycode could not be resolved:
    connection=java.sql.DriverManager.getConnection(url, username, password);
    stmt=connection.prepareStatement("Create or replace directory Bfile_dir as '/comp_order/joey/trig/trig/bin');
    stmt.execute();
    stmt.execute("Create or replace JAVA CLASS using BFILE (Bfile_dir, 'joeycode.class')");
    stmt.execute("Create or replace procedure Before_update as language JAVA name 'joeycode.printmsg()';");
    stmt.execute("Create or replace trigger pre_upd_trigger BEFORE UPDATE on table_name CALL Before_update");
    stmt.execute("Update table_name SET column1 = 0");

    Hi,
    IS this code compiled in the database? If so, which error message did you get upon creating the Java source in the database? Which additional error message did you get along with ORA-29541?
    Btw, which JDBC URL are you using?
    Kuassi
    - blog http://db360.blogspot.com
    - book http://www.amazon.com/exec/obidos/ASIN/1555583296
    - http://www.savedarfur.org/content

  • JAVA error ORA-29541??

    Dear All:
    I want to use xml to direct print .pdf file, so I use Delivery Manager.
    But when I exec procedure, there have some errors!!
    Below this step、java and procedure is what I do, please someone can
    tell me how can solve it, thnaks!!
    1. create java file EBSEmailDelivery.java
    2. loadjava EBSmailDlivery.java
    3. javac EBSmailDlivery.java
    4. create procedure EBSSendEMail
    5. SQL> exec EBSSendEMail('aa');
    BEGIN EBSSendEMail('aa'); END;
    ERROR at line 1:
    ORA-29541: class APPS.EBSEmailDelivery could not be resolved
    ORA-06512: at "APPS.EBSSENDEMAIL", line 0
    ORA-06512: at line 1
    CREATE OR REPLACE PROCEDURE EBSSendEMail (cmd VARCHAR2)
    AS LANGUAGE JAVA
    name 'EBSEmailDelivery.main(java.lang.String[])';
    //package oracle.apps.xdo.ebsdelivery;
    import oracle.apps.xdo.delivery.*;
    //import oracle.apps.xdo.delivery.DeliveryManager;
    //import oracle.apps.xdo.delivery.DeliveryRequest;
    //import oracle.apps.xdo.delivery.DeliveryPropertyDefinitions;
    import java.io.*;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    public class EBSEmailDelivery {
    public EBSEmailDelivery() {
         System.out.println("AAAAAA");
    //int userid = Integer.parseInt(rUser);
    // int requestid = Integer.parseInt(rRequestID);
    try {
         // create delivery manager instance
              DeliveryManager dm = new DeliveryManager();
              // create a delivery request
              DeliveryRequest req = dm.createRequest
    (DeliveryManager.TYPE_IPP_PRINTER);
              // set IPP printer host
              req.addProperty(DeliveryPropertyDefinitions.IPP_HOST, "192.168.1.13");
              // set IPP printer port
              req.addProperty(DeliveryPropertyDefinitions.IPP_PORT, "9100");
              // set IPP printer name
              req.addProperty(DeliveryPropertyDefinitions.IPP_PRINTER_NAME, "/printers/HP LaserJet 4050 Series PCL 6");
              req.addProperty(DeliveryPropertyDefinitions.IPP_ATTRIBUTE_CHARSET,"UTF-8");
              //req.addProperty(DeliveryPropertyDefinitions.IPP_USE_FULL_URL,"true");
              //req.addProperty(DeliveryPropertyDefinitions.IPP_USE_CHUNKED_BODY,"true");
              // set the document format
              req.addProperty(DeliveryPropertyDefinitions.IPP_DOCUMENT_FORMAT,
              DeliveryPropertyDefinitions.IPP_DOCUMENT_FORMAT_PLAINTEXT);
              // set the document
              req.setDocument("/u02/VIS10/AP/viscomn/document/xml_test.txt");
              // submit the request
              req.submit();
              // close the request
              req.close();
    } catch (Exception e) {
    e.printStackTrace();
    static Connection getConnection() throws SQLException, Exception {
    String fDriverName = "oracle.jdbc.driver.OracleDriver";
    String fDbName = "vis";
    String fServer = "altos.advtek.com.tw";
    String fPort = "1523";
    String fUserName = "apps";
    String fPassword = "apps";
    Class.forName(fDriverName).newInstance();
    Connection dbconn =
    DriverManager.getConnection("jdbc:oracle:thin:@" + fServer + ":" +
    fPort + ":" + fDbName, fUserName,
    fPassword);
    return dbconn;
    private String getReportTitle(int requestID) {
    String reportName = "";
    try {
    // Try and geta connection to the db
    Connection conn = getConnection();
    // fetch the report name based on the request id
    PreparedStatement getTitle =
    conn.prepareStatement("select user_concurrent_program_name \n" +
    "from fnd_concurrent_requests fcr,\n" +
    "fnd_concurrent_programs_vl fcpv\n" +
    "where fcr.concurrent_program_id = fcpv.concurrent_program_id\n" +
    "and request_id = ?");
    //get the title
    getTitle.setInt(1, requestID);
    // get the query result in to a result set and then assign the
    // value to a variable we can pass back to the calling method
    ResultSet titleRslt = getTitle.executeQuery();
    titleRslt.next();
    reportName = titleRslt.getString(1);
    System.out.println(reportName);
    //Clean up
    titleRslt.close();
    getTitle.close();
    conn.close();
    } catch (SQLException eSQL) {
    System.err.println("Could not create connection");
    eSQL.printStackTrace();
    } catch (Exception e) {
    System.err.println("Exception thrown");
    e.printStackTrace();
    return reportName;
    private String getEmail(int userID) {
    String eMailID = "";
    try {
    // Try and geta connection to the db
    Connection conn = getConnection();
    PreparedStatement getEmail =
    conn.prepareStatement("select email_address from fnd_user where user_id = ?");
    getEmail.setInt(1, userID);
    // get the query result in to a result set and then assign the
    // value to a variable we can pass back to the calling method
    ResultSet emailRslt = getEmail.executeQuery();
    emailRslt.next();
    eMailID = emailRslt.getString(1);
    System.out.println(eMailID);
    //Clean up
    emailRslt.close();
    getEmail.close();
    conn.close();
    } catch (SQLException eSQL) {
    System.err.println("Could not create connection");
    eSQL.printStackTrace();
    } catch (Exception e) {
    System.err.println("Exception thrown");
    e.printStackTrace();
    return eMailID;
    public static final void main(final String[] args) {
    // Arguments passed
    //1.$PROFILES$.CONC_REQUEST_ID
    //2.$PROFILES$.FILENAME
    //3.$PROFILES$.USER_ID
    EBSEmailDelivery ebsMail = new EBSEmailDelivery();
    }

    Hi Tim:
    Thanks for reply me.
    Recently I test XML's Delivery Manager APIs function,but in User Guide don't
    say very clear aoubt how to use this APIs.
    I just see a lot of Delivery Manager Java code, so I find some forums and do the forums say.
    http://www.orafaq.com/forum/?t=msg&th=64448/0/
    I want test XML's Delivery Manager APIs ( e-Mail、Printer、Fax、WebDAV、FTP、HTTP ).
    Can you tell me how to use XML's Delivery Manager APIs??
    Emily
    Thanks a lot!!

  • ORA-29541 while trying to access web service using UTL_DBWS

    Hi all,
    Solicit your help in the beforesaid scenario:
    I've 9.2.01 RDBMS, JPub 9.2.0.1.0 Production and OC4J Release 10.1.2 (standalone) environment and a local webservice.
    While issuing jpub, I get the following response:
    jpub -user=scott/tiger@ORACLE -sysuser sys/tiger -proxywsdl="e:\IMyFloatWebService.wsdl" -endpoint="http://10.177.238.71:8988/WS_Appln-WSFloat_prj-context-root/MyFloatWebService" -proxyopts=soap,tabfun -dir=FloatValue -plsqlpackage=soap_callout_wrap_eg -proxyopts=noload
    Note: FloatValue\MyFloatWebServiceProxy.java uses unchecked or unsafe operations
    Note: Recompile with -Xlint:unchecked for details.
    FloatValue\MyFloatWebServiceProxyJPub.java
    FloatValue\plsql_wrapper.sql
    FloatValue\plsql_dropper.sql
    FloatValue\plsql_grant.sql
    FloatValue\plsql_revoke.sql
    FloatValue\plsql_proxy.jar
    Please run FloatValue\plsql_wrapper.sql in the user schema, load the generated j
    ar file and run FloatValue\plsql_grant.sql in the SYS schema.
    i. e - I get message as seen above:
    "Please run FloatValue\plsql_wrapper.sql in the user schema, load the generated j
    ar file and run FloatValue\plsql_grant.sql in the SYS schema."
    And in sqlplus, while I try to access the web service, I get this error:
    "SQL> sho user;
    USER is "SCOTT"
    SQL> SELECT soap_callout_wrap_eg.getCircumference(20)
    2 FROM dual;
    FROM dual
    ERROR at line 2:
    ORA-29541: class SCOTT.MyWebServiceFloatRTEProxyJPub could not be resolved"
    Could somebody please advise me where I might be going wrong? Any help in this regards will be highly appreciated.
    Regards,
    Leslie

    Hi,
    I presume your Web Service needs HTTP (BASIC?) Authentication.
    All this needs is setting the following 2 properties, which as can be seen, you are setting....
    UTL_DBWS.set_property(l_call, 'USERNAME', '<username>');
    UTL_DBWS.set_property(l_call, 'PASSWORD', '<pwd>');
    This should work as long as your DBWS Callout Utility was downloaded from OTN after June 2008, and it's version is atleast 10.1.3.1.
    Following is a sample code snippet that was tested successfully for this :
    Declare
    l_service UTL_DBWS.service;
    l_call UTL_DBWS.call;
    l_result sys.XMLTYPE;
    l_request sys.XMLTYPE;
    BEGIN
    l_service := UTL_DBWS.create_service(null);
    l_call := UTL_DBWS.create_call(l_service);
    UTL_DBWS.set_target_endpoint_address(l_call, 'http://xxx.oracle.com:8888/basic/MyWebService1SoapHttpPort');
    UTL_DBWS.set_property(l_call, 'USERNAME', 'username');
    UTL_DBWS.set_property(l_call, 'PASSWORD', 'pwd');
    UTL_DBWS.set_property(l_call, 'OPERATION_STYLE', 'document');
    UTL_DBWS.set_property(l_call, 'SOAPACTION_USE', 'true');
    UTL_DBWS.set_property(l_call, 'SOAPACTION_URI', 'http://xxx.oracle.com:8888/basic/MyWebService1SoapHttpPort');
    l_request := XMLTYPE('<Z_CENTRICITY_GET_DOCLIST
    xmlns:urn="urn:sap-com:document:sap:rfc:functions">' ||
    '<I_INCLUDE_OLD_VERSIONS></I_INCLUDE_OLD_VERSIONS>' ||
    '<I_INSTITUTION>0001</I_INSTITUTION>' ||
    '<I_PATIENT_NR>0000000181</I_PATIENT_NR>' ||
    '</Z_CENTRICITY_GET_DOCLIST>');
    l_result := UTL_DBWS.invoke(l_call, l_request);
    UTL_DBWS.release_call (call_handle => l_call);
    UTL_DBWS.release_service (service_handle => l_service);
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line(sqlcode || ' ' || sqlerrm);
    END;
    Hope this helps,
    Yogesh

  • SQLJ runtime error ORA-29541

    I am running on an Oracle 8.1.5 database using SQLJ Release 8.1.5.0.0 and JDBC version 8.1 (8.1.5.0.0). My SQLJ program precompiles and compiles successfully, resulting in a .class file which I load without error using the loadjava utility. I then create a procedure to run the stored procedure. All this works just fine. However, when I run the procedure, I get the error:
    "ORA-29541: class <class name> could not be resolved"
    I can't find this error message documented anywhere. (I'm not saying it's not - I'm saying I can't find it.) This same process of loading .class files with loadjava and running them through a wrapper procedure works without errors for JDBC but not SQLJ. Any suggestions on how to fix this?

    Any one of the three following things should help:
    (1) Add the generated .ser file(s) to be loaded by loadjava.
    (2) Use the -ser2class option when translating your SQLJ source and add the additional .class files to be loaded by loadjava.
    (3) Use loadjava to load SQLJ source rather than .class (and .ser) files.

  • Read data from SAP R/3 Class-System

    Hello,
    first of all sorry when I posted this into the wrong subforum, but I wasn't sure about that. My Question is how to read data from the Classystem I have specified in my ABAP report.
    The goal is to read data from my individual class-system as well as data from MM and write them to a table that is to be read by another report. But right now I can't find information about the class system and abap. Maybe you know some tutorials or blogs about right that topic you can suggest?

    What class system have you specified in your report?
    Normally a class can be used by declaring a variable of type of the class in question, if this class can be instantiated this is. If your class can't be instantiated, but it has only class methods, you can call this method directly.
    But there is a lot more to this ABAP Object Oriented Programming, than just this short explanation. Search on SDN for some ABAP OO Tutorials.
    some links:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c3/225b5654f411d194a60000e8353423/frameset.htm
    http://www.sapgenie.com/abap/OO/
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b6cae890-0201-0010-ef8b-f970a9c41d47
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1591ec90-0201-0010-3ba8-cdcd500b17cf
    Transacation ABAPDOCU.

  • ORA-01536: space quota exceeded for tablespace 'SYSTEM'

    Hi All,
    Please help me to understand the below issue. I am trying to create a table as below. Connected as APPS user.
    SQL>create table test_ts(id number) tablespace APPS_TS_TX_DATA
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01536: space quota exceeded for tablespace 'SYSTEM'
    ORA-06512: at line 2
    Below are the details of the user
    SQL>select * from user_ts_quotas
            where  tablespace_name = 'APPS_TS_TX_DATA'
    TABLESPACE_NAME     BYTES     MAX_BYTES     BLOCKS     MAX_BLOCKS
    APPS_TS_TX_DATA     929038336     -1     113408     -1
    SQL>select * from user_ts_quotas
            where  tablespace_name = 'SYSTEM'
    No Rows Returned.

    Hi,
    Thanks for the response. There is no QUOTA defined for SYSTEM user, so it is UNLIMITED, No?
    Below are the details of "SYSTEM" tablespace. Is there any issue with this?
    TABLESPACE_NAME           BLOCK_SIZE  INITIAL_EXTENT       NEXT_EXTENT           MIN_EXTENTS            MAX_EXTENTS         
    SYSTEM                  8192               16384         16384                1                     505

  • 'My Application Page' is not allowed here because it does not extend class 'System.Web.UI.Page'

    I have a custom SharePoint 2010 solution that includes an aspx page. The aspx page in is in the /layouts folder within the solution and I created it by just adding an application page to the solution. I am trying to create a parent-child relationship between
    two different lists in SharePoint. From the parent I have a custom button on the ribbon that creates a child item with the ID of the parent stamped on it.
    The page is just a processing page that forwards on parameters from the parent to the new child item. (i.e. the ID value)
    The code generated when I add the aspx page is below:
    <%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
    <%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
    <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
    <%@ Import Namespace="Microsoft.SharePoint" %>
    <%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="processingpage.aspx.cs" Inherits="MY.Solution.Layouts.MY.Solution.processingpage" MasterPageFile="~/_layouts/application.master" %>
    <asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
    </asp:Content>
    <asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    </asp:Content>
    <asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server"> Processing Page </asp:Content>
    <asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" > Processing Page </asp:Content>
    The code behind is as follows:
    using System;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.Administration;
    using Microsoft.SharePoint.WebControls;
    using Microsoft.SharePoint.Utilities;
    using System.Reflection;
    namespace MY.Solution.Layouts.MY.Solution
    public partial class processingpage : LayoutsPageBase
    protected void Page_Load(object sender, EventArgs e)
    try
    //Get a reference to the SPWeb object
    SPWeb oWeb = SPContext.Current.Web;
    //Use the Parameters That Are Passed In
    SPList thisList = oWeb.Lists[new Guid(Request.QueryString["List"])];
    SPListItem thisItem = thisList.GetItemById(int.Parse(Request.QueryString["ID"]));
    sContentType = thisItem["ContentType"].ToString();
    sContentTypeID = thisItem.ContentTypeId.ToString();
    if (sContentType == "Some Content Type")
    sContentTypeID = "";
    sAIID = thisItem["ID"].ToString();
    //Redirect to newform.aspx with the Appropriate parameters.
    Context.Response.Redirect(oWeb.Url + "/Lists/Blist" + "/NewForm.aspx?AIID=" + sAIAuditID.ToString() + "&ContentTypeId=" + sContentTypeID + "&ParentItemID" + Context.Request["ID"]);
    else if (sContentType == "Some Content Type")
    sContentTypeID = "";
    sAIID = thisItem["AIID"].ToString();
    //Redirect to newform.aspx with the Appropriate parameters.
    Context.Response.Redirect(oWeb.Url + "/Lists/AList" + "/NewForm.aspx?AIID=" + sAIID.ToString() + "&ContentTypeId=" + sContentTypeID + "&ParentItemID" + Context.Request["ID"]);
    else if (sContentType == "Some Content Type")
    sContentTypeID = "";
    sAICID = thisItem["AICID"].ToString();
    //Redirect to newform.aspx with the Appropriate parameters.
    Context.Response.Redirect(oWeb.Url + "/Lists/CList" + "/NewForm.aspx?AICID=" + sAICID.ToString() + "&ContentTypeId=" + sContentTypeID + "&ParentItemID" + Context.Request["ID"]);
    else
    LoggingService.LogError("MY.Solution - Processing Page", "No Applicable Content Type Found.");
    catch (Exception ex)
    LoggingService.LogError("My.Solution - Processing Page", ex.Message);
    finally
    //DO SOME FINAL THINGS HERE WHEN REQUIRED.
    In the page I need to use Request.QueryString to get the values from the URL. But when I deploy the solution and load the page I get the error:
    'MY.Solution.Layouts.MY.Solution.processingpage' is not allowed here because it does not extend class 'System.Web.UI.Page'.
    When I change the line:
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="processingpage.aspx.cs" Inherits="MY.Solution.Layouts.MY.Solution.processingpage" MasterPageFile="~/_layouts/application.master" %>
    to inherit as follows:
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="processingpage.aspx.cs" Inherits="Microsoft.SharePoint.WebControls.LayoutsPageBase" MasterPageFile="~/_layouts/application.master" %>
    it does not work either.
    If I change it to inherit like below:
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="processingpage.aspx.cs" Inherits="System.Web.UI.Page" MasterPageFile="~/_layouts/application.master" %>
    it also does not work.
    What does this error actually mean?  And why doesn't the default code generated by Visual Studio work?

    @NadeemYousuf I have tried this too and it didn't work.  
    What does the error even mean?  And why does the error appear with default Visual Studio code?  In my example I have just added a basic application page with no other code in it and it still does not work.

  • Provider must implement the class 'System.Web.Security.RoleProvider'.

    Hi I am implementing Membership and roles security on ASP .NET 4.0 site using oracle database. Have already configured my web.config file to use oraclemembershipprovider and oracleroleprovider but whenever I am trying to create a role or a user through "Web Site Administration Tool" I get this error "Provider must implement the class 'System.Web.Security.RoleProvider'" it comes as soon as I click on create user or create/manage role links.
    btw I also noticed that there is was no row in my "ora_aspnet_applications" table I manually added one line and have already given the application name which matches with web.config entry
    Any help will be appreciated, is there something wrong with my installation? Also I am using latest version of ODAC.
    Saadie
    Edited by: user13546761 on Jan 8, 2011 9:04 AM

    errr okay my bad, there was a typo in web.config

  • Mac osx ne peut être installé sur le disque impossible de créer un systeme de récupération

    au debut de l'installation de os x lion, il s'arrete et m'indique ce message :" mac osx ne peut être installé sur le disque impossible de créer un systeme de récupération"  consulter la page www.apple.com/fr/support/no-recovery

    Translation of my message:
    Hi,
    I've got a CD I can't read.
    It contains:
         pictures .JPEG  => error message "The application can not be found."
          musics .MP3  => same error message
          Files .PDF      => same error message
    However that CD works perfectly on PC.
    When I try to copy those files on my hard disk, I receive the message "Impossible to end the operation because an unexpected error occurred (error code -8058)."
    Who can help me?
    Thank you.
    OS X Mavericks (10.9.2)

  • ORA-29541 class .../OracleXMLStaticQuery could not be resolved

    I'm getting this error running test scripts that call DBMS_XMLQuery.newContext. I think I didn't install the XML SQL Utility properly on my HPUX server. I ran the oraclexmlload.csh script as SYS, and the jar files and PL/SQL packages seemed to install properly. I just let the oraclexmlsqltest script error out, since I didn't have the scott/tiger schema.
    My test script run properly on a local database I setup on my PC, but not on my Unix DB. Any ideas?
    Thank you

    Look for the tip in this message:
    Re: ArrayOfStruct Issues
    Best regards, Marcelo.

  • Why is the runFinalizersOnExit method in class System depricated?

    The explaination given in javadocs for deprication of runFinalizersOnExit in System class is that "It may result in finalizers being called on live objects while other threads are concurrently manipulating those objects, resulting in erratic behavior or deadlock". But the finalizers are supposed to be called only when the Java runtime exits. The confusion I have is once the java runtime exits we should not have any live objects hence the aboue case should not arise or have i missed some details. Please help.

    The finalize method goes off when garbage collection happens, and this doesn't always happen when the program ends. Finalize methods are not well supported in Java since they are not always called (or they get called while the program is still running). Sun should come up with a better plan on the finalize method and so they are executed when the program ends. This isn't what finalizeOnExit does, despite the name.

  • Getting ORA-00903:invalid table name with both system and table owner

    Hi All,
    Oracle version 9.2
    I'm trying to retrieve some information from a few tables and import them to Excel. I haven't got much idea about ORACLE, but I'm not able to do anything.
    I open SQL PLus, and use CONNECT SYSTEM/[email protected] AS SYSDBA
    The console shows connected.
    I use select table_name,owner from dba_tables where owner='USER1';
    I can see the tables I want to access in the output.
    I do select * from USER1.TABLE1 and also tried with select * from TABLE1, both return ORA-00903:invalid table
    I also tried to connect with "CONNECT USER1/[email protected]" also shows connected, but then same error ORA-00903:invalid table
    Could anyone guide me so I can find out whats going on wrong??
    Thanks.. Best regards!

    Great! this worked! At least now I know I can read the data.
    Now I would like to get the data from this table into Excel 2007, but I can't install Office in the ORACLE server, so I have setup my client computer (Windows 2003 server with Excel 2007).
    I installed the ORACLE ODBC driver, and put the TNSName.ora file into the network admin folder.
    I successfully create the ODBC connector, and try connection is successfull. However, when I try to get the data, Excel send an error saying that it cannot list the tables!
    Anyway, any simple solution will do. If there is an easy way of making ORACLE create for example a CSV file with all the data from the table it will be good as well. What would be the easiest way?

Maybe you are looking for