[Solved]Portal 10.1.4 - Request Help to Modify Item Name using PL/SQL API

I have a region on a page that contains content items. These are PDF files that were uploaded. I want to know how I can programmatically change the description.
I have been looking at both set_attributes() and modify_item_post_upload() functions in the API. Is this my best option, or is there an alternative.
I have been leaning towards calling modify_item_post_upload(), but have a question on the parameters.
I can get p_master_item_id, but what is p_item_id?
I would like to call the method like this:
declare
l_masterid number;
l_display_name varchar2(100);
begin
l_masterid := <some number);
l_display_name := 'New Name for item';
modify_item_post_upload(
p_master_item_id => l_masterid,
p_display_name => l_display_name
end;
So questions are:
1. What modifications do I need for a simple call to change an items name?
2. What additional functions/procedures do I need to call so the display gets updated with the new information? Do I have to clear the cache suing wxutils, or can I just call wwpro_api_invalidation.execute_cache_invalidation; ?
If you want the "rest of the story" - I created a web front end in JDeveloper that allows specific end users to login, upload files, and delete items for a specific portal page containing content items. One of the common mistakes is a misspelling of the display name by the end user. So instead of deleting an item, then re-adding an item, the end user would like to edit the display name for just the item that has the misspelling. I have set this up in JDeveloper with an edit screen that contains just the display name. Now I need a function/procedure that I can call from the application module that will update just the display name for this particular item. I have already coded an ADF model that uses the search_item and converts the results into a result_set, and use that to create a View Object in the ADF for JDeveloper to use. Now to finish this user request, I just need to figure out the PL/SQL API part for modifying a display name. The item still needs to keep it's reference to the uploaded PDF file.
Thanks, Ken

Very nice! I like the code example. In looking at needing to change only the title of the item, I created a procedure that calls set_attribute. Here is the code:
create or replace
procedure update_newslinearchive_item (p_masterid in number, p_displayname in varchar2) as
cursor items_cur(p_id IN NUMBER) is
select * from wwsbr_all_items
where masterid = p_id
and caid = <pagegroup>
and active = 1
and is_current_version = 1
and language = wwctx_api.get_nls_language;
items_rec wwsbr_all_items%rowtype;
begin
dbms_output.put_line('masterid = ' || to_char(p_masterid));
dbms_output.put_line('display_name = ' || p_displayname);
-- Login to the portal for access to function calls
wwctx_api.set_context('<username>','<password>');
-- Verify that the item to be deleted is in the items table
open items_cur(p_masterid);
fetch items_cur into items_rec;
if items_cur%found then
dbms_output.put_line('record found');
wwsbr_api.set_attribute(
p_site_id => items_rec.caid,
p_thing_id => items_rec.id,
p_attribute_site_id => wwsbr_api.SHARED_OBJECTS,
p_attribute_id => wwsbr_api.ATTRIBUTE_TITLE,
p_attribute_value => p_displayname
wwpro_api_invalidation.execute_cache_invalidation;
dbms_output.put_line('Clearing Cache');
-- Now clear the web-cache
wxvutil.invalidate_reset;
wxvutil.invalidate_uri('<server:port/path/to/page>,0,null);
wxvutil.invalidate_exec('<server>',4001,'<webcache password>');
else
dbms_output.put_line('record NOT found');
end if;
close items_cur;
exception
when others then
dbms_output.put_line('SQLCODE = ' || SQLCODE);
dbms_output.put_line('SQLERRM = ' || SUBSTR(SQLERRM,1,200));
if items_cur%isopen then
close items_cur;
end if;
end update_newslinearchive_item;
Thank you for the example for modify_item_post_upload!
Ken

Similar Messages

  • Request help for purchasing HD webcams using iMac, OSX &Lion

    I am requesting help for purchasing a HD webcam using iMac, OSX &Lion.  Any suggestions would help.  The following is what I've done so far...
    I purchased Logitech's HD C910 webcam. It was a mess in requards to freezing up, no zoom and most of all no adjustments in: contrast, hue, color, etc. You're stuck just like a car with no engine or wheels who wants that.  The other Logitech products i.e. Pro 9000 is being discontinued with no software updates in the future  and the same with the other products. Most of the other manufactures do not provide software that is really compatible provideing true HD with full features. I'm willing to spend around $199,00 or so.  Any suggestions?

    Well I found my own answer to the webcam concern that I had ....I bought the Logitech C-910...Yes, I know the Logitech states their software is not compatible with OS X ...That's OK, I only use the basics supplied by Logitech to open the cam...Logitech does supply HD settings which are useful.  I like the wide angle which is there to play around. Then I use a software program called "Webcams Settings" found at Apple's App Store. There is a small charge for this download but more than worth it to have a fully functioning system.  The best way to get there is obliviously via your "Dock." Click on the icon and type in "Webcam Settings" in the top right portion of the page and presto....you have all the goodies to play like a professional. i.e.:  zoom, pan, tilt, aperture. etc. of course your webcam camera(s) must have the capability to perform these options in order to use them.
      Note I have used my webcam for everything you can imagine and have a 60 foot cord (several cords linked together) to go outside (LOL) 'Just love the goodies with "Webcam Settings".  I take outstanding pics too if I do say so, please.  Funny, I rarely use my cam to Skype but knowing the option is there for me anytime I wish.  I my cam to photograph orchids and misc. even portraits and family play photos with my tripod in hand.   Just because there is a big road block in your path doesn't mean there aren't other avenues. In the corporate life it's called take a negative and make it a positive or else.......and if you have to gripe then you better have an idea on how to turn it around.  -So- I did Logitech and Apple.

  • Someone help me,rewrite the SP using PL/SQL

    the following SP is written in T-SQL,now I want to rewrite it with PL/SQL,who can help me ? tks
    CREATE PROCEDURE dbo.TEST_Proc_Jerry_OB @CountDay Char(8)
    AS
    Declare @UserID varchar(50)
    Declare @Count int
    Declare @SuccCount int
    Declare @UnSuccCount int
    create table tbTEST_Proc_Jerry_OB (
    agentalias varchar(255),
    count1 int,
    count2 int,
    count3 int
    Set @UserID = 'kokuyo6'
    select @Count = count(*),
    @SuccCount = sum(case when DialFlag='0' then 1 else 0 end),
    @UnSuccCount = sum(case when DialFlag='0' then 0 else 1 end)
    from tbobcdrmast where
    left(starttime,8)=@CountDay
    and agentalias='kokuyo6'
    group by agentalias
    Order By AgentAlias
    Insert Into tbTEST_Proc_Jerry_OB Values(@UserID, @Count, @SuccCount ,@UnSuccCount)
    Select * From tbTEST_Proc_Jerry_OB
    drop table tbTEST_Proc_Jerry_OB
    GO

    Here you ara your answer. Take good care.Indeed, I would take extreme care. I don't even have to try and test this code to know it won't work.
    CREATE PROCEDURE PR_PROCEDIMIENTO(
    p_exit out SYS_REFCURSOR) So we've lost the input parameter, which has now gone down to be declared as a local variable, we're passing back a pointer to a ref cursor (which I didn't see in the original requirement) and we're missing the "AS" or "IS" keyword.
    >
    CountDay Char(8);
    UserID varchar(50);
    Contador integer;Good to see you changed the reserved "Count" variable name to something else.
    SuccCount integer;
    UnSuccCount integer;
    BEGIN
    EXECUTE IMMEDIATE('create goblal temporary table
    tbTEST_Proc_Jerry_OB (
    agentalias varchar(255),
    count1 integer,
    count2 integer,
    count3 integer) on commit delete rows');So you've opted for a global temporary table. Okay.
    UserID := 'kokuyo6';
    select count(*), sum(case when DialFlag='0' then 1
    else 0 end),
    sum(case when DialFlag='0' then 0 else 1 end)
    into Count, SuccCount, UnSuccCountWhoops there's that reserved "Count" variable. Forgot to rename it here I see.
    from tbobcdrmast where
    left(starttime,8)=CountDay
    and agentalias='kokuyo6'
    group by agentalias
    Order By AgentAlias;There's no need for the Order By on the query as the where clause has already restricted it to a single value of this anyway.
    >
    Insert Into tbTEST_Proc_Jerry_OB
    Values(UserID, @Count, @SuccCount ,@UnSuccCount)And this is valid syntax is it?
    How is it going to compile on a table that hasn't even been created yet because it gets created at run time?
    >
    open p_exit for Select * From
    tbTEST_Proc_Jerry_OB;So you open up the ref cursor to pass back out (not part of the original requirement)
    >
    EXECUTE IMMEDIATE('drop table
    tbTEST_Proc_Jerry_OB');And before you finish, you go and drop the global temporary table that you have a ref cursor open on. Duh!
    >
    END;

  • Need help to modify vb script used in XP for Windows 7

    Can somebody help me in modifying scripts that were used for Windows XP, to run on Windows 7.
    My friend advised me to change it to .ps1, but still some flaws..
    Cscript \\nologo ????  is used for what purpose ?

    Almost all VBScripts written to work in Windows XP will also work for Windows 7, so there's not much to modify (unless you have specific examples of scripts not working).
    Having said that, PowerShell is the future! It takes a bit more than to just change the file extension to .ps1 though (this may be why your scripts aren't working!).
    The VBScript-to-Windows PowerShell Conversion Guide
    http://technet.microsoft.com/en-us/library/ee221101.aspx
    C:\>cscript /?
    Microsoft (R) Windows Script Host Version 5.7
    Copyright (C) Microsoft Corporation. All rights reserved.
    Usage: CScript scriptname.extension [option...] [arguments...]
    Options:
     //B         Batch mode: Suppresses script errors and prompts from displaying
     //D         Enable Active Debugging
     //E:engine  Use engine for executing script
     //H:CScript Changes the default script host to CScript.exe
     //H:WScript Changes the default script host to WScript.exe (default)
     //I         Interactive mode (default, opposite of //B)
     //Job:xxxx  Execute a WSF job
     //Logo      Display logo (default)
     //Nologo    Prevent logo display: No banner will be shown at execution time
     //S         Save current command line options for this user
     //T:nn      Time out in seconds:  Maximum time a script is permitted to run
     //X         Execute script in debugger
     //U         Use Unicode for redirected I/O from the console
    C:\>
    Andreas Hultgren
    MCTS, MCITP
    http://ahultgren.blogspot.com/

  • HELP WITH CREATING A VIEW USING PL/SQL

    Hello,
    I have two tables, one is simply an audit version of the other and anytime data is updated, modified, or deleted the data is copied to the audit table (via a trigger) and the audit table records who made the changes and when.
    Here is the description of one of the archive tables:
    AUD_OBLIGATION_ID NOT NULL NUMBER(10)
    OBLIGATION_ID NUMBER(10)
    COMMUNICATION_ID NUMBER(10)
    COMMUNICATION_ID_OLD NUMBER(10)
    OBL_DESC VARCHAR2(4000)
    OBL_DESC_OLD VARCHAR2(4000)
    OBL_TYPE VARCHAR2(20)
    OBL_TYPE_OLD VARCHAR2(20)
    ORIGINAL_TARGET_DATE DATE
    ORIGINAL_TARGET_DATE_OLD DATE
    TARGET_DATE DATE
    TARGET_DATE_OLD DATE
    ACTUAL_DATE DATE
    ACTUAL_DATE_OLD DATE
    STATUS VARCHAR2(20)
    STATUS_OLD VARCHAR2(20)
    DOCLINK VARCHAR2(200)
    DOCLINK_OLD VARCHAR2(200)
    SERIAL_NUMBER NUMBER(10)
    SERIAL_NUMBER_OLD NUMBER(10)
    REMARKS VARCHAR2(200)
    REMARKS_OLD VARCHAR2(200)
    CREATED_BY VARCHAR2(10)
    CREATED_BY_OLD VARCHAR2(10)
    CREATION_TS DATE
    CREATION_TS_OLD DATE
    MODIFIED_BY VARCHAR2(10)
    MODIFIED_BY_OLD VARCHAR2(10)
    MODIFICATION_TS DATE
    MODIFICATION_TS_OLD DATE
    UPDATED_BY VARCHAR2(10)
    UPDATED_TS DATE
    ACTION_TYPE VARCHAR2(10)
    I now need to create a view of this audit table, but do not want to list all the columns from the audit table, instead I would like it to look like this:
    Modification_TS ** Action_Type ** Updated_By ** CHANGES
    Where CHANGES would be a variable that stores the concatenated new & old values (if they are different).
    I assume I need to create a stored procedure using PL/SQL to find these values then insert the values into a view...but all of my efforts do not seem to work.
    Here is the procedure I've written:
    CREATE OR REPLACE PROCEDURE proc_AUD_OBLIGATIONS AS
    modData VARCHAR2(2000) :=' ';
    emp VARCHAR2(200);
    actType VARCHAR2(100);
    actDate DATE;
    obUser VARCHAR2(500);
    CURSOR cur_AUD_OBLIGATION IS
    SELECT o.UPDATED_TS, o.UPDATED_BY, o.OBLIGATION_ID, o.COMMUNICATION_ID,o.COMMUNICATION_ID_OLD,o.OBL_DESC,o.OBL_DESC_OLD,
    o.OBL_TYPE, o.OBL_TYPE_OLD, o.ORIGINAL_TARGET_DATE,o.ORIGINAL_TARGET_DATE_OLD,o.TARGET_DATE,o.TARGET_DATE_OLD,
    o.ACTUAL_DATE,o.ACTUAL_DATE_OLD,o.STATUS,o.STATUS_OLD,o.DOCLINK,o.DOCLINK_OLD,o.SERIAL_NUMBER,o.SERIAL_NUMBER_OLD,
    u.FNAME || ' ' ||u.LNAME AS EMPLOYEE,o.ACTION_TYPE
    FROM AUD_OBLIGATION o, TRAC_USER u, OBLIGATION_USER ou
    WHERE o.OBLIGATION_ID = ou.OBLIGATION_ID
    AND
    ou.TRAC_USER_ID = u.TRAC_USER_ID;
    i_AUD_OBLIGATION cur_AUD_OBLIGATION%rowtype;
    BEGIN
    for i_AUD_OBLIGATION in cur_AUD_OBLIGATION loop
    actType := i_AUD_OBLIGATION.ACTION_TYPE;
    actDate := i_AUD_OBLIGATION.UPDATED_TS;
    emp := i_AUD_OBLIGATION.UPDATED_BY;
    IF i_AUD_OBLIGATION.OBL_DESC != i_AUD_OBLIGATION.OBL_DESC_OLD
    THEN modData := 'OBL. DESC. was: ' || i_AUD_OBLIGATION.OBL_DESC_OLD
    || 'It is now: ' ||i_AUD_OBLIGATION.OBL_DESC;
    ELSE modData := modData;
    END IF;
    IF i_AUD_OBLIGATION.OBL_TYPE != i_AUD_OBLIGATION.OBL_TYPE_OLD
    THEN modData := modData || 'OBL. TYPE. was: ' ||i_AUD_OBLIGATION.OBL_TYPE_OLD
    || 'It is now: ' ||i_AUD_OBLIGATION.OBL_TYPE;
    ELSE modData := modData;
    END IF;
    IF i_AUD_OBLIGATION.ORIGINAL_TARGET_DATE != i_AUD_OBLIGATION.ORIGINAL_TARGET_DATE_OLD
    THEN modData := modData || 'ORIG.TRGT DATE was: ' || i_AUD_OBLIGATION.ORIGINAL_TARGET_DATE_OLD
    || 'It is now: ' ||i_AUD_OBLIGATION.ORIGINAL_TARGET_DATE;
    ELSE modData := modData;
    END IF;
    INSERT INTO vw_AUD_OBLIGATIONS VALUES
    (actDate,actType, emp,modData);
    END LOOP;
    END;
    Here is the view I've created, based on this procedure (it does not compile):
    CREATE OR REPLACE VIEW vw_AUD_OBLIGATIONS
    (Action_Date, Action_Type, Action_User, Modified_Data)
    AS
    SELECT actDate,actType, emp,modData
    FROM proc_AUD_OBLIGATIONS
    END;
    Any thoughts on how to make this work - it seems like such a simple concept....
    Thanks in advance
    Tony

    You have a couple of misconceptions here. First, you cannot SELECT from a procedure. You need to write a PROCEDURE that INSERTs these columns into a TABLE, then simply SELECT from the TABLE. There are of course many variations, but I hope you get the general idea here.
    Greg

  • Need Help in Splitting a String Using SQL QUERY

    Hi,
    I need help in splitting a string using a SQL Query:
    String IS:
    AFTER PAINT.ACOUSTICAL.1..9'' MEMBRAIN'I would like to seperate this string into multiple lines using the delimeter .(dot)
    Sample Output should look like:
    SNO       STRING
    1            AFTER PAINT
    2            ACOUSTICAL
    3            1
    4            
    5            9" MEMBRAIN
    {code}
    FYI i am using Oracle 9.2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    There's this as well:
    with x as ( --generating sample data:
               select 'AFTER PAINT.ACOUSTICAL.1..9" MEMBRAIN' str from dual union all
               select 'BEFORE PAINT.ELECTRIC.2..45 caliber MEMBRAIN' str from dual)
    select str,
           row_number() over (partition by str order by rownum) s_no,
           cast(dbms_xmlgen.convert(t.column_value.extract('//text()').getstringval(),1) as varchar2(100)) res
    from x,
         table(xmlsequence(xmltype('<x><x>' || replace(str,'.','</x><x>') || '</x></x>').extract('//x/*'))) t;
    STR                                                S_NO RES                                                                                                
    AFTER PAINT.ACOUSTICAL.1..9" MEMBRAIN                 1 AFTER PAINT                                                                                        
    AFTER PAINT.ACOUSTICAL.1..9" MEMBRAIN                 2 ACOUSTICAL                                                                                         
    AFTER PAINT.ACOUSTICAL.1..9" MEMBRAIN                 3 1                                                                                                  
    AFTER PAINT.ACOUSTICAL.1..9" MEMBRAIN                 4                                                                                                    
    AFTER PAINT.ACOUSTICAL.1..9" MEMBRAIN                 5 9" MEMBRAIN                                                                                        
    BEFORE PAINT.ELECTRIC.2..45 caliber MEMBRAIN          1 BEFORE PAINT                                                                                       
    BEFORE PAINT.ELECTRIC.2..45 caliber MEMBRAIN          2 ELECTRIC                                                                                           
    BEFORE PAINT.ELECTRIC.2..45 caliber MEMBRAIN          3 2                                                                                                  
    BEFORE PAINT.ELECTRIC.2..45 caliber MEMBRAIN          4                                                                                                    
    BEFORE PAINT.ELECTRIC.2..45 caliber MEMBRAIN          5 45 caliber MEMBRAIN      
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to construct request related mail using OIM email api?

    Hi,
    I need to send an approval notification to a group.
    The group is decided at runtime by a task assignment adapter.
    So I have kept a java task in the task assignment adapter after sending the request to the approver.
    This java task is called after sending the request to notify the approver via email.
    I am able to send the email notification this way.
    But the issue is:
    1. the email definition being used for approval is request related
    2. I am using tcEmailNotificationUtil.constructProvisionEmail api for constructing the mail.
    3. Hence the request ID info is not coming in the email being sent(obviously)
    But I donot see any request related mail api in this class. What should I do to reflect the request info in the email then?
    Thanks for all your earlier supports!
    Debasree

    List <RequestEntity> targetEntities = req.getTargetEntities();
    System.out.println("targetEntities : " + targetEntities);
    System.out.println("------------");
    The above piece of code retrieves the attributes and their values from the request form while creating a user, but not from the request form, which provisioning a resource to a user.
    Regards,

  • My apple I'd has been discarded for security reasons. The site asks me to give my email and they would send me the further instruction. But no Emil has arrived so far. Since January. And I did requested help multiple times. :( any ideas where can I solve

    My apple I'd has been discarded for security reasons. The site asks me to give my email and they would send me the further instruction. But no Emil has arrived so far. Since January. And I did requested help multiple times. :( any ideas where can I solve

    Who discarded the Apple ID? Apple? or You?
    Did you answer the Security Questions? Is the backup email accurate? Have you tried contacting them?

  • Transport request help

    Hi All,
    We have a transport request assigned to our package.We have changed 10 Queries and all changes are written into that request.
    Now we have created a new request and tried to collect the objects into this request (RSA1->transport connection).But it was not possible as all objects are already under old request.
    Is there any way to get all these objects collected into new request?? i know that we can do it manually but it will take lots of time.
    Thanks!

    Hi
    There are two methods by which ur probm can be solved
    1) merging of two requests: if u right clik on a request in SE10 u see an option of merge request, clikin on this asks u for a request number, enter the requst number u wana merge with the requst where u have right cliked and saw merge request option
    2) unlock the old request: using se03 u can unlock the request, there is a tab named unlock objects in se03. clikin on this takes u to screen which asks for a request number, type the subtask and clik execute and after that the main requst in the same manner.
    now after unlocking u can create a new request using transport connection
    but i will suggest u to go for the second option from the two
    hope it helps assing points if applicable
    thanks
    puneet

  • Unable to access my .xls file in iPhone or iPad using Icould drive. Request help.

    I installed iCloud drive in my mac and saved a .xls file to be viewed and used with my iPad and iPhone. Though these devices are upgraded to IOs8 and Icloud drive is 'on' in these devices, I am unable to access this particular file in iPad or iPhone. Request help on how to open, view and amend files thru iPhone or Ipad.

    Do you have Excel installed on your iPad and iPhone? https://itunes.apple.com/us/app/microsoft-excel/id586683407?mt=8

  • Help urgently needed, I have installed Logic Pro 9, since then my Final Cut Pro X keep freezing. Anyone what is wrong and how to solve it? I desperately need help on this. Thanks

    Help urgently needed, I have installed Logic Pro 9, since then my Final Cut Pro X keep freezing. Anyone what is wrong and how to solve it? I desperately need help on this. Apple support says I have to pay £85 for to help me. Thanks

    Just a word of advice. Never ever use the word "urgent" on this forum

  • HT201304 I don't what is wrong with my card I can't buy anything on apple store even free ones I can't download, they said my previous purchase have a problem but I don't how wil I do to solve this problem, I need a help pls

    I don't what is wrong with my card I can't buy anything on apple store even free ones I can't download, they said my previous purchase have a problem but I don't how wil I do to solve this problem, I need a help pls

    What is the exact error message you're receiving?

  • Microsft odbc unknown error :-  request help

    hello.
    i am getting the following error and am unable to know the reason why. i have even configured system dsn i the control panel and still get the error below.
    ==========================================
    the code is as follows
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_openBrWindow(theURL,winName,features)
    window.open(theURL,winName,features);
    //-->
    </script>
    <%
    String userName = request.getParameter ("userName");
    String password = request.getParameter ("password");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    ServletContext context = getServletContext ();
    String appDirRoot = context.getRealPath ("/");
    String connString = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)}; DBQ=" + appDirRoot + "winerysystem.mdb";
    Connection connUser = DriverManager.getConnection(connString);
    Statement stmtUser = connUser.createStatement();
    String sqlUser = "SELECT * FROM employee WHERE employee.userName = '"+userName+"' AND employee.password = '"+password+"' ";
    ResultSet rsUser = stmtUser.executeQuery (sqlUser);     
    if (rsUser.next ())
    session.setAttribute ("username", userName);
    %>
    <html>
    <body onLoad="MM_openBrWindow('index.jsp','Menu','width=800,height=600,scrollbars=yes,resizable=yes')"></body>
    </html>
    <%
    else
    response.sendRedirect("login.jsp?message=incorrect");
    connUser.close ();
    %>
    =====================================================
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: [Microsoft][ODBC Microsoft Access Driver] Could not find file '(unknown)'.
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:498)
         at org.apache.jsp.loginHandler_jsp._jspService(loginHandler_jsp.java:82)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)
    root cause
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Could not find file '(unknown)'.
         at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
         at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
         at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3074)
         at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:323)
         at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:193)
         at org.apache.jsp.loginHandler_jsp._jspService(loginHandler_jsp.java:54)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)
    Apache Tomcat/4.1.31

    hi ramesh
    thanks a million for the help. i rewrote the code slightly as follows and when i run the program it gives the following message. i request help on what the message is trying to say. is the microsft database access file corrupt ??
    ===============================================
    mesaage when the class file is run
    loading Driver
    unable to connectjava.sql.SQLException: No data found
    ================================================== =
    //sample code
    import java.sql.*;
    class conntest
    public static void main(String args[]) throws SQLException
    ResultSet rs = null;
    Statement st;
    Connection con = null;
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    System.out.println("loading Driver");
    con = DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)}; winerysystem.mdb");
    System.out.println("Establishing connection");
    catch(ClassNotFoundException e){
    System.out.println("unable to load"+ e);
    catch(SQLException se){
    System.out.println("unable to connect" +se);
    }

  • Request help for WS 14000..44 std wrkflw

    Hi,
    I am facing a issue in wokflow WS14000044.It's not sending any work item to any of the purchasers.
    The log says no agent found for this task. I also checked following FM to see whether any entries generated but dod not return any values.Request help.
    BBP_PDH_WFL_GET_PURCHASER_LIST.
    arjman

    Hi,
    Check in PPOMA_BBP that there are purchasers assigned to the relevant purchasing org of your cart.
    Also check that the agent assignment of the approval task TS14007947 is maintained with desired approvers.
    Kind regards,
    Siobhan

  • Exch2k7 to Exch2k10 - SSL 'request' help for the new server

    Hi,
    after read the article 'http://technet.microsoft.com/en-us/library/dd638158.aspx', we already have MBX and CAS 2007 running the lastest spk version and the SSL on the CAS 2007 is already working as 'LEGACY.DOMAIN.COM.BR' + 'Autodiscover.domain.com.br'
    + 'mail.domain.com.br'.
    My question is regarding the SSL request for the new server:
    >>> Can I start the REQUEST for the external Certification Authority using Windows Powershell or IIS console instead to use 'Exchange Management Shell'??
    * I´m afraid about the time (days) to install CAS 2010 on the new server, start the request to the CA, do the internal steps to aprove, pay the tax, wait for generation and then install the new SSL on the new server...

    Hi,
    Based on my research, we can use IIS renew the certificate for IIS:
    http://support.microsoft.com/kb/228991
    And Windows power shell can help us to create certificate request:
    http://social.technet.microsoft.com/Forums/exchange/en-US/1ba38a64-8776-444c-9f4d-a484075f3de2/powershell-to-request-a-certificate-renewal
    Thanks,
    Angela Shi
    TechNet Community Support

Maybe you are looking for

  • ICal not functioning correctly

    First of all, I have been using Entourage which I sync with iCal so that I can sync my calendar with my iPhone. I would like to discontinue using Entourage but for some reason, iCal is not functioning correctly. First, the calendars do not appear in

  • af:serverListener causing ADF page to hang while refresh

    Hi All, I am working on JDeveloper 11.1.1.5.0 We have developed an ADF application wherein we are using a <af:ServerListener> for implementing table row double-click action. below is the code <af:clientListener method="handleTableDoubleClick"        

  • Adding a Picture

    I am a new user in J2ME. i want to insert a picture in my application.So the file is image_bw.png in which directory in the windows should i put it? Where is /image_bw.png ? How much should be the size of the picture in cm. Image im = Image.createIma

  • I KEEP GETTING AN ERROR MESSAGE WHEN I TRY TO BUYMUSIC (-1202)

    I keep getting error message (-1202) when I try to buy musice?

  • CC startup script to set Preference "Default Composer"?

    I have a startup script that I wrote for CS3 that controls about 20 preferences. One of the preferences was for Composer, which was by: app.textDefaults.composer = "Adobe Single-line Composer" This script has worked for CS 3, 5, 5.5, and 6 (we skippe